
/* =====================================================
   PRO-F — ARTICLE DETAILS PAGE
   Layout: Original newspaper on left + highlights on right
   ===================================================== */

.article-detail-page {
    --article-navy: #143954;
    --article-navy-dark: #0d293e;
    --article-gold: #c4a15f;
    --article-ink: #273746;
    --article-muted: #697887;
    --article-line: #e2e8ef;
    --article-page-bg: #f3f6fa;
    --article-card-bg: #ffffff;

    background: var(--article-page-bg);
    color: var(--article-ink);
    font-family: "Noto Sans Devanagari", sans-serif;
    min-height: 100vh;
}

.article-detail-page *,
.article-detail-page *::before,
.article-detail-page *::after {
    box-sizing: border-box;
}

.article-detail-page img {
    max-width: 100%;
}

.article-detail-page a {
    text-decoration: none;
}

.article-container {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}


/* ---------- HERO ---------- */

.article-hero {
    position: relative;
    overflow: hidden;
    padding: 32px 0 38px;
    background: #ffffff;
    border-bottom: 1px solid var(--article-line);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--article-muted);
    font-size: 12px;
}

.article-breadcrumb a {
    color: var(--article-muted);
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: var(--article-navy);
}

.article-breadcrumb > span:last-child {
    color: var(--article-navy);
    font-weight: 600;
}

.article-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #9a783d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.article-eyebrow::before {
    content: "";
    display: inline-block;
    width: 23px;
    height: 2px;
    background: var(--article-gold);
}

.article-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--article-navy);
    font-family: "Noto Serif Devanagari", serif;
    font-size: clamp(27px, 3.4vw, 43px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 18px;
    color: var(--article-muted);
    font-size: 13px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-meta span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 2px;
    border-radius: 50%;
    background: var(--article-gold);
}


/* ---------- MAIN PAGE ---------- */

.article-main-section {
    padding: 38px 0 48px;
}

.article-two-column {
    display: grid;
    grid-template-columns: minmax(245px, 0.78fr) minmax(0, 1.65fr);
    align-items: start;
    gap: 30px;
}


/* ---------- LEFT: ORIGINAL ARTICLE ---------- */

.original-article-panel {
    position: sticky;
    top: 24px;
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    background: var(--article-card-bg);
    border: 1px solid var(--article-line);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(20, 57, 84, 0.045);
}

.original-panel-heading {
    margin-bottom: 16px;
}

.original-label {
    display: block;
    margin-bottom: 7px;
    color: #9a783d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.original-panel-heading h2 {
    margin: 0;
    color: var(--article-navy);
    font-family: "Noto Serif Devanagari", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.newspaper-image-link {
    display: block;
    overflow: hidden;
    background: #f4f5f6;
    border: 1px solid #e7e9ec;
    border-radius: 8px;
    line-height: 0;
}

.newspaper-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.newspaper-image-link:hover .newspaper-image {
    transform: scale(1.015);
}

.original-image-caption {
    margin: 13px 0 15px;
    color: var(--article-muted);
    font-size: 12px;
    line-height: 1.9;
}

.view-original-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 14px;
    color: #ffffff;
    background: var(--article-navy);
    border: 1px solid var(--article-navy);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.view-original-link:hover {
    color: #ffffff;
    background: var(--article-navy-dark);
    border-color: var(--article-navy-dark);
}

.view-original-link span:last-child {
    flex-shrink: 0;
    font-size: 17px;
}

.original-article-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--article-line);
}

.note-icon {
    display: inline-flex;
    flex: 0 0 19px;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    color: var(--article-navy);
    background: #eaf0f6;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.original-article-note p {
    margin: 0;
    color: var(--article-muted);
    font-size: 11px;
    line-height: 1.9;
}


/* ---------- RIGHT: HIGHLIGHTS ---------- */

.article-highlights {
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--article-line);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(20, 57, 84, 0.045);
}

.highlights-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.highlights-kicker {
    color: #9a783d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.highlights-year {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: var(--article-navy);
    background: #edf3f8;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.highlights-title {
    margin: 0;
    color: var(--article-navy);
    font-family: "Noto Serif Devanagari", serif;
    font-size: clamp(23px, 2.5vw, 31px);
    font-weight: 700;
    line-height: 1.6;
}

.highlights-intro {
    max-width: 650px;
    margin: 9px 0 25px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 2;
}

.highlights-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.highlight-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 19px 16px;
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 12px;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    border-color: #c8d7e5;
    box-shadow: 0 9px 22px rgba(20, 57, 84, 0.07);
}

.highlight-number {
    display: flex;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: var(--article-navy);
    background: #eaf1f8;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.highlight-content {
    flex: 1;
    min-width: 0;
}

.highlight-content h3 {
    margin: 1px 0 9px;
    color: var(--article-navy);
    font-family: "Noto Sans Devanagari", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.85;
}

.highlight-content p {
    margin: 0;
    color: #657383;
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
}

.highlight-note {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 8px;
    color: #82652e;
    background: #faf5e9;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.8;
}


/* ---------- DISCLAIMER ---------- */

.highlights-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 20px;
    padding: 15px 16px;
    background: #f5f7fa;
    border: 1px solid #e8edf2;
    border-radius: 10px;
}

.disclaimer-mark {
    display: flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    background: #8293a3;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.highlights-disclaimer p {
    margin: 0;
    color: #647384;
    font-size: 11px;
    line-height: 1.95;
}


/* ---------- BOTTOM NAVIGATION ---------- */

.article-bottom-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--article-navy);
    background: #ffffff;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.article-back-link:hover {
    color: #ffffff;
    background: var(--article-navy);
    border-color: var(--article-navy);
}

.article-back-link span:first-child {
    font-size: 17px;
}


/* ---------- TABLET ---------- */

@media (max-width: 991px) {
    .article-container {
        width: min(100% - 36px, 760px);
    }

    .article-two-column {
        grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.4fr);
        gap: 20px;
    }

    .original-article-panel {
        top: 16px;
        padding: 15px;
    }

    .article-highlights {
        padding: 21px;
    }

    .highlights-list {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        padding: 17px;
    }

    .highlight-content h3 {
        font-size: 14px;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 640px) {
    .article-container {
        width: calc(100% - 30px);
    }

    .article-hero {
        padding: 23px 0 27px;
    }

    .article-breadcrumb {
        gap: 7px;
        margin-bottom: 21px;
        font-size: 11px;
    }

    .article-eyebrow {
        margin-bottom: 10px;
        font-size: 9px;
        letter-spacing: 1.1px;
    }

    .article-hero h1 {
        font-size: 27px;
        line-height: 1.65;
        letter-spacing: 0;
    }

    .article-meta {
        gap: 7px 14px;
        margin-top: 13px;
        font-size: 11px;
        line-height: 1.8;
    }

    .article-meta span + span::before {
        display: none;
    }

    .article-main-section {
        padding: 22px 0 32px;
    }

    .article-two-column {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .original-article-panel {
        position: static;
        padding: 16px;
        border-radius: 13px;
    }

    .original-panel-heading {
        margin-bottom: 12px;
    }

    .original-panel-heading h2 {
        font-size: 17px;
    }

    .newspaper-image-link {
        max-width: 100%;
        margin-inline: auto;
    }

    .original-image-caption {
        font-size: 11px;
    }

    .original-article-note p {
        font-size: 11px;
    }

    .article-highlights {
        padding: 19px 15px;
        border-radius: 14px;
    }

    .highlights-topline {
        align-items: flex-start;
    }

    .highlights-kicker {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .highlights-year {
        font-size: 9px;
    }

    .highlights-title {
        font-size: 24px;
        line-height: 1.65;
    }

    .highlights-intro {
        margin: 8px 0 19px;
        font-size: 12px;
        line-height: 2;
    }

    .highlights-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .highlight-card {
        gap: 12px;
        padding: 16px 13px;
        border-radius: 10px;
    }

    .highlight-number {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 10px;
    }

    .highlight-content h3 {
        margin-bottom: 7px;
        font-size: 13px;
        line-height: 1.9;
    }

    .highlight-content p {
        font-size: 12px;
        line-height: 1.95;
    }

    .highlight-note {
        font-size: 10px;
    }

    .highlights-disclaimer {
        gap: 9px;
        margin-top: 15px;
        padding: 12px;
    }

    .highlights-disclaimer p {
        font-size: 10px;
        line-height: 1.9;
    }

    .article-bottom-nav {
        margin-top: 22px;
    }

    .article-back-link {
        width: 100%;
        padding: 12px 15px;
    }
}


/* ---------- SMALL MOBILE ---------- */

@media (max-width: 380px) {
    .article-container {
        width: calc(100% - 24px);
    }

    .article-hero h1 {
        font-size: 24px;
    }

    .article-highlights {
        padding: 15px 12px;
    }

    .highlight-card {
        gap: 9px;
        padding: 13px 10px;
    }

    .highlight-number {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
    }
}


/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion: reduce) {
    .article-detail-page *,
    .article-detail-page *::before,
    .article-detail-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Language toggle */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 22px;
    padding: 4px;
    background: #edf2f7;
    border: 1px solid #e1e8ef;
    border-radius: 9px;
}

.language-btn {
    padding: 8px 16px;
    color: #536577;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-btn:hover {
    color: #143954;
}

.language-btn.is-active {
    color: #ffffff;
    background: #143954;
    border-color: #143954;
    box-shadow: 0 2px 5px rgba(20, 57, 84, 0.12);
}

.language-btn:focus-visible {
    outline: 2px solid #c4a15f;
    outline-offset: 3px;
}

/* Keep the Knowledge Centre button centered */
.article-bottom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px auto 0;
    text-align: center;
}

.article-back-link {
    margin-inline: auto;
}

@media (max-width: 640px) {
    .language-switch {
        margin-bottom: 17px;
    }

    .language-btn {
        padding: 8px 14px;
    }
}
