/* ==========================================================================
   CIA India — Header
   Theme from logo: Red / Royal Blue / Gold
   ========================================================================== */
:root {
    --cia-red: #e31b23;
    --cia-red-dk: #b8121a;
    --cia-red-lt: #ff4d55;
    --cia-blue: #2b2f8f;
    --cia-blue-dk: #1d2068;
    --cia-navy: #12144a;
    --cia-gold: #c39a57;
    --cia-gold-dk: #9c7637;
    --cia-gold-lt: #e6c88f;
    --cia-ink: #1d2142;
    --cia-muted: #5d6385;
    --cia-soft: #f3f4fb;
    --cia-line: #e4e6f2;
    --ch-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ch-head: 'Oswald', 'Poppins', sans-serif;
}

.ch-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1200px) { .ch-wrap { padding: 0 24px; } }

/* ---------------- 1. Top bar ---------------- */
.ch-topbar {
    background: linear-gradient(90deg, var(--cia-blue-dk), var(--cia-navy));
    color: #dfe2f5;
    font: 500 13px/1.4 var(--ch-font);
    border-bottom: 2px solid var(--cia-gold);
}
.ch-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.ch-top-left, .ch-top-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ch-top-item { display: inline-flex; align-items: center; gap: 7px; color: #dfe2f5; text-decoration: none; white-space: nowrap; min-width: 0; }
.ch-top-item i { color: var(--cia-gold-lt); font-size: 12px; }
.ch-top-item.ch-addr span { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
a.ch-top-item:hover { color: #fff; }
.ch-top-social { display: flex; align-items: center; gap: 6px; }
.ch-follow { color: var(--cia-gold-lt); font-weight: 600; margin-right: 4px; }
.ch-top-social a {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: rgba(255, 255, 255, .08); font-size: 12px; text-decoration: none;
    transition: background .25s, transform .25s;
}
.ch-top-social a:hover { background: var(--cia-red); transform: translateY(-2px); }
.ch-top-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 30px;
    background: var(--cia-red); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background .25s, color .25s;
}
.ch-top-pill:hover { background: #fff; color: var(--cia-red); }

@media (max-width: 991.98px) { .ch-hide-lg { display: none !important; } }
@media (max-width: 767.98px) { .ch-hide-md { display: none !important; } .ch-follow { display: none; } }
@media (max-width: 575.98px) { .ch-top-social { display: none; } .ch-topbar-in { min-height: 38px; } }

/* ---------------- 2. Branding bar ---------------- */
.ch-brand {
    position: relative;
    font-family: var(--ch-font);
    background:
        radial-gradient(circle at 0 50%, rgba(227, 27, 35, .08), transparent 38%),
        radial-gradient(circle at 100% 50%, rgba(43, 47, 143, .10), transparent 40%),
        #fff;
}
.ch-brand::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--cia-red) 0 40%, var(--cia-gold) 40% 60%, var(--cia-blue) 60% 100%);
}
.ch-brand-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 16px; }
.ch-brand-link { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.ch-logo { flex: 0 0 auto; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.ch-logo img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(18, 20, 74, .18));
    transition: transform .4s ease;
}
.ch-brand-link:hover .ch-logo img { transform: scale(1.04) rotate(-2deg); }
.ch-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ch-title { font: 700 clamp(19px, 2.7vw, 38px)/1.1 var(--ch-head); text-transform: uppercase; letter-spacing: .6px; }
.ch-title .t-blue { color: var(--cia-blue); }
.ch-title .t-red { color: var(--cia-red); }
.ch-tagline {
    margin-top: 6px; color: var(--cia-gold-dk); font-weight: 600;
    font-size: clamp(11px, 1.1vw, 14.5px); letter-spacing: 2px; text-transform: uppercase;
}
.ch-divider { display: flex; align-items: center; gap: 10px; margin-top: 8px; max-width: 340px; }
.ch-divider span { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--cia-gold)); }
.ch-divider span:last-child { background: linear-gradient(90deg, var(--cia-gold), transparent); }
.ch-divider i { color: var(--cia-red); font-size: 13px; }

.ch-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ch-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 50px;
    font: 600 14px/1.15 var(--ch-font); text-decoration: none; border: 2px solid transparent; white-space: nowrap;
    transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.ch-btn-outline { border-color: var(--cia-blue); color: var(--cia-blue); background: #fff; }
.ch-btn-outline:hover { background: var(--cia-blue); color: #fff; }
.ch-btn-red { background: linear-gradient(135deg, var(--cia-red), var(--cia-red-dk)); color: #fff; box-shadow: 0 8px 20px rgba(227, 27, 35, .3); }
.ch-btn-red:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(227, 27, 35, .38); }
.ch-btn-red i { animation: chBeat 1.4s ease-in-out infinite; }
@keyframes chBeat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.25); } 40% { transform: scale(1); } }

.ch-burger, .ch-mbar { display: none; }

@media (max-width: 1199.98px) {
    .ch-actions { display: none; }
    .ch-burger {
        display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
        width: 46px; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
        background: linear-gradient(135deg, var(--cia-blue), var(--cia-blue-dk)); color: #fff; font-size: 20px;
        box-shadow: 0 6px 16px rgba(43, 47, 143, .3);
    }
    .ch-mbar { display: flex; gap: 8px; padding: 0 12px 14px; }
    .ch-logo { width: 72px; height: 72px; }
    .ch-divider { display: none; }
    .ch-brand-in { padding-bottom: 12px; }
}
@media (max-width: 575.98px) {
    .ch-logo { width: 58px; height: 58px; }
    .ch-brand-in { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
    .ch-brand-link { gap: 10px; }
    .ch-tagline { letter-spacing: 1px; margin-top: 4px; }
}
.ch-pill {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 10px; border-radius: 30px; font: 600 13px var(--ch-font); text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ch-pill-blue { background: var(--cia-soft); color: var(--cia-blue); border: 1px solid #d7daf0; }
.ch-pill-red { background: var(--cia-red); color: #fff; }
.ch-pill-dark { flex: 0 0 auto; padding: 9px 16px; background: var(--cia-navy); color: #fff; }
.ch-pill:hover { color: inherit; filter: brightness(1.05); }
.ch-pill-red:hover, .ch-pill-dark:hover { color: #fff; }

/* ---------------- 3. Main navbar (desktop) ---------------- */
.ch-nav { display: none; }

@media (min-width: 1200px) {
    .ch-nav {
        display: block; position: sticky; top: 0; z-index: 1030; font-family: var(--ch-font);
        background: linear-gradient(180deg, #ef2029, var(--cia-red) 55%, #cc151c);
        border-bottom: 3px solid var(--cia-gold);
        transition: box-shadow .3s;
    }
    .ch-nav.is-scrolled { box-shadow: 0 10px 26px rgba(18, 20, 74, .28); }

    .ch-menu { display: flex; align-items: center; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
    .ch-menu > li { position: relative; }

    .ch-link {
        position: relative; display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px;
        color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
        transition: background .2s;
    }
    .ch-link::after {
        content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px; border-radius: 2px;
        background: var(--cia-gold-lt); transform: scaleX(0); transition: transform .25s;
    }
    .ch-menu > li:hover > .ch-link, .ch-link.active { background: rgba(0, 0, 0, .14); color: #fff; }
    .ch-menu > li:hover > .ch-link::after, .ch-link.active::after { transform: scaleX(1); }
    .ch-caret { font-size: 10px; transition: transform .25s; }
    .ch-has:hover > .ch-link .ch-caret, .ch-has.open > .ch-link .ch-caret { transform: rotate(180deg); }

    /* Dropdowns */
    .ch-drop {
        position: absolute; top: 100%; left: 0; z-index: 20; min-width: 250px;
        margin: 0; padding: 8px 0; list-style: none; background: #fff;
        border-top: 3px solid var(--cia-blue); border-radius: 0 0 10px 10px;
        box-shadow: 0 18px 40px rgba(18, 20, 74, .2);
        opacity: 0; visibility: hidden; transform: translateY(10px);
        transition: opacity .22s, transform .22s, visibility .22s;
    }
    .ch-drop.ch-right { left: auto; right: 0; }
    .ch-has:hover > .ch-drop,
    .ch-has:focus-within > .ch-drop,
    .ch-has.open > .ch-drop { opacity: 1; visibility: visible; transform: none; }

    .ch-drop li { position: relative; }
    .ch-drop a {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 20px; color: var(--cia-blue); font-size: 14.5px; font-weight: 500; text-decoration: none;
        border-left: 3px solid transparent; white-space: nowrap;
        transition: background .2s, color .2s, padding .2s, border-color .2s;
    }
    .ch-drop a:hover, .ch-drop a.active, .ch-drop .ch-has:hover > a {
        background: var(--cia-soft); color: var(--cia-red); border-left-color: var(--cia-red); padding-left: 24px;
    }
    .ch-drop a i { font-size: 11px; color: var(--cia-gold-dk); }

    /* Nested flyout (Audit Report) */
    .ch-drop .ch-sub {
        top: -11px; left: 100%; border-top: 0; border-left: 3px solid var(--cia-red);
        border-radius: 0 10px 10px 0; transform: translateX(10px);
    }
    .ch-drop .ch-has:hover > .ch-sub,
    .ch-drop .ch-has:focus-within > .ch-sub,
    .ch-drop .ch-has.open > .ch-sub { transform: none; }

    /* Donate pill */
    .ch-nav-donate {
        display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 10px 22px; border-radius: 40px;
        background: linear-gradient(135deg, var(--cia-blue), var(--cia-blue-dk)); color: #fff;
        font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
        border: 2px solid rgba(255, 255, 255, .35); box-shadow: 0 6px 16px rgba(18, 20, 74, .3);
        transition: background .25s, color .25s, border-color .25s;
    }
    .ch-nav-donate:hover { background: var(--cia-gold); color: var(--cia-navy); border-color: #fff; }
}

/* Laptop widths: tighten so all items fit on one line */
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .ch-link { font-size: 13.2px; padding: 0 7px; gap: 4px; }
    .ch-link::after { left: 7px; right: 7px; }
    .ch-donate-li { display: none; }
}

/* ---------------- 4. Mobile drawer ---------------- */
.ch-overlay {
    position: fixed; inset: 0; z-index: 1990; background: rgba(12, 14, 46, .55);
    backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.ch-overlay.active { opacity: 1; visibility: visible; }

.ch-drawer {
    position: fixed; top: 0; right: 0; z-index: 2000; width: min(370px, 90vw); height: 100%; height: 100dvh;
    display: flex; flex-direction: column; background: #fff; font-family: var(--ch-font);
    transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    box-shadow: -18px 0 40px rgba(12, 14, 46, .25);
}
.ch-drawer.active { transform: none; }

.ch-d-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
    background: linear-gradient(135deg, var(--cia-blue-dk), var(--cia-navy)); border-bottom: 3px solid var(--cia-gold); color: #fff;
}
.ch-d-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ch-d-brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; flex: 0 0 auto; }
.ch-d-text { min-width: 0; }
.ch-d-name { font: 600 15px/1.2 var(--ch-head); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-d-tag { display: block; margin-top: 2px; font-size: 11px; color: var(--cia-gold-lt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-d-close {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; transition: background .25s, transform .25s;
}
.ch-d-close:hover { background: var(--cia-red); transform: rotate(90deg); }

.ch-d-body { flex: 1; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }

.ch-m-item, .ch-m-trigger {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; margin-bottom: 2px;
    border: 0; border-radius: 12px; background: transparent; color: var(--cia-ink);
    font: 600 14.5px var(--ch-font); text-align: left; text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s;
}
.ch-m-item:hover, .ch-m-trigger:hover, .ch-m-trigger.open { background: var(--cia-soft); color: var(--cia-blue); }
.ch-m-item.active { background: rgba(227, 27, 35, .08); color: var(--cia-red); }
.ch-m-ic {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eceefa; color: var(--cia-blue); font-size: 14px;
}
.ch-m-item.active .ch-m-ic { background: var(--cia-red); color: #fff; }
.ch-m-label { flex: 1; }
.ch-m-arrow { font-size: 11px; color: var(--cia-muted); transition: transform .25s, color .25s; }
.ch-m-trigger.open .ch-m-arrow { transform: rotate(180deg); color: var(--cia-red); }

.ch-m-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.ch-m-panel.show { max-height: 1200px; }

.ch-m-link {
    position: relative; display: block; padding: 8px 12px 8px 56px;
    color: var(--cia-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s;
}
.ch-m-link::before {
    content: ""; position: absolute; left: 40px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
    background: var(--cia-gold); transform: rotate(45deg);
}
.ch-m-link:hover, .ch-m-link.active { color: var(--cia-red); }
.ch-m-link.active::before { background: var(--cia-red); }

.ch-m-nested .ch-m-trigger {
    padding: 8px 12px 8px 56px; margin: 0; border-radius: 0; background: transparent;
    color: var(--cia-muted); font-size: 14px; font-weight: 500;
}
.ch-m-nested .ch-m-trigger:hover, .ch-m-nested .ch-m-trigger.open { background: transparent; color: var(--cia-red); }
.ch-m-nested .ch-m-link { padding-left: 74px; }
.ch-m-nested .ch-m-link::before { left: 58px; }

.ch-d-actions { display: grid; gap: 8px; margin-top: 14px; }
.ch-d-actions form { margin: 0; }
.ch-d-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px;
    border: 0; border-radius: 12px; font: 600 14px var(--ch-font); text-decoration: none; cursor: pointer;
}
.ch-d-btn.red { background: linear-gradient(135deg, var(--cia-red), var(--cia-red-dk)); color: #fff; }
.ch-d-btn.blue { background: linear-gradient(135deg, var(--cia-blue), var(--cia-blue-dk)); color: #fff; }
.ch-d-btn.ghost { background: var(--cia-soft); color: var(--cia-blue); border: 1px solid #d7daf0; }
.ch-d-btn.logout { background: transparent; color: var(--cia-red); }

.ch-d-info { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cia-line); }
.ch-d-row { display: flex; align-items: flex-start; gap: 10px; }
.ch-d-row i {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(227, 27, 35, .09); color: var(--cia-red); font-size: 12px;
}
.ch-d-row a, .ch-d-row span { padding-top: 5px; color: var(--cia-ink); font-size: 13.5px; text-decoration: none; word-break: break-word; }
.ch-d-row a:hover { color: var(--cia-red); }

body.ch-lock { overflow: hidden; }

@media (min-width: 1200px) { .ch-overlay, .ch-drawer { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .ch-btn-red i { animation: none; }
    .ch-drawer, .ch-overlay, .ch-drop, .ch-m-panel, .ch-link::after { transition: none; }
}