/* ============================================================
   TJIS — Tamiljothi International Journal
   styles.css  |  All styles, zero inline CSS
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
    --primary: #8B0000;
    --primary-dk: #5c0000;
    --gold: #C9962C;
    --gold-lt: #e8b84b;
    --cream: #FAF5EC;
    --text-dk: #1a1007;
    --text-md: #4a3b28;
    --text-lt: #7a6650;
    --border: rgba(139, 0, 0, 0.15);
    --serif: 'Playfair Display', 'Tiro Tamil', Georgia, serif;
    --body: 'Poppins', sans-serif;
    --tamil: 'Noto Serif Tamil', 'Tiro Tamil', serif;
    --shadow: 0 8px 32px rgba(139, 0, 0, 0.12);
    --radius: 12px;
}

/* ── RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: #fff;
    color: var(--text-dk);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--serif);
    line-height: 1.2;
}

.font-tamil {
    font-family: var(--tamil);
}

.font-serif {
    font-family: var(--serif);
}

/* ── LAUNCH BANNER ───────────────────────────────────────── */
.launch-banner {
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 50%, var(--primary) 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    padding: 8px 50px 8px 12px;
    /* right padding leaves room for close btn */
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .04em;
    position: relative;
    text-align: center;
    line-height: 1.5;
}

.launch-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.launch-badge {
    background: rgba(255, 255, 255, .22);
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-right: 6px;
    font-weight: 700;
    white-space: nowrap;
}

.launch-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
}

.launch-close:hover {
    color: #fff;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
    background: var(--primary-dk);
    padding: 5px 0;
    font-size: 11px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .75);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.topbar-left span {
    color: rgba(255, 255, 255, .75);
}

.topbar a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color .2s;
}

.topbar a:hover {
    color: var(--gold-lt);
}

.topbar .t-divider {
    color: rgba(255, 255, 255, .3);
    margin: 0 8px;
}

.lang-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 2px 4px;
    gap: 2px;
}

.lang-switch a {
    padding: 2px 9px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: all .2s;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.lang-switch a.active {
    background: var(--gold);
    color: #fff !important;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar-main {
    background: #fff;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .3s;
}

.navbar-main.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, .15);
}

/* brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
    flex-shrink: 0;
}

.brand-logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.brand-text {
    line-height: 1.15;
}

.journal-title-en {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}

.journal-title-ta {
    font-family: var(--tamil);
    font-size: 14px;
    color: var(--gold);
    line-height: 2.0;
    display: block;
}

.journal-badge {
    font-size: 8px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-lt);
    font-weight: 600;
    margin-top: 2px;
    display: block;
}

/* toggler */
.navbar-toggler {
    border: none !important;
    padding: 6px 8px;
    background: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon-custom {
    font-size: 26px;
    color: var(--primary);
    display: block;
}

/* nav links */
.navbar-main .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dk) !important;
    padding: 20px 12px !important;
    position: relative;
    letter-spacing: .03em;
    transition: color .2s;
    white-space: nowrap;
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 3px;
    background: var(--gold);
    transition: all .3s;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary) !important;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    left: 12px;
    right: 12px;
}

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 18px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    transition: all .3s !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold) !important;
    transform: translateY(-1px);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-section {
    min-height: 86vh;
    background: linear-gradient(135deg, var(--primary-dk) 0%, #3d0a0a 40%, #1a0000 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9962C' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-kolam {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 55vw;
    max-width: 700px;
    opacity: .04;
    pointer-events: none;
}

.hero-title-ta {
    font-family: var(--tamil);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
}

.hero-title-en {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -.01em;
}

.hero-title-en em {
    color: var(--gold-lt);
    font-style: italic;
}

.hero-subtitle {
    color: rgba(255, 255, 255, .65);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 520px;
}

.hero-z {
    position: relative;
    z-index: 2;
}

/* hero stat box */
.hero-stat {
    text-align: center;
    padding: 14px 16px;
    border: 1px solid rgba(201, 150, 44, .3);
    background: rgba(255, 255, 255, .04);
}

.hero-stat-num {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-lt);
    display: block;
}

.hero-stat-label {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

/* journal details table inside hero */
.journal-info-box {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(201, 150, 44, .25);
    border-radius: 10px;
    padding: 20px;
}

.jd-table {
    width: 100%;
    font-size: 11px;
    color: var(--text-lt);
    border-collapse: collapse;
}

.jd-table tr td {
    padding: 7px 0;
    vertical-align: top;
}

.jd-table tr td:first-child {
    width: 45%;
}

.jd-table tr:last-child td {
    padding-bottom: 0;
}

.jd-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.jd-value {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── TICKER ──────────────────────────────────────────────── */
.hero-ticker {
    background: var(--gold);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.hero-ticker-track {
    display: inline-flex;
    animation: tickerScroll 30s linear infinite;
}

.hero-ticker-track span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #fff;
    padding: 0 24px;
}

.hero-ticker-track span.dot {
    color: rgba(255, 255, 255, .4);
    padding: 0 6px;
}

@keyframes tickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── SECTION HELPERS ─────────────────────────────────────── */
.section-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.section-tag::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    color: var(--text-dk);
}

.section-title em {
    color: var(--primary);
    font-style: italic;
}

.section-title.light {
    color: #fff;
}

.section-tag.light {
    color: var(--gold-lt);
}

.section-tag.light::before {
    background: var(--gold);
}

.bg-cream {
    background: var(--cream);
}

/* ── ANNOUNCEMENT BAND ───────────────────────────────────── */
.announce-band {
    background: linear-gradient(135deg, var(--primary) 0%, #6b0000 100%);
    padding: 60px 0;
}

.announce-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}

.announce-text {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
}

/* ── ARTICLE CARDS ───────────────────────────────────────── */
.article-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .35s;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--border);
}

.article-card-top {
    background: var(--primary);
    padding: 14px 18px;
}

.article-card-vol {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
}

.article-card-type {
    font-size: 11px;
    color: var(--gold-lt);
    font-weight: 600;
    margin-top: 4px;
}

.article-card-body {
    padding: 20px;
}

.article-card-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dk);
    margin-bottom: 8px;
    line-height: 1.35;
}

.article-card-author {
    font-size: 12px;
    color: var(--text-lt);
}

.article-card-inst {
    font-size: 11px;
    color: var(--text-lt);
}

.article-card-meta {
    font-size: 11px;
    color: var(--text-lt);
    display: flex;
    gap: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding-top: 12px;
    flex-wrap: wrap;
}

.tag-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(139, 0, 0, .08);
    color: var(--primary);
    border: 1px solid rgba(139, 0, 0, .15);
    margin: 2px;
}

.browse-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
}

.browse-link:hover {
    color: var(--gold);
}

/* ── SCOPE DISCIPLINE CARDS ──────────────────────────────── */
.disc-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.disc-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border);
    transform: translateY(-4px);
}

.disc-icon {
    width: 44px;
    height: 44px;
    background: rgba(139, 0, 0, .08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
    color: var(--primary);
}

.disc-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dk);
    margin-bottom: 8px;
}

.disc-desc {
    font-size: 13px;
    color: var(--text-lt);
    line-height: 1.6;
    margin: 0;
}

/* ── EDITOR CARDS ────────────────────────────────────────── */
.editor-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all .35s;
    height: 100%;
}

.editor-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.editor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(139, 0, 0, .25);
}

.editor-name {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dk);
}

.editor-title {
    font-size: 11px;
    color: var(--text-lt);
    margin-top: 3px;
}

.editor-inst {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 6px;
}

.editor-role {
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: all .3s;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(139, 0, 0, .3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 0, 0, .25);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    box-shadow: 0 4px 16px rgba(201, 150, 44, .4);
}

.btn-gold:hover {
    background: var(--gold-lt);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
    background: var(--primary-dk);
    color: rgba(255, 255, 255, .75);
}

.footer-logo {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    padding: 2px;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: #fff;
    font-weight: 900;
    line-height: 1.3;
}

.footer-brand-ta {
    font-family: var(--tamil);
    font-size: 1.1rem;
    color: var(--gold);
    display: block;
    margin-top: 2px;
}

.footer-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    margin-top: 12px;
    line-height: 1.7;
}

.footer-link {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 4px 0;
    transition: color .2s;
}

.footer-link:hover {
    color: var(--gold-lt);
}

.footer-heading {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
}

.footer-issn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(201, 150, 44, .3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .08em;
}

.footer-contact {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    line-height: 2.1;
}

.footer-contact a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--gold-lt);
}

.footer-icon {
    color: var(--gold);
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .07);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .45);
    font-size: 16px;
    text-decoration: none;
    transition: all .2s;
}

.social-icon:hover {
    background: var(--gold);
    color: #fff;
}

/* ── SCROLL TO TOP ───────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transition: all .3s;
    z-index: 999;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* ── JOURNAL DETAILS TABLE ───────────────────────────────── */
#journal_details td {
    padding-bottom: 14px;
}

#journal_details tr:last-child td {
    padding-bottom: 0;
}

/* ============================================================
   RESPONSIVE — mobile-first fixes
   ============================================================ */

/* ── ≤ 992px — collapse nav ──────────────────────────────── */
@media (max-width: 992px) {

    /* topbar: stack vertically, centre both rows */
    .topbar-inner {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }

    .topbar-left {
        justify-content: center;
    }

    /* nav links in mobile menu */
    .navbar-main .nav-link {
        padding: 11px 14px !important;
    }

    .navbar-main .nav-link::after {
        display: none;
    }

    .navbar-main .nav-link.active,
    .navbar-main .nav-link:hover {
        background: rgba(139, 0, 0, .06);
        border-radius: 6px;
    }

    /* hero */
    .hero-section {
        padding: 40px 0;
        min-height: unset;
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

/* ── ≤ 768px ─────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* launch banner – allow wrapping */
    .launch-banner {
        padding: 8px 40px 8px 8px;
        font-size: 11px;
        text-align: left;
    }

    /* topbar: hide ISSN/vol text on very small screens */
    .topbar-info {
        display: none;
    }

    .topbar-divider {
        display: none;
    }

    /* brand text: shorten */
    .journal-title-en {
        font-size: 14px;
    }

    .journal-title-ta {
        font-size: 12px;
    }

    .journal-badge {
        display: none;
    }

    .brand-logo {
        height: 40px;
        width: 40px;
    }

    /* hero stats */
    .hero-stat {
        padding: 10px 12px;
    }

    .hero-stat-num {
        font-size: 1.4rem;
    }

    /* journal info table: reduce font */
    .jd-table {
        font-size: 10px;
    }

    /* buttons: full width on mobile */
    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn-primary-custom,
    .hero-btns .btn-outline-custom {
        width: 100%;
        text-align: center;
    }

    /* announce band */
    .announce-band {
        padding: 40px 0;
    }
}

/* ── ≤ 480px ─────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* topbar completely collapsed */
    .topbar-left {
        display: none;
    }

    .navbar-brand {
        gap: 8px;
    }

    .journal-title-en {
        font-size: 13px;
    }

    /* section headings */
    .section-title {
        font-size: 1.6rem;
    }

    .announce-title {
        font-size: 1.4rem;
    }

    /* article card meta: wrap */
    .article-card-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* footer */
    .footer-bottom>div {
        flex-direction: column;
        gap: 6px;
    }
}

/* ── Navbar wrapper ── */
.navbar-main {
    padding: 0;
}

/* ── Row 1: brand area ── */
.navbar-header {
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.journal-title-en {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.journal-title-ta {
    display: block;
    font-size: 11.5px;
    line-height: 1.4;
    margin-top: 2px;
}

.journal-badge {
    display: block;
    font-size: 9px;
    letter-spacing: 0.09em;
    margin-top: 3px;
}

.navbar-toggler {
    background: none;
    padding: 6px 10px;
    font-size: 20px;
    line-height: 1;
    border-radius: 3px;
}

.navbar-toggler:focus {
    box-shadow: none;
}


.navbar-menubar .navbar-nav {
    gap: 0;
    flex-wrap: wrap;
    /* wraps gracefully if still too many */
    justify-content: center;
}

.navbar-menubar .nav-link {
    font-size: 13px;
    padding: 11px 14px;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}


.navbar-menubar .nav-cta {
    font-weight: 700;
    margin: 6px 14px;
    padding: 5px 18px !important;
    border-radius: 3px;
    border-bottom: none !important;
}



#navbarMenu .nav-link {
    font-size: 14px;
    padding: 10px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
    transition: all 0.2s;
}

#navbarMenu .nav-link:hover {
    background: rgba(200, 120, 32, 0.07);
}

#navbarMenu .nav-cta {
    display: inline-block;
    font-weight: 700;
    padding: 8px 20px !important;
    border-radius: 3px;
    border-left: none !important;
    margin-top: 4px;
}

/* ── FIX 1: Brand + toggler row — never overflow ── */
.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 10px;
    overflow: hidden;
    /* prevent outer overflow */
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 1;
    /* take remaining space */
    min-width: 0;
    /* allow shrinking below content width */
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    /* ← CRITICAL: without this, flex child
                               ignores parent width and overflows */
}

/* ── FIX 2: Subtitle wraps instead of overflowing ── */
.journal-title-ta {
    display: block;
    /* color: rgba(255, 255, 255, 0.6); */
    font-size: 11px;
    line-height: 1.45;
    white-space: normal;
    /* ← was nowrap — change this */
    word-break: break-word;
    /* ← add this */
    overflow: visible;
    /* ← remove any overflow:hidden */
}

/* ── FIX 3: Hamburger always visible, never pushed off ── */
.navbar-toggler {
    flex-shrink: 0;
    /* ← never shrink or disappear */
    width: 38px;
    height: 38px;
    /*display: flex !important;*/
    /* override Bootstrap's d-none if any */
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(200, 120, 32, 0.55);
    border-radius: 4px;
    background: none;
    color: #c87820;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Make Bootstrap icon visible (if using bi-list) */
.navbar-toggler .bi-list {
    font-size: 22px;
    line-height: 1;
    color: #c87820;
}

/* ── FIX 4: Journal title never wraps ── */
.journal-title-en {
    white-space: nowrap;
    /* keep the main title on one line */
    /* overflow: hidden; */
    text-overflow: ellipsis;
}

/* ── FIX 5: Badge clips cleanly ── */
.journal-badge {
    display: block;
    white-space: nowrap;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    font-size: 8.5px;
}

/* ── CURRENT ISSUE SPOTLIGHT ── */
.current-spotlight {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
  position: relative;
}
.current-spotlight::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.current-cover {
  background: linear-gradient(145deg, var(--primary-dk) 0%, #2d0000 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
  position: relative; overflow: hidden;
}
.cover-ornament {
  width: 180px; height: 180px;
  position: relative;
}
.cover-ornament svg { width: 100%; height: 100%; }
.cover-vol-badge {
  position: absolute; top: 20px; left: 20px;
  background: rgba(201,150,44,0.15);
  border: 1px solid rgba(201,150,44,0.4);
  color: var(--gold);
  font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 2px;
}
.current-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,0,0,0.08); border: 1.5px solid rgba(139,0,0,0.18);
  color: var(--primary); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.current-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.current-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900; color: var(--text-dk); margin-bottom: 8px; line-height: 1.2;
}
.issue-meta-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--paper); border: 1px solid var(--border);
  color: var(--text-md); font-size: 11.5px; font-weight: 500;
  padding: 4px 11px; border-radius: 20px;
}
.meta-pill i { color: var(--gold); font-size: 11px; }
.issue-desc { font-size: 13.5px; color: var(--text-md); line-height: 1.75; }
.btn-primary-j {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 11px 24px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .05em;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(139,0,0,0.25);
}
.btn-primary-j:hover { background: var(--primary-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,0,0,0.3); color: #fff; }
.btn-outline-j {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary);
  padding: 10px 22px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .05em;
  text-decoration: none; border: 1.5px solid var(--primary);
  transition: all .25s; cursor: pointer;
}
.btn-outline-j:hover { background: var(--primary); color: #fff; }

/* ── YEAR SECTION ── */
.year-section { margin-bottom: 50px; }
.year-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px; cursor: pointer;
}
.year-label {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900; color: var(--primary);
}
.year-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.year-count {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-lt);
  background: var(--paper); border: 1px solid var(--border);
  padding: 3px 11px; border-radius: 20px;
}
.year-chevron {
  color: var(--text-lt); font-size: 13px;
  transition: transform .3s;
}
.year-chevron.open { transform: rotate(180deg); }

/* ── ISSUE GRID (card view) ── */
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.issue-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .28s;
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative;
}
.issue-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: 12px;
  box-shadow: 0 0 0 2px var(--primary);
  opacity: 0; transition: opacity .25s;
}
.issue-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.issue-card:hover::after { opacity: 1; }
.issue-card-cover {
  background: linear-gradient(140deg, var(--primary-dk) 0%, #2d0000 100%);
  height: 150px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.issue-card-cover-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9962C' fill-opacity='0.06'%3E%3Ccircle cx='20' cy='20' r='15' fill='none' stroke='%23C9962C' stroke-width='0.5'/%3E%3Ccircle cx='20' cy='20' r='7' fill='none' stroke='%23C9962C' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
}
.issue-card-vol {
  font-family: var(--serif);
  font-size: 2.2rem; font-weight: 900;
  color: rgba(201,150,44,0.35); position: absolute;
  bottom: 8px; right: 14px; line-height: 1;
}
.issue-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(201,150,44,0.15); border: 1px solid rgba(201,150,44,0.4);
  color: var(--gold); font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px;
}
.issue-card-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,150,44,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.issue-card-icon svg { width: 36px; height: 36px; }
.issue-card-body { padding: 18px 18px 14px; flex: 1; display: flex; flex-direction: column; }
.issue-card-number {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 5px;
}
.issue-card-title {
  font-family: var(--serif);
  font-size: 1.02rem; font-weight: 700;
  color: var(--text-dk); line-height: 1.3; margin-bottom: 8px;
}
.issue-card-date {
  font-size: 11.5px; color: var(--text-lt);
  display: flex; align-items: center; gap: 5px;
}
.issue-card-stats {
  display: flex; gap: 12px; margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ic-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--text-lt);
}
.ic-stat i { color: var(--gold); font-size: 12px; }
.ic-stat strong { color: var(--text-dk); }
.issue-card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--paper);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--text-lt);
}
.issue-card-footer a {
  color: var(--primary); font-weight: 600;
  text-decoration: none; font-size: 11.5px;
  display: flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.issue-card:hover .issue-card-footer a { gap: 8px; }

/* ── ISSUE LIST (list view) ── */
.issues-list { display: flex; flex-direction: column; gap: 10px; }
.issue-list-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 18px;
  text-decoration: none; transition: all .22s;
  position: relative; overflow: hidden;
}
.issue-list-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--gold));
  transform: scaleY(0); transform-origin: top;
  transition: transform .25s;
}
.issue-list-item:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: rgba(139,0,0,0.25); }
.issue-list-item:hover::before { transform: scaleY(1); }
.ili-cover {
  width: 56px; height: 72px;
  background: linear-gradient(140deg, var(--primary-dk), #3d0a0a);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-weight: 900; color: rgba(201,150,44,0.5);
  font-size: 1.3rem; position: relative; overflow: hidden;
}
.ili-cover::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ili-body { flex: 1; min-width: 0; }
.ili-num {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 3px;
}
.ili-title {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 700; color: var(--text-dk);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px;
}
.ili-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.ili-meta-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--text-lt);
}
.ili-meta-item i { color: var(--gold); font-size: 11px; }
.ili-action {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}
.ili-pdf-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(139,0,0,0.06); border: 1px solid rgba(139,0,0,0.18);
  color: var(--primary); font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  transition: all .2s;
}
.ili-pdf-btn:hover { background: var(--primary); color: #fff; }

/* ── SPECIAL ISSUES ── */
.special-section { background: var(--paper); border-radius: 16px; padding: 32px; margin-bottom: 48px; }
.special-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.special-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), #a06818);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.special-card {
  background: var(--white);
  border: 1px solid rgba(201,150,44,0.25);
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  transition: all .22s;
  text-decoration: none; display: block;
}
.special-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(201,150,44,0.15); }
.special-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(201,150,44,0.1);
  padding: 2px 8px; border-radius: 12px; display: inline-block; margin-bottom: 7px;
}
.special-title {
  font-family: var(--serif);
  font-size: 1.02rem; font-weight: 700; color: var(--text-dk);
  margin-bottom: 5px; line-height: 1.3;
}
.special-deadline { font-size: 12px; color: var(--text-lt); display: flex; align-items: center; gap: 5px; }
.special-deadline i { color: var(--primary); }

/* ── STATS STRIP ── */
.stats-strip {
  background: linear-gradient(135deg, var(--primary-dk), #3d0a0a);
  border-radius: 14px;
  padding: 30px 36px;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
  margin-bottom: 48px;
}
.strip-stat { text-align: center; }
.strip-num {
  font-family: var(--serif);
  font-size: 2.4rem; font-weight: 900; color: var(--gold); line-height: 1;
}
.strip-lbl {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,0.42); margin-top: 5px;
}

/* ── NO RESULTS ── */
.no-results {
  text-align: center; padding: 60px 20px; color: var(--text-lt);
  display: none;
}
.no-results i { font-size: 40px; margin-bottom: 12px; display: block; color: var(--border); }

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(139,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: all .3s; z-index: 990;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--primary-lt); transform: translateY(-3px); }

.step-item {
    display: flex;
}
.step-num {
    padding-right:10px;
    margin-top:4px;
}