/* ===================================================================
   AL-AQLAM JOURNAL - INTERNATIONAL SCHOLARLY THEME (LTR & RTL)
   Brand palette aligned with official emblem (Forest Green, Navy & Gold)
   =================================================================== */

:root {
    --primary: #0d3b26;         /* Deep forest green from emblem */
    --primary-light: #155337;
    --primary-dark: #072216;
    --navy: #0a192f;
    --accent: #c59b27;          /* Warm gold from emblem */
    --accent-light: #dfb743;
    --accent-dark: #967417;
    --emerald: #059669;
    --ruby: #dc2626;
    --white: #ffffff;
    --cream: #fafaf8;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
    --radius: 6px;
    --radius-lg: 12px;
    --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Cairo', 'Amiri', serif;
    --font-heading-en: 'Cinzel', Georgia, serif;
    --font-heading-ar: 'Amiri', serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] {
    --font-main: var(--font-ar);
    --font-heading: var(--font-heading-ar);
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    --font-main: var(--font-en);
    --font-heading: var(--font-heading-en);
    direction: ltr;
    text-align: left;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 125px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    inset-inline-start: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius);
    z-index: 3000;
    text-decoration: none;
    font-size: 0.85rem;
}
.skip-link:focus {
    top: 12px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: var(--gray-300);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(197, 155, 39, 0.25);
    position: relative;
    z-index: 1002;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.top-bar-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.meta-chip i {
    color: var(--accent-light);
}
.meta-divider {
    opacity: 0.4;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 6px;
    border-radius: 50px;
    flex-shrink: 0;
}
.lang-sep {
    opacity: 0.35;
    font-size: 0.75rem;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--gray-300);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 10px;
    border-radius: 50px;
    transition: var(--transition);
}
.lang-btn:hover {
    color: var(--accent-light);
}
.lang-btn.active {
    background: var(--accent);
    color: var(--primary-dark);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
    position: relative;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
    flex: 1 1 auto;
}
.brand-emblem {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: block;
}
.logo-text {
    min-width: 0;
}
.logo-text h1 {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}
.logo-text p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.3;
}
.logo-text .university {
    display: block;
    font-size: 0.73rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-top: 1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.nav-link {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--gray-100);
}
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    border: 1px solid var(--accent);
    margin-inline-start: 8px;
}
.admin-link:hover {
    background: var(--accent);
    color: var(--primary-dark);
}
.mobile-menu-btn {
    display: none;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 65%, #164830 100%);
    color: var(--white);
    padding: 75px 0 85px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: 'الأقلام';
    position: absolute;
    font-family: 'Amiri', serif;
    font-size: 24rem;
    opacity: 0.035;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(197, 155, 39, 0.16);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.hero h2 {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    color: var(--white);
}
.hero-subtitle {
    font-size: 1.08rem;
    opacity: 0.9;
    margin: 0 auto 32px;
    line-height: 1.75;
    font-weight: 300;
    max-width: 740px;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 45px;
    flex-wrap: wrap;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    backdrop-filter: blur(8px);
}
.stat-number {
    display: block;
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--font-heading);
    line-height: 1.2;
}
.stat-number.stat-word {
    font-size: 1.25rem;
    padding: 6px 0 4px;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--gray-200);
}

/* ===== SEARCH & FILTER BAR ===== */
.search-strip {
    background: var(--white);
    margin-top: -32px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    border: 1px solid var(--gray-200);
}
.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}
.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input-wrap i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    inset-inline-start: 16px;
}
.search-input {
    width: 100%;
    padding: 12px 16px;
    padding-inline-start: 44px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.94rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.search-input:focus {
    border-color: var(--accent);
}
.search-select {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: var(--white);
    color: var(--gray-700);
}
.search-select:focus {
    border-color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 4px 10px rgba(197, 155, 39, 0.25);
}
.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-paid {
    background: #fff1f2;
    color: var(--ruby);
    border: 1.5px solid var(--ruby);
}
.btn-paid:hover {
    background: var(--ruby);
    color: var(--white);
}
.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

/* ===== ACCESS BADGES ===== */
.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.access-badge.free {
    background: #ecfdf5;
    color: var(--emerald);
    border: 1px solid rgba(5, 150, 105, 0.3);
}
.access-badge.paid {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid rgba(194, 65, 12, 0.3);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--gray-50);
}
.section-head {
    text-align: center;
    margin-bottom: 46px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.15rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}
.section-subtitle {
    color: var(--gray-500);
    font-size: 1.02rem;
    max-width: 660px;
    margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.about-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}
.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent);
}
.about-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius);
    background: #eef6f1;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.about-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}
.about-card p {
    color: var(--gray-600);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ===== ISSUES GRID ===== */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 28px;
}
.issue-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.35s ease both;
}
.issue-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.issue-cover {
    height: 195px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}
.issue-cover-ar {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 4px;
}
.issue-cover-vol {
    font-size: 0.85rem;
    color: var(--accent-light);
    letter-spacing: 0.5px;
}
.issue-access-tag {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
}
.issue-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.issue-body h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}
.issue-meta {
    display: flex;
    gap: 15px;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}
.issue-desc {
    color: var(--gray-600);
    font-size: 0.89rem;
    margin-bottom: 20px;
    flex: 1;
}
.issue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    gap: 10px;
    flex-wrap: wrap;
}
.issue-price {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}
.issue-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== ARTICLES LIST ===== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.article-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeUp 0.35s ease both;
}
.article-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.article-type-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    background: #eef6f1;
    color: var(--primary);
}
.article-doi {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-inline-start: 10px;
}
.article-title {
    font-size: 1.22rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.45;
}
.article-title-ar {
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    color: var(--accent-dark);
    margin-bottom: 10px;
}
.article-authors {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-abstract {
    color: var(--gray-700);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.keyword-chip {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 3px 11px;
    border-radius: 50px;
    font-size: 0.78rem;
}
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 12px;
}
.article-meta-info {
    font-size: 0.83rem;
    color: var(--gray-500);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.article-price {
    color: var(--accent-dark);
    font-size: 0.9rem;
}
.article-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== EDITORIAL ===== */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.editor-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    animation: fadeUp 0.35s ease both;
}
.editor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.editor-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 14px;
}
.editor-name {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}
.editor-role {
    font-size: 0.86rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 6px;
}
.editor-affil {
    font-size: 0.84rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}
.editor-mail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
}
.editor-mail:hover {
    text-decoration: underline;
}

/* ===== GUIDELINES ===== */
.guidelines-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-inline-start: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}
.guidelines-list {
    list-style: none;
    counter-reset: guide-step;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.guidelines-list li {
    counter-increment: guide-step;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--gray-700);
    font-size: 0.96rem;
    line-height: 1.75;
}
.guidelines-list li::before {
    content: counter(guide-step);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: #eef6f1;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.contact-item h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}
.contact-item p {
    color: var(--gray-600);
    font-size: 0.9rem;
    white-space: pre-line;
}
.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.contact-item a:hover {
    text-decoration: underline;
}
.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.contact-form .form-group {
    margin-bottom: 16px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.94rem;
    outline: none;
    transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}
.form-status {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    text-align: center;
    display: none;
}
.form-status.success {
    display: block;
    background: #ecfdf5;
    color: var(--emerald);
}
.form-status.error {
    display: block;
    background: #fef2f2;
    color: var(--ruby);
}

/* ===== MODAL & OVERLAYS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 34, 22, 0.72);
    z-index: 2500;
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}
.modal-head {
    padding: 20px 26px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-head h3 {
    font-size: 1.15rem;
    color: var(--primary);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-500);
}
.modal-body {
    padding: 24px 26px;
}
.modal-foot {
    padding: 16px 26px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cite-block {
    margin-bottom: 16px;
}
.cite-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cite-block label {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.84rem;
}
.cite-copy-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 0.76rem;
    cursor: pointer;
    font-family: inherit;
}
.cite-copy-btn:hover {
    background: var(--primary);
    color: var(--white);
}
.cite-block > div,
.cite-block pre {
    background: var(--gray-100);
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    word-break: break-word;
    direction: ltr;
    text-align: left;
}
.cite-block pre {
    background: var(--gray-900);
    color: #e2e8f0;
    overflow-x: auto;
}

.access-title {
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 1.05rem;
}
.access-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.access-note {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 10px;
}
.access-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 4px;
}
.access-order {
    font-size: 0.84rem;
    color: var(--gray-600);
}
.mono {
    font-family: monospace;
    font-weight: 700;
}
.access-details {
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.65;
}
.text-primary {
    color: var(--primary);
}

/* ===== ISSUE DETAIL PAGE ===== */
.issue-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 48px 0 56px;
    border-bottom: 3px solid var(--accent);
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.92rem;
}
.back-link:hover {
    text-decoration: underline;
}
.issue-hero-content {
    display: flex;
    gap: 36px;
    align-items: center;
}
.issue-cover-large {
    width: 210px;
    min-height: 270px;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}
.issue-cover-large .cover-ar {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
}
.issue-cover-large .cover-sub {
    font-size: 0.78rem;
    color: var(--accent-light);
    margin-top: 8px;
}
.issue-details h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 12px;
}
.issue-details .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    opacity: 0.9;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.issue-details p {
    opacity: 0.92;
    line-height: 1.7;
    max-width: 720px;
}

/* ===== UTILITY & STATES ===== */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
    grid-column: 1 / -1;
}
.no-data {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-500);
    grid-column: 1 / -1;
}
.no-data i {
    font-size: 2.3rem;
    color: var(--gray-300);
    margin-bottom: 10px;
    display: block;
}
.empty-row {
    text-align: center;
    padding: 24px !important;
    color: var(--gray-500);
}

/* ===== PROFESSIONAL ACADEMIC FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--gray-300);
    padding: 60px 0 26px;
    border-top: 3px solid var(--accent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.footer-brand .brand-emblem {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    padding: 4px;
}
.footer-brand-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}
.footer-brand-sub {
    color: var(--accent-light);
    font-size: 0.8rem;
}
.footer-col h4 {
    color: var(--white);
    font-size: 0.96rem;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}
.footer-col p {
    color: var(--gray-400);
    font-size: 0.86rem;
    line-height: 1.7;
    margin-bottom: 10px;
}
.footer-col a {
    color: var(--gray-300);
    font-size: 0.87rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.footer-col ul {
    list-style: none;
}
.footer-col a:hover {
    color: var(--accent-light);
}
.footer-meta-list {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: 8px;
}
.footer-meta-list div {
    margin-bottom: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.82rem;
}
.footer-bottom a {
    color: var(--accent-light);
    text-decoration: none;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* Admin Message Cards */
.msg-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    transition: var(--transition);
}
.msg-card.unread {
    border-inline-start: 4px solid var(--accent);
    background: #fffdf5;
}
.msg-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.msg-email {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-inline-start: 8px;
}
.msg-date {
    color: var(--gray-400);
    font-size: 0.8rem;
}
.msg-subject {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}
.msg-body {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.recent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    gap: 12px;
}
.recent-row p {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-top: 2px;
}
.recent-row span {
    color: var(--gray-400);
    font-size: 0.8rem;
    white-space: nowrap;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1120px) {
    .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .nav.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: calc(100% + 2px);
        inset-inline: 0;
        background: var(--white);
        padding: 14px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        border-top: 1px solid var(--gray-200);
        z-index: 1001;
    }
    .nav.mobile-open .nav-link {
        width: 100%;
        padding: 11px 14px;
    }
    .admin-link {
        margin-inline-start: 0;
        margin-top: 6px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    /* Organize top bar cleanly on mobile without scattered wrapping */
    .top-bar-meta .meta-hide-mobile,
    .top-bar-meta .meta-divider {
        display: none;
    }
    .top-bar .container {
        flex-wrap: nowrap;
    }
    .meta-chip {
        font-size: 0.74rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-emblem {
        width: 42px;
        height: 42px;
    }
    .logo-section {
        gap: 10px;
    }
    .logo-text h1 {
        font-size: 1.12rem;
    }
    .logo-text p {
        font-size: 0.72rem;
    }
    .logo-text .university {
        display: none;
    }
    .hero {
        padding: 52px 0 64px;
    }
    .hero h2 {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 0.96rem;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    .stat-number {
        font-size: 1.55rem;
    }
    .search-strip {
        padding: 14px;
        margin-top: -24px;
    }
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 1.65rem;
    }
    .guidelines-card {
        padding: 24px 20px;
    }
    .issue-hero-content {
        flex-direction: column;
        text-align: center;
    }
    .issue-details .meta {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
