/* ============================================================
   Zari Kirmanji Scientific Conference - main stylesheet
   Extracted from the original single-file index.html
   ============================================================ */

:root {
    --white: #FFFFFF;
    --snow: #FAFBFC;
    --pearl: #F1F5F9;
    --silver: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --charcoal: #334155;
    --midnight: #0F172A;
    --deep: #020617;
    --amber-50: #FFFBEB;
    --amber-100: #FEF3C7;
    --amber-200: #FDE68A;
    --amber-400: #FBBF24;
    --amber-500: #F59E0B;
    --amber-600: #D97706;
    --amber-700: #B45309;
    --emerald-500: #10B981;
    --rose-500: #F43F5E;
    --violet-500: #8B5CF6;
    --sky-500: #0EA5E9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: var(--snow);
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 16px;
}

body.english {
    font-family: 'Inter', system-ui, sans-serif;
    direction: ltr;
    line-height: 1.7;
}

.en { display: none; }
.ku { display: block; }
span.ku, a.ku { display: inline; }
span.en, a.en { display: none; }
body.english .en { display: block; }
body.english .ku { display: none; }
body.english span.en, body.english a.en { display: inline; }
body.english span.ku, body.english a.ku { display: none; }

/* Lang Toggle */
.lang-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 5px;
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.lang-btn {
    padding: 10px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s;
    color: var(--slate-500);
}

body.english .lang-btn { font-family: 'Inter', sans-serif; }

.lang-btn.active {
    background: var(--midnight);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15,23,42,0.3);
}

/* ===================== HAMBURGER & SIDEBAR ===================== */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

body.english .hamburger {
    right: auto;
    left: 20px;
}

.hamburger:hover {
    background: var(--pearl);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--midnight);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ===================== NAV ===================== */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--silver);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--slate-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 10px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--midnight);
    background: var(--pearl);
}

/* ===================== NAV LOGO (DUAL LOGO) ===================== */
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 4px 0;
}

.nav-logo .logo-bg {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.nav-logo .logo-main {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.nav-logo .logo-divider {
    width: 1px;
    height: 32px;
    background: var(--silver);
    flex-shrink: 0;
}

/* ===================== MOBILE NAV ===================== */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        bottom: 0;
        left: auto;
        width: 280px;
        border-bottom: none;
        border-left: 1px solid var(--silver);
        z-index: 1000;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        background: var(--white);
    }

    body.english .main-nav {
        right: auto;
        left: -300px;
        border-left: none;
        border-right: 1px solid var(--silver);
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.open {
        right: 0;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    }

    body.english .main-nav.open {
        left: 0;
        right: auto;
        box-shadow: 10px 0 40px rgba(0,0,0,0.15);
    }

    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 80px 16px 40px;
        gap: 4px;
        min-height: 100%;
    }

    .nav-logo {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--silver);
        display: flex;
        justify-content: center;
    }

    .nav-link {
        width: 100%;
        padding: 14px 18px;
        border-radius: 12px;
        font-size: 15px;
        display: block;
        border-bottom: 1px solid var(--pearl);
    }

    .nav-link:last-child { border-bottom: none; }

    .lang-toggle {
        top: 80px;
    }
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--midnight) 0%, #1a1f35 50%, #252a40 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--amber-500) 0%, transparent 70%);
    opacity: 0.08;
    top: -200px;
    right: -200px;
    animation: pulse1 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--violet-500) 0%, transparent 70%);
    opacity: 0.06;
    bottom: -150px;
    left: -150px;
    animation: pulse2 10s ease-in-out infinite;
}

@keyframes pulse1 {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.1); opacity: 0.12; }
}

@keyframes pulse2 {
    0%, 100% { transform: scale(1); opacity: 0.06; }
    50% { transform: scale(1.15); opacity: 0.1; }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 60px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 30px 80px;
        gap: 60px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: var(--white);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
    animation: fadeInUp 0.8s ease;
}

body.english .hero-badge {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

.hero-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

body.english .hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--slate-400);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@media (max-width: 1100px) {
    .hero-subtitle { margin-left: auto; margin-right: auto; }
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@media (max-width: 1100px) {
    .hero-actions { justify-content: center; }
}

.btn {
    padding: 16px 32px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

body.english .btn { font-family: 'Inter', sans-serif; }

.btn-primary {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245,158,11,0.5);
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.hero-visual {
    position: relative;
    animation: fadeIn 1s ease 0.5s both;
}

@media (max-width: 1100px) {
    .hero-visual { order: -1; }
}

/* ===================== SECTIONS ===================== */
section { padding: 120px 40px; }

@media (max-width: 768px) { section { padding: 80px 20px; } }

.container { max-width: 1200px; margin: 0 auto; }

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
    box-shadow: 0 10px 40px rgba(245,158,11,0.2);
}

.section-label {
    display: inline-block;
    background: var(--amber-50);
    color: var(--amber-700);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

body.english .section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
}

.section-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    color: var(--midnight);
    margin-bottom: 18px;
    line-height: 1.3;
}

body.english .section-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
}

.section-desc {
    font-size: 17px;
    color: var(--slate-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================== ABOUT ===================== */
#about { background: var(--white); }

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 1000px) {
    .about-layout { grid-template-columns: 1fr; gap: 50px; }
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-600);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

body.english .about-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
}

.about-eyebrow::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--amber-500);
    border-radius: 10px;
}

.about-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--midnight);
    margin-bottom: 24px;
    line-height: 1.4;
}

body.english .about-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
}

.about-text {
    font-size: 16px;
    color: var(--slate-600);
    margin-bottom: 24px;
    line-height: 2;
}

.about-quote {
    background: linear-gradient(135deg, var(--midnight), #1e293b);
    border-radius: 24px;
    padding: 35px 40px;
    margin: 35px 0;
    position: relative;
    overflow: hidden;
}

.about-quote::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--amber-500) 0%, transparent 70%);
    opacity: 0.2;
}

body.english .about-quote::before {
    right: auto;
    left: 0;
}

.about-quote p {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.about-quote cite {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--amber-400);
    font-style: normal;
    font-weight: 600;
}

.about-visual { position: relative; }

.about-img-wrap {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.about-img-wrap img { width: 100%; display: block; }

.about-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,0.8) 100%);
}

/* ===================== OBJECTIVES ===================== */
#objectives {
    background: linear-gradient(180deg, var(--midnight) 0%, #0c1222 100%);
    position: relative;
    overflow: hidden;
}

#objectives::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--amber-500) 0%, transparent 70%);
    opacity: 0.05;
}

#objectives .section-icon { background: rgba(251,191,36,0.2); }
#objectives .section-label { background: rgba(251,191,36,0.15); color: var(--amber-400); }
#objectives .section-title { color: var(--white); }
#objectives .section-desc { color: var(--slate-400); }

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1400px) { .objectives-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .objectives-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .objectives-grid { grid-template-columns: 1fr; } }

.obj-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.obj-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
    opacity: 0;
    transition: opacity 0.3s;
}

.obj-card:hover { transform: translateY(-8px); border-color: var(--amber-500); background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)); }
.obj-card:hover::before { opacity: 1; }

.obj-num {
    font-family: 'DM Serif Display', serif;
    font-size: 52px;
    background: linear-gradient(180deg, var(--amber-400), var(--amber-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.obj-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.5; }
body.english .obj-card h3 { font-family: 'Fraunces', serif; font-weight: 600; }
.obj-card p { font-size: 14px; color: var(--slate-400); line-height: 1.8; }

/* ===================== TOPICS ===================== */
#topics { background: var(--snow); }

.topics-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 800px) { .topics-wrapper { grid-template-columns: 1fr; } }

.topic-card {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 20px;
    padding: 28px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s;
}

.topic-card:hover { border-color: var(--amber-400); box-shadow: 0 15px 40px rgba(245,158,11,0.1); transform: translateY(-4px); }

.topic-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--amber-700);
    flex-shrink: 0;
}

.topic-content h4 { font-size: 16px; font-weight: 700; color: var(--midnight); margin-bottom: 6px; line-height: 1.5; }
body.english .topic-content h4 { font-family: 'Fraunces', serif; font-weight: 600; }
.topic-content p { font-size: 14px; color: var(--slate-500); line-height: 1.7; }

/* ===================== TIMELINE ===================== */
#timeline { background: var(--white); position: relative; }

.timeline-container { max-width: 800px; margin: 0 auto; position: relative; }

.timeline-line {
    position: absolute;
    right: 24px;
    top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--amber-400), var(--amber-600));
    border-radius: 10px;
}

body.english .timeline-line { right: auto; left: 24px; }

.tl-item { display: flex; gap: 40px; margin-bottom: 30px; position: relative; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
    width: 52px;
    height: 52px;
    background: var(--white);
    border: 4px solid var(--amber-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(245,158,11,0.3);
}

.tl-content {
    flex: 1;
    background: var(--pearl);
    border-radius: 20px;
    padding: 28px 32px;
    position: relative;
}

.tl-content::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 18px;
    width: 20px;
    height: 20px;
    background: var(--pearl);
    transform: rotate(45deg);
}

body.english .tl-content::before { right: auto; left: -10px; }

.tl-date { font-size: 18px; font-weight: 800; color: var(--amber-600); margin-bottom: 8px; }
.tl-text { font-size: 20px; color: var(--charcoal); line-height: 1.7; }

.tl-item.highlight .tl-content { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); }
.tl-item.highlight .tl-content::before { background: var(--amber-500); }
.tl-item.highlight .tl-date,
.tl-item.highlight .tl-text { color: var(--white); }

/* ===================== COMMITTEE ===================== */
#committee { background: linear-gradient(180deg, var(--pearl) 0%, var(--snow) 100%); }

.committee-section { margin-bottom: 60px; }
.committee-section:last-child { margin-bottom: 0; }

.committee-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.committee-divider::before,
.committee-divider::after {
    content: '';
    width: 80px;
    height: 2px;
    background: var(--silver);
}

.committee-divider span {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-500);
    white-space: nowrap;
}

body.english .committee-divider span {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
}

/* ===================== COMMITTEE TABLE STYLE ===================== */
.committee-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 10px;
}

.committee-table thead tr {
    background: linear-gradient(135deg, var(--midnight), #1e293b);
}

.committee-table thead th {
    padding: 18px 24px;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

body.english .committee-table thead th { text-align: left; }

.committee-table thead th:first-child {
    width: 60px;
    text-align: center;
}

.committee-table thead th:last-child {
    border-top-left-radius: 0;
}

.committee-table tbody tr {
    border-bottom: 1px solid var(--pearl);
    transition: background 0.2s;
}

.committee-table tbody tr:last-child { border-bottom: none; }
.committee-table tbody tr:hover { background: var(--pearl); }

.committee-table tbody tr:nth-child(even) {
    background: var(--snow);
}

.committee-table tbody tr:nth-child(even):hover {
    background: var(--pearl);
}

.committee-table tbody td {
    padding: 16px 24px;
    font-size: 15px;
    color: var(--charcoal);
    text-align: right;
    vertical-align: middle;
}

body.english .committee-table tbody td { text-align: left; }

.committee-table tbody td:first-child {
    text-align: center;
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--amber-600);
    font-weight: 700;
    width: 60px;
}

.committee-table .role-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
    color: var(--amber-700);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.committee-table .member-name-cell {
    font-weight: 700;
    color: var(--midnight);
    font-size: 15px;
    line-height: 1.5;
}

.committee-table .affil {
    font-size: 13px;
    color: var(--slate-400);
    margin-top: 4px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .committee-table thead th:last-child,
    .committee-table tbody td:last-child { display: none; }

    .committee-table tbody td { padding: 14px 16px; font-size: 14px; }
    .committee-table thead th { padding: 14px 16px; }
}

/* ===================== SUBMISSION ===================== */
#submission { background: var(--white); }

.submission-card {
    background: linear-gradient(135deg, var(--midnight), #1e293b);
    border-radius: 40px;
    padding: 70px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

@media (max-width: 700px) { .submission-card { padding: 40px 25px; border-radius: 30px; } }

.submission-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--amber-500) 0%, transparent 70%);
    opacity: 0.15;
}

.submission-card::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--violet-500) 0%, transparent 70%);
    opacity: 0.1;
}

.submission-inner { position: relative; z-index: 1; }

.submission-header { text-align: center; margin-bottom: 50px; }

.submission-header h2 {
    font-family: 'Vazirmatn', sans-serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

body.english .submission-header h2 { font-family: 'Fraunces', serif; font-weight: 600; }
.submission-header p { color: var(--slate-400); font-size: 16px; }

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

@media (max-width: 600px) { .guidelines-grid { grid-template-columns: 1fr; } }

.guide-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.guide-num {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.guide-text { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.7; }

.submission-cta {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px;
}

.submission-cta p { color: var(--slate-400); margin-bottom: 15px; font-size: 30px; }

.email-icon { font-size: 50px; color: #f5a623; text-decoration: none; }
.email-icon:hover { opacity: 0.9; }

/* ===================== REQUIREMENTS ===================== */
.req-item:hover { transform: translateX(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

body.english .req-item { border-right: none; border-left: 4px solid var(--amber-500); }
body.english .req-item:hover { transform: translateX(5px); }

/* ===================== GALLERY ===================== */
#gallery { background: var(--midnight); padding: 100px 40px; }

#gallery .section-icon { background: rgba(251,191,36,0.2); }
#gallery .section-label { background: rgba(251,191,36,0.15); color: var(--amber-400); }
#gallery .section-title { color: var(--white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 800px) { .gallery-grid { grid-template-columns: 1fr; max-width: 450px; } }

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 16px; font-weight: 600; }
.gallery-overlay small { color: var(--amber-400); font-size: 12px; margin-top: 5px; }

/* ===================== CONTACT ===================== */
#contact { background: var(--snow); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info {
    background: var(--white);
    border-radius: 30px;
    padding: 45px;
    border: 1px solid var(--silver);
}

.contact-item { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
    width: 55px; height: 55px;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-label { font-size: 12px; font-weight: 700; color: var(--slate-400); margin-bottom: 5px; }
body.english .contact-label { text-transform: uppercase; letter-spacing: 1px; font-size: 10px; }

.contact-value { font-size: 16px; color: var(--charcoal); font-weight: 500; }
.contact-value a { color: var(--charcoal); text-decoration: none; transition: color 0.3s; }
.contact-value a:hover { color: var(--amber-600); }

.contact-map { border-radius: 30px; overflow: hidden; min-height: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; border: none; }

/* ===================== FOOTER ===================== */
footer {
    background: var(--deep);
    color: var(--slate-400);
    padding: 60px 40px;
    text-align: center;
}

.footer-brand { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--white); margin-bottom: 10px; }
.footer-tagline { font-size: 14px; margin-bottom: 30px; color: var(--slate-500); }
.footer-divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--amber-500), var(--amber-600)); margin: 0 auto 30px; border-radius: 10px; }
.footer-copy { font-size: 13px; color: var(--slate-600); }

/* ===================== MODAL ===================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.modal.active { display: flex; }

.modal img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

.modal-close {
    position: absolute;
    top: 30px; right: 40px;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover { background: var(--amber-500); border-color: var(--amber-500); }

/* ===================== RESOURCES ===================== */
#resources {
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--pearl) 100%);
    padding: 100px 40px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 700px) { .resources-grid { grid-template-columns: 1fr; } }

.resource-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 2px solid var(--silver);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.resource-card:hover { border-color: var(--amber-400); box-shadow: 0 20px 50px rgba(245,158,11,0.15); transform: translateY(-8px); }
.resource-card:hover::before { transform: scaleX(1); }

.resource-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 12px;
    line-height: 1.5;
}

body.english .resource-title { font-family: 'Fraunces', serif; font-weight: 600; }
.resource-desc { font-size: 14px; color: var(--slate-500); line-height: 1.8; margin-bottom: 24px; }

.resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}

.resource-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.4); }

/* ===================== DOWNLOAD LIST ===================== */
#resources {
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--pearl) 100%);
    padding: 100px 40px;
}

.dl-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-row {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 16px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dl-row::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--amber-400), var(--amber-600));
    border-radius: 0 16px 16px 0;
    transform: scaleY(0);
    transition: transform 0.3s;
}

body.english .dl-row::before {
    right: auto;
    left: 0;
    border-radius: 16px 0 0 16px;
}

.dl-row:hover {
    border-color: var(--amber-400);
    box-shadow: 0 8px 30px rgba(245,158,11,0.12);
    transform: translateX(-4px);
}

body.english .dl-row:hover {
    transform: translateX(4px);
}

.dl-row:hover::before {
    transform: scaleY(1);
}

.dl-row-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.dl-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--amber-700);
    font-weight: 700;
    flex-shrink: 0;
}

.dl-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--midnight);
}

.dl-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.dl-type {
    background: var(--pearl);
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
    white-space: nowrap;
}

.dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,158,11,0.4);
}

@media (max-width: 500px) {
    .dl-row { padding: 14px 18px; flex-wrap: wrap; }
    .dl-type { display: none; }
    .dl-name { font-size: 14px; }
    .dl-btn { padding: 9px 16px; font-size: 12px; }
}

    
.dl-list .dl-row.reveal.visible { opacity: 1; transform: translateY(0); }
.dl-list .dl-row:nth-child(1).reveal { transition-delay: 0.05s; }
.dl-list .dl-row:nth-child(2).reveal { transition-delay: 0.1s; }
.dl-list .dl-row:nth-child(3).reveal { transition-delay: 0.15s; }
.dl-list .dl-row:nth-child(4).reveal { transition-delay: 0.2s; }
.dl-list .dl-row:nth-child(5).reveal { transition-delay: 0.25s; }
.dl-list .dl-row:nth-child(6).reveal { transition-delay: 0.3s; }
.dl-list .dl-row:nth-child(7).reveal { transition-delay: 0.35s; }
.dl-list .dl-row:nth-child(8).reveal { transition-delay: 0.4s; }
.dl-list .dl-row:nth-child(9).reveal { transition-delay: 0.45s; }
.dl-list .dl-row:nth-child(10).reveal { transition-delay: 0.5s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger > * { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.45s; }

/* ===================== ACCORDION ===================== */
.accordion-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) { .accordion-grid-container { grid-template-columns: 1fr; max-width: 700px; } }

.accordion-column { display: flex; flex-direction: column; gap: 16px; }

.accordion-item {
    background: var(--white);
    border: 2px solid var(--silver);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover { border-color: var(--amber-400); box-shadow: 0 8px 30px rgba(245,158,11,0.1); }

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

body.english .accordion-header { text-align: left; }
.accordion-header:hover { background: var(--pearl); }

.accordion-number {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    flex-shrink: 0;
}

.accordion-title { font-family: 'Vazirmatn', sans-serif; font-size: 16px; font-weight: 700; color: var(--midnight); margin: 0; }
body.english .accordion-title { font-family: 'Fraunces', serif; font-weight: 600; }

.accordion-icon { flex-shrink: 0; color: var(--amber-600); transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-item.active .accordion-content { max-height: 1000px; }

.accordion-body { padding: 0 24px 24px 24px; }
.accordion-body p { font-size: 14px; color: var(--slate-600); line-height: 1.9; margin-bottom: 14px; }

.example-box {
    background: var(--pearl);
    padding: 18px;
    border-radius: 12px;
    border-right: 3px solid var(--amber-500);
    margin-top: 14px;
}

body.english .example-box { border-right: none; border-left: 3px solid var(--amber-500); }
.example-box strong { font-size: 12px; color: var(--amber-700); display: block; margin-bottom: 8px; }
.example-box p { font-size: 13px; color: var(--charcoal); margin: 0; line-height: 1.8; font-style: italic; }

@media (max-width: 768px) {
    .accordion-header { padding: 16px 20px; }
    .accordion-number { width: 36px; height: 36px; font-size: 15px; }
    .accordion-title { font-size: 14px; }
    .accordion-body { padding: 0 20px 20px 20px; }
}

/* ============================================================
   Styles moved out of inline style="" attributes during the
   PHP split (abstract intro, requirements list, table wrappers)
   ============================================================ */
#abstract-guidelines { background: var(--snow); padding: 120px 40px; }

.abstract-intro {
    background: linear-gradient(135deg, var(--amber-50), var(--amber-100));
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 50px;
    border-right: 5px solid var(--amber-500);
}
.abstract-intro p { font-size: 16px; color: var(--charcoal); line-height: 2; margin: 0; }

.accordion-header-main { display: flex; align-items: center; gap: 20px; flex: 1; }

.table-scroll { overflow-x: auto; }

#requirements { background: var(--pearl); padding: 100px 40px; }
#requirements .section-label { background: rgba(245,158,11,0.1); color: var(--amber-600); }
.requirements-container { max-width: 1000px; margin: 0 auto; }

.req-item {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 16px;
    border-right: 4px solid var(--amber-500);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.req-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.req-text { color: var(--charcoal); font-size: 16px; line-height: 1.9; margin: 0; }
.req-text strong { color: var(--amber-600); }

.req-note {
    background: linear-gradient(135deg, var(--emerald-500), #059669);
    border-radius: 20px;
    padding: 32px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(16,185,129,0.25);
}
.req-note h4 { color: white; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.req-note p { color: rgba(255,255,255,0.95); font-size: 16px; line-height: 1.8; margin: 0; }

.dl-list { max-width: 860px; margin-left: auto; margin-right: auto; }
/* ============================================================
   Hero document buttons (agenda / booklet) – "not uploaded yet" state
   ============================================================ */
.btn-disabled { opacity: 0.6; cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.btn-soon {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(255,255,255,0.18);
    color: var(--white);
    margin-inline-start: 4px;
}
/* ============================================================
   Research booklet pages (booklet.php, paper.php)
   ============================================================ */
.booklet-page { padding: 100px 40px 100px; background: var(--snow); min-height: 70vh; }
@media (max-width: 768px) { .booklet-page { padding: 90px 20px 80px; } }

.nav-link.active { color: var(--midnight); background: var(--pearl); font-weight: 700; }

.btn-outline {
    background: transparent;
    color: var(--midnight);
    border: 1px solid var(--slate-300);
}
.btn-outline:hover { background: var(--pearl); border-color: var(--slate-400); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.booklet-search {
    display: flex;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto 28px;
    flex-wrap: wrap;
}
.booklet-search-box {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 14px;
    padding: 0 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.booklet-search-box:focus-within { border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(245,158,11,0.15); }
.booklet-search-box i { color: var(--slate-400); }
.booklet-search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 16px 0;
    font: inherit;
    font-size: 15px;
    color: var(--midnight);
}
.booklet-search-box input::placeholder { color: var(--slate-400); font-size: 13px; }

.booklet-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto 24px;
    color: var(--slate-500);
    font-size: 14px;
}
.booklet-count strong { color: var(--midnight); font-size: 18px; }

.booklet-empty {
    max-width: 860px;
    margin: 40px auto;
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border: 1px dashed var(--slate-300);
    border-radius: 20px;
    color: var(--slate-500);
}
.booklet-empty i { font-size: 40px; color: var(--slate-300); margin-bottom: 16px; display: block; }

.paper-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.paper-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 20px;
    padding: 26px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.paper-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--amber-200); }
@media (max-width: 600px) { .paper-card { padding: 20px; gap: 14px; } }

.paper-num {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    color: var(--white); font-weight: 700; font-size: 15px;
}
.paper-body { flex: 1; min-width: 0; }
.paper-title { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.paper-title a { color: var(--midnight); text-decoration: none; }
.paper-title a:hover { color: var(--amber-600); }

.paper-authors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.paper-authors i { color: var(--amber-500); }
.paper-author {
    background: var(--pearl);
    color: var(--slate-600);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 500;
}
.paper-excerpt { color: var(--slate-500); font-size: 14px; line-height: 1.9; margin-bottom: 12px; }
.paper-more { display: inline-flex; align-items: center; gap: 8px; color: var(--amber-600); font-weight: 600; font-size: 13px; text-decoration: none; }
.paper-more:hover { color: var(--amber-700); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-link {
    min-width: 42px; height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--silver);
    background: var(--white); color: var(--slate-600);
    text-decoration: none; font-weight: 600; transition: all 0.2s;
}
.page-link:hover { border-color: var(--amber-500); color: var(--amber-600); }
.page-link.is-active { background: var(--midnight); border-color: var(--midnight); color: var(--white); }

/* single paper */
.paper-page { max-width: 860px; }
.paper-back { display: inline-flex; align-items: center; gap: 8px; color: var(--slate-500); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.paper-back:hover { color: var(--midnight); }
.paper-detail {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 24px;
    padding: 44px 48px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
@media (max-width: 600px) { .paper-detail { padding: 28px 22px; } }
.paper-detail-title { font-size: 28px; font-weight: 800; line-height: 1.5; color: var(--midnight); margin: 16px 0 24px; }
@media (max-width: 600px) { .paper-detail-title { font-size: 22px; } }
.paper-detail-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--slate-400); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.paper-detail-label i { color: var(--amber-500); }
.paper-detail-authors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--pearl); }
.paper-detail-authors .paper-detail-label { width: 100%; margin-bottom: 4px; }
.paper-abstract-text { font-size: 16px; line-height: 2; color: var(--charcoal); text-align: justify; }