/* =================================================================
   CDUK site stylesheet
   Loaded after bootstrap.min.css on every page. All text sizes are
   in rem so the A- / A / A+ controls (which change the root font
   size, see js/site.js) scale the whole page consistently.
   ================================================================= */

:root {
    --brand: #b3261e;          /* Uttarakhand red, darkened for AA contrast */
    --brand-dark: #8c1d17;
    --navy: #0f2a4a;
    --navy-2: #173d69;
    --ink: #1f2933;
    --muted: #52606d;
    --line: #dde3ea;
    --bg: #f3f5f8;
    --card: #ffffff;
    --accent-bg: #fdf1f0;
    --success: #1e7a46;
    --focus: #ffbf47;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 42, 74, .08), 0 4px 14px rgba(15, 42, 74, .06);
    --font: "Noto Sans", "Noto Sans Devanagari", "Hind", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

html[lang="hi"] {
    --font: "Noto Sans Devanagari", "Noto Sans", "Hind", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Bootstrap 3 pins html to 10px; restore a 16px root so rem = the
   user's chosen text size. js/site.js overrides this inline. */
html { font-size: 100%; } /* js/site.js sets the user's chosen size; keep in sync with its DEFAULT_STEP */
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
a { color: var(--navy-2); }
a:hover, a:focus { color: var(--brand); }
img { max-width: 100%; height: auto; }
.table, .form-control, .btn, label, .alert, .help-block, .dropdown-menu { font-size: 1rem; }

/* Visible keyboard focus everywhere (GIGW / WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--navy);
}

/* ---------- Language switching ----------
   Every translatable piece exists twice: .t-hi and .t-en. The <html
   lang> attribute (set by js/site.js) decides which one is shown. */
html[lang="en"] .t-hi,
html:not([lang="en"]) .t-en { display: none !important; }

.sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 1000;
    background: var(--focus); color: #000; padding: 10px 16px;
    font-weight: 700; border-radius: 0 0 6px 6px; text-decoration: none;
}
.skip-link:focus { top: 0; color: #000; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: .875rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover, .topbar a:focus { color: var(--focus); text-decoration: underline; }
.topbar .contact { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar .contact .fa { margin-right: 6px; opacity: .85; }

.a11y-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.a11y-bar li { display: flex; align-items: center; }
.a11y-bar .sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .3); margin: 0 4px; }
.a11y-btn {
    appearance: none; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff;
    min-width: 32px; height: 30px; padding: 0 8px; border-radius: 5px; font: inherit; font-weight: 700;
    line-height: 1; cursor: pointer;
}
.a11y-btn:hover { background: rgba(255, 255, 255, .15); }
.a11y-btn[aria-pressed="true"] { background: #fff; color: var(--navy); }
.a11y-btn.lang-btn { background: var(--brand); border-color: var(--brand); padding: 0 12px; }
.a11y-btn.lang-btn:hover { background: var(--brand-dark); }
.a11y-btn .fa { font-size: 1rem; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.site-header .logo img { width: 84px; height: auto; display: block; }
.site-header .titles { flex: 1; text-align: center; }
.site-header .titles a { text-decoration: none; color: inherit; }
.site-header .title-main { display: block; font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0; }
.site-header .title-sub { display: block; font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.site-header .emblem img { width: 76px; height: auto; display: block; }

/* ---------- Primary navigation ---------- */
.site-nav { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.site-nav .container { position: relative; }
.nav-toggle {
    display: none; width: 100%; background: transparent; color: #fff; border: 0;
    font: inherit; font-weight: 700; padding: 12px 4px; text-align: left; cursor: pointer;
}
.nav-toggle .fa { margin-right: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li { flex: 1 1 auto; }
.site-nav a {
    display: block; padding: 13px 14px; color: #fff; text-decoration: none; text-align: center;
    font-weight: 600; font-size: .98rem; border-bottom: 3px solid transparent; white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus { background: var(--navy-2); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--brand); border-bottom-color: var(--focus); }

/* ---------- Notice ticker (replaces <marquee>) ---------- */
.ticker { background: #fff7e0; border-bottom: 1px solid #f0d78c; }
.ticker .container { display: flex; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.ticker-label { flex: none; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 4px; }
.ticker-viewport { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; font-weight: 600; color: #5a3b00; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-pause { flex: none; background: transparent; border: 1px solid #c9a94a; color: #5a3b00; border-radius: 4px; width: 30px; height: 28px; cursor: pointer; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; padding-left: 0; white-space: normal; }
    .ticker-pause { display: none; }
    .badge-new { animation: none; }
    * { scroll-behavior: auto !important; }
}

/* ---------- Page body ---------- */
/* Bootstrap 3 fixes .container at 750px (768-991) and 970px (992-1199),
   leaving wide empty margins on tablets and phones in "Desktop site"
   mode. Fill the viewport instead, up to the usual 1170px maximum. */
.container { width: auto; max-width: 1170px; }
.page { padding-top: 22px; padding-bottom: 30px; }
.content-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 20px;
}
.content-card > :last-child { margin-bottom: 0; }
.page-title {
    font-size: 2rem; margin: 0 0 18px; padding-bottom: 12px;
    border-bottom: 3px solid var(--line); position: relative;
}
.page-title::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 80px; height: 3px; background: var(--brand); }
.section-title { font-size: 1.25rem; margin: 26px 0 12px; }
.lead-text { font-size: 1.05rem; color: var(--muted); }
.breadcrumbs { font-size: .875rem; margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }
.figure-caption { font-size: .875rem; color: var(--muted); margin-top: 4px; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.2em; border: 1px solid var(--line); border-radius: 8px; }
.table-wrap .table { margin-bottom: 0; }
.content-card .table { background: #fff; }
.content-card .table > thead > tr > th, .content-card .table > tbody > tr > th {
    background: var(--navy-2); color: #fff; border-color: var(--navy-2); font-weight: 600; vertical-align: middle;
}
.content-card .table > tbody > tr:nth-child(even) > td { background: #f7f9fb; }
.content-card .table > tbody > tr:hover > td { background: var(--accent-bg); }
.content-card .table td, .content-card .table th { padding: 9px 12px; }
.table-num td:not(:first-child), .table-num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.table .total td { font-weight: 700; }
.table-condensed { font-size: 1rem; }
.content-card .table-condensed td, .content-card .table-condensed th { padding: 7px 8px; }
.table-wrap .table th[scope="row"] { position: sticky; left: 0; z-index: 1; }

/* Document / PDF lists (GOs, Rules, News) */
.doc-list { list-style: none; margin: 0; padding: 0; counter-reset: doc; }
.doc-list li { margin-bottom: 10px; }
.doc-list a {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; text-decoration: none;
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy-2); border-radius: 8px; color: var(--ink);
}
.doc-list a:hover, .doc-list a:focus { border-left-color: var(--brand); background: var(--accent-bg); color: var(--ink); }
.doc-list .doc-icon { flex: none; color: var(--brand); font-size: 1.4rem; line-height: 1.2; }
.doc-list .doc-text { flex: 1; }
.doc-list .doc-meta { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.doc-search { margin-bottom: 16px; }
.doc-search input { max-width: 420px; }
.doc-empty { display: none; color: var(--muted); font-style: italic; }

/* Image galleries */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.gallery-grid a, .gallery-grid figure { display: block; margin: 0; border-radius: 8px; overflow: hidden; background: #e9edf2; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-grid a:hover img, .gallery-grid a:focus img { transform: scale(1.04); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.video-grid video { width: 100%; border-radius: 8px; background: #000; }

/* Info cards (contact page, about page) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.info-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fbfcfd; }
.info-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.map-embed { border: 0; width: 100%; height: 360px; border-radius: 8px; }

/* ---------- Sidebar ---------- */
.sidebar .widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.sidebar .widget-title { margin: 0; padding: 10px 14px; font-size: 1rem; font-weight: 700; color: #fff; background: var(--navy-2); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 6px 0; }
.sidebar .widget li a {
    display: flex; gap: 8px; align-items: flex-start; padding: 8px 14px; color: var(--ink); text-decoration: none;
    font-size: .95rem; line-height: 1.45; border-left: 3px solid transparent;
}
.sidebar .widget li a::before { content: "\f105"; font-family: FontAwesome; color: var(--brand); flex: none; }
.sidebar .widget li a:hover, .sidebar .widget li a:focus { background: var(--accent-bg); border-left-color: var(--brand); color: var(--brand-dark); }
.sidebar .widget li + li a { border-top: 1px solid #eef1f4; }
.badge-new { display: inline-block; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-right: 4px; vertical-align: 1px; }
/* Blink/pulse so new items catch the eye. One cycle per second stays far
   below the 3-flashes-per-second seizure threshold (WCAG 2.3.1). */
.badge-new { animation: badge-blink 1s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(179, 38, 30, .6); }
@keyframes badge-blink {
    0%, 100% { background: var(--brand); color: #fff; box-shadow: 0 0 0 0 rgba(179, 38, 30, .6); transform: scale(1); }
    50% { background: #ffd400; color: #5a0000; box-shadow: 0 0 0 5px rgba(179, 38, 30, 0); transform: scale(1.12); }
}
a:hover .badge-new, a:focus .badge-new { animation-play-state: paused; }

.dignitaries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.dignitary { text-align: center; margin: 0; }
.dignitary img { width: 100%; max-width: 130px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; border: 3px solid var(--line); background: #fff; }
.dignitary figcaption { font-size: .85rem; line-height: 1.4; margin-top: 6px; }
.dignitary strong { display: block; color: var(--navy); }

.widget-cta { display: block; margin: 14px; padding: 12px; text-align: center; background: var(--brand); color: #fff !important; border-radius: 8px; font-weight: 700; text-decoration: none; }
.widget-cta:hover, .widget-cta:focus { background: var(--brand-dark); }
.widget-cta .fa { margin-right: 6px; }

.sidebar .carousel { margin: 0 14px 14px; border-radius: 8px; overflow: hidden; }
.sidebar .carousel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ext-links { display: grid; gap: 8px; padding: 14px; }
.ext-links img { display: block; margin: 0 auto; }

/* ---------- Grievance form ---------- */
.form-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.form-steps li { background: #eef2f6; padding: 4px 10px; border-radius: 20px; }
.form-section { border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 6px; margin: 0 0 18px; }
.form-section legend { width: auto; border: 0; margin: 0; padding: 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.form-group label { font-weight: 600; margin-bottom: 4px; }
.req { color: var(--brand); margin-left: 2px; }
.form-control { height: auto; padding: 9px 12px; border-radius: 6px; border-color: #b8c2cc; box-shadow: none; }
.form-control:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(23, 61, 105, .15); }
.field-hint { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.captcha-q { font-size: 1.1rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row .form-control { max-width: 140px; }
.captcha-row .btn { padding: 7px 14px; }
.field-error { display: none; font-size: .875rem; color: var(--brand); font-weight: 600; margin-top: 4px; }
.has-error .field-error { display: block; }
.has-error .form-control { border-color: var(--brand); }
.char-count { float: right; font-size: .8rem; color: var(--muted); }

.file-drop { position: relative; border: 2px dashed #b8c2cc; border-radius: 8px; padding: 14px; background: #fbfcfd; }
.file-drop:focus-within { border-color: var(--navy-2); }
.file-drop input[type="file"] { width: 100%; font-size: .95rem; }
.file-status { display: none; margin-top: 8px; font-size: .9rem; padding: 6px 10px; border-radius: 6px; }
.file-status.ok { display: block; background: #e7f5ec; color: var(--success); }
.file-status.bad { display: block; background: var(--accent-bg); color: var(--brand); }
.file-clear { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0 0 0 8px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.btn-brand { background: var(--brand); border: 0; color: #fff; font-weight: 700; padding: 11px 26px; border-radius: 6px; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-brand[disabled] { opacity: .7; }
.btn-outline { background: #fff; border: 1px solid #b8c2cc; color: var(--ink); padding: 10px 20px; border-radius: 6px; font-weight: 600; }

.alert-box { border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid; }
.alert-box.success { background: #e7f5ec; border-color: #9fd4b3; color: #14532d; }
.alert-box.error { background: var(--accent-bg); border-color: #f0b4af; color: #7a1a14; }
.ref-no { display: inline-block; font-size: 1.2rem; font-weight: 700; letter-spacing: .5px; background: #fff; border: 1px dashed #14532d; padding: 4px 10px; border-radius: 6px; margin-top: 6px; }

/* Figures, home slider, form actions */
.content-card figure { margin: 0 0 18px; }
.content-card figure img { display: block; margin: 0 auto; border-radius: 6px; border: 1px solid var(--line); }
.content-card figcaption { font-size: .875rem; color: var(--muted); margin-top: 6px; text-align: center; }
.chart-figure img { background: #fff; }

.slider-pause {
    position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer;
}
.slider-pause:hover, .slider-pause:focus { background: rgba(0, 0, 0, .8); }

.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1626; color: #c9d4e0; font-size: .9rem; }
.site-footer .container { padding-top: 26px; padding-bottom: 18px; }
.footer-links { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { color: var(--focus); text-decoration: underline; }
.site-footer p { text-align: center; margin: 0 0 6px; }
.site-footer a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 14px; padding-top: 12px; font-size: .82rem; color: #9fb0c3; }

.back-to-top {
    position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff; border: 0; box-shadow: var(--shadow); cursor: pointer;
    opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 60; font-size: 1.2rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- Home page sections ---------- */
.home { background: var(--bg); }
.home .center { text-align: center; }
.home-section { padding: 44px 0; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.home-title { font-size: 1.6rem; color: var(--navy); margin: 0 0 18px; }
.home-title.center { text-align: center; }
.home-title.small { font-size: 1.25rem; margin-bottom: 14px; }
.btn-navy { background: var(--navy); color: #fff; font-weight: 600; border: 0; border-radius: 6px; padding: 9px 20px; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); color: #fff; }

/* Banner slideshow: full width, controls grouped bottom-left */
.home-hero { background: #0b1626; }
/* Show each photo whole (contain); the empty sides are filled with a
   blurred copy of the same photo, set as --slide-bg by js/home.js. */
/* No position here: Bootstrap positions .item itself (relative, and absolute
   for the incoming slide mid-transition) — overriding it breaks the slide. */
.home-slider .item { overflow: hidden; background: #0b1626; }
.home-slider .item::before { content: ""; position: absolute; inset: -30px; background: var(--slide-bg, none) center / cover no-repeat; filter: blur(22px) brightness(.55); }
.home-slider .item img { position: relative; width: 100%; height: clamp(220px, 42vw, 520px); object-fit: contain; }
.slider-controls { position: absolute; left: 32px; bottom: 24px; z-index: 5; display: flex; background: rgba(0, 0, 0, .75); border-radius: 8px; overflow: hidden; }
.slider-btn { width: 46px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; background: transparent; border: 0; font-size: 1.1rem; cursor: pointer; text-decoration: none; }
.slider-btn:hover, .slider-btn:focus { background: rgba(255, 255, 255, .18); color: #fff; }
.slider-controls .slider-pause { position: static; width: 46px; height: 44px; border-radius: 0; background: transparent; }

/* Helpline strip */
.help-strip { background: #e8f0fb; border-bottom: 1px solid #c9d9ef; }
.help-strip .container { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.help-strip .help-icon { font-size: 1.6rem; color: var(--navy-2); }
.help-strip p { margin: 0; color: var(--navy); font-weight: 600; }
.help-strip a { color: var(--brand); }

/* Notifications band */
.notice-band { background: var(--success); color: #fff; }
.notice-band .container { display: flex; align-items: stretch; padding: 0 15px; }
.notice-title { flex: none; margin: 0; color: #fff; padding: 18px 24px 18px 0; font-size: 1.4rem; border-right: 1px solid rgba(255, 255, 255, .35); display: flex; align-items: center; }
.notice-body { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 0 12px 24px; min-width: 0; }
.notice-list { flex: 1; list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: 3px 0; }
.notice-list a { color: #fff; font-weight: 600; }
.notice-list a:hover, .notice-list a:focus { color: #fff; text-decoration: underline; }
.notice-band:not(.js-rotate) .notice-list li[hidden] { display: list-item; } /* no JS: list them all */
.notice-controls { flex: none; display: flex; gap: 4px; }
.notice-btn { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.notice-btn:hover, .notice-btn:focus { background: rgba(255, 255, 255, .2); }
.notice-band:not(.js-rotate) .notice-controls { display: none; }

/* Dignitary cards */
.leader-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.leader-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 18px; text-align: center; }
.leader-card img, .leader-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid var(--line); margin: 0 auto 14px; display: block; background: #fff; }
.leader-avatar { display: flex; align-items: center; justify-content: center; background: #d5dbe3; color: #fff; font-size: 5rem; }
.leader-card strong { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.leader-card span:not(.leader-avatar) { display: block; color: var(--muted); margin-top: 4px; }

/* About */
.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about-text p { line-height: 1.75; }
.about-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Service tiles (white text on each colour passes WCAG AA) */
.service-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.service-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 170px; padding: 20px 12px; border-radius: var(--radius); color: #fff; text-align: center; text-decoration: none; font-weight: 700; font-size: 1.05rem; transition: transform .15s ease, box-shadow .15s ease; }
.service-tile:hover, .service-tile:focus { color: #fff; text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.tile-icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.service-tile.t1 { background: #b3261e; }
.service-tile.t2 { background: #1f65a0; }
.service-tile.t3 { background: #1d6f57; }
.service-tile.t4 { background: #8a5500; }
.service-tile.t5 { background: #6a3d9a; }
.service-tile.t6 { background: #0f5a74; }

/* Statistics */
.stat-cards { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-cards li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--brand); padding: 16px; text-align: center; }
.stat-cards strong { display: block; font-size: 1.6rem; color: var(--navy); }
.stat-cards span { color: var(--muted); font-size: .92rem; }
.stats-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart-grid figure { margin: 0; }
.chart-grid img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* Photo gallery band */
.gallery-band { background: var(--navy); padding: 44px 0; }
.gallery-band .home-title { color: #fff; }
.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.gallery-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); border-radius: 4px; transition: transform .15s ease; }
.gallery-strip a:hover img, .gallery-strip a:focus img { transform: scale(1.03); }
.view-all { color: #fff; font-weight: 700; text-decoration: underline; }
.view-all:hover, .view-all:focus { color: var(--focus); }
.view-all.dark { color: var(--navy); }

/* News + video */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news-cards { list-style: none; margin: 0 0 16px; padding: 0; }
.news-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.news-card:hover, .news-card:focus { border-color: var(--navy-2); color: var(--navy); text-decoration: none; box-shadow: var(--shadow); }
.news-card .fa { flex: none; font-size: 1.8rem; color: var(--brand); width: 32px; text-align: center; }
.video-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-video { width: 100%; border-radius: 8px; background: #000; aspect-ratio: 16 / 9; }

/* Link columns */
.links-section ul { list-style: disc; padding-left: 20px; margin: 0; }
.links-section li { margin-bottom: 10px; }
.links-section li a { color: var(--navy-2); }
.links-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.portal-buttons { display: flex; flex-direction: column; gap: 14px; }
.portal-btn { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 6px; color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none; border-bottom: 4px solid rgba(0, 0, 0, .2); }
.portal-btn:hover, .portal-btn:focus { color: #fff; text-decoration: none; filter: brightness(1.1); }
.portal-btn .fa { font-size: 1.3rem; }
.portal-btn.p1 { background: #1d6f57; }
.portal-btn.p2 { background: #1f65a0; }

/* External portal logos */
.logo-strip { background: #fff; border-top: 1px solid var(--line); }
.logo-strip .container { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.logo-strip a { display: flex; align-items: center; justify-content: center; padding: 18px 40px; border-left: 1px solid var(--line); }
.logo-strip a:last-child { border-right: 1px solid var(--line); }
.logo-strip img { max-height: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .site-header .title-main { font-size: 1.3rem; }
    .site-header .title-sub { font-size: .95rem; }
    .site-header .logo img { width: 64px; }
    .site-header .emblem img { width: 56px; }
    .nav-toggle { display: block; }
    .site-nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
    .site-nav.open ul { display: flex; }
    .site-nav a { text-align: left; border-bottom: 0; border-left: 4px solid transparent; white-space: normal; }
    .site-nav a[aria-current="page"] { border-left-color: var(--focus); }
    .sidebar { margin-top: 10px; }
    .content-card { padding: 22px 20px; }
    .about-grid, .news-grid { grid-template-columns: 1fr; gap: 28px; }
    .links-grid { grid-template-columns: 1fr 1fr; }
    .gallery-strip { grid-template-columns: repeat(3, 1fr); }
    .gallery-strip a:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
    .topbar .container { justify-content: center; }
    .topbar .contact { justify-content: center; font-size: .8rem; }
    .a11y-bar { justify-content: center; }
    .a11y-bar li:first-child, .a11y-bar li:first-child + .sep { display: none; }
    .site-header .container { gap: 10px; }
    .site-header .emblem { display: none; }
    .site-header .title-main { font-size: 1.1rem; }
    .site-header .title-sub { font-size: .8rem; }
    .content-card { padding: 18px 16px; }
    .page-title { font-size: 2rem; }
    .dignitaries { grid-template-columns: 1fr 1fr; }
    .home-section, .gallery-band { padding: 30px 0; }
    .home-title { font-size: 1.3rem; }
    .slider-controls { left: 12px; bottom: 12px; }
    .notice-band .container { flex-direction: column; }
    .notice-title { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .35); padding: 12px 0; }
    .notice-body { padding: 12px 0; }
    .stats-card { padding: 18px 16px; }
    .chart-grid, .links-grid { grid-template-columns: 1fr; }
    .gallery-strip { grid-template-columns: 1fr 1fr; }
    .gallery-strip a:nth-child(n+3) { display: none; }
    .logo-strip a { padding: 14px 20px; }
}

/* ---------- High contrast mode ---------- */
html.hc body, html.hc .site-header, html.hc .content-card, html.hc .sidebar .widget,
html.hc .info-card, html.hc .form-section, html.hc .file-drop, html.hc .doc-list a,
html.hc .home, html.hc .home-section, html.hc .help-strip, html.hc .notice-band, html.hc .gallery-band, html.hc .leader-card, html.hc .stat-cards li, html.hc .stats-card, html.hc .news-card, html.hc .service-tile, html.hc .portal-btn, html.hc .logo-strip,
html.hc .ticker, html.hc .site-footer, html.hc .topbar, html.hc .site-nav,
html.hc .content-card .table, html.hc .content-card .table td, html.hc .form-control,
html.hc .alert-box, html.hc .table-wrap, html.hc .sidebar .widget-title {
    background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important;
}
html.hc h1, html.hc h2, html.hc h3, html.hc h4, html.hc .site-header .title-main,
html.hc .site-header .title-sub, html.hc .dignitary strong, html.hc label, html.hc legend,
html.hc .field-hint, html.hc .figure-caption, html.hc .lead-text, html.hc .ticker-track { color: #fff !important; }
html.hc a, html.hc .site-nav a, html.hc .sidebar .widget li a { color: #ffff00 !important; background: transparent !important; }
html.hc .site-nav a[aria-current="page"] { text-decoration: underline; }
html.hc .content-card .table th { background: #222 !important; color: #ffff00 !important; }
html.hc .btn-brand, html.hc .widget-cta, html.hc .a11y-btn.lang-btn, html.hc .badge-new, html.hc .ticker-label, html.hc .back-to-top {
    background: #ffff00 !important; color: #000 !important; border-color: #ffff00 !important;
}
html.hc img { filter: grayscale(20%) contrast(1.1); }
html.hc .page-title::after { background: #ffff00; }
html.hc .doc-meta, html.hc .breadcrumbs, html.hc .breadcrumbs li, html.hc .char-count, html.hc .field-hint { color: #fff !important; }
html.hc .doc-icon, html.hc .req, html.hc .field-error { color: #ffff00 !important; }

/* ---------- Print ---------- */
@media print {
    .topbar, .site-nav, .ticker, .sidebar, .site-footer, .back-to-top, .skip-link { display: none !important; }
    .content-card { box-shadow: none; border: 0; padding: 0; }
    .col-md-9 { width: 100%; }
}
