/* =====================================================================
   GMC NANDED — HEADER / NAV / ANNOUNCEMENT BAR
   Recreated to match the supplied reference screenshot, fully responsive.
   Colors were sampled directly from the reference image.
===================================================================== */

:root {
    --gmc-teal-dark:   #045573;   /* deep blue-teal (right side of top bar / announcement bg) */
    --gmc-teal:        #0b7593;   /* nav bar teal */
    --gmc-teal-light:  #0e8aa8;   /* pause button circle */
    --gmc-teal-green:  #067e75;   /* left side of top-bar gradient */
    --gmc-orange:      #cb7803;   /* active "Home" tab */
    --gmc-orange-light:#e0912c;   /* affiliation text */
    --gmc-gold:        #fec54b;   /* Announcements label chip */
    --gmc-gold-dark:   #f5a300;
    --gmc-white:       #ffffff;
    --gmc-offwhite:    #f4f6f6;
    --header-maxw:     100%;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* =====================================================================
   TOP HEADER (contact / search / social / accessibility / language)
===================================================================== */

.topHeader {
    background: linear-gradient(100deg, var(--gmc-teal-green) 0%, var(--gmc-teal) 45%, var(--gmc-teal-dark) 100%);
    color: var(--gmc-white);
    font-size: 14px;
    padding: 8px 0;
}

.topHeader .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

.topHeader .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 8px;
}

.topHeader ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--gmc-white);
    font-weight: 400;
}

.contact-link {
    color: var(--gmc-white);
    text-decoration: none;
    white-space: nowrap;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--gmc-gold);
    text-decoration: none;
}

.contact-link strong { font-weight: 600; }

.topRightHeader {
    display: flex;
    justify-content: flex-end;
}

.commonPanel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    float: none !important;
    margin-top: 0 !important;
}

/* ---------- Search box ---------- */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 6px;
}

.search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: var(--gmc-white);
    color: #333;
    font-size: 13px;
    height: 30px;
    transition: width .3s ease, opacity .3s ease, padding .3s ease;
}

.search-input.active {
    width: 180px;
    opacity: 1;
    padding: 0 12px;
    margin-right: 6px;
}

.search-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--gmc-white);
    text-decoration: none;
}

.search-icon { font-size: 15px; }

.searchList {
    position: absolute;
    top: 36px;
    right: 0;
    min-width: 240px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--gmc-white);
    color: #222;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    z-index: 999;
}

/* ---------- Follow us / socials ---------- */

.follow-us {
    padding: 0 8px;
    white-space: nowrap;
    font-size: 13px;
}

.p-8px {
    padding: 0 8px;
    color: var(--gmc-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.social-icon {
    font-size: 15px;
    color: var(--gmc-white);
    transition: color .2s ease, transform .2s ease;
}

.p-8px:hover .social-icon {
    color: var(--gmc-gold);
    transform: translateY(-1px);
}

/* ---------- Accessibility trigger ---------- */

.accessibility-trigger {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.18);
    color: var(--gmc-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    cursor: pointer;
    transition: background .2s ease;
}

.accessibility-trigger:hover { background: rgba(255,255,255,.32); }

#access-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    z-index: 99998 !important;
    transition: opacity .3s ease, visibility .3s ease;
}

#access-overlay.show {
    opacity: 1;
    visibility: visible;
}

#access-panel {
    position: fixed !important;
    top: 0 !important;
    left: auto !important;
    bottom: auto !important;
    right: 0 !important;
    margin: 0 !important;
    width: 320px;
    max-width: 90vw;
    height: 100vh !important;
    background: var(--gmc-white);
    box-shadow: -4px 0 20px rgba(0,0,0,.25);
    z-index: 99999 !important;
    overflow-y: auto;
    transform: translateX(110%);
    visibility: hidden;
    opacity: 0;
    transition: transform .3s ease, visibility .3s ease, opacity .3s ease;
}

#access-panel.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.access-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--gmc-teal);
    color: var(--gmc-white);
}

.access-panel-header h2 { font-size: 17px; margin: 0; }

#close-panel {
    background: none;
    border: none;
    color: var(--gmc-white);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.access-panel-body { padding: 16px 18px; }

.acc-section { margin-bottom: 18px; }

.acc-section-title {
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    color: var(--gmc-teal-dark);
    margin-bottom: 8px;
}

.acc-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
}

.acc-step-btn {
    border: none;
    background: var(--gmc-offwhite);
    border-radius: 6px;
    width: 34px;
    height: 30px;
    cursor: pointer;
    font-weight: 600;
}

.acc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.acc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: var(--gmc-white);
    font-size: 12px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.acc-btn:hover,
.acc-btn.active { border-color: var(--gmc-teal); background: #eaf6f8; }

.acc-icon { font-size: 17px; }

.acc-reset-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--gmc-orange);
    color: var(--gmc-white);
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
}

#reading-guide-bar {
    position: fixed;
    left: 0;
    width: 100%;
    height: 32px;
    background: rgba(255, 236, 148, .55);
    border-top: 2px solid #f5a300;
    border-bottom: 2px solid #f5a300;
    pointer-events: none;
    z-index: 100000;
    display: none;
}

/* =====================================================================
   ACCESSIBILITY FEATURE EFFECTS
   Applied to <html> by gmc-header.js. Color/contrast modes are mutually
   exclusive; reading-aid and navigation classes combine freely.
===================================================================== */

/* ---------- Color & contrast (only one active at a time) ---------- */

html.acc-dark-mode {
    filter: invert(1) hue-rotate(180deg);
    background: #111;
}

html.acc-dark-mode img,
html.acc-dark-mode video,
html.acc-dark-mode svg,
html.acc-dark-mode iframe,
html.acc-dark-mode picture {
    filter: invert(1) hue-rotate(180deg);
}

html.acc-invert { filter: invert(1); }

html.acc-grayscale { filter: grayscale(1); }

html.acc-high-contrast { filter: contrast(1.6) brightness(1.05); }

html.acc-saturate { filter: saturate(2.2); }

/* ---------- Reading aids ---------- */

html.acc-highlight-links a {
    outline: 2px solid #f5a300 !important;
    background: #fff6d8 !important;
    color: #7a4b00 !important;
    text-decoration: underline !important;
}

html.acc-line-spacing body,
html.acc-line-spacing p,
html.acc-line-spacing li,
html.acc-line-spacing td,
html.acc-line-spacing div {
    line-height: 2 !important;
}

html.acc-letter-spacing,
html.acc-letter-spacing * {
    letter-spacing: .12em !important;
}

html.acc-readable-font,
html.acc-readable-font * {
    font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
}

html.acc-hide-images img,
html.acc-hide-images picture,
html.acc-hide-images video {
    visibility: hidden !important;
}

/* ---------- Navigation aids ---------- */

html.acc-stop-animations *,
html.acc-stop-animations *::before,
html.acc-stop-animations *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
}

html.acc-big-cursor,
html.acc-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M2 2 L2 20 L7 16 L10 22 L13 21 L10 15 L16 15 Z' fill='black' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") 2 2, auto !important;
}

/* ---------- Language switch ---------- */

.languageBox {
    color: var(--gmc-white);
    text-decoration: none;
    font-weight: 600;
    border-left: 1px solid rgba(255,255,255,.4);
    padding-left: 12px;
    white-space: nowrap;
}

.languageBox:hover { color: var(--gmc-gold); }

/* ---------- Skip link ---------- */

.skip-content {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--gmc-white);
    color: var(--gmc-teal-dark);
    padding: 8px 14px;
    border-radius: 4px;
    z-index: 2000;
}

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

/* =====================================================================
   MAIN LOGO / BRAND HEADER
===================================================================== */

.header-nav {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.72),
            rgba(255, 255, 255, 0.72)
        ),
        url('/storage/uploads/header-bg.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-nav-wrapper {
    padding: 18px 0;
}

.header-nav .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

.header-logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 16px;
    min-height: 125px;
}

.logoLeft { display: flex; }

.college-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.college-emblem {
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.college-text { display: flex; flex-direction: column; gap: 4px; }

.college-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gmc-orange);
    letter-spacing: .2px;
}

.college-affiliation {
    font-size: 13px;
    font-weight: 600;
    color: var(--gmc-orange-light);
    line-height: 1.5;
}

.ashoka-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ashoka-main-logo {
    /* height: 78px; */
    width: auto;
    object-fit: contain;
}

.logoRight {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
}

.outside_link { display: inline-flex; align-items: center; }

.right-gov-logo {
    height: 78px;
    width: auto;
    object-fit: contain;
    transition: transform .2s ease;
}

.outside_link:hover .right-gov-logo { transform: translateY(-2px); }

.digital-logo { height: 78px; }

/* =====================================================================
   NAVIGATION MENU
===================================================================== */

.menuSection {
    background: var(--gmc-teal);
    position: relative;
    z-index: 500;
}

.menuSection .container-fluid.bg-white { background: transparent !important; }

.menuzord-mobile-toggle,
.gmc-mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    background: transparent;
    color: var(--gmc-white);
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.menuzord {
    background: transparent;
    padding: 0;
}

.menuzord-menu {
    list-style: none;
    /* display: flex; */
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.menuzord-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: var(--gmc-white);
    text-decoration: none;
    font-size: 16.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.menuzord-menu > li.active > a {
    background: var(--gmc-orange);
    color: var(--gmc-white);
    font-weight: 500;
}

.menuzord-menu > li.active:hover > a,
.menuzord-menu > li.active:focus-within > a {
    background: #b56a02;
}

.menuzord-menu > li:not(.active):hover > a,
.menuzord-menu > li:not(.active):focus-within > a {
    background: rgba(255,255,255,.14);
    color: var(--gmc-gold);
}

.menuzord-menu > li > a::after {
    content: "";
}

.dropdown {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 230px;
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
    border-radius: 0 0 6px 6px;
}

.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #16414f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.dropdown li a:hover {
    background: var(--gmc-offwhite);
    color: var(--gmc-teal);
}

.dropdown li.active > a,
.dropdown li.active > a:hover {
    background: var(--gmc-orange) !important;
    color: var(--gmc-white) !important;
}

.dropdown li .dropdown {
    border-radius: 6px;
}

/* ---------- Desktop: hover/focus reveal + flyout positioning ----------
   Forced with !important so this is the ONLY authority on positioning,
   regardless of any other stylesheet (e.g. a bundled menu-plugin skin)
   that might also try to position these elements. This was previously
   missing here, which is why the level-2 flyout ("Introduction") could
   land in the wrong spot. */

@media (min-width: 992px) {

    .menuzord-menu li { position: relative !important; }

    .menuzord-menu > li > .dropdown {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        max-height: 420px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin;
        scrollbar-color: var(--gmc-teal) var(--gmc-offwhite);
    }

    .menuzord-menu > li > .dropdown::-webkit-scrollbar {
        width: 8px;
    }

    .menuzord-menu > li > .dropdown::-webkit-scrollbar-track {
        background: var(--gmc-offwhite);
    }

    .menuzord-menu > li > .dropdown::-webkit-scrollbar-thumb {
        background: var(--gmc-teal);
        border-radius: 4px;
    }

    .menuzord-menu > li:hover > .dropdown,
    .menuzord-menu > li:focus-within > .dropdown {
        display: block !important;
    }

    .menuzord-menu li .dropdown li > .dropdown {
        display: none !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background-color: #f4f6f6 !important;
        background-image: none !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .menuzord-menu li .dropdown li > .dropdown li a {
        padding-left: 32px;
    }

    .menuzord-menu li .dropdown li:hover > .dropdown,
    .menuzord-menu li .dropdown li:focus-within > .dropdown,
    .menuzord-menu li .dropdown li.open > .dropdown {
        display: block !important;
    }
}

.menuzord-menu a.external-link::after {
    content: " ↗";
    font-size: 12px;
}

.menuzord-menu,
.menuzord-menu .dropdown {
    z-index: 9999;
}

/* ===========================
   MOBILE SUBMENU
   (single authoritative block — merged with your custom teal skin;
   the duplicate block further down that conflicted with this one
   has been removed)
=========================== */
@media (max-width: 991px) {

    .menuSection .container-fluid.bg-white {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .menuzord-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--gmc-teal-dark);
    }

    .menuzord-menu.open { display: flex; }

    .menuzord-mobile-toggle,
    .gmc-mobile-nav-toggle { display: flex; }

    .menuzord-menu > li {
        display: block;
        width: 100%;
    }

    .menuzord-menu > li > a { width: 100%; padding: 13px 20px; }

    .dropdown,
    .menuzord-menu > li > .dropdown {
        position: static !important;
        display: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        background: #0a6f86 !important;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .menuzord-menu li.open > .dropdown {
        display: block !important;
    }

    .menuzord-menu .dropdown li a {
        color: #fff !important;
        padding: 12px 20px;
        border-top: 1px solid rgba(255,255,255,.15);
        background: transparent !important;
    }

    .menuzord-menu .dropdown li a:hover {
        background: #0d829b !important;
    }

    .menuzord-menu .dropdown .dropdown {
        position: static !important;
        display: none !important;
        background: #0b6276 !important;
    }

    .menuzord-menu .dropdown li.open > .dropdown {
        display: block !important;
    }
}

/* =====================================================================
   ANNOUNCEMENT BAR
===================================================================== */

.announcement-bar {
    background: var(--gmc-teal-dark);
    color: var(--gmc-white);
    overflow: hidden;
}

.announcement-container {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.announcement-title {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gmc-gold);
    color: #4a2e00;
    font-weight: 700;
    font-size: 14.5px;
    padding: 10px 22px 10px 18px;
    white-space: nowrap;
    position: relative;
}

.announcement-title::after {
    content: "";
    position: absolute;
    top: 0;
    right: -18px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 18px solid var(--gmc-gold);
}

.announcement-title::before {
    content: "\f0a1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.announcement-slider {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    padding-left: 30px;
    display: flex;
    align-items: center;
}

.announcement-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: gmc-marquee 35s linear infinite;
    will-change: transform;
}

.announcement-track.paused { animation-play-state: paused; }

@keyframes gmc-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 400;
}

.announcement-item a {
    color: var(--gmc-gold);
    text-decoration: none;
}

.announcement-item a:hover { text-decoration: underline; color: var(--gmc-gold); }

.announcement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gmc-gold);
    flex-shrink: 0;
}

.new-badge {
    background: #e63946;
    color: var(--gmc-white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: .5px;
}

.announcement-toggle {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin: auto 14px;
    border-radius: 50%;
    border: none;
    background: var(--gmc-teal-light);
    color: var(--gmc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
}

.announcement-toggle:hover { background: #0c9cbc; }

/* =====================================================================
   RESPONSIVE BREAKPOINTS
   (menu-specific rules now live only in the MOBILE SUBMENU block above —
   this section only handles the header/logo/announcement layout)
===================================================================== */

@media (max-width: 1199px) {
    .college-title { font-size: 19px; }
    .right-gov-logo { height: 58px; }
    .college-emblem { height: 78px; width: 78px; }
}

@media (max-width: 991px) {
    .topHeader .row { justify-content: center; text-align: center; }
    .common-left,
    .topRightHeader { flex: 0 0 100%; max-width: 100%; justify-content: center; }
    .topRightHeader { margin-top: 4px; }

    .header-logo-row { justify-content: center; text-align: center; }
    .logoLeft,
    .ashoka-center,
    .logoRight { flex: 0 0 100%; max-width: 100%; justify-content: center; }
    .college-brand { justify-content: center; text-align: left; }
    .ashoka-center { order: 3; margin-top: 6px; }
    .logoRight { order: 4; margin-top: 10px; }
}

@media (max-width: 767px) {
    .college-title { font-size: 17px; }
    .college-affiliation { font-size: 12px; }
    .college-emblem { height: 64px; width: 64px; }
    .ashoka-main-logo { height: 56px; }
    .right-gov-logo { height: 46px; }
    .logoRight { gap: 14px; }

    .announcement-title { padding: 9px 16px; font-size: 13px; }
    .announcement-title::after { display: none; }
    .announcement-slider { padding-left: 16px; }
    .announcement-item { font-size: 12.5px; padding: 0 18px; }
}

@media (max-width: 575px) {
    .topHeader { font-size: 12.5px; }
    .contact-item { justify-content: center; }
    .commonPanel { justify-content: center; gap: 2px; }
    .follow-us { display: none; }
    .languageBox { border-left: none; padding-left: 8px; }

    .college-brand { flex-direction: column; text-align: center; }
    .college-text { align-items: center; }

    .announcement-container { flex-wrap: wrap; }
    .announcement-title { width: 100%; justify-content: center; }
    .announcement-title::after { display: none; }
    .announcement-toggle { margin: 6px auto; }
}
