/* أنماط CSS لنظام Journal Submission System */
/* تصميم مستوحى من ENOSH SCIENCE CENTER */

:root {
    /* الألوان الجديدة المطلوبة بدقة */
    --primary-color: #d80006;
    --secondary-color: #121029;
    --footer-bg: #121029;
    --light-bg: #f8f9fa;
    --dark-text: #121029;
    --white: #ffffff;
    --accent-color: #c5a059;
}

.issn-top-banner {
    background: #000;
    color: var(--accent-color);
    text-align: center;
    padding: 4px 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.issn-tagline {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: normal;
    margin-top: -5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.issn-tagline .issn-badge {
    color: var(--accent-color);
    font-weight: bold;
    border-left: 1px solid #444;
    padding-left: 10px;
}

/* Premium Hero Badges */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: rgba(197, 160, 89, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-badge i {
    font-size: 0.9rem;
    margin-right: 10px;
}

.hero-badge.upcoming {
    background: rgba(216, 0, 6, 0.08);
    border-color: rgba(216, 0, 6, 0.3);
    color: #ff4d4d;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Mobile Responsiveness for Hero Section */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem !important; /* Scale down on mobile */
        letter-spacing: -1px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-badge {
        padding: 6px 15px;
        font-size: 0.7rem;
    }
    
    .hero-metadata-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-metadata-col {
        width: 100%;
        border: none;
        padding: 0;
    }

    .hero-showcase-integrated {
        padding: 0 10px;
    }
}

.hero-badge:hover {
    transform: translateY(-2px);
    background: rgba(197, 160, 89, 0.2);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #121029;
    background-color: #f8f9fa;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .journal-title {
    font-family: 'Montserrat', sans-serif;
}

body[dir="rtl"] {
    direction: rtl;
}

/* الهيدر بتصميم ENOSH */
.header {
    background-color: var(--secondary-color) !important;
    color: var(--white);
    padding: 1rem 0;
    /* Removed redundant shadow and strengthened the accent line */
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Base Grid & Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-5,
.col-md-4,
.col-md-3,
.col-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .text-md-end {
        text-align: end !important;
    }
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.fw-bold {
    font-weight: bold !important;
}

.small {
    font-size: 0.875rem !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.text-center {
    text-align: center !important;
}

body[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 55px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 0, 6, 0.4);
    border-color: var(--primary-color);
}

.journal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    line-height: 1.2;
    max-width: 300px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-brand:hover .journal-title {
    color: var(--primary-color);
}

.auth-logo {
    display: block;
    height: 80px;
    width: auto;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem; /* Reduced from 2rem */
    align-items: center;
}

body[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.8rem; /* Reduced from 1rem */
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent word wrapping */
    font-size: 0.95rem; /* Slightly smaller for fit */
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: #2c5282;
}

/* Hero Section - Premium Dark Theme */
/* Hero Section - Redesigned to include Volume/Issue & Brain Background */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #050410 0%, var(--secondary-color) 40%, var(--primary-color) 100%);
    padding: 6rem 0 0;
    /* Bottom padding removed to allow footer bar to sit at bottom */
    text-align: center;
    color: white;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.hero-background-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-image: url('../images/journal-cover-brain.png');
    background-size: cover;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 4rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    letter-spacing: -2px;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out both;
}

.hero-logo-container {
    margin-bottom: 3rem;
}

.hero-logo {
    height: 130px;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: white;
    padding: 12px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Volume/Issue Bar - Internal variant for middle positioning */
.hero-volume-bar-internal {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInScale 0.8s ease-out;
}

.hero-volume-content-internal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hero-volume-text-internal {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-qr-code-internal {
    height: 70px;
    width: auto;
    background: white;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Metadata Grid Enhancements for extreme clarity */
.hero-metadata-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    max-width: 900px;
    margin: 4rem auto 3.5rem;
    /* Added 4rem top margin to separate from the button */
    padding: 3rem 5rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-metadata-col {
    text-align: left;
}

body[dir="rtl"] .hero-metadata-col {
    text-align: right;
}

.hero-meta-item {
    font-size: 1.15rem;
    /* Increased for clarity */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #f1f1f1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.hero-meta-label {
    font-weight: 800;
    /* Extra bold for clarity */
    color: var(--primary-color);
    min-width: 120px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hero-meta-val {
    font-weight: 600;
    color: white;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-metadata-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .hero-volume-text-internal {
        font-size: 1.4rem;
    }

    .hero-volume-content-internal {
        flex-direction: column;
        text-align: center;
    }

    .hero-meta-label {
        min-width: 100px;
    }
}

/* Utility Classes */
.custom-text {
    color: var(--secondary-color) !important;
}

.custom-icon i,
.custom-icon {
    color: var(--primary-color) !important;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover {
    filter: brightness(90%);
    border-color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a1738;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-white {
    background-color: transparent;
    color: white !important;
    border: 2px solid white !important;
}

.btn-white:hover {
    background-color: white !important;
    color: var(--secondary-color) !important;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* النماذج */
.auth-section {
    padding: 4rem 0;
    background: #f4f6f8;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #1f3b57;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1f3b57;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #c82333;
    box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.1);
}

.role-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.role-buttons .btn {
    padding: 1.5rem;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
}

.role-icon {
    font-size: 2rem;
}

.role-title {
    font-weight: bold;
}

.role-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* لوحة التحكم */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    color: #1f3b57;
    font-size: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #c82333;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* الجداول */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f4f6f8;
    font-weight: 600;
    color: #1f3b57;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #121029;
    margin-bottom: 2rem;
    /* Reduced to make room for subtitle */
    font-weight: 800;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    margin: 0 auto 4rem auto;
    font-size: 1.15rem;
    color: #121029;
    line-height: 1.8;
    opacity: 0.85;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #d80006;
    border-radius: 2px;
}

.features-section {
    padding: 6rem 0;
    background: #fcfcfc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: left;
    /* Changed to left for bullets */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure all cards in a row have same height */
}

/* RTL support for Arabic */
[dir="rtl"] .feature-card {
    text-align: right;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(216, 0, 6, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: #d80006;
    margin-bottom: 2rem;
    width: 80px;
    height: 80px;
    background: rgba(216, 0, 6, 0.03);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    align-self: center;
    /* Keep icon centered */
}

.feature-card h3 {
    color: #121029;
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-align: center;
    /* Keep title centered */
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: #2b3e50;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-item .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Recent Papers */
.recent-papers-section {
    padding: 4rem 0;
    background: #f4f6f8;
}

.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Slider System */
.slider-wrapper {
    position: relative;
    padding: 0 50px;
    margin: 2rem 0;
}

.papers-slider-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    min-height: 200px;
}

.loading-container {
    width: 100%;
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.papers-slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.papers-slider-container .paper-card {
    flex: 0 0 calc(50% - 1rem);
    /* 2 cards per view on Desktop */
    scroll-snap-align: start;
    min-width: 450px;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    color: #1e293b;
}

.slider-nav-btn:hover {
    background: #c82333;
    color: white;
    border-color: #c82333;
    box-shadow: 0 6px 15px rgba(200, 35, 51, 0.3);
}

.slider-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav-btn.prev {
    left: 0;
}

.slider-nav-btn.next {
    right: 0;
}

@media (max-width: 992px) {
    .papers-slider-container .paper-card {
        flex: 0 0 100%;
        min-width: unset;
    }

    .slider-wrapper {
        padding: 0 40px;
    }
}

.paper-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 1.5rem;
    position: relative;
    height: 100%;
    /* Important for equal height in grid */
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.paper-image-container {
    flex: 0 0 160px;
    width: 160px;
    height: 180px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.paper-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.paper-card:hover .paper-image-container img {
    transform: scale(1.05);
}

.paper-image-container.placeholder {
    color: #94a3b8;
    font-size: 3rem;
}

.paper-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
    /* Added gap */
}

.paper-type {
    background: #c82333;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    /* Prevent wrapping */
    text-transform: uppercase;
}

.paper-date {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.paper-title {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.paper-authors {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.paper-abstract {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    flex: 1;
    /* Pushes Footer to bottom */
}

.paper-link {
    align-self: flex-start;
    padding: 0.6rem 1.25rem;
    background: #1e293b;
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid #1e293b;
}

.paper-link:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateX(3px);
    text-decoration: none;
}

@media (max-width: 768px) {
    .paper-card {
        flex-direction: column;
        gap: 1rem;
    }

    .paper-image-container {
        width: 100%;
        height: 200px;
        flex: 0 0 200px;
    }
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1f3b57 0%, #2a4a6a 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #121029 0%, #0d0b21 100%);
    color: white;
    padding: 5rem 0 3rem;
    margin-top: 4rem;
    border-top: 4px solid var(--primary-color);
}

.footer h3,
.footer h4,
.footer h5 {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 1px;
    display: inline-block;
    /* Essential for centering the underline */
}

.footer h3::after,
.footer h4::after,
.footer h5::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers the whole block */
    text-align: left;
    /* But items inside look arranged from the start */
}

.footer-links-list {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    /* Lines up the icons vertically */
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.8rem;
    padding-left: 5px;
}

/* دوائر التواصل الاجتماعي البيضاء */
.social-icon-circle {
    width: 42px;
    height: 42px;
    background: white;
    color: #121029;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: 0.3s ease;
    text-decoration: none;
}

.social-icon-circle:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

/* شريط الإحصائيات في الفوتر */
.stats-bar {
    display: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: white;
}

.stat-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.contact-info i {
    color: var(--primary-color) !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .role-buttons {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .papers-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Step Wizard */
.step-wizard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.step-wizard::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: #c82333;
    color: white;
}

.step-item.completed .step-number {
    background: #38a169;
    color: white;
}

.step-title {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    max-width: 100px;
}

.step-item.active .step-title {
    color: #c82333;
    font-weight: 500;
}

.step-item.completed .step-title {
    color: #38a169;
}

/* Step Content */
.step-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

/* File Upload */
.file-upload {
    border: 2px dashed #cbd5e0;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload:hover {
    border-color: #c82333;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 2rem;
    color: #1f3b57;
    margin-bottom: 1rem;
}

.file-upload-text {
    color: #666;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: #999;
    font-size: 0.9rem;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.status-draft {
    background: #6c757d;
    color: white;
}

.status-submitted {
    background: #007bff;
    color: white;
}

.status-under_review {
    background: #ffc107;
    color: #212529;
}

.status-revision_required {
    background: #fd7e14;
    color: white;
}

.status-accepted {
    background: #28a745;
    color: white;
}

.status-rejected {
    background: #dc3545;
    color: white;
}

/* Tab Buttons */
.tab-btn {
    background: #f4f6f8;
    border: 1px solid #d9d2c3;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: #1f3b57;
    color: white;
    border-color: #1f3b57;
}

body[dir="rtl"] .tab-btn {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Author Item */
.author-item {
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.author-item .form-row {
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 1rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Form Hints */
.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.alert-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
}

.btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body[dir="rtl"] .alert-icon {
    margin-right: 0;
    margin-left: 0.75rem;
}

body[dir="rtl"] .btn-loading::before {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* RTL Support */
body[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}

body[dir="rtl"] .dashboard-header {
    flex-direction: row-reverse;
}

body[dir="rtl"] .table th,
body[dir="rtl"] .table td {
    text-align: right;
}

body[dir="rtl"] .step-wizard {
    flex-direction: row-reverse;
}

body[dir="rtl"] .role-buttons {
    direction: rtl;
}

body[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

body[dir="rtl"] .paper-meta {
    flex-direction: row-reverse;
}

body[dir="rtl"] .cta-actions {
    flex-direction: row-reverse;
}

body[dir="rtl"] .footer-content {
    direction: rtl;
}

/* Language Switcher */
#language-switcher {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: white;
    transition: background-color 0.3s ease;
}

#language-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 0;
    /* Removed fixed padding to eliminate gaps between themed sections */
}

/* بطاقات المحتوى بتصميم ENOSH */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: all 0.3s ease;
    border-top: 4px solid #c82333;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.5rem;
    color: #1f3b57;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-description {
    color: #222;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0.8;
}

/* نماذج الإدخال بتصميم ENOSH */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    border-top: 4px solid #c82333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f3b57;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d9d2c3;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f4f6f8;
}

.form-input:focus {
    outline: none;
    border-color: #c82333;
    box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.1);
    background-color: white;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d9d2c3;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f4f6f8;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #c82333;
    box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d9d2c3;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    background-color: #f4f6f8;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #121029 0%, #1a1a3a 100%);
    color: white;
    padding: 8rem 0;
    margin-bottom: 4rem;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.about-hero .lead {
    font-size: 1.4rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

.mission-card {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border-left: 8px solid #d80006;
    margin-bottom: 5rem;
}

[dir="rtl"] .mission-card {
    border-left: none;
    border-right: 8px solid #d80006;
}

.mission-card h2 {
    color: #121029;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.content-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.content-box h2 {
    color: #121029;
    font-weight: 700;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(216, 0, 6, 0.1);
    padding-bottom: 1rem;
    display: inline-block;
}

.philosophy-list,
.objectives-list {
    list-style: none;
    padding-left: 0;
}

.philosophy-list li,
.objectives-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

[dir="rtl"] .philosophy-list li,
[dir="rtl"] .objectives-list li {
    padding-left: 0;
    padding-right: 2rem;
}

.philosophy-list li::before {
    content: "•";
    color: #d80006;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

[dir="rtl"] .philosophy-list li::before {
    left: auto;
    right: 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.expertise-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    color: #121029;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: #d80006;
    color: white;
    transform: translateY(-5px);
}


.form-textarea:focus {
    outline: none;
    border-color: #c82333;
    box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.1);
    background-color: white;
}

/* أزرار تسجيل الدخول حسب الدور بتصميم ENOSH */
.role-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.role-btn {
    padding: 16px 20px;
    border: 2px solid #1f3b57;
    background: white;
    color: #1f3b57;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.role-btn:hover {
    background: linear-gradient(135deg, #1f3b57 0%, #2a4a6a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(31, 59, 87, 0.3);
}

/* لوحات التحكم بتصميم ENOSH */
.dashboard {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #c82333;
}

.dashboard-header {
    border-bottom: 2px solid #d9d2c3;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.dashboard-title {
    font-size: 2.2rem;
    color: #1f3b57;
    font-weight: 700;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* End of specialized sections */

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row !important;
        /* Keep logo and hamburger on same line */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-toggle {
        display: block !important;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        transition: color 0.3s ease;
    }

    .mobile-toggle:hover {
        color: var(--primary-color);
    }

    .nav-menu {
        display: none;
        /* Hide by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column !important;
        gap: 0 !important;
        padding: 1rem 0;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu.active {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-radius: 0;
    }

    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--primary-color);
    }

    .hero-title {
        font-size: 2rem;
    }

    .role-buttons {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Hide mobile toggle on desktop */
.mobile-toggle {
    display: none;
}

/* --- Professional Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body[dir="rtl"] .toast-container {
    right: auto;
    left: 20px;
}

.toast {
    min-width: 300px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid #ccc;
    position: relative;
    overflow: hidden;
}

body[dir="rtl"] .toast {
    transform: translateX(-120%);
    border-left: none;
    border-right: 5px solid #ccc;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-message {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Variants */
.toast-success {
    border-color: #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error {
    border-color: var(--primary-color);
}

.toast-error .toast-icon {
    color: var(--primary-color);
}

.toast-info {
    border-color: #17a2b8;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

.toast-warning {
    border-color: #ffc107;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

/* Progress bar (Optional touch) */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
}

/* Editorial Policies Section - Premium Glassmorphism & Gradient */
.editorial-policies {
    background: radial-gradient(circle at top right, rgba(216, 0, 6, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(18, 16, 41, 0.05), transparent),
        #fcfcfd;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.editorial-policies::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(216, 0, 6, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.policy-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 35px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03),
        0 5px 15px rgba(0, 0, 0, 0.02);
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    z-index: 1;
}

.policy-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(216, 0, 6, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.policy-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 60px rgba(18, 16, 41, 0.12);
    border-color: rgba(216, 0, 6, 0.2);
}

.policy-card:hover::after {
    opacity: 1;
}

.policy-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: var(--primary-color);
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 1);
}

.policy-card:hover .policy-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(216, 0, 6, 0.3);
}

.policy-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.policy-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.policy-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.policy-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
    padding-left: 5px;
}

/* RTL Adjustments */
[dir="rtl"] .policy-link:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .policy-link i {
    transform: scaleX(-1);
}

/* Responsiveness */
@media (max-width: 768px) {
    .policy-grid {
        gap: 20px;
    }

    .policy-card {
        padding: 30px 20px;
    }
}

/* Policy Landing Pages Styles */
.policy-hero {
    background: var(--secondary-color);
    color: #fff;
    padding: 100px 0 60px;
    position: relative;
}

.policy-main-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(216, 0, 6, 0.3);
}

.policy-header h1 {
    margin-bottom: 20px;
}

.policy-content-section {
    background: #fdfdfd;
    margin-top: -50px;
    z-index: 2;
    position: relative;
    padding-bottom: 100px;
}

.content-card {
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

#policy-verbatim-content section {
    margin-bottom: 40px;
}

#policy-verbatim-content h3 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

#policy-verbatim-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

[dir="rtl"] #policy-verbatim-content h3::after {
    left: auto;
    right: 0;
}

#policy-verbatim-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

#policy-verbatim-content ul {
    list-style: none;
    padding: 0;
}

#policy-verbatim-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #555;
}

#policy-verbatim-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

[dir="rtl"] #policy-verbatim-content ul li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] #policy-verbatim-content ul li::before {
    left: auto;
    right: 0;
    content: '←';
}

@media (max-width: 768px) {
    .content-card {
        padding: 30px 20px;
    }
}

/* ============================================
   PUBLICATIONS — 6-per-page paginated grid
   ============================================ */

/* Wrapper: [←]  [2-col grid]  [→] */
.slider-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "prev grid next"
        ". page .";
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.slider-nav-btn.prev {
    grid-area: prev;
}

.slider-nav-btn.next {
    grid-area: next;
}

.papers-slider-container {
    grid-area: grid;
}

#pub-page-counter {
    grid-area: page;
}

/* Centre: 2 columns × up-to-3 rows = 6 cards per page */
.papers-slider-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 680px) {
    .slider-wrapper {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "grid grid grid"
            "prev page next";
        gap: 1rem;
    }

    .slider-nav-btn {
        display: flex !important;
        justify-self: center;
        margin-top: 0;
        width: 40px;
        /* Slightly smaller on mobile */
        height: 40px;
    }

    .papers-slider-container {
        grid-template-columns: 1fr;
    }

    #pub-page-counter {
        margin-top: 0;
        align-self: center;
    }
}

/* Circular arrow button */
.slider-nav-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: var(--secondary-color);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    margin-top: 0;
    /* Centered via grid align-items */
}

.slider-nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(216, 0, 6, 0.25);
}

.slider-nav-btn:disabled {
    opacity: 0.22;
    cursor: not-allowed;
    transform: none;
}

/* Page counter  "1 / 3"  injected by JS */
#pub-page-counter {
    display: block;
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #121029;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* Journal Showcase Banner */
.journal-showcase-banner {
    background: linear-gradient(to right, #111, var(--secondary-color, #121029));
    color: white;
    padding: 2.5rem 0;
    border-bottom: 2px solid var(--mag-gold, #c5a059);
    position: relative;
    overflow: hidden;
}

.journal-showcase-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/journal-cover-brain.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
}

.showcase-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--mag-gold, #c5a059);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid white;
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: white;
    color: var(--secondary-color, #121029) !important;
}

@media (max-width: 768px) {
    .journal-showcase-banner {
        text-align: center;
        padding: 2rem 1rem;
    }
}