/* =====================================================
   DESIGN TOKENS

   Every value below is a literal that was already in these stylesheets, copied
   byte for byte. This names them; it changes none of them. The same maroon was
   spelled out in eighteen declarations across three files, so a brand change
   meant a find-and-replace that could silently miss one, and two similar greys
   sitting side by side said nothing about which was the intentional one.

   _Layout links site.css on every public page, and the page-specific sheets
   (recruitment.css, Pages.css, studentfeedback.css) are linked from each page's
   Styles section, so they resolve against this block. The admin shell uses
   _AdminLayout, which does not link site.css at all - admin.css carries its own
   block for that tree.

   Near-identical values are deliberately NOT merged. --brand-maroon (#7B1E1E)
   and --brand-maroon-panel (#8b1c1c), --focus-ring (#ffdd00) and
   --focus-ring-sr-mode (#ffcc00), --text-body and --focus-ring-halo (both
   #212529) are each two separate decisions that happen to look alike. Whether
   any pair should collapse is a design call to be made with the site in front
   of you, not a side effect of naming things.

   Not everything is tokenised. White and black stay literals: they are written
   three ways here (#ffffff / #fff / white, #000000 / #000 / black) and neither
   is a palette decision anyone would revisit. So do the one-off surface greys
   - .box #e4e4e4, .notification-item #eee, .box-footer #f6f6f6, .admit-box
   #f4f4f4, .tree li #f7f7f7 - because each appears exactly once and nothing on
   record says any two of them are meant to be the same grey. A token there
   would buy an indirection and no meaning. The high-contrast block below is
   left on literals on purpose, so that editing a brand colour cannot reach
   into the accessibility mode.
   ===================================================== */

:root {
    /* Brand. .page-title and .chairman-img below, and four rules in Pages.css,
       spelled the maroon #7b1e1e; same colour, and they now share this token. */
    --brand-maroon: #7B1E1E;
    /* The deeper maroon on panel headers and notification dates. Not the same
       value as --brand-maroon and not assumed to be a mistake. */
    --brand-maroon-panel: #8b1c1c;
    /* The one dark gold: the ~43deg hue darkened to 4.96:1 for white text, now
       shared by the dropdown, the footer link bar, the stats bar and the
       feedback button hover. */
    --brand-gold-dark: #8f6a09;
    --brand-red: #d32f2f;
    --brand-blue: #0b72d9;

    /* Text */
    --text-body: #212529;
    --text-secondary: #333;
    --text-muted: #555;
    --link-blue: #0a58ca;

    /* Focus. The halo is #212529 because it measures 15.9:1 on white, not
       because it is the body ink - it must not follow --text-body if that
       ever moves. */
    --focus-ring: #ffdd00;
    --focus-ring-halo: #212529;
    --focus-ring-sr-mode: #ffcc00;

    /* Surfaces and borders */
    --border-subtle: #ddd;
    --surface-cream: #f8f4ee;
    --border-cream: #e7ddd0;

    /* Component-scoped: each of these is confined to one page area and carries
       no wider role, so naming it for a role it does not have would be a lie. */
    --login-tab-maroon: #8b3a3a;
    --sitemap-teal: #1f5e7a;
    --recruitment-blue: #2d6fa3;
    --feedback-navy: #12344d;
    --feedback-btn-navy: #003366;
    --feedback-page-bg: #f4f7fb;
    --feedback-input-border: #ccc;
}

/*=====BASE / GLOBAL STYLES =====*/
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: var(--text-body);
}

a {
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
}
/* =====================================================
   FONT SIZE ACCESSIBILITY (A- / A / A+)
   ===================================================== */

.font-small {
    font-size: 90% !important;
}

.font-normal {
    font-size: 100% !important;
}

.font-large {
    font-size: 200% !important;
}


/* =====================================================
   HIGH CONTRAST MODE (NIC STYLE)
   site.js toggles .high-contrast on <body>; body's background propagates to the
   canvas, so the whole viewport goes black.

   This used to set black/white on the body alone and then patch nine named
   components. Every other container in this file that declares its own light
   background - .box, .admit-box, .footer-logos, .ssc-header, .captcha-box,
   .feedback-container, .tree li, .news-strip, .screenreader-content, .box-footer
   - kept it and inherited the white body text, so the mode that exists for
   low-vision visitors rendered most of the site white-on-white. The reset is
   therefore generic (every descendant, not a name list) so a component added
   later cannot silently opt out. The named rules after it restore the
   black/white/yellow convention only where flat black would lose meaning.

   background-image is deliberately NOT reset: nothing in this stylesheet uses
   one, and blanking it would erase Bootstrap's data-URI carousel arrows.
   ===================================================== */

.high-contrast,
.high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Yellow on black is 19.6:1 and is the convention this mode already started. */
.high-contrast a,
.high-contrast a * {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

.high-contrast a:hover,
.high-contrast a:hover *,
.high-contrast a:focus,
.high-contrast a:focus * {
    background-color: #ffff00 !important;
    color: #000 !important;
}

/* Once every surface is the same black, controls need an explicit edge or the
   accessibility toolbar itself becomes four invisible words in a row. */
.high-contrast button,
.high-contrast .btn,
.high-contrast select,
.high-contrast input,
.high-contrast textarea {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

.high-contrast button:hover,
.high-contrast .btn:hover,
.high-contrast select:hover {
    background-color: #ffff00 !important;
    color: #000 !important;
}

.high-contrast ::placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

.high-contrast :focus-visible {
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px !important;
}

/* Status chips carry meaning through colour, so they invert rather than flatten. */
.high-contrast .badge,
.high-contrast .news-label,
.high-contrast .urgent-badge,
.high-contrast .closing-badge,
.high-contrast .preview-badge,
.high-contrast .menu-new-tag,
.high-contrast .notification-new-tag,
.high-contrast .nav-item-title {
    background-color: #ffff00 !important;
    color: #000 !important;
    border: 1px solid #fff !important;
}

/* The hamburger bars are painted with background-color, so the generic reset
   above would otherwise turn them black-on-black and hide the mobile menu. */
.high-contrast .nav-toggle-bar {
    background-color: #fff !important;
}

.high-contrast .dropdown-menu {
    border: 1px solid #fff !important;
}

.high-contrast .notification-list::-webkit-scrollbar-thumb,
.high-contrast .admit-body-scroll::-webkit-scrollbar-thumb {
    background-color: #ffff00 !important;
}

/* Most footer and header artwork is a transparent PNG with dark ink in it; on a
   black canvas that is an empty rectangle. A white plate is invisible behind the
   opaque photographs and keeps the logos readable. */
.high-contrast img {
    background-color: #fff !important;
}


/* =====================================================
   TOP ACCESSIBILITY BAR
   ===================================================== */

.top-bar {
    background-color: var(--brand-maroon);
    color: #ffffff;
    font-size: 13px;
}

/* The toolbar had no breakpoint at all: two nowrap flex children with
   justify-content:space-between, so at 360px the row simply overflowed the
   viewport and the contrast toggle went off the right edge. Wrapping is
   unconditional - it only engages when the row genuinely does not fit - and the
   two halves wrap internally as well, otherwise .top-right alone (four buttons
   plus the language select) is still wider than a phone. */
.top-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 12px;
    padding: 6px 0;
}

.top-left,
.top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* LEFT COLOR DOTS */

.color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.yellow {
    background-color: #f4c430;
}

.blue {
    background-color: #1e88e5;
}

.red {
    background-color: #e53935;
}

.black {
    background-color: #000000;
}

body.theme-yellow,
body.theme-yellow #mainContent {
    background-color: #fff8e1;
}

body.theme-yellow .box,
body.theme-yellow .admit-box {
    background-color: #fffde7;
}

body.theme-blue,
body.theme-blue #mainContent {
    background-color: #e3f2fd;
}

body.theme-blue .box,
body.theme-blue .admit-box {
    background-color: #e8f4fd;
}

body.theme-red,
body.theme-red #mainContent {
    background-color: #ffebee;
}

body.theme-red .box,
body.theme-red .admit-box {
    background-color: #fff1f2;
}

body.theme-black,
body.theme-black #mainContent {
    background-color: #111111;
    color: #ffffff;
}

body.theme-black .box,
body.theme-black .admit-box {
    background-color: #1c1c1c;
    color: #ffffff;
}


/* SCREEN READER BUTTON */

.screen-reader-btn {
    font-weight: 600;
}


/* =====================================================
   ACCESSIBILITY BUTTONS (A-, A, A+, High Contrast)
   ===================================================== */

/* padding:2px 8px on 13px text measured ~22px tall - about half a fingertip,
   on the controls a low-vision or motor-impaired visitor reaches for first.
   44x44 is the GIGW / WCAG 2.5.5 target, applied at every width rather than
   only on phones: a shaky hand is not a mobile-only condition. Horizontal
   spacing now comes from the flex `gap` on .top-left / .top-right. */
.top-bar button,
.top-bar a.screen-reader-btn {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .top-bar button:hover,
    .top-bar a.screen-reader-btn:hover,
    .top-bar a.screen-reader-btn:focus {
        background-color: #ffffff;
        color: var(--brand-maroon);
    }

/* Colour swatches must not inherit the 44px toolbar button chrome: that
   stripped the fill (background:transparent) and blew the dots up to squares. */
.top-bar button.color-dot {
    appearance: none;
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    cursor: pointer;
    transition: none;
}

.top-bar button.color-dot.yellow {
    background-color: #f4c430;
}

.top-bar button.color-dot.blue {
    background-color: #1e88e5;
}

.top-bar button.color-dot.red {
    background-color: #e53935;
}

.top-bar button.color-dot.black {
    background-color: #000000;
}

.top-bar button.color-dot:hover {
    background-color: inherit;
    color: inherit;
}

.top-bar button.color-dot.yellow:hover {
    background-color: #f4c430;
}

.top-bar button.color-dot.blue:hover {
    background-color: #1e88e5;
}

.top-bar button.color-dot.red:hover {
    background-color: #e53935;
}

.top-bar button.color-dot.black:hover {
    background-color: #000000;
}

.top-bar button.color-dot:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}


/* =====================================================
   LANGUAGE DROPDOWN
   ===================================================== */

.language-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.language-dropdown {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    min-height: 44px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
}

    .language-dropdown option {
        color: #000000;
    }


/* =====================================================
   SKIP TO CONTENT LINK (Screen Reader Support)
   ===================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    z-index: 9999;
    text-decoration: none;
}

    .skip-link:focus {
        left: 10px;
        top: 10px;
    }


/* =====================================================
   FOCUS INDICATOR (WCAG 2.4.7 / 1.4.11)
   The site runs across near-white page backgrounds and dark maroon bars, and no
   single colour clears 3:1 against both. This is the two-tone ring: the yellow
   is 7.6:1 on the maroon navbar and footer, the dark ring around it is 15.9:1 on
   white, so whichever surface the control sits on, one of the two is visible.

   The second selector list is the outline-suppressing rules in vendored Bootstrap
   5.1: `.btn:focus` and `.form-control:focus` both set `outline: 0` and replace it
   with a 25%-alpha blue glow that is well under 3:1. They are class+pseudo-class,
   so a bare `:focus-visible` loses to them on specificity; matching their shape
   and relying on site.css loading second is what actually reinstates the ring.
   ===================================================== */

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 0;
    box-shadow: 0 0 0 6px var(--focus-ring-halo);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 3px solid var(--focus-ring);
    outline-offset: 0;
    box-shadow: 0 0 0 6px var(--focus-ring-halo);
}
.screenreader-header {
    background-color: var(--brand-maroon);
    color: white;
    font-weight: bold;
    padding: 8px;
    border-radius: 2px;
}

.screenreader-content {
    background: #f5f5f5;
    padding: 20px;
    border: 1px solid var(--border-subtle);
}
/* =====================================================
   MAIN HEADER
   ===================================================== */

.ssc-header {
    background-color: #ffffff;
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* width:auto is load-bearing, not tidying. These <img> elements carry width and
   height attributes (added so the layout does not shift while they load). A CSS
   rule that sets only the height leaves the width coming from the attribute, and
   the default object-fit is `fill`, so the image is stretched to that box rather
   than scaled. The emblem rendered 512px wide in an 85px-tall slot - a 340%
   distortion. Whenever CSS fixes one dimension here, the other must be auto. */
.header-left img {
    height: 75px;
    width: auto;
}

.header-right img {
    height: 85px;
    width: auto;
}

.header-center {
    text-align: center;
    line-height: 1.4;
}

.hindi-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-blue);
}

.english-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-blue);
    text-transform: uppercase;
}

.region-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-red);
}

/* =====================================================
   NAVIGATION BAR
   ===================================================== */

.ssc-navbar {
    background-color: var(--brand-maroon);
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
}

    .menu li a {
        color: #ffffff;
        padding: 10px 14px;
        display: block;
        font-weight: 600;
        font-size: 14px;
    }

        /* :focus added, not just :hover. Bootstrap's `.nav-link:hover, .nav-link:focus`
           (0-2-0) outranks `.menu li a` (0-1-2) and recolours the text to #0a58ca in
           both states - which is 5.9:1 on this near-white hover background but only
           1.6:1 left on the maroon bar, so a keyboard user tabbing the menu could not
           see where they were. Giving :focus the same background as :hover is what
           makes Bootstrap's colour legible.
           (The hover state itself was reviewed as a contrast failure and is not one:
           the white from `.menu li a` never survives to paint on #f8f4ee.) */
        .menu li a:hover,
        .menu li a:focus {
            background-color: var(--surface-cream);
        }

/* ================= DROPDOWN ================= */

/* Was #C79200, which put #ffffff 14px bold text at 2.79:1 - a plain AA failure on
   the whole About Us menu. Same hue (~43deg), darkened to 4.96:1. This is the one
   dark gold now used by the footer link bar and stats bar too. */
.dropdown-menu {
    background-color: var(--brand-gold-dark);
    border: none;
    padding: 0;
    min-width: 220px;
}

    .dropdown-menu .dropdown-item {
        color: #ffffff;
        font-weight: 600;
        font-size: 14px;
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

        /* :focus was missing here while :hover was covered, and the two are not
           symmetrical in Bootstrap: `.dropdown-item:hover, .dropdown-item:focus`
           sets both colour and background, but only its background survived - the
           #ffffff above wins the colour on equal specificity by loading later. A
           keyboard user therefore got white text on Bootstrap's #e9ecef, 1.1:1. */
        .dropdown-menu .dropdown-item:hover,
        .dropdown-menu .dropdown-item:focus {
            background-color: var(--brand-maroon);
            color: #ffffff;
        }

    .dropdown-menu li:last-child .dropdown-item {
        border-bottom: none;
    }
/* =====================================================
   IMPORTANT NEWS (ACCESSIBLE TICKER)
   ===================================================== */

.news-strip {
    background-color: #fff8dc;
    border-top: 3px solid #ffc107;
}

.news-inner {
    display: flex;
    align-items: center;
}

.news-label {
    background-color: var(--brand-red);
    color: #ffffff;
    padding: 6px 14px;
    font-weight: 700;
    margin-right: 10px;
    white-space: nowrap;
}

/* Ticker — seamless loop via primary + JS clone .news-group.
   --news-shift is the measured primary group width in px (set on .news-marquee).
   Short items are padded to at least the ticker width so both copies are not
   visible at once. Reduced-motion stays static. */
.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.news-marquee {
    display: inline-flex;
    width: max-content;
    max-width: none;
    align-items: center;
    font-weight: 600;
    transform: translate3d(0, 0, 0);
}

.news-group {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 3rem;
    box-sizing: border-box;
}

/* Empty state and legacy single-track markup (pre-seamless). */
.news-text {
    display: inline-block;
    white-space: nowrap;
    font-weight: 600;
}

.news-text.is-empty {
    padding-left: 0;
}

/* Static / wrapping presentation (reduced motion). */
.news-ticker--static,
.news-ticker.news-ticker--static {
    white-space: normal;
    overflow: visible;
}

.news-ticker--static .news-marquee {
    display: block;
    width: auto;
    max-width: 100%;
    white-space: normal;
    transform: none;
    animation: none;
}

.news-ticker--static .news-group {
    display: block;
    white-space: normal;
    padding-right: 0;
    flex-wrap: wrap;
    min-width: 0 !important;
}

.news-ticker--static .news-group[aria-hidden="true"],
.news-ticker--static .news-group[data-news-clone="1"] {
    display: none;
}

.news-ticker--static .news-item {
    display: inline;
    white-space: normal;
    margin-right: 0;
}

.news-ticker--static .news-separator {
    margin: 0 8px;
}

.news-ticker--scrolling {
    overflow: hidden;
    white-space: nowrap;
}

.news-ticker--scrolling .news-marquee {
    display: inline-flex;
    width: max-content;
    max-width: none;
    white-space: nowrap;
    will-change: transform;
    animation-name: scrollNews;
    animation-duration: var(--news-duration, 30s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

.news-ticker--scrolling .news-group {
    display: inline-flex;
    white-space: nowrap;
    padding-right: 3rem;
}

.news-ticker--scrolling .news-group[aria-hidden="true"],
.news-ticker--scrolling .news-group[data-news-clone="1"] {
    display: inline-flex;
}

.news-ticker--scrolling:hover .news-marquee,
.news-ticker--scrolling:focus-within .news-marquee {
    animation-play-state: paused;
}

.news-ticker--scrolling .news-text:not(.is-empty) {
    padding-left: 100%;
    animation: scrollNewsLegacy var(--news-duration, 30s) linear infinite;
    will-change: transform;
}

.news-ticker--scrolling:hover .news-text:not(.is-empty),
.news-ticker--scrolling:focus-within .news-text:not(.is-empty) {
    animation-play-state: paused;
}

@keyframes scrollNews {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(var(--news-shift, 0px) * -1), 0, 0);
    }
}

@keyframes scrollNewsLegacy {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-100%, 0, 0);
    }
}
/* ===== NEWS ITEM LINKS ===== */
.news-item {
    color: #000;
    font-weight: 600;
    margin-right: 20px;
}

    .news-item:hover {
        text-decoration: underline;
    }

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    margin: 0 4px;
    border-radius: 3px;
}

    .badge.pdf {
        background-color: var(--brand-red);
        color: #fff;
    }

.pdf-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pdf-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: var(--brand-maroon);
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.pdf-view-link:focus {
    outline: 3px solid var(--brand-maroon);
    outline-offset: 2px;
}

.pdf-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex: 0 0 28px;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-maroon);
    transform-origin: left center;
    transform: scaleX(0);
    pointer-events: none;
    z-index: 2000;
}

html.is-navigating .page-loader {
    animation: kkr-load 0.8s ease-out;
}

@keyframes kkr-load {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    html.is-navigating .page-loader {
        animation: none;
        transform: scaleX(1);
    }

    .top-bar button,
    .top-bar a.screen-reader-btn {
        transition: none;
    }
}

.org-chart {
    list-style: none;
    padding-left: 0;
}

.org-card {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border-subtle, #ddd);
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
}

.org-depth-1 { margin-left: 1.5rem; }
.org-depth-2 { margin-left: 3rem; }
.org-depth-3 { margin-left: 4.5rem; }
.org-depth-4 { margin-left: 6rem; }
.org-depth-5,
.org-depth-6,
.org-depth-7,
.org-depth-8 { margin-left: 7.5rem; }

    .badge.new {
        background-color: #2e7d32;
        color: #fff;
    }

/* Separator */
.news-separator {
    margin: 0 16px;
    font-weight: bold;
}



/* =====================================================
   MOBILE RESPONSIVE (MUST BE LAST)
   ===================================================== */

@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .header-left img,
    .header-right img {
        height: 60px;
        width: auto;
        margin: 6px 0;
    }

    .menu {
        flex-direction: column;
    }

        .menu li a {
            text-align: center;
            padding: 10px;
        }

    .news-ticker {
        --news-duration: 25s;
    }
}
/* =====================================================
   HOME PAGE
===================================================== */
/* =====================================================
   COMMON BOX STYLE
===================================================== */

.box {
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.box-header {
    background: var(--brand-maroon-panel);
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 15px;
}

.box-link {
    text-decoration: none;
    display: block;
    color: white;
}

.box-body {
    padding: 12px;
}

.box-footer {
    padding: 8px 12px;
    background: #f6f6f6;
    text-align: right;
}

    /* Colour was left to Bootstrap's #0d6efd, which is 4.17:1 against the #f6f6f6
       this footer paints - under AA. Darker link blue is 5.96:1 here. */
    .box-footer a {
        font-weight: 600;
        text-decoration: none;
        color: var(--link-blue);
    }

/* =====================================================
   NOTIFICATIONS
===================================================== */

/* NOTIFICATION CONTAINER */
.notification-box {
    height: 700px;
    display: flex;
    flex-direction: column;
}

/* SCROLL AREA */
.notification-list {
    height: 100%;
    overflow-y: auto;
}

    /* CLEAN SCROLLBAR */
    .notification-list::-webkit-scrollbar {
        width: 6px;
    }

    .notification-list::-webkit-scrollbar-thumb {
        background: #b52b27;
        border-radius: 3px;
    }

    .notification-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

.notification-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 6px;
    border-bottom: 1px solid #eee;
    color: var(--text-body);
    font-size: 14px;
}

    .notification-item:hover {
        background: #f2f7ff;
    }

.notification-date,
.notification-date-cell {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--brand-maroon-panel);
    white-space: nowrap;
}

.notification-date-text {
    display: inline;
}

.notification-new-tag {
    background: var(--brand-red);
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    line-height: 12px;
    white-space: nowrap;
}

.notification-title {
    flex: 1 1 160px;
    min-width: 0;
}

.notification-document {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
}

.admit-box {
    background: #f4f4f4;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.admit-header {
    background: var(--brand-maroon-panel);
    color: #fff;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 15px;
}

/* Static box */

.admit-body-static {
    padding: 18px 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* #0d6efd is 4.50:1 on white but only 4.09:1 on the #f4f4f4 the admit box
   actually paints behind it. Bootstrap's own darker link blue clears it at 5.85:1. */
.admit-link-static {
    text-decoration: none;
    font-weight: 600;
    color: var(--link-blue);
    font-size: 14px;
}

    .admit-link-static:hover {
        text-decoration: underline;
    }

/* Scrollable admit list */

.admit-body-scroll {
    padding: 10px 0;
    max-height: 200px;
    overflow-y: auto;
}

    .admit-body-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .admit-body-scroll::-webkit-scrollbar-thumb {
        background-color: #bbb;
        border-radius: 3px;
    }

.kkr-admit-card-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
}

    .kkr-admit-card-item:last-child {
        border-bottom: none;
    }

    /* Same #f4f4f4 backing as .admit-link-static above - see the note there. */
    .kkr-admit-card-item a {
        text-decoration: none;
        color: var(--link-blue);
        font-weight: 500;
    }

        .kkr-admit-card-item a:hover {
            text-decoration: underline;
        }

    .kkr-admit-card-item.disabled-card {
        opacity: 0.5;
        pointer-events: none;
    }

/* =====================================================
   BADGES
===================================================== */

.urgent-badge {
    background-color: var(--brand-red);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 10px;
    border-radius: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* White on #ff9800 measured 2.16:1 - the worst pair on the site, on the chip that
   tells a candidate their admit card window shuts inside three days. The amber is
   the signal and is kept exactly; the text goes to the body ink instead, which is
   7.16:1. Darkening the amber enough for white text would have taken it to brown
   and lost the warning read. */
.closing-badge {
    background-color: #ff9800;
    color: var(--text-body);
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 10px;
    border-radius: 4px;
}

.preview-badge {
    background-color: #1976d2;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 10px;
    border-radius: 4px;
}

/* ========================= Gallery & Videos ========================= */

.gallery-title {
    background: var(--brand-maroon);
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 26px;
    font-weight: 600;
}

.gallery-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

    .gallery-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,.15);
    }

.gallery-img,
.gallery-video {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Was `outline: none`. A <video controls> is keyboard focusable, so that removed
   the only indication a keyboard user had of where they were on the Gallery page.
   The ring is drawn inset because .gallery-card sets overflow:hidden and would
   otherwise clip it; yellow on the player's black backdrop is 15.6:1. */
.gallery-video:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: -3px;
    box-shadow: none;
}

.gallery-caption {
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */

@media (max-width: 991px) {
    .gallery-img,
    .gallery-video {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .gallery-img,
    .gallery-video {
        height: 180px;
    }

    .gallery-title {
        font-size: 22px;
    }
}
/* =====================================================
   CONTACT + ADDRESS
===================================================== */

.box-body.small {
    font-size: 13px;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info a {
    color: var(--brand-blue);
    text-decoration: none;
}

    .contact-info a:hover {
        text-decoration: underline;
    }

/* =====================================================
   LAYOUT SPACING
===================================================== */


/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

/* Gallery carousel: fixed frame + cover crop so banner images cannot
   stretch the column taller than the allocated height. */
#homeImageCarousel {
    overflow: hidden;
    height: 220px;
}

#homeImageCarousel .carousel-inner,
#homeImageCarousel .carousel-item {
    height: 100%;
}

#homeImageCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 992px) {

    .notification-box {
        height: 420px;
    }

    #homeImageCarousel {
        height: 200px;
    }

    .admit-banner img {
        height: 220px;
    }
}

@media (max-width: 768px) {

    .notification-box {
        height: auto;
    }

    .notification-list {
        max-height: 300px;
    }

    #homeImageCarousel {
        height: 160px;
    }

    .admit-banner {
        margin-top: 0.75rem;
    }

    .admit-banner img {
        height: 160px;
        max-height: 42vw;
    }

    .admit-body-scroll {
        max-height: 160px;
    }
}

/* Common phone widths (320–430px): keep cover images compact so they
   do not dominate the stacked homepage. */
@media (max-width: 430px) {

    #homeImageCarousel {
        height: 140px;
    }

    .admit-banner img {
        height: 140px;
        max-height: 38vw;
    }

    .contact-info p {
        margin-bottom: 0.6rem;
        word-break: break-word;
    }
}
/* ================= NIC STYLE FOOTER ================= */

.nic-footer {
    margin-top: 30px;
    font-size: 13px;
}

/* Govt Logos Row */
.footer-logos {
    background: #ffffff;
    padding: 15px 0;
    border-top: 2px solid var(--brand-blue);
}

    .footer-logos img {
        height: 80px;
        width: auto;
        margin: 0 12px;
    }

/* Links Bar
   Was #b8860b behind #ffffff: 3.26:1, an AA failure on eight 13px links that
   include Website Policies and Web Information Manager. Darkened to 4.96:1 at
   the same ~43deg hue - the one dark gold now shared with .footer-stats and
   .dropdown-menu.

   The anchors were bare inline text: a 13px line box is roughly 15px tall, so
   every one of these was a sub-fingertip target on a phone. inline-block plus
   padding gives the 44px height, and the horizontal padding keeps adjacent
   links from being one continuous strip of hit area. */
.footer-links {
    background: var(--brand-gold-dark);
    padding: 4px 0;
}

    .footer-links a {
        color: #ffffff;
        display: inline-block;
        min-height: 44px;
        padding: 12px 8px;
        line-height: 20px;
        margin: 0 4px;
        font-weight: 600;
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

/* NIC Credit */
.footer-nic {
    background: var(--brand-maroon);
    color: #ffffff;
    padding: 10px 0;
}

    .footer-nic p {
        margin: 2px 0;
    }

/* Stats - same 3.26:1 -> 4.96:1 correction as the links bar above. */
.footer-stats {
    background: var(--brand-gold-dark);
    color: #ffffff;
    padding: 6px 0;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .footer-logos img {
        height: 30px;
        width: auto;
        margin: 6px;
    }

    .footer-stats .text-start,
    .footer-stats .text-end {
        text-align: center !important;
    }
}
.captcha-box {
    background-color: #f2f2f2;
    padding: 10px 18px;
    font-weight: bold;
    letter-spacing: 3px;
    border-radius: 4px;
    user-select: none;
}
/* ================= About us================= */
.page-title {
    color: var(--brand-maroon);
    font-weight: 600;
    margin-bottom: 20px;
}

/* The portraits used to set only a width. The height="360" attribute then
   stayed in force, and the default object-fit (fill) stretched each photograph
   into that tall box. Height follows the file, so a square portrait stays square
   and a taller one stays taller. */
.chairman-img {
    width: 220px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
    border: 3px solid var(--brand-maroon);
    padding: 6px;
    background: #fff;
    box-sizing: border-box;
}

/* Paragraphs typed in Super Admin are stored with their line breaks. An inline
   style cannot apply them: style-src-attr is 'none'. */
.cms-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.cms-thumb {
    width: 140px;
    height: 105px;
    object-fit: contain;
    object-position: center center;
    background: #f4f4f4;
    border: 1px solid var(--border-subtle);
}

.cms-preview {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #f4f4f4;
    border: 1px solid var(--border-subtle);
}
/* Feedback Form Styling */

.feedback-container {
    max-width: 700px;
    margin: 40px auto;
    background: #f9f9f9;
    padding: 25px 35px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .feedback-container label {
        font-weight: 600;
        margin-bottom: 5px;
    }

    .feedback-container .form-control {
        height: 38px;
        font-size: 14px;
    }

    .feedback-container textarea.form-control {
        height: 120px;
        resize: vertical;
    }

.feedback-submit-btn {
    background-color: var(--brand-maroon);
    border: none;
    padding: 8px 30px;
    font-weight: 500;
}

    /* Hover was #d89c00, which dropped the button's .text-white to 2.42:1 - the
       label vanished at the moment the pointer was on it. Same gold family,
       4.96:1. */
    .feedback-submit-btn:hover {
        background-color: var(--brand-gold-dark);
    }
.slide-box {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

    .slide-box.show {
        max-height: 120px;
        opacity: 1;
    }

.feedback-footer {
    margin-top: 25px;
    font-size: 14px;
}

/* Site map Styling */
.sitemap-title {
    border: 2px solid #8B2A2A;
}

.sitemap-navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-item {
    text-align: center;
}

.nav-item-title {
    background: var(--sitemap-teal);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* TREE */

.tree {
    list-style: none;
    margin-top: 15px;
    margin-left: 15px;
}

    .tree li {
        position: relative;
        padding: 8px 15px;
        margin: 10px 0;
        border: 2px solid var(--sitemap-teal);
        border-radius: 6px;
        background: #f7f7f7;
        width: 240px;
    }

        .tree li::before {
            content: '';
            position: absolute;
            left: -15px;
            top: 0;
            width: 2px;
            height: 100%;
            background: var(--sitemap-teal);
        }

        .tree li::after {
            content: '';
            position: absolute;
            left: -15px;
            top: 20px;
            width: 15px;
            height: 2px;
            background: var(--sitemap-teal);
        }

        .tree li.wide {
            width: 300px;
        }
.admit-banner img {
    width: 100%;
    height: 360px; /* Desktop: matches Gallery column visual weight */
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* =====================================================
   "NEW" NAV BADGE
   Moved out of an inline <style> block in _Header.cshtml. style-src carries
   'self' and a per-request nonce and no 'unsafe-inline', so a page-level <style>
   tag applies only while it carries that nonce; a rule this static has no reason
   to depend on one.

   Colour was #ff0000, which is 4.00:1 behind the white text and fails AA; #d32f2f
   is 4.98:1 and is already the red used by .urgent-badge and .news-label.
   ===================================================== */
.menu-new-tag {
    background: var(--brand-red);
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 4px;
    vertical-align: top;
    display: inline-block;
    line-height: 12px;
}

/* =====================================================
   MOBILE NAV TOGGLE
   .menu was already flex-direction:column on mobile (see the existing
   @media (max-width: 768px) block above) but with no way to hide it - the full
   list, including the "About Us" dropdown, rendered permanently open above the
   page content. Hidden by default below 768px; site.js toggles .menu-open on
   .ssc-navbar and mirrors the state onto aria-expanded on the button.
   ===================================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px 14px;
    margin-left: auto;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .ssc-navbar .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-toggle {
        display: block;
    }

    .menu {
        display: none;
        width: 100%;
    }

    .ssc-navbar.menu-open .menu {
        display: flex;
    }
}

/* =====================================================
   EMPTY STATE
   Shared look for "no results" messaging - notifications, FAQs, and any other
   list that can legitimately come back empty. Previously these left a blank
   void with no explanation; on the homepage in particular this produced a
   visibly lopsided layout next to the fully-populated Gallery/Contact column.
   ===================================================== */
.empty-state {
    padding: 32px 16px;
    text-align: center;
    /* Not Bootstrap's #6c757d. That is 4.54:1 on pure white - which passes by
       0.04 - and these panels sit on the off-white box backgrounds used across
       the site, where it measures 4.26:1 and fails. Measured in the browser,
       not read off a palette. #5b6167 is 5.06:1 on #f6f6f6. */
    color: #5b6167;
}

/* =====================================================
   AUDIT TRAIL COLUMN WIDTHS

   These were style attributes on the <th> elements of the three tables in
   Pages/SuperAdmin/AuditTrail/Index.cshtml. style-src carries 'self' and a
   per-request nonce and no 'unsafe-inline', and style-src-attr is 'none', so the
   browser refuses a style attribute outright - and CSP has no way to nonce one,
   which leaves a stylesheet or a nonced <style> element as the only places a
   rule can live. Values are unchanged from the attributes they replace.

   Named for what the column holds rather than for how wide it is, matching the
   .notif-col-* and .news-col-* groups in admin.css. Several of these measure the
   same number of pixels and are still separate rules: they are separate
   decisions about separate columns, and narrowing the address column later
   should not silently narrow the two name columns with it.

   Nothing in vendored Bootstrap sets a width on a table cell, so plain class
   specificity is enough here - unlike the style attributes, which outranked
   every class selector by construction.
   ===================================================== */

.audit-col-when {
    width: 160px;
}

.audit-col-actor {
    width: 140px;
}

.audit-col-role {
    width: 100px;
}

.audit-col-action {
    width: 110px;
}

.audit-col-status {
    width: 100px;
}

.audit-col-uploader {
    width: 140px;
}

.audit-col-ip {
    width: 140px;
}

.audit-col-outcome {
    width: 90px;
}

/* =====================================================
   REDUCED MOTION (WCAG 2.3.3)
   Last in the file so it wins over the animation and transition declarations
   above without needing !important.
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    /* Blinks once a second, which is both a vestibular trigger and unreadable
       for anyone who needs longer than 500ms to read "Last 24 Hours". */
    .urgent-badge {
        animation: none;
        opacity: 1;
    }

    .gallery-card,
    .slide-box,
    .top-bar button {
        transition: none;
    }

        .gallery-card:hover {
            transform: none;
        }

    /* Reduced-motion default is static, but an explicit scroll opt-in
       (.news-ticker--scrolling) must still be allowed to animate. */
    .news-ticker:not(.news-ticker--scrolling) {
        white-space: normal;
        overflow: visible;
    }

    .news-ticker:not(.news-ticker--scrolling) .news-marquee,
    .news-ticker:not(.news-ticker--scrolling) .news-text:not(.is-empty) {
        animation: none;
        transform: none;
        padding-left: 0;
        display: block;
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

    .news-ticker:not(.news-ticker--scrolling) .news-marquee .news-group {
        display: block;
        white-space: normal;
        padding-right: 0;
    }

    .news-ticker:not(.news-ticker--scrolling) .news-marquee .news-group[aria-hidden="true"] {
        display: none;
    }
}
/* =====================================================
   TOUCH TARGETS ON BOOTSTRAP CONTROLS

   The site-wide controls that come from vendored Bootstrap rather than from
   this stylesheet: .btn renders 38px tall, .btn-sm 31px, .form-control 38px.
   All three are below the 44x44 that WCAG 2.5.5 asks for, and they are what
   the grievance portal's exam picker, its Continue button and the news
   strip's pause control actually are - so the page-specific 44px rules added
   elsewhere never reached them.

   Scoped to the touch breakpoint rather than applied globally. Unconditional
   would be defensible on the same grounds the accessibility toolbar uses (a
   shaky hand is not a mobile-only condition), but it would resize every
   button on every desktop screen of the site, which is a visual change well
   beyond the accessibility fix and is not what this is for.
   ===================================================== */

@media (max-width: 768px) {

    .btn,
    .btn-sm,
    .form-control,
    .form-select {
        min-height: 44px;
    }

    /* Buttons centre their label once a min-height is forcing them taller than
       their padding; without this the text sits at the top of the box. */
    .btn,
    .btn-sm {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* w-100 buttons must keep filling their row, which inline-flex would
       otherwise shrink to content. */
    .btn.w-100 {
        display: flex;
    }
}
