/* ===================================================
   NRLM KSRLPS – Reports Page Stylesheet
   Matches index / gallery / contact / schemes system
   =================================================== */

@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);

    --footer-bg: #0A1E4A;
    --footer-text: #A8BDE8;
    --footer-heading: #FFD166;
    --footer-link: #7BA3D8;
    --footer-link-h: var(--gold);

    --status-active: #16a34a;
    --status-pend: #d97706;

    --t: 0.3s ease;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(11, 43, 107, 0.12);
}

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;
    --footer-bg: #060D1C;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --status-active: #4ade80;
    --status-pend: #fbbf24;
}

/* ── 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;
}

.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;
    }
}

/* ── Header ─────────────────────────────────────────── */
header {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: relative;
    transition: background var(--t), box-shadow var(--t);
}

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%);
}

.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);
}

.header-center {
    display: flex;
    justify-content: center;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* KEY FIX: explicit constraints prevent logo from growing large */
.emblem-img,
.sanjivini-logo {
    height: 76px;
    width: auto;
    max-width: 80px;
    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;
    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: .5;
        transform: scale(.7);
    }
}

@media (max-width: 860px) {
    .header-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        padding: 14px 14px 12px;
        gap: 12px 8px;
    }

    .header-center {
        grid-column: 1/-1;
        grid-row: 1;
    }

    .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-img,
    .sanjivini-logo {
        height: 58px;
        max-width: 62px;
    }

    .logo-row {
        gap: 10px;
    }

    .mission-full {
        white-space: normal;
        font-size: 15px;
    }

    .mission-sub {
        font-size: 12px;
    }

    .mission-org,
    .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;
    }

    .emblem-img,
    .sanjivini-logo {
        height: 46px;
        max-width: 50px;
    }

    .mission-full {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .official-photo {
        width: 40px;
        height: 40px;
    }

    .official-name {
        font-size: 11px;
    }

    .emblem-img,
    .sanjivini-logo {
        height: 38px;
        max-width: 42px;
    }

    .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, .25);
    transition: background var(--t);
}

.hamburger-wrap {
    display: none;
    padding: 0 16px;
    height: 48px;
    align-items: center;
    justify-content: space-between;
}

.hamburger-label {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .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, .85);
    border-radius: 2px;
    transition: transform .27s ease, opacity .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);
}

.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: .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 .22s ease, right .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;
}

@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, .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, .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, .06);
        border-left-color: var(--saffron);
        padding-left: 24px;
    }
}

/* ── Page Hero ──────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a8a 55%, #0d5218 100%);
    padding: 48px 24px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--saffron);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: clamp(13px, 2vw, 16px);
    color: rgba(255, 255, 255, .75);
    line-height: 1.6;
    font-weight: 300;
}

/* ── Container ──────────────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 20px;
    flex: 1;
    width: 100%;
}

/* ── Quick Stats ────────────────────────────────────── */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--saffron);
    transition: background var(--t), border-color var(--t);
}

.stat-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    transition: color var(--t);
}

body.dark-theme .stat-num {
    color: var(--saffron-light);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 5px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-num {
        font-size: 22px;
    }
}

/* ── Events Grid ────────────────────────────────────── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Events Card ────────────────────────────────────── */
.events-card {
    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);
}

.events-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    transition: background var(--t), border-color var(--t);
}

.events-icon {
    font-size: 18px;
}

.events-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    transition: color var(--t);
}

body.dark-theme .events-header h3 {
    color: var(--text-1);
}

.events-list {
    padding: 8px 0;
}

.event-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    transition: background var(--t), border-color var(--t);
}

.event-item:last-child {
    border-bottom: none;
}

.event-item:hover {
    background: var(--surface-2);
}

.event-date-box {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.dark-theme .event-date-box {
    background: var(--saffron);
}

.event-day {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.event-mon {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.35;
    margin-bottom: 3px;
    transition: color var(--t);
}

.event-meta {
    font-size: 11px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.event-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.tag-meeting {
    background: rgba(11, 43, 107, .1);
    color: var(--navy);
}

.tag-training {
    background: rgba(19, 136, 8, .1);
    color: var(--green);
}

.tag-event {
    background: rgba(255, 107, 0, .1);
    color: var(--saffron);
}

.tag-notice {
    background: rgba(200, 147, 26, .1);
    color: var(--gold);
}

body.dark-theme .tag-meeting {
    background: rgba(74, 128, 212, .15);
    color: #7BAEE8;
}

body.dark-theme .tag-training {
    background: rgba(74, 222, 128, .12);
    color: #4ade80;
}

body.dark-theme .tag-event {
    background: rgba(255, 154, 74, .12);
    color: #FF9A4A;
}

body.dark-theme .tag-notice {
    background: rgba(251, 191, 36, .12);
    color: #fbbf24;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    transition: background var(--t), border-color var(--t);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: var(--surface-2);
}

.notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--saffron);
    flex-shrink: 0;
    margin-top: 5px;
}

.notice-text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    flex: 1;
    transition: color var(--t);
}

.notice-date {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 3px;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    transition: background var(--t);
}

.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: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .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, .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, .28);
}

.footer-bottom-links {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, .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;
    }
}

/* ── Report Responsive ──────────────────────────────── */
@media (max-width: 600px) {
    .page-hero {
        padding: 36px 16px 30px;
    }

    .container {
        padding: 24px 14px;
    }
}