/* IJHSIMS Custom Theme over Bootstrap */
:root {
    --primary-color: #0a66c2;
    --secondary-color: #004182;
    --font-main: 'Inter', sans-serif;
    --font-header: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #f8f9fa;
    /* Light Gray Background */
    padding-top: 70px;
    /* Space for fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: var(--font-header);
}

/* Navbar Tweaks */
.navbar-brand .small-text {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: #444 !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Hero Section Gradient */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    min-height: 80vh;
    /* Takes 80% of screen height */
    padding-top: 2rem;
    padding-bottom: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

/* Primary Button Override */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Card Hover Effect */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

/* Mobile Tweaks */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
        clip-path: none;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

/* --- HOVER DROPDOWN EFFECT (Desktop Only) --- */
@media (min-width: 992px) {

    /* Dropdown open on hover */
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        /* Remove gap */
        animation: fadeIn 0.3s ease;
        /* Smooth animation */
    }

    /* Arrow rotation on hover */
    .dropdown:hover .nav-link::after {
        transform: rotate(180deg);
        transition: transform 0.2s;
    }
}

/* Smooth Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PREMIUM UPGRADES --- */

/* 1. Typography - Premium Feel */
h1,
h2,
h3,
.navbar-brand {
    font-family: 'Playfair Display', serif;
    /* Classic Academic Font */
    letter-spacing: -0.5px;
}

body {
    font-family: 'Inter', sans-serif;
    /* Clean Modern Text */
}

/* 2. Glassmorphism Navbar (Translucent Blur) */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 3. Hero Section - Animated Gradient */
.hero-section,
.page-header {
    background: linear-gradient(-45deg, #0a66c2, #004182, #23d5ab, #0a66c2);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Moving Background Animation */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 4. Card Hover Effects (3D Lift) */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    /* Lift up */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* 5. Button Glow Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 100%;
    /* Shine effect moves across */
}

/* 6. Footer Premium */
/* --- FOOTER CONTAINER --- */
.footer-fresh {
    background-color: #1e293b;
    /* Dark Slate Blue (Professional Dark) */
    color: #e2e8f0;
    /* Soft White Text */
    padding-top: 80px;
    font-family: 'Inter', sans-serif;
    border-top: 4px solid #38bdf8;
    /* Sky Blue Top Border */
}

/* --- BRAND SECTION --- */
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.issn-tag {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    /* Light Blue bg */
    color: #38bdf8;
    /* Sky Blue Text */
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
    /* Muted Grey */
}

/* --- HEADINGS WITH UNDERLINE --- */
.footer-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

/* The Underline Effect */
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    /* Line Width */
    height: 3px;
    /* Line Thickness */
    background-color: #38bdf8;
    /* Sky Blue Color */
    border-radius: 2px;
    transition: width 0.3s;
}

/* Hover Effect on Title (Line expands) */
.footer-title:hover::after {
    width: 60px;
}

/* --- LINKS LIST --- */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-list a:hover {
    color: #38bdf8;
    /* Sky Blue Hover */
    transform: translateX(5px);
    /* Slide Right */
}

/* --- CONTACT LIST --- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: start;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.icon-box {
    color: #38bdf8;
    margin-right: 15px;
    font-size: 1.1rem;
    margin-top: 2px;
}

.contact-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.contact-list a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- BUTTONS & ICONS --- */
.btn-fresh {
    background-color: #38bdf8;
    color: #0f172a;
    width: 100%;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px;
    transition: 0.3s;
}

.btn-fresh:hover {
    background-color: #fff;
    color: #0284c7;
    transform: translateY(-2px);
}

/* --- Social Link Base Styles --- */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle background */
    color: #fff;
    border-radius: 50%;
    /* Circle shape */
    margin-right: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* --- Key properties for the Shine Effect --- */
    position: relative;
    /* Essential to contain the shine inside the button */
    overflow: hidden;
    /* Hides the shine when it moves outside the circle */
    transition: all 0.3s ease-in-out;
    /* Smooth transition for color changes */
}

/* --- The Shine Element (The Glass Reflection) --- */
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    /* Start hiding to the left */
    width: 50%;
    /* Width of the shine beam */
    height: 100%;

    /* The Shine Gradient: Transparent -> White -> Transparent */
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            /* The bright center */
            rgba(255, 255, 255, 0) 100%);

    /* Tilt the beam to look like a glass reflection */
    transform: skewX(-25deg);
    transition: none;
    /* No animation when mouse leaves */
}

/* --- Hover Effects --- */
.social-link:hover {
    /* 1. The existing Color Change (e.g., Sky Blue) */
    background-color: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
    transform: translateY(-3px);
    /* Slight lift */
}

/* 2. The Shine Animation on Hover */
.social-link:hover::before {
    left: 150%;
    /* Move the shine all the way to the right */
    transition: all 0.5s ease-in-out;
    /* Speed of the shine */
}

/* --- BOTTOM BAR --- */
.footer-bottom {
    background-color: #0f172a;
    /* Darker Navy */
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* 7. Scroll Bar Design */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0a66c2;
    border-radius: 5px;
}

/* --- NEW EDITORIAL MEMBER STYLE --- */

/* The Container for the list */
.member-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Gap between rows */
}

/* The Individual Member Row (Card) */
.member-strip {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Very subtle shadow */
    border-left: 5px solid transparent;
    /* Hidden border for hover effect */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Hover Effect - Lift & Color Border */
.member-strip:hover {
    transform: translateX(10px);
    /* Slight slide to right */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
    /* Blue indicator appears */
}

/* Avatar in the strip */
.strip-avatar {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1.5rem;
}

/* Interest Badge */
.topic-badge {
    background: #e0f2fe;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Country Flag Style */
.country-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .member-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .strip-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }
}

.text-justify {
    text-align: justify;
}

/* Read More Button Styles */
.read-more-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0a66c2, #004182);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.25);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #004182, #0a66c2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.35);
}

/* Aim and Scope Section */
/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0a66c2, #004182);
    padding: 80px 0;
    color: #fff;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Aim & Scope Section */
.aim-scope-section {
    padding: 70px 0;
    background: #f8fafc;
}

.aim-box {
    background: #ffffff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.section-heading {
    font-size: 28px;
    font-weight: 700;
    color: #0a66c2;
    margin-bottom: 20px;
}

.aim-box p {
    font-size: 15.5px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 18px;
}

/* Sub Headings */
.sub-heading {
    font-size: 20px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #004182;
    position: relative;
    padding-left: 18px;
}

.sub-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 18px;
    background: #0a66c2;
    border-radius: 3px;
}

/* List Style */
.scope-list {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.scope-list li {
    position: relative;
    padding: 16px 20px 16px 40px;
    margin-bottom: 14px;
    background: #f8fbff;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.scope-list li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 18px;
    width: 8px;
    height: 8px;
    background: #0a66c2;
    border-radius: 50%;
}

.scope-list li::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 30px;
    width: 2px;
    height: 100%;
    background: #cfe0ff;
}

.scope-list li:last-child::after {
    display: none;
}

.scope-list li:hover {
    background: #eef4ff;
    transform: translateX(6px);
}

/*Author Topic List Styles */
.topic-list {
    column-count: 2;
    column-gap: 60px;
    /* more space between columns */
    padding-left: 0;
}

.topic-list li {
    break-inside: avoid;
    margin-bottom: 14px;
    /* vertical space */
    padding-left: 22px;
    /* space for bullet */
    position: relative;
    line-height: 1.8;
    /* line spacing */
    font-size: 15px;
    color: #333;
}

.topic-list li:hover {
    color: #0a66c2;
    padding-left: 28px;
    transition: 0.2s ease;
}


/* Custom bullet */
.topic-list li::before {
    /* content: "•"; */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    color: #0a66c2;
    /* your theme blue */
}

@media (max-width: 991px) {
    .topic-list {
        column-count: 2;
        column-gap: 40px;
    }
}

@media (max-width: 576px) {
    .topic-list {
        column-count: 1;
    }
}

/* Indexing Logos */
.indexing-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.indexing-logos img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: 0.3s ease;
    /* filter: grayscale(100%); */
}

.indexing-logos img:hover {
    opacity: 1;
    /* filter: grayscale(0%); */
    transform: scale(1.05);
}

/* --- HERO HEADER --- */
.article-hero {
    background: linear-gradient(150deg, #020617 0%, #1e3a8a 100%);
    padding: 8rem 0 6rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Abstract circles background */
.article-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 10px;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-title {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.author-box {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.author-chip {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    cursor: pointer;
}

.author-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.author-avatar {
    width: 100px;
    height: 30px;
    background: #fff;
    color: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    /* font-size: 0.9rem; */
}

/* --- SIDEBAR --- */
.sticky-sidebar {
    position: sticky;
    top: 120px;
    z-index: 10;
}

.action-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.btn-download {
    background: var(--primary);
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-download:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
}

.toc-link {
    display: block;
    padding: 8px 0;
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 15px;
    transition: 0.2s;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* --- MAIN CONTENT --- */
.content-body {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 5;
}

.abstract-box {
    background: #f8fafc;
    border-left: 5px solid var(--primary);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    margin-bottom: 3rem;
}

.reference-box {
    background: #f8fafc;
    border-left: 5px solid var(--primary);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0 12px 12px 0;
    /* margin-bottom: 3rem; */
}

.content-body h2 {
    font-family: 'Merriweather', serif;
    color: var(--text-header);
    margin-top: 2.5rem;
    /* margin-bottom: 1rem;
            border-bottom: 2px solid #f1f5f9;
            padding-bottom: 10px;  */
    font-size: 1.8rem;
}

.content-body p {
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.dropcap::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    font-weight: bold;
    color: var(--primary);
    margin-right: 10px;
    font-family: 'Merriweather', serif;
}

/* --- CITATION BOX --- */
/* .citation-area {
    background: #1e293b;
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
} */

.citation-text {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 6px;
    color: #cbd5e1;
    margin-top: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* ================= CITATION SECTION ================= */
.spy-anchor {
    height: 1px;
    scroll-margin-top: 120px; /* same as navbar */
}

.citation-area {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 220px;
    padding: 28px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.citation-area::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.citation-select {
    background: #0f172a;
    color: #fff;
    border: 1px solid #334155;
    border-radius: 8px;
    min-width: 110px;
}

.citation-select:focus {
    box-shadow: none;
    border-color: #38bdf8;
}

.citation-text {
    margin-top: 20px;
    background: #020617;
    border: 1px dashed #334155;
    border-radius: 12px;
    padding: 18px 20px;
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.7;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
    white-space: pre-line;
}

.citation-area .btn-outline-light {
    border-radius: 8px;
    padding: 6px 14px;
}

@media (max-width: 576px) {
    .citation-area {
        padding: 22px 20px;
    }
}


/* ===== FIXED CURRENT ISSUE LAYOUT ===== */

.current-issue-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Header row */
.issue-header {
    padding: 14px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #0f172a;
    font-size: 0.95rem;
    margin: 0;
}

/* Each row */
.issue-row {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.25s ease;
    margin: 0;
}

.issue-row:last-child {
    border-bottom: none;
}

.issue-row:hover {
    background: #f9fafb;
}

/* 🔥 THIS LINE is cancelling Bootstrap negative margins */
.issue-header,
.issue-row {
    margin-left: 0;
    margin-right: 0;
}

/* Column alignment fix */
.issue-header>div,
.issue-row>div {
    padding-left: 8px;
    padding-right: 8px;
}

/* Author pill */
.author-pill {
    display: inline-block;
    /* padding: 6px 14px; */
    background: #ecfeff;
    /* color: #0f766e; */
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Actions column */
.actions-col {
    text-align: right;
    padding-right: 0;
}


/* === FIX LONG AUTHOR NAMES OVERFLOW === */

.issue-row .col-md-3 {
    white-space: normal !important;
    word-break: break-word;
}

.author-pill {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
}


/* Mobile */
@media (max-width: 768px) {
    .issue-header {
        display: none;
    }

    .issue-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .actions-col {
        text-align: left;
        padding-right: 8px;
    }
}

/* ===== PRO ARCHIVE DESIGN ===== */

.archive-pro-card {
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border-radius: 20px;
    padding: 35px 25px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    height: auto;
    /* natural compact size */
    padding-bottom: 28px;
}

/* Hover lift */
.archive-pro-card:hover {
    transform: rotate(0deg) scale(1.1);
    /* box-shadow: 0 15px 35px rgba(245,158,11,0.6); */
}

/* Shimmer line */
.archive-pro-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    transition: 0.6s;
}

/* .archive-pro-card:hover::after {
            left: 100%;
        } */

/* Folder container */
.folder-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

/* Folder icon */
.folder-wrap i {
    font-size: 42px;
    color: #ffffff;
    transition: all 0.4s ease;
}

/* Folder animation */
.archive-pro-card:hover .folder-wrap {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
}

.archive-pro-card:hover .folder-wrap i {
    transform: translateY(-3px);
}

/* Glow pulse */
.folder-wrap::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 26px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.archive-pro-card:hover .folder-wrap::before {
    opacity: 1;
}

/* Year */
.year-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Issue list */
/* Issue list – default hidden */
.issue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition: max-height 0.45s ease, opacity 0.35s ease;
}

/* When visible */
.issue-show {
    max-height: 500px;
    /* enough for many issues */
    opacity: 1;
}

.view-issues-btn {
    border: 1.4px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    z-index: 2;
    position: relative;
}

/* Pills */
.issue-pill {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover ripple */
.issue-pill::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
}

.issue-pill:hover::after {
    width: 200px;
    height: 200px;
}

.issue-pill:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-2px) scale(1.05);
    color: #ffffff;
}

/* Mobile polish */
@media (max-width: 768px) {
    .archive-pro-card {
        padding: 30px 20px;
    }

    .folder-wrap {
        width: 80px;
        height: 80px;
    }
}

/* Offset fix for fixed header */
#abstract,
#references {
    scroll-margin-top: 120px;
}

/* ScrollSpy needs a scroll container */
body {
    position: relative;
}

/* TOC active link style */
#toc-menu .toc-link {
    color: #64748b;
    padding-left: 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

#toc-menu .toc-link.active {
    color: #2563eb;
    font-weight: 600;
    border-left: 3px solid #2563eb;
}


/* ISSN Box Style */

.issn-box {
    /* background: rgba(255,255,255,0.15); */
    background: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    color: #0a66c2;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .issn-box:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    }

    .issn-title {
    display: block;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 6px;
    }

    .issn-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    }
