/* #8 Odia web font - must stay the first rule of this file (CSS @import rule).
   Added Oct 2026 - see DESIGN ENHANCEMENTS block at the bottom. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Oriya:wght@300..800&display=swap');

/* High Contrast Screen Reader Mode */
.screen-reader-mode {
    background: black !important;
    color: yellow !important;
    font-size: 120% !important;
}

/* Dark Mode */
.dark-mode {
    background: #111;
    color: #eee;
}

/* body, p, span, a, li, div, button, input, table, td, th {
    font-size: inherit !important;
} */

/* ==========================================================================
   DESIGN ENHANCEMENTS - Oct 2026 (CSS only, no .cshtml change)
   #5 Sub-menu design   #7 Icons / Tabs   #8 Paragraph & font
   All rules are additive overrides. Delete this block to roll back.
   Font sizes are NOT forced, so the A- / A / A+ tool keeps working.
   ========================================================================== */

/* ---------- #8 Fonts: same Odia font on every device ---------- */
/* Open Sans / Poppins have no Odia letters, so Odia text fell back to
   whatever the OS had (Kalinga, Nirmala UI, Noto...). Noto Sans Oriya is
   loaded by the @import at the top of this file. */
:root {
    --font-default: 'Open Sans', 'Noto Sans Oriya', sans-serif;
    --font-heading: 'Poppins', 'Noto Sans Oriya', sans-serif;
}

/* ---------- #5 Main menu: tighter spacing on 1024-1365px laptop screens
   so it wraps less (Odia labels are long) ---------- */
@media (min-width: 1024px) and (max-width: 1365px) {
    #mainNav > li {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
}

/* ---------- #5 Sub-menu (desktop, >= 1024px) ---------- */
@media (min-width: 1024px) {

    nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu {
        border: 0;
        border-top: 3px solid var(--dark-secondary);
        border-radius: 0 0 8px 8px;
        padding: 6px 0 !important;
        box-shadow: 0 12px 28px rgba(0, 33, 71, 0.18);
        overflow: visible;
    }

    /* small pointer above the panel */
    nav.navbar.validnavs ul.nav > li.dropdown > ul.dropdown-menu::before {
        content: "";
        position: absolute;
        top: -9px;
        left: 24px;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid var(--dark-secondary);
    }

    nav.navbar.validnavs ul li.dropdown ul.dropdown-menu li a {
        position: relative;
        display: block;
        padding: 9px 16px 9px 18px !important;
        line-height: 1.45;
        border-bottom: 1px solid #eef1f5;
        border-left: 3px solid transparent;
        color: var(--dark);
        transition: background-color .2s ease, border-color .2s ease, color .2s ease, padding-left .2s ease;
    }

    nav.navbar.validnavs ul li.dropdown ul.dropdown-menu li:last-child > a {
        border-bottom: 0;
    }

    /* hover / keyboard focus - replaces the old 8 stacked gradients and the
       font-size jump to 16px that moved the whole list */
    nav.navbar.validnavs ul li.dropdown ul.dropdown-menu li a:hover,
    nav.navbar.validnavs ul li.dropdown ul.dropdown-menu li a:focus-visible,
    nav.navbar.validnavs ul li.dropdown ul.dropdown-menu li.dropdown:hover > a {
        background: #fff7e6 !important;
        background-image: none !important;
        border-left-color: var(--color-primary);
        color: var(--dark-secondary) !important;
        padding-left: 22px !important;
        font-size: 15px; /* same as normal state (bootsnav); old hover jumped to 16px */
        outline: none;
    }

    /* arrow on items that open a 3rd level (pure CSS, no icon font needed) */
    nav.navbar.validnavs ul.dropdown-menu li.dropdown > a.dropdown-toggle::after {
        content: "";
        display: block;
        position: absolute;
        right: 14px;
        top: 50%;
        width: 7px;
        height: 7px;
        margin: -4px 0 0;
        border: 0;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: .6;
    }

    /* 3rd level panel: accent on the left instead of the top */
    nav.navbar.validnavs ul.dropdown-menu ul.dropdown-menu {
        border-top: 0 !important;
        border-left: 3px solid var(--color-primary) !important;
        border-radius: 0 8px 8px 0 !important;
    }

    /* top-level item stays highlighted while its sub-menu is open */
    /* (underline in the text colour, so it works on both the navy and the
       gold menu bar) */
    nav.navbar.validnavs ul.nav > li.dropdown:hover > a,
    nav.navbar.validnavs ul.nav > li.dropdown:focus-within > a {
        box-shadow: inset 0 -2px 0 currentColor;
    }
}

/* ---------- #5 Sub-menu (mobile side menu, < 1024px) ---------- */
@media (max-width: 1023px) {
    nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu {
        border-left: 3px solid var(--color-primary) !important;
        margin-left: 6px;
        background: #f8fafc;
    }

        nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu li a {
            padding: 9px 12px !important;
            border-bottom: 1px solid #e9eef4;
            line-height: 1.45;
        }
}

/* ---------- #5 Sub-menu - Dark mode ---------- */
body.dark-mode nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu {
    background: #2b2c2e !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
}

body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu li a {
    border-bottom-color: #3d3e40;
}

    body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu li a:hover,
    body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu li a:focus-visible {
        background: #3a3020 !important;
        color: #ffb606 !important;
    }
/* ---------- #5 Sub-menu: odd / even row colours ----------
   Odd rows = gold tint, even rows = light blue, by default.
   Hover / keyboard focus = same hue, slightly deeper.
   Each nested list starts its own odd/even count. */

/* DEFAULT (no hover) */
nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(odd) > a {
    background: #fff1cc !important; /* odd  - gold tint */
    background-image: none !important;
   
}

nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(even) > a {
    background: #dce8fa !important; /* even - navy tint */
    background-image: none !important;
  
}

/* HOVER / FOCUS (same colour family, a bit deeper) */
nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(odd) > a:hover,
nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(odd) > a:focus-visible,
nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li.dropdown:nth-child(odd):hover > a {
    background: #efcb7c !important;
    background-image: none !important;
    border-left-color: var(--color-primary);
}

nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(even) > a:hover,
nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(even) > a:focus-visible,
nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li.dropdown:nth-child(even):hover > a {
    background: #92b6e8 !important;
    background-image: none !important;
    border-left-color: var(--dark-secondary);
}

/* Dark mode - default */
body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(odd) > a {
    background: #3a3020 !important;
    color: #ffb606 !important;
}

body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(even) > a {
    background: #1f3350 !important;
    color: #8ec1ff !important;
}

/* Dark mode - hover / focus */
body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(odd) > a:hover,
body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(odd) > a:focus-visible {
    background: #4a3d26 !important;
    color: #ffc933 !important;
}

body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(even) > a:hover,
body.dark-mode nav.navbar.validnavs ul li.dropdown ul.dropdown-menu > li:nth-child(even) > a:focus-visible {
    background: #29456b !important;
    color: #a9d0ff !important;
}

/* ---------- #7 Icons: home page stat cards ----------
   Before: the icon floated on the card with no background until hover.
   Now: a soft gold tile behind every icon (same 80px rounded shape that
   style.css already uses on hover), so the row looks finished at rest. */
.stats-card .icon-box {
    background: rgba(249, 170, 0, 0.12);
    transition: background-color .25s ease;
}

body.dark-mode .stats-card .icon-box {
    background: rgba(255, 182, 6, 0.15);
}

/* ---------- #7 Icons: accessibility top bar buttons ---------- */
.custom_btn_resize,
.custom_btn_facilities {
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

    .custom_btn_resize:hover,
    .custom_btn_facilities:hover {
        box-shadow: 0 0 0 2px rgba(249, 170, 0, .6);
    }

    .custom_btn_resize:focus-visible,
    .custom_btn_facilities:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

/* ---------- #7 Tabs: left-side vertical tabs (Committees, IQAC, Programme,
   Library, Departments ...). Only .flex-column lists, so the horizontal
   pills on Outreach are not touched. ---------- */
.vertical_tabination .nav-pills.flex-column .nav-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    line-height: 1.45;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 33, 71, .08);
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .vertical_tabination .nav-pills.flex-column .nav-link:hover {
        box-shadow: 0 4px 12px rgba(0, 33, 71, .12);
    }

    .vertical_tabination .nav-pills.flex-column .nav-link.active {
        box-shadow: 0 6px 16px rgba(2, 43, 109, .28);
    }

.vertical_tabination .nav-pills .nav-link:focus-visible,
.nav-tabs .nav-link:focus-visible,
.nav-pills .nav-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- #7 Tabs: horizontal tabs (Contact Us: Contact / Feedback / Support) ----------
   Plain .nav-tabs only - the pill-style tabs on Outreach (.nav-tabs.nav-pills)
   are left alone. Bootstrap blue replaced with the site navy + gold. */
.nav.nav-tabs:not(.nav-pills) {
    border-bottom: 2px solid #e5e9f0;
}

    .nav.nav-tabs:not(.nav-pills) .nav-link {
        border: 0 !important;
        border-bottom: 3px solid transparent !important;
        margin-bottom: -2px;
        border-radius: 6px 6px 0 0;
        font-weight: 600;
        color: #555;
        transition: color .2s ease, border-color .2s ease, background-color .2s ease;
    }

        .nav.nav-tabs:not(.nav-pills) .nav-link:hover {
            color: var(--dark);
            border-bottom-color: rgba(249, 170, 0, .5) !important;
            background: #fffaf0;
        }

        .nav.nav-tabs:not(.nav-pills) .nav-link.active {
            color: var(--dark);
            border-bottom-color: var(--color-primary) !important;
            background: transparent;
        }

body.dark-mode .nav.nav-tabs:not(.nav-pills) {
    border-bottom-color: #3d3e40;
}

    body.dark-mode .nav.nav-tabs:not(.nav-pills) .nav-link {
        color: #ddd;
    }

        body.dark-mode .nav.nav-tabs:not(.nav-pills) .nav-link.active,
        body.dark-mode .nav.nav-tabs:not(.nav-pills) .nav-link:hover {
            color: #ffb606;
            background: transparent;
        }

/* ---------- #8 Paragraphs in CMS content ---------- */
/* Content typed or pasted (often from MS Word) into the CMS sits inside
   .groupattribute. Word adds class="MsoNormal" and inline
   line-height:normal / margins, which made the text cramped. */
.groupattribute p,
.groupattribute li {
    line-height: 1.8 !important;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.groupattribute p {
    margin: 0 0 14px !important;
}

    .groupattribute p:empty {
        display: none;
    }

/* stray Word fonts (Calibri, Times New Roman, Arial...) -> site font */
.groupattribute [style*="font-family"]:not(i):not([class*="fa"]) {
    font-family: inherit !important;
}

.groupattribute ul,
.groupattribute ol {
    padding-left: 1.4em;
    margin-bottom: 14px;
}

.groupattribute h1, .groupattribute h2, .groupattribute h3,
.groupattribute h4, .groupattribute h5, .groupattribute h6 {
    line-height: 1.4;
    margin: 18px 0 10px;
}

/* narrow cards: left aligned reads better than justified */
@media (max-width: 767px) {
    .groupattribute p,
    .groupattribute li {
        text-align: left;
    }
}

/* ---------- #4 Approver review page - change navigator bar ----------
   (bar is added by functional_script.js on /cms/ContentWorkflow/Compare) */
.wfx-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin: -4px 0 14px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    font-size: 13px;
    color: #0f172a;
}

.wfx-legend,
.wfx-navs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.wfx-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

    .wfx-key::before {
        content: "";
        width: 22px;
        height: 12px;
        border-radius: 2px;
    }

.wfx-key-add::before {
    background: #c9f5d0;
    border-bottom: 2px solid #15803d;
}

.wfx-key-del::before {
    background: #ffd9dc;
    border-bottom: 2px solid #b91c1c;
}

.wfx-key-cur::before {
    background: transparent;
    outline: 3px solid #f59e0b;
    outline-offset: -3px;
}

.wfx-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 12px;
    border-radius: 999px;
    background: #f5f5f4;
}

    .wfx-nav[data-side="new"] {
        background: #dcfce7;
        color: #166534;
    }

    .wfx-nav[data-side="old"] {
        background: #fee2e2;
        color: #991b1b;
    }

    .wfx-nav.wfx-empty {
        background: #f5f5f4;
        color: #78716c;
    }

.wfx-nav-label {
    font-weight: 700;
}

.wfx-count {
    min-width: 92px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wfx-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

    .wfx-btn:hover:not(:disabled) {
        background: #0f172a;
        color: #fff;
    }

    .wfx-btn:focus-visible {
        outline: 2px solid #f59e0b;
        outline-offset: 2px;
    }

    .wfx-btn:disabled {
        opacity: .4;
        cursor: default;
    }

.wfx-hint {
    color: #78716c;
}

    .wfx-hint kbd {
        padding: 1px 6px;
        border: 1px solid #d6d3d1;
        border-bottom-width: 2px;
        border-radius: 4px;
        background: #fafaf9;
        color: #0f172a;
        font-size: 11px;
    }

/* the page already sets .wf-split height from 100vh - 230px;
   take the extra bar into account so the bottom buttons stay visible */
.wfx-bar.wfx-ready ~ .wf-split {
    height: calc(100vh - 290px);
}

@media (max-width: 760px) {
    .wfx-hint {
        display: none;
    }

    .wfx-bar.wfx-ready ~ .wf-split {
        height: auto;
    }
}

/* ==========================================================================
   DEPARTMENT PAGE - SUBJECT BOXES (Oct 2026, CSS only, no .cshtml change)
   Target : .acg_content_card > ul.bullet_points > ul > li
            (Major Subjects / Minor Subjects lists)
   Scope  : ONLY the Department page. functional_script.js adds the class
            "hed-page-departments" to <body> when the URL ends in /Departments,
            so these rules do nothing on any other page.
   Size   : every box is 200px - 300px wide.
            flex: 1 1 200px  -> starts at 200px; the spare width in a row is
                                shared out in equal fractions (flex-grow 1)
            max-width: 300px -> a box never grows past 300px
   ========================================================================== */

/* the inner <ul> becomes a wrapping flex row */
body.hed-page-departments .acg_content_card > ul.bullet_points > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 12px 0 28px;
    padding: 0;
}

/* each subject = one box */
body.hed-page-departments .acg_content_card > ul.bullet_points > ul > li {
    flex: 1 1 200px;
    min-width: min(200px, 100%); /* on very small phones the box may be narrower than 200px rather than overflow */
    max-width: 300px;
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    margin: 0;
    padding: 12px 16px 12px 44px;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-left: 4px solid var(--color-primary);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 33, 71, 0.06);
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* every second box gets a navy accent instead of gold */
body.hed-page-departments .acg_content_card > ul.bullet_points > ul > li:nth-child(even) {
    border-left-color: var(--dark-secondary);
}

/* keep the existing tick icon from style.css (.bullet_points li::before),
   just centre it vertically inside the box */
body.hed-page-departments .acg_content_card > ul.bullet_points > ul > li::before {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

body.hed-page-departments .acg_content_card > ul.bullet_points > ul > li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 33, 71, 0.12);
}

/* dark mode (style.css already makes the text white there) */
body.dark-mode.hed-page-departments .acg_content_card > ul.bullet_points > ul > li {
    background: #2b2c2e;
    border-color: #3d3e40;
    border-left-color: #ffb606;
    box-shadow: none;
}

body.dark-mode.hed-page-departments .acg_content_card > ul.bullet_points > ul > li:nth-child(even) {
    border-left-color: #8ec1ff;
}
