/* ===================================================
   NRLM KSRLPS – Government Portal Stylesheet
   Aesthetic: Institutional Elegance · Tricolor Pride
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=Noto+Sans+Kannada:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
    --saffron: #FF6B00;
    --saffron-light: #FF9A4A;
    --saffron-faint: #FFF3E8;
    --navy: #0B2B6B;
    --navy-mid: #153A8E;
    --green: #138808;
    --gold: #C8931A;
    --white: #FFFFFF;
    --off-white: #F7F8FC;

    --bg: var(--off-white);
    --surface: var(--white);
    --surface-2: #EFF2FA;
    --border: #D4DCF0;
    --text-1: #0D1B4B;
    --text-2: #3A4A72;
    --text-3: #6B7BAD;

    --util-bg: var(--navy);
    --util-text: #B8CAF5;
    --nav-bg: var(--navy);
    --nav-text: rgba(255, 255, 255, 0.88);
    --nav-hover-bg: rgba(255, 255, 255, 0.08);

    --marquee-bg: var(--saffron-faint);
    --marquee-text: #8B2500;

    --footer-bg: #0A1E4A;
    --footer-text: #A8BDE8;
    --footer-heading: #FFD166;
    --footer-link: #7BA3D8;
    --footer-link-h: var(--gold);

    --stat-bg: var(--navy);
    --stat-num: var(--saffron-light);
    --dot-off: rgba(255, 255, 255, 0.4);
    --dot-on: var(--saffron);

    --t: 0.3s ease;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(11, 43, 107, 0.12);
}

/* Dark theme */
body.dark-theme {
    --bg: #0E1628;
    --surface: #162040;
    --surface-2: #1C2A52;
    --border: #2D3F70;
    --text-1: #D8E4FF;
    --text-2: #98B0E0;
    --text-3: #6880B8;
    --util-bg: #0A1228;
    --util-text: #6880B8;
    --nav-bg: #101B38;
    --marquee-bg: #1C2A52;
    --marquee-text: #FFA07A;
    --stat-bg: #101B38;
    --footer-bg: #060D1C;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Noto Sans Kannada', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--t), color var(--t);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Utility Bar ────────────────────────────────────── */
.utility-bar {
    background: var(--util-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--t);
}

.utility-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gov-badge {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.translator-label {
    font-size: 12px;
    color: var(--util-text);
    white-space: nowrap;
}

/* Lang slider */
.slide-button {
    position: relative;
    width: 104px;
    height: 27px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.slide-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 50px;
    height: 21px;
    background: var(--saffron);
    border-radius: 14px;
    transition: left 0.25s ease, background var(--t);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 11px;
    z-index: 2;
}

.slide-button[data-lang="kn"] .slide-knob {
    left: 50px;
    background: var(--green);
}

.lang-options {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px;
    pointer-events: none;
    z-index: 1;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--t);
    white-space: nowrap;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.theme-icon {
    font-size: 13px;
}

@media (max-width: 480px) {
    .gov-badge {
        display: none;
    }

    .translator-label {
        display: none;
    }

    .utility-right {
        gap: 8px;
    }

    .slide-button {
        width: 90px;
    }

    .slide-knob {
        width: 43px;
    }

    .slide-button[data-lang="kn"] .slide-knob {
        left: 45px;
    }
}

/* ── Header ─────────────────────────────────────────── */
header {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: relative;
    transition: background var(--t), box-shadow var(--t);
    width: 100%;
}

/* Tricolor stripe */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--saffron) 33.33%,
            white 33.33% 66.66%,
            var(--green) 66.66%);
}

/* Desktop: 3-column grid */
.header-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.official-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-card {
    justify-content: flex-end;
}

.right-card {
    justify-content: flex-start;
}

.official-photo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.left-card .official-photo {
    border-color: var(--saffron);
}

.right-card .official-photo {
    border-color: var(--green);
}

.official-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.left-card .official-info {
    text-align: right;
}

.right-card .official-info {
    text-align: left;
}

.official-role {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.official-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    transition: color var(--t);
}

body.dark-theme .official-name {
    color: var(--text-1);
}

/* Center identity */
.header-center {
    display: flex;
    justify-content: center;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.emblem,
.sanjivini-logo {
    height: 76px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.mission-identity {
    text-align: center;
}

.mission-acronym {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--saffron);
    text-transform: uppercase;
    margin-bottom: 1px;
}

.mission-full {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(15px, 2.3vw, 21px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    white-space: nowrap;
    transition: color var(--t);
}

body.dark-theme .mission-full {
    color: var(--text-1);
}

.mission-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--saffron), var(--green), transparent);
    margin: 5px auto;
    width: 80%;
    border-radius: 2px;
}

.mission-sub {
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 600;
    color: var(--navy-mid);
    font-family: 'Noto Sans Kannada', 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
    transition: color var(--t);
}

body.dark-theme .mission-sub {
    color: var(--text-2);
}

.mission-org {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
    line-height: 1.4;
}

.mission-loc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-3);
    margin-top: 3px;
    font-weight: 500;
}

.loc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

/* ── Mobile header (≤860px): 2-row layout ──────────── */
@media (max-width: 860px) {
    .header-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        padding: 14px 14px 12px;
        gap: 12px 8px;
    }

    /* Row 1: center full width */
    .header-center {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Row 2: MLA left, EO right */
    .left-card {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .right-card {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-end;
    }

    .left-card .official-info {
        text-align: left;
    }

    .right-card .official-info {
        text-align: right;
    }

    .official-photo {
        width: 58px;
        height: 58px;
        border-width: 2px;
    }

    .official-name {
        font-size: 13.5px;
    }

    .official-role {
        font-size: 10px;
    }

    .emblem,
    .sanjivini-logo {
        height: 58px;
    }

    .logo-row {
        gap: 10px;
    }

    .mission-full {
        white-space: normal;
        font-size: 15px;
    }

    .mission-sub {
        font-size: 12px;
    }

    .mission-org {
        font-size: 10px;
    }

    .mission-loc {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .header-grid {
        padding: 11px 10px 10px;
        gap: 10px 6px;
    }

    .official-photo {
        width: 46px;
        height: 46px;
    }

    .official-name {
        font-size: 12px;
    }

    .official-role {
        font-size: 9px;
        letter-spacing: 0.02em;
    }

    .emblem,
    .sanjivini-logo {
        height: 46px;
    }

    .logo-row {
        gap: 8px;
    }

    .mission-full {
        font-size: 13px;
    }

    .mission-acronym {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .mission-sub {
        font-size: 11px;
    }

    .mission-org {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .official-photo {
        width: 40px;
        height: 40px;
    }

    .official-name {
        font-size: 11px;
    }

    .official-role {
        font-size: 8.5px;
    }

    .emblem,
    .sanjivini-logo {
        height: 38px;
    }

    .mission-full {
        font-size: 12px;
    }
}

/* ── Navigation ─────────────────────────────────────── */
.navbar {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background var(--t);
}

/* Hamburger row — hidden on desktop */
.hamburger-wrap {
    display: none;
    padding: 0 16px;
    height: 48px;
    align-items: center;
    justify-content: space-between;
}

.hamburger-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: transform 0.27s ease, opacity 0.27s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop menu */
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--nav-text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--t), background var(--t);
    white-space: nowrap;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 3px;
    background: var(--saffron);
    border-radius: 2px 2px 0 0;
    transition: left 0.22s ease, right 0.22s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active-link {
    color: white;
    background: var(--nav-hover-bg);
}

.nav-menu li a:hover::after,
.nav-menu li a.active-link::after {
    left: 0;
    right: 0;
}

/* Mobile nav */
@media (max-width: 768px) {
    .hamburger-wrap {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--nav-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        padding: 13px 20px;
        font-size: 14px;
        border-left: 3px solid transparent;
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active-link {
        background: rgba(255, 255, 255, 0.06);
        border-left-color: var(--saffron);
        padding-left: 24px;
    }
}

/* ── Marquee ─────────────────────────────────────────── */
.marquee-wrap {
    background: var(--marquee-bg);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    min-height: 36px;
    transition: background var(--t), border-color var(--t);
}

.marquee-label {
    background: var(--saffron);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0 14px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-wrap:hover .marquee-content {
    animation-play-state: paused;
    cursor: pointer;
}

.marquee-content span,
.marquee-content a {
    font-size: 13px;
    font-weight: 500;
    color: var(--marquee-text);
    display: inline-block;
    transition: color var(--t);
    text-decoration: none;
}

.marquee-content a:hover {
    color: var(--saffron);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Hero Slider ─────────────────────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 550px;
    overflow: hidden;
    background: var(--navy);
    flex-shrink: 0;
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--navy);
    transition: opacity 0.9s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            rgba(10, 30, 80, 0.82) 0%,
            rgba(10, 30, 80, 0.50) 55%,
            rgba(10, 30, 80, 0.28) 100%);
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    z-index: 2;
    max-width: 560px;
}

.slide-tag {
    display: inline-block;
    background: var(--saffron);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.slide-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 5vw, 46px);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: clamp(13px, 2vw, 17px);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    line-height: 1.5;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t);
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.26);
}

.left-arrow {
    left: 18px;
}

.right-arrow {
    right: 18px;
}

.slider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot-off);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background var(--t), width var(--t);
    flex-shrink: 0;
}

.dot.active {
    background: var(--dot-on);
    width: 24px;
    border-radius: 4px;
    border-color: var(--dot-on);
}

.slide-counter {
    position: absolute;
    bottom: 18px;
    right: 20px;
    z-index: 10;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.1em;
}

#slideNum {
    color: white;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 340px;
    }

    .slide-content {
        left: 20px;
        right: 20px;
        bottom: 60px;
    }

    .slider-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 260px;
    }

    .slide-content {
        left: 14px;
        right: 14px;
        bottom: 52px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 12px;
    }

    .slide-tag {
        font-size: 10px;
        padding: 3px 9px;
        margin-bottom: 8px;
    }
}

/* ── Stats Bar ──────────────────────────────────────── */
.stats-bar {
    background: var(--stat-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 3px solid var(--saffron);
    flex-wrap: wrap;
    transition: background var(--t);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 32px;
    gap: 3px;
    flex: 1 1 120px;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--stat-num);
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .stat-num {
        font-size: 22px;
    }
}

/* ── Main Content ───────────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 20px;
    flex: 1;
    width: 100%;
}

.content-section {
    margin-bottom: 36px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    transition: color var(--t);
}

body.dark-theme .section-title {
    color: var(--text-1);
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    transition: background var(--t);
}

/* Notice board */
.notice-board {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: background var(--t), border-color var(--t);
}

.notice-board li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--t), border-color var(--t);
}

.notice-board li:last-child {
    border-bottom: none;
}

.notice-board li:hover {
    background: var(--surface-2);
}

.notice-date {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
    min-width: 66px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notice-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.4;
    transition: color var(--t);
    min-width: 0;
    word-break: break-word;
}

.notice-new {
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: var(--saffron);
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    min-width: 32px;
    text-align: center;
}

@media (max-width: 480px) {
    .notice-board li {
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 14px;
    }

    .notice-date {
        min-width: auto;
    }
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    transition: background var(--t);
    width: 100%;
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 44px 20px 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--footer-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-col p,
.footer-col ul {
    font-size: 13px;
    color: var(--footer-text);
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: var(--footer-link);
    transition: color var(--t);
}

.footer-col ul li a:hover {
    color: var(--footer-link-h);
}

.footer-col strong {
    color: var(--footer-heading);
    font-weight: 500;
}

.footer-col p {
    margin: 5px 0;
    word-break: break-word;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.28);
}

.footer-bottom-links {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.32);
    transition: color var(--t);
}

.footer-bottom-links a:hover {
    color: var(--footer-link-h);
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-top {
        padding: 30px 16px 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
        gap: 6px;
    }
}

/* ── Poster Popup Modal ────────────────────────────── */
.poster-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.poster-overlay.active {
    opacity: 1;
    visibility: visible;
}

.poster-popup {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    animation: posterSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(40px) scale(0.92);
}

.poster-overlay.active .poster-popup {
    transform: translateY(0) scale(1);
}

.poster-overlay.closing .poster-popup {
    animation: posterSlideOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes posterSlideIn {
    0% {
        transform: translateY(40px) scale(0.92);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes posterSlideOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }
}

.poster-image {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.poster-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--navy);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 0 0 3px rgba(255, 107, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 10001;
}

.poster-close-btn:hover {
    transform: scale(1.12) rotate(90deg);
    background: var(--saffron);
    color: var(--white);
    box-shadow:
        0 6px 20px rgba(255, 107, 0, 0.4),
        0 0 0 3px rgba(255, 107, 0, 0.2);
}

.poster-close-btn:active {
    transform: scale(0.95);
}

body.dark-theme .poster-close-btn {
    background: var(--surface);
    color: var(--text-1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(255, 107, 0, 0.3);
}

body.dark-theme .poster-close-btn:hover {
    background: var(--saffron);
    color: var(--white);
}

/* Prevent body scroll when poster is open */
body.poster-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .poster-popup {
        max-width: 95vw;
        max-height: 92vh;
    }

    .poster-image {
        max-width: 95vw;
        max-height: 85vh;
        border-radius: 12px;
    }

    .poster-close-btn {
        top: -12px;
        right: -8px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}