/* =====================================================
   Dynamic Header Layouts
   File: public/assets/frontend/css/header.css
   Scope: default + layout_1 + layout_2 + layout_3
   ===================================================== */

/* =====================================================
   WEBSITE COLOR SOURCE OF TRUTH
   --theme-color  = Website Primary Color
   --theme-color2 = Website Secondary Color

   All Header Layouts 1-10 consume these values through:
   --academic-primary / --academic-secondary
   ===================================================== */

/* =====================================================
   00. Shared Header Variables & Utilities
   ===================================================== */
.academic-header {
    --academic-primary: var(--theme-color, #14297b);
    --academic-secondary: var(--theme-color2, var(--theme-color, #14297b));
    --academic-dark: #152238;
    --academic-text: #1f2d3d;
    --academic-muted: #667085;
    --academic-light: #f6f9fc;
    --academic-white: #ffffff;
    --academic-border: rgba(31, 45, 61, 0.12);
    position: relative;
    z-index: 100;
    background: var(--academic-white);
}

.academic-header,
.academic-header * {
    box-sizing: border-box;
}

.academic-header a {
    text-decoration: none;
}

.academic-header .editor p,
.academic-header .editor h1,
.academic-header .editor h2,
.academic-header .editor h3,
.academic-header .editor h4,
.academic-header .editor h5,
.academic-header .editor h6 {
    margin-bottom: 0;
}

.academic-brand-logo,
.academic-l2-logo-box img,
.academic-l3-logo-ring img,
.academic-mobile-brand img {
    object-fit: contain;
}

/* =====================================================
   01. Shared Top Notices & Quick Links
   ===================================================== */
.academic-topbar,
.academic-l2-strip {
    background: var(--academic-primary);
    color: #ffffff;
}

.academic-topbar-news,
.academic-l2-news,
.academic-l3-notice-wrap {
    overflow: hidden;
}

.academic-notice-item,
.academic-notice-click {
    display: inline-block;
    color: #ffffff !important;
    margin-left: 18px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.35);
    font-size: 13px;
    line-height: 36px;
    white-space: nowrap;
}

.academic-notice-click {
    margin-left: 4px;
    padding-left: 0;
    border-left: 0;
    font-weight: 700;
    color: rgba(255,255,255,0.92) !important;
}

.academic-quick-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
}

.academic-quick-links a {
    color: #ffffff;
    font-size: 13px;
    line-height: 36px;
    padding: 0 10px;
    border-right: 1px solid rgba(255,255,255,0.20);
    transition: 0.25s ease;
}

.academic-quick-links a:last-child {
    border-right: 0;
    padding-right: 0;
}

.academic-quick-links a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
}

.academic-mobile-notice {
    background: var(--academic-primary);
    color: #ffffff;
    padding: 0 6px;
}

.academic-mobile-notice .academic-notice-item,
.academic-mobile-notice .academic-notice-click {
    line-height: 32px;
    font-size: 12px;
}

/* =====================================================
   02. Header Default Layout Support
   Existing default header remains functionally unchanged.
   ===================================================== */
.header-default-layout {
    position: relative;
    z-index: 100;
}

.header-default-layout .header-top-news a,
.header-default-layout .header-top-news span {
    color: #ffffff;
}

/* =====================================================
   03. Shared Navigation Behaviour For New Layouts
   ===================================================== */
.academic-header .navbar {
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 10;
}

.academic-header .navbar-nav {
    align-items: center;
}

.academic-header .navbar .nav-item .nav-link {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1px;
    padding: 17px 0;
    margin-right: 20px;
    color: var(--academic-text);
    text-transform: capitalize;
    position: relative;
}

.academic-header .navbar .nav-item .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 11px;
    height: 3px;
    border-radius: 20px;
    background: var(--academic-secondary);
    transition: 0.25s ease;
}

.academic-header .navbar .nav-item:hover .nav-link,
.academic-header .navbar .nav-item .nav-link.active {
    color: var(--academic-primary);
}

.academic-header .navbar .nav-item:hover .nav-link::before,
.academic-header .navbar .nav-item .nav-link.active::before {
    right: 0;
}

.academic-header .navbar .dropdown-menu {
    border: 0;
    border-top: 4px solid var(--academic-secondary);
    border-radius: 0 0 16px 16px;
    background: var(--academic-white);
    box-shadow: 0 22px 50px rgba(21, 34, 56, 0.16);
    padding: 12px;
}

.academic-header .navbar .nav-item.mega-menu .dropdown-menu {
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
}

.academic-header .mega-content h5 {
    color: var(--academic-primary);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(31,45,61,0.10);
}

.academic-header .navbar .dropdown-menu li {
    border-bottom: 1px dashed rgba(31,45,61,0.10);
}

.academic-header .navbar .dropdown-menu li:last-child {
    border-bottom: 0;
}

.academic-header .navbar .dropdown-menu .dropdown-item {
    color: var(--academic-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: normal;
}

.academic-header .navbar .dropdown-menu .dropdown-item:hover {
    color: #ffffff;
    background: var(--academic-primary);
    padding-left: 14px;
}

.academic-header .nav-right {
    display: flex;
    align-items: center;
    margin-left: 14px;
}

.academic-header .nav-right .nav-right-link,
.academic-header .search-box-outer {
    border: 0;
    background: transparent;
    color: var(--academic-primary);
    font-size: 18px;
    padding: 0;
}

.academic-header #admission {
    border: 1px solid var(--academic-primary) !important;
    color: var(--academic-primary) !important;
    background: transparent;
    font-weight: 700;
    transition: 0.25s ease;
}

.academic-header #admission:hover {
    background: var(--academic-primary);
    color: #ffffff !important;
}

.academic-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 110px);
    margin-right: 0;
    color: var(--academic-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.academic-mobile-brand img {
    width: 42px;
    max-height: 42px;
}
.header-layout-one .academic-mobile-icon-btn{
display: none;
}


.academic-mobile-icon-btn,
.academic-toggler {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31,45,61,0.13);
    background: #ffffff;
    color: var(--academic-primary);
    box-shadow: none !important;
}

/* =====================================================
   04. Header Layout 1 - Classic Academic Institutional
   ===================================================== */
.header-layout-one .academic-brand-zone {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.92), rgba(255,255,255,0.98)),
        linear-gradient(135deg, color-mix(in srgb, var(--academic-primary) 8%, transparent), color-mix(in srgb, var(--academic-secondary) 8%, transparent));
    padding: 18px 0;
    border-bottom: 1px solid var(--academic-border);
}

.header-layout-one .academic-brand-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.header-layout-one .academic-brand-logo-wrap {
    width: 96px;
    height: 96px;
    min-width: 96px;
    background: #ffffff;
    border: 1px solid rgba(31,45,61,0.10);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(31,45,61,0.09);
}

.header-layout-one .academic-brand-logo {
    max-width: 82px;
    max-height: 82px;
}

.header-layout-one .academic-brand-text {
    display: block;
    min-width: 0;
}

.header-layout-one .academic-brand-name {
    display: block;
    color: var(--academic-primary);
    font-family: var(--heading-font, inherit);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.2px;
}

.header-layout-one .academic-brand-tagline,
.header-layout-one .academic-brand-address {
    display: block;
    color: var(--academic-text);
    font-size: 14px;
    line-height: 1.45;
    margin-top: 5px;
}

.header-layout-one .academic-brand-address {
    color: var(--academic-muted);
}

.header-layout-one .academic-affiliation-card {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--academic-border);
    box-shadow: 0 12px 28px rgba(31,45,61,0.07);
}

.header-layout-one .academic-affiliation-text {
    color: var(--academic-muted);
    font-weight: 700;
    line-height: 1.35;
}

.header-layout-one .academic-certification-text {
    color: var(--academic-secondary);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    margin-top: 5px;
}

.header-layout-one .academic-nav-wrap {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31,45,61,0.08);
}

.header-layout-one .academic-navbar {
    min-height: 58px;
}

/* =====================================================
   05. Header Layout 2 - Modern Compact Professional
   ===================================================== */
.header-layout-two {
    box-shadow: 0 10px 30px rgba(31,45,61,0.08);
}

.header-layout-two .academic-l2-strip {
    background: linear-gradient(90deg, var(--academic-primary), var(--academic-secondary));
}

.header-layout-two .academic-l2-identity {
    padding: 14px 0;
    background: #ffffff;
}

.header-layout-two .academic-l2-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-layout-two .academic-l2-logo-box {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--academic-primary) 12%, transparent);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(31,45,61,0.08);
}

.header-layout-two .academic-l2-logo-box img {
    max-width: 66px;
    max-height: 66px;
}

.header-layout-two .academic-l2-brand-copy {
    display: block;
    min-width: 0;
}

.header-layout-two .academic-l2-name {
    display: block;
    color: var(--academic-primary);
    font-size: clamp(20px, 2.3vw, 31px);
    font-weight: 900;
    line-height: 1.15;
}

.header-layout-two .academic-l2-meta,
.header-layout-two .academic-l2-address {
    display: block;
    color: var(--academic-muted);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 3px;
}

.header-layout-two .academic-l2-badge {
    padding: 12px 16px;
    border-right: 4px solid var(--academic-secondary);
    background: var(--academic-light);
    border-radius: 16px 0 0 16px;
}

.header-layout-two .academic-l2-badge span,
.header-layout-two .academic-l2-badge strong {
    display: block;
    line-height: 1.3;
}

.header-layout-two .academic-l2-badge span {
    color: var(--academic-muted);
    font-size: 13px;
    font-weight: 700;
}

.header-layout-two .academic-l2-badge strong {
    color: var(--academic-primary);
    font-size: 18px;
    font-weight: 900;
}

.header-layout-two .academic-l2-admission-btn {
    background: var(--academic-secondary);
    color: #ffffff;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(31,45,61,0.12);
}

.header-layout-two .academic-l2-admission-btn:hover {
    background: var(--academic-primary);
    color: #ffffff;
}

.header-layout-two .academic-l2-navbar {
    background: var(--academic-primary);
}

.header-layout-two .navbar .nav-item .nav-link {
    color: #ffffff;
}

.header-layout-two .navbar .nav-item:hover .nav-link,
.header-layout-two .navbar .nav-item .nav-link.active {
    color: #ffffff;
}

.header-layout-two .navbar .nav-item .nav-link::before {
    background: #ffffff;
}

.header-layout-two .nav-right .nav-right-link,
.header-layout-two .search-box-outer {
    color: #ffffff;
}

.header-layout-two #admission {
    border-color: rgba(255,255,255,0.85) !important;
    color: #ffffff !important;
}

.header-layout-two #admission:hover {
    background: #ffffff;
    color: var(--academic-primary) !important;
}

/* =====================================================
   06. Header Layout 3 - Premium Dark Institutional Grid
   ===================================================== */
.header-layout-three {
    background: var(--academic-dark);
}

.header-layout-three .academic-l3-hero {
    position: relative;
    overflow: hidden;
    padding: 0 0 28px;
    background:
        linear-gradient(135deg, rgba(21,34,56,0.96), rgba(21,34,56,0.88)),
        radial-gradient(circle at top right, var(--academic-secondary), transparent 36%);
}

.header-layout-three .academic-l3-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.10) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.10) 25%, transparent 25%);
    background-size: 30px 30px;
    pointer-events: none;
}

.header-layout-three .academic-l3-topline {
    position: relative;
    min-height: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-layout-three .academic-l3-notice-wrap {
    flex: 0 0 42%;
    max-width: 42%;
}

.header-layout-three .academic-l3-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 26px;
}

.header-layout-three .academic-l3-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.header-layout-three .academic-l3-logo-ring {
    width: 104px;
    height: 104px;
    min-width: 104px;
    border-radius: 50%;
    background: #ffffff;
    border: 5px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(0,0,0,0.25);
}

.header-layout-three .academic-l3-logo-ring img {
    max-width: 78px;
    max-height: 78px;
}

.header-layout-three .academic-l3-copy {
    display: block;
    min-width: 0;
}

.header-layout-three .academic-l3-name {
    display: block;
    color: #ffffff;
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 900;
    line-height: 1.12;
}

.header-layout-three .academic-l3-tagline,
.header-layout-three .academic-l3-address {
    display: block;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.45;
    margin-top: 4px;
}

.header-layout-three .academic-l3-recognition {
    min-width: 270px;
    text-align: right;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}
.header-layout-three .academic-l3-recognition h5{
    color: #ffffff;
}
.header-layout-three .academic-mobile-icon-btn{
    display: none;
}

.header-layout-three .academic-l3-recognition span,
.header-layout-three .academic-l3-recognition strong {
    display: block;
    line-height: 1.35;
}

.header-layout-three .academic-l3-recognition strong {
    color: #ffffff;
    font-size: 20px;
    margin-top: 4px;
}

.header-layout-three .academic-l3-nav-holder {
    position: relative;
    z-index: 12;
    margin-top: -22px;
}

.header-layout-three .academic-l3-navbar {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(0,0,0,0.20);
}

.header-layout-three .academic-l3-navbar .container {
    max-width: 1180px;
}

/* =====================================================
   07. Responsive Rules For New Header Layouts
   ===================================================== */
@media (min-width: 992px) {
    .academic-header .navbar .nav-item .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        top: 110%;
        transform: translateY(8px);
        transition: 0.22s ease;
    }

    .academic-header .navbar .nav-item:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        top: 100%;
        transform: translateY(0);
    }
}

@media (max-width: 1199.98px) {
    .academic-header .navbar .nav-item .nav-link {
        margin-right: 14px;
        font-size: 13px;
    }

    .header-layout-one .academic-brand-logo-wrap {
        width: 82px;
        height: 82px;
        min-width: 82px;
    }

    .header-layout-one .academic-brand-logo {
        max-width: 68px;
        max-height: 68px;
    }
}

@media (max-width: 991.98px) {
    .academic-header .navbar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        min-height: 58px;
        padding: 8px 0;
        background: #ffffff;
    }

    .academic-header .navbar-collapse {
        background: #ffffff !important;
        border-radius: 14px;
        margin-top: 10px;
        padding: 12px 14px;
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        box-shadow: 0 18px 42px rgba(31,45,61,0.14);
    }

    .academic-header .navbar-nav {
        align-items: stretch;
    }

    .academic-header .navbar .nav-item .nav-link {
        color: var(--academic-text) !important;
        padding: 10px 0;
        margin-right: 0;
        border-bottom: 1px solid rgba(31,45,61,0.08);
    }

    .academic-header .navbar .nav-item .nav-link::before {
        display: none;
    }

    .academic-header .navbar .dropdown-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid rgba(31,45,61,0.10);
        border-radius: 12px;
        margin: 6px 0 10px;
        padding: 8px;
        opacity: 1;
        visibility: visible;
        background: #f8fafc;
    }

    .academic-header .mega-content .row > [class*="col-"] {
        margin-bottom: 10px;
    }

    .academic-header .mega-content h5 {
        font-size: 14px;
        margin-top: 8px;
        margin-bottom: 6px;
    }

    .academic-header .nav-right {
        margin: 10px 0 0;
        justify-content: flex-start;
    }

    .academic-header #admission {
        color: var(--academic-primary) !important;
        border-color: var(--academic-primary) !important;
    }

    .academic-header .search-btn.text-light {
        color: var(--academic-primary) !important;
    }

    .header-layout-one .academic-brand-zone,
    .header-layout-two .academic-l2-identity,
    .header-layout-three .academic-l3-hero {
        display: none;
    }
  

    .header-layout-two .academic-l2-strip {
        display: block;
    }

    .header-layout-two .academic-l2-navbar,
    .header-layout-three .academic-l3-navbar {
        background: #ffffff;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(31,45,61,0.10);
    }

    .header-layout-three .academic-l3-nav-holder {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .academic-notice-item,
    .academic-notice-click {
        font-size: 12px;
    }

    .academic-mobile-brand span {
        max-width: 205px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

}

@media (max-width: 420px) {
    .academic-mobile-brand span {
        max-width: 165px;
    }

    .academic-mobile-icon-btn,
    .academic-toggler {
        width: 38px;
        height: 38px;
    }
}

/* =====================================================
   08. Desktop Sticky Menu Fix
   Purpose: allow existing JS-added .fixed-top to work and
   keep layout_1/layout_2/layout_3 navigation sticky on desktop.
   Header default is intentionally untouched.
   ===================================================== */
@media (min-width: 992px) {
    .header-layout-one .academic-nav-wrap,
    .header-layout-two .academic-l2-navbar,
    .header-layout-three .academic-l3-nav-holder {
        position: sticky;
        top: 0;
        z-index: 9997;
    }

    .header-layout-one .academic-nav-wrap {
        background: #ffffff;
    }

    .header-layout-two .academic-l2-navbar {
        background: var(--academic-primary);
    }

    .header-layout-three .academic-l3-nav-holder {
        background: transparent;
    }

    .academic-header .navbar.fixed-top,
    .header-layout-one .academic-navbar.fixed-top,
    .header-layout-two .academic-l2-navbar.fixed-top,
    .header-layout-three .academic-l3-navbar.fixed-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
        animation: academicStickySlideDown 0.28s ease both;
    }

    .header-layout-one .academic-navbar.fixed-top {
        background: #ffffff !important;
        box-shadow: 0 12px 32px rgba(31, 45, 61, 0.14);
    }

    .header-layout-two .academic-l2-navbar.fixed-top {
        background: var(--academic-primary) !important;
        box-shadow: 0 12px 32px rgba(31, 45, 61, 0.18);
    }

    .header-layout-three .academic-l3-navbar.fixed-top {
        max-width: 100% !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
    }
}

@keyframes academicStickySlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* =====================================================
   09. Mobile/Tablet Top Header Wrap Fix
   Purpose: prevent overlap by wrapping quick-link items into
   second/third line instead of forcing horizontal overflow.
   Layout 1 = left aligned, Layout 2 = centered, Layout 3 = justified.
   ===================================================== */
.academic-mobile-topbar {
    position: relative;
    z-index: 120;
    background: var(--academic-primary);
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

.academic-mobile-topbar-notices {
    width: 100%;
    padding: 0 10px;
    background: rgba(0,0,0,0.10);
    overflow: hidden;
}

.academic-mobile-topbar-notices marquee,
.academic-mobile-topbar-notices .header-top-news,
.academic-mobile-topbar-notices .academic-topbar-news {
    display: block;
    width: 100%;
    margin: 0;
}

.academic-mobile-topbar .academic-notice-item,
.academic-mobile-topbar .academic-notice-click {
    line-height: 30px;
    font-size: 12px;
    color: #ffffff !important;
}

.academic-mobile-topbar-links {
    width: 100%;
    padding: 6px 8px 7px;
    overflow: visible;
}

.academic-mobile-topbar-links .academic-quick-links {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 6px;
}

.academic-mobile-topbar-links .academic-quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    max-width: 100%;
    min-height: 28px;
    line-height: 1.2;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.academic-mobile-topbar-links .academic-quick-links a:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff !important;
}

.header-layout-one .academic-mobile-topbar-links .academic-quick-links,
.academic-mobile-topbar--left .academic-quick-links {
    justify-content: flex-start;
    text-align: left;
}

.header-layout-two .academic-mobile-topbar {
    background: linear-gradient(90deg, var(--academic-primary), var(--academic-secondary));
}

.header-layout-two .academic-mobile-topbar-links .academic-quick-links,
.academic-mobile-topbar--center .academic-quick-links {
    justify-content: center;
    text-align: center;
}

.header-layout-three .academic-mobile-topbar {
    background: var(--academic-dark, #152238);
}

.header-layout-three .academic-mobile-topbar-links .academic-quick-links,
.academic-mobile-topbar--justify .academic-quick-links {
    justify-content: space-between;
    text-align: center;
}

@media (max-width: 991.98px) {
    .academic-mobile-topbar {
        display: block !important;
    }

    .academic-topbar,
    .academic-l2-strip,
    .academic-l3-topline,
    .academic-mobile-notice {
        display: none !important;
    }

    .academic-header .navbar {
        z-index: 121;
    }
}

@media (max-width: 767.98px) {
    .academic-mobile-topbar-links .academic-quick-links {
        gap: 4px 5px;
    }

    .academic-mobile-topbar-links .academic-quick-links a {
        font-size: 11.5px;
        padding: 5px 8px;
        min-height: 26px;
    }

    .academic-mobile-topbar .academic-notice-item,
    .academic-mobile-topbar .academic-notice-click {
        font-size: 11.5px;
        line-height: 28px;
    }
}

@media (max-width: 420px) {
    .academic-mobile-topbar-links {
        padding-left: 6px;
        padding-right: 6px;
    }

    .academic-mobile-topbar-links .academic-quick-links a {
        font-size: 11px;
        padding: 5px 7px;
    }

    .header-layout-three .academic-mobile-topbar-links .academic-quick-links,
    .academic-mobile-topbar--justify .academic-quick-links {
        justify-content: center;
    }
}

/* JS fallback sticky state for custom headers */
@media (min-width: 992px) {
    .academic-header .navbar.academic-stuck {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
        animation: academicStickySlideDown 0.28s ease both;
    }

    .header-layout-one .academic-navbar.academic-stuck {
        background: #ffffff !important;
        box-shadow: 0 12px 32px rgba(31, 45, 61, 0.14);
    }

    .header-layout-two .academic-l2-navbar.academic-stuck {
        background: var(--academic-primary) !important;
        box-shadow: 0 12px 32px rgba(31, 45, 61, 0.18);
    }

    .header-layout-three .academic-l3-navbar.academic-stuck {
        max-width: 100% !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
    }

    .academic-sticky-placeholder {
        display: block;
        height: 0;
    }
}

/* =====================================================
   10. Unique Top Header Treatments For Custom Layouts
   Purpose: make layout_1/layout_2/layout_3 visually different
   on laptop, desktop, tablet and mobile without touching default.
   ===================================================== */

/* ---------- Layout 1: Classic light institutional top header ---------- */
.header-layout-one .academic-topbar {
    background: #ffffff;
    color: var(--academic-primary);
    border-bottom: 1px solid rgba(31, 45, 61, 0.10);
    box-shadow: 0 5px 18px rgba(31, 45, 61, 0.06);
}

.header-layout-one .academic-topbar .row {
    min-height: 43px;
}

.header-layout-one .academic-topbar-news {
    position: relative;
    overflow: hidden;
    background: var(--academic-primary);
    border-radius: 0 999px 999px 0;
    padding-left: 14px;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.16);
}

.header-layout-one .academic-topbar-news::before {
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 26px;
    margin-right: 8px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.header-layout-one .academic-topbar-news marquee {
    display: inline-block;
    width: calc(100% - 90px);
    vertical-align: middle;
}

.header-layout-one .academic-topbar .academic-notice-item,
.header-layout-one .academic-topbar .academic-notice-click {
    color: #ffffff !important;
    line-height: 43px;
}

.header-layout-one .academic-topbar .academic-quick-links {
    justify-content: flex-end;
    gap: 6px;
    padding-right: 2px;
}

.header-layout-one .academic-topbar .academic-quick-links a {
    color: var(--academic-primary) !important;
    line-height: 1.15;
    min-height: 29px;
    padding: 7px 11px;
    border: 1px solid rgba(31, 45, 61, 0.14);
    border-radius: 999px;
    background: #ffffff;
    font-weight: 700;
}

.header-layout-one .academic-topbar .academic-quick-links a:hover {
    color: #ffffff !important;
    background: var(--academic-primary);
    border-color: var(--academic-primary);
}

/* ---------- Layout 2: Full gradient modern top header ---------- */
.header-layout-two .academic-l2-strip {
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg, var(--academic-primary) 0%, var(--academic-secondary) 52%, var(--academic-primary) 100%);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(31, 45, 61, 0.10);
}

.header-layout-two .academic-l2-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at left center, rgba(255,255,255,0.20), transparent 28%),
        linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.header-layout-two .academic-l2-strip .row {
    min-height: 44px;
    position: relative;
    z-index: 1;
}

.header-layout-two .academic-l2-news {
    overflow: hidden;
}

.header-layout-two .academic-l2-strip .academic-notice-item,
.header-layout-two .academic-l2-strip .academic-notice-click {
    line-height: 44px;
    color: #ffffff !important;
    border-left-color: rgba(255,255,255,0.25);
}

.header-layout-two .academic-l2-strip .academic-quick-links {
    justify-content: center;
    gap: 7px;
}

.header-layout-two .academic-l2-strip .academic-quick-links a {
    color: #ffffff !important;
    min-height: 30px;
    line-height: 1.1;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 10px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.header-layout-two .academic-l2-strip .academic-quick-links a:hover {
    background: rgba(255,255,255,0.22);
    color: #ffffff !important;
}

/* ---------- Layout 3: Dark framed top header, no gradient ---------- */
.header-layout-three .academic-l3-topline {
    min-height: 46px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: rgba(0, 0, 0, 0.16);
}

.header-layout-three .academic-l3-notice-wrap {
    position: relative;
    flex: 0 0 40%;
    max-width: 40%;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.header-layout-three .academic-l3-notice-wrap::before {
   
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--academic-secondary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.header-layout-three .academic-l3-notice-wrap marquee {
    width: calc(100% - 82px);
    margin-left: 82px;
}

.header-layout-three .academic-l3-topline .academic-notice-item,
.header-layout-three .academic-l3-topline .academic-notice-click {
    line-height: 32px;
    color: rgba(255,255,255,0.95) !important;
}

.header-layout-three .academic-l3-topline .academic-quick-links {
    justify-content: space-between;
    gap: 8px;
    max-width: 58%;
}

.header-layout-three .academic-l3-topline .academic-quick-links a {
    color: rgba(255,255,255,0.92) !important;
    min-height: 31px;
    line-height: 1.1;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 4px 14px 14px 14px;
    background: rgba(255,255,255,0.07);
    font-weight: 700;
}

.header-layout-three .academic-l3-topline .academic-quick-links a:hover {
    background: var(--academic-secondary);
    border-color: var(--academic-secondary);
    color: #ffffff !important;
}

/* =====================================================
   11. Unique Tablet/Mobile Top Header Treatments
   Purpose: same content, different visual composition per layout.
   ===================================================== */
@media (max-width: 991.98px) {
    /* Layout 1: light card + left aligned outline chips */
    .header-layout-one .academic-mobile-topbar {
        background: #f8fafc;
        color: var(--academic-primary);
        border-bottom: 1px solid rgba(31,45,61,0.12);
        box-shadow: 0 4px 16px rgba(31,45,61,0.06);
        padding: 6px 8px 7px;
    }

    .header-layout-one .academic-mobile-topbar-notices {
        background: var(--academic-primary);
        border-radius: 16px 16px 6px 6px;
        padding: 0 10px;
        margin-bottom: 7px;
        box-shadow: 0 8px 20px rgba(31,45,61,0.12);
    }

    .header-layout-one .academic-mobile-topbar-links {
        background: #ffffff;
        border: 1px solid rgba(31,45,61,0.10);
        border-radius: 6px 6px 16px 16px;
        padding: 7px;
    }

    .header-layout-one .academic-mobile-topbar-links .academic-quick-links {
        justify-content: flex-start;
        gap: 6px;
    }

    .header-layout-one .academic-mobile-topbar-links .academic-quick-links a {
        color: var(--academic-primary) !important;
        border-color: rgba(31,45,61,0.13);
        background: #ffffff;
        border-radius: 999px;
    }

    .header-layout-one .academic-mobile-topbar-links .academic-quick-links a:hover {
        background: var(--academic-primary);
        color: #ffffff !important;
    }

    /* Layout 2: gradient pill panel + centered filled chips */
    .header-layout-two .academic-mobile-topbar {
        background: linear-gradient(120deg, var(--academic-primary), var(--academic-secondary));
        padding: 7px 8px;
        border-bottom: 0;
        box-shadow: 0 8px 22px rgba(31,45,61,0.14);
    }

    .header-layout-two .academic-mobile-topbar-notices {
        background: rgba(255,255,255,0.13);
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 999px;
        margin-bottom: 7px;
        padding: 0 12px;
        backdrop-filter: blur(6px);
        margin-top: 7px;
    }

    .header-layout-two .academic-mobile-topbar-links {
        padding: 0;
    }

    .header-layout-two .academic-mobile-topbar-links .academic-quick-links {
        justify-content: center;
        gap: 6px;
    }

    .header-layout-two .academic-mobile-topbar-links .academic-quick-links a {
        background: rgba(255,255,255,0.14);
        border-color: rgba(255,255,255,0.22);
        border-radius: 10px;
        color: #ffffff !important;
    }

    .header-layout-two .academic-mobile-topbar-links .academic-quick-links a:hover {
        background: rgba(255,255,255,0.26);
    }

    /* Layout 3: dark no-gradient panel + justified boxed links */
    .header-layout-three .academic-mobile-topbar {
        background: var(--academic-dark, #152238);
        padding: 7px 8px 8px;
        border-bottom: 1px solid rgba(255,255,255,0.10);
    }

    .header-layout-three .academic-mobile-topbar-notices {
        background: transparent;
        border-left: 4px solid var(--academic-secondary);
        border-radius: 0;
        padding: 0 0 0 10px;
        margin-bottom: 7px;
        margin-top: 7px;
    }

    .header-layout-three .academic-mobile-topbar-links {
        padding: 0;
    }

    .header-layout-three .academic-mobile-topbar-links .academic-quick-links {
        justify-content: space-between;
        gap: 6px;
    }

    .header-layout-three .academic-mobile-topbar-links .academic-quick-links a {
        flex: 1 1 auto;
        min-width: max-content;
        border-radius: 4px 12px 12px 12px;
        background: rgba(255,255,255,0.07);
        border-color: rgba(255,255,255,0.16);
        color: #ffffff !important;
    }

    .header-layout-three .academic-mobile-topbar-links .academic-quick-links a:hover {
        background: var(--academic-secondary);
        border-color: var(--academic-secondary);
    }
}

@media (max-width: 575.98px) {
    .header-layout-one .academic-mobile-topbar {
        padding: 5px 6px 6px;
    }

    .header-layout-one .academic-mobile-topbar-notices {
        border-radius: 14px 14px 5px 5px;
    }

    .header-layout-one .academic-mobile-topbar-links {
        border-radius: 5px 5px 14px 14px;
    }

    .header-layout-two .academic-mobile-topbar-notices {
        border-radius: 14px;
    }

    .header-layout-three .academic-mobile-topbar-links .academic-quick-links {
        justify-content: center;
    }

    .header-layout-three .academic-mobile-topbar-links .academic-quick-links a {
        flex: 0 1 auto;
        min-width: 0;
    }
}

/* =====================================================
   11. Additional Header Layouts 4 to 10
   Scope: new academic/professional layouts only
   ===================================================== */

/* ---------- Layout 4: Rounded ribbon + bordered institutional navigation ---------- */
.header-layout-four {
    background: #ffffff;
}

.header-layout-four .academic-l4-ribbon {
    background: linear-gradient(90deg, rgba(31,45,61,0.04), rgba(31,45,61,0.02));
    padding: 8px 0;
    border-bottom: 1px solid rgba(31,45,61,0.08);
}

.header-layout-four .academic-l4-ribbon-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.header-layout-four .academic-l4-notice {
    background: var(--academic-primary);
    border-radius: 999px;
    padding: 0 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31,45,61,0.11);
    width: 500px;
}

.header-layout-four .academic-l4-links .academic-quick-links {
    gap: 7px;
}

.header-layout-four .academic-l4-links .academic-quick-links a {
    line-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(31,45,61,0.12);
    border-radius: 999px;
    color: var(--academic-primary);
    background: #ffffff;
    font-weight: 700;
}

.header-layout-four .academic-l4-links .academic-quick-links a:hover {
    background: var(--academic-secondary);
    border-color: var(--academic-secondary);
    color: #ffffff;
}

.header-layout-four .academic-l4-identity {
    padding: 18px 0;
    background: #ffffff;
}

.header-layout-four .academic-l4-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.header-layout-four .academic-l4-logo-frame {
    width: 92px;
    height: 92px;
    min-width: 92px;
    border-radius: 24px 8px 24px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--academic-primary);
    box-shadow: 8px 8px 0 rgba(31,45,61,0.07);
}

.header-layout-four .academic-l4-logo-frame img {
    max-width: 76px;
    max-height: 76px;
    object-fit: contain;
}

.header-layout-four .academic-l4-name {
    display: block;
    color: var(--academic-primary);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 900;
    line-height: 1.12;
}

.header-layout-four .academic-l4-tagline,
.header-layout-four .academic-l4-address {
    display: block;
    color: var(--academic-muted);
    font-size: 14px;
    line-height: 1.45;
    margin-top: 5px;
}
.header-layout-four .academic-l4-recognition {
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(31,45,61,0.10);
    background: linear-gradient(135deg, rgba(31,45,61,0.04), rgba(31,45,61,0.01));
}

.header-layout-four .academic-l4-recognition span,
.header-layout-four .academic-l4-recognition strong {
    display: block;
    line-height: 1.35;
}

.header-layout-four .academic-l4-recognition strong {
    color: var(--academic-secondary);
    font-size: 21px;
}

.header-layout-four .academic-l4-nav-zone {
    border-top: 1px solid rgba(31,45,61,0.08);
    border-bottom: 1px solid rgba(31,45,61,0.08);
    background: #ffffff;
}

.header-layout-four .academic-l4-navbar .nav-item .nav-link {
    color: var(--academic-primary);
}

/* ---------- Layout 5: Minimal editorial line + solid navigation ---------- */
.header-layout-five .academic-l5-topline {
    background: #ffffff;
    border-bottom: 1px solid rgba(31,45,61,0.10);
}

.header-layout-five .academic-l5-notice {
    overflow: hidden;
}

.header-layout-five .academic-l5-notice .academic-notice-item,
.header-layout-five .academic-l5-notice .academic-notice-click {
    color: var(--academic-text) !important;
    border-left-color: rgba(31,45,61,0.22);
}

.header-layout-five .academic-l5-links .academic-quick-links a {
    color: var(--academic-primary);
    background: transparent;
    border-right: 0;
    border-bottom: 2px solid transparent;
    padding: 0 9px;
    line-height: 35px;
}

.header-layout-five .academic-l5-links .academic-quick-links a:hover {
    color: var(--academic-secondary);
    background: transparent;
    border-bottom-color: var(--academic-secondary);
}

.header-layout-five .academic-l5-identity {
    padding: 15px 0;
    background: #ffffff;
}

.header-layout-five .academic-l5-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-layout-five .academic-l5-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.header-layout-five .academic-l5-logo-box {
    width: 76px;
    height: 76px;
    min-width: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--academic-light);
    border-left: 5px solid var(--academic-primary);
}

.header-layout-five .academic-l5-logo-box img {
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
}

.header-layout-five .academic-l5-name {
    display: block;
    color: var(--academic-primary);
    font-size: clamp(21px, 2.4vw, 32px);
    font-weight: 900;
    line-height: 1.14;
}

.header-layout-five .academic-l5-meta,
.header-layout-five .academic-l5-address {
    display: block;
    color: var(--academic-muted);
    line-height: 1.42;
}

.header-layout-five .academic-l5-badge {
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    background: var(--academic-light);
    color: var(--academic-primary);
}

.header-layout-five .academic-l5-badge i {
    font-size: 28px;
    color: var(--academic-secondary);
}

.header-layout-five .academic-l5-badge small,
.header-layout-five .academic-l5-badge strong {
    display: block;
    line-height: 1.3;
}

.header-layout-five .academic-l5-navbar {
    background: var(--academic-primary) !important;
}

.header-layout-five .academic-l5-navbar .nav-item .nav-link,
.header-layout-five .academic-l5-navbar .nav-right .nav-right-link,
.header-layout-five .academic-l5-navbar .search-box-outer {
    color: #ffffff !important;
}

.header-layout-five .academic-l5-navbar .nav-item .nav-link::before {
    background: var(--academic-secondary);
}

/* ---------- Layout 6: Centered crest + pill navigation ---------- */
.header-layout-six {
    background: #ffffff;
}

.header-layout-six .academic-l6-topbar {
    background: linear-gradient(90deg, rgba(31,45,61,0.05), rgba(31,45,61,0.02), rgba(31,45,61,0.05));
    padding: 9px 0;
}

.header-layout-six .academic-l6-topbar-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, auto);
    align-items: center;
    gap: 15px;
    padding: 0 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(31,45,61,0.08);
    box-shadow: 0 8px 24px rgba(31,45,61,0.06);
}

.header-layout-six .academic-l6-notice {
    overflow: hidden;
}

.header-layout-six .academic-l6-notice .academic-notice-item,
.header-layout-six .academic-l6-notice .academic-notice-click {
    color: var(--academic-primary) !important;
    border-left-color: rgba(31,45,61,0.18);
}

.header-layout-six .academic-l6-links .academic-quick-links {
    justify-content: flex-end;
}

.header-layout-six .academic-l6-links .academic-quick-links a {
    color: var(--academic-text);
    line-height: 34px;
}

.header-layout-six .academic-l6-links .academic-quick-links a:hover {
    color: var(--academic-primary);
    background: rgba(31,45,61,0.05);
}

.header-layout-six .academic-l6-identity {
    padding: 24px 0 18px;
    background: #ffffff;
}

.header-layout-six .academic-l6-brand {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    color: var(--academic-text);
}

.header-layout-six .academic-l6-logo-medal {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 5px double var(--academic-secondary);
    box-shadow: 0 12px 30px rgba(31,45,61,0.10);
    margin-bottom: 12px;
}

.header-layout-six .academic-l6-logo-medal img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}

.header-layout-six .academic-l6-name {
    color: var(--academic-primary);
    font-size: clamp(22px, 2.7vw, 36px);
    font-weight: 900;
    line-height: 1.1;
}

.header-layout-six .academic-l6-tagline,
.header-layout-six .academic-l6-address {
    color: var(--academic-muted);
    line-height: 1.45;
    margin-top: 4px;
}

.header-layout-six .academic-l6-recognition {
    margin-top: 12px;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--academic-primary);
}

.header-layout-six .academic-l6-recognition strong {
    color: #ffffff;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.22);
}

.header-layout-six .academic-l6-nav-wrap {
    padding: 0 0 14px;
    background: #ffffff;
}

.header-layout-six .academic-l6-navbar {
    max-width: 1140px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--academic-light) !important;
    border: 1px solid rgba(31,45,61,0.09);
    box-shadow: 0 12px 28px rgba(31,45,61,0.08);
}

/* ---------- Layout 7: Split band + slab identity ---------- */
/* =====================================================
   Layout 7: Professional Split Band + Compact Slab Identity
   Uses primary + secondary color only
   Full desktop + mobile responsive
===================================================== */

.header-layout-seven {
    --l7-primary: var(--academic-primary);
    --l7-secondary: var(--academic-secondary);
    --l7-dark: #172033;
    --l7-text: #172033;
    --l7-muted: #667085;
    --l7-soft: #f5f7fb;
    --l7-white: #ffffff;
    --l7-border: rgba(23, 32, 51, 0.12);
    position: relative;
    z-index: 100;
    background: var(--l7-white);
}

.header-layout-seven,
.header-layout-seven * {
    box-sizing: border-box;
}

.header-layout-seven a {
    text-decoration: none;
}

.header-layout-seven img {
    max-width: 100%;
}

.header-layout-seven .editor p,
.header-layout-seven .editor h1,
.header-layout-seven .editor h2,
.header-layout-seven .editor h3,
.header-layout-seven .editor h4,
.header-layout-seven .editor h5,
.header-layout-seven .editor h6 {
    margin-bottom: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
}

/* =====================================================
   Top Band
===================================================== */

.header-layout-seven .academic-l7-topband {
    background: var(--l7-primary);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-layout-seven .academic-l7-links-cell {
    background: var(--l7-primary);
    min-height: 40px;
    display: flex;
    align-items: center;
    padding-right: 14px;
}

.header-layout-seven .academic-l7-notice-cell {
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 18px 0 26px;
    background: var(--l7-secondary);
    color: #ffffff;
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 0% 100%);
}

/* Quick links */
.header-layout-seven .academic-quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.header-layout-seven .academic-l7-links-cell .academic-quick-links a,
.header-layout-seven .academic-mobile-topbar--l7 .academic-quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.header-layout-seven .academic-l7-links-cell .academic-quick-links a:hover,
.header-layout-seven .academic-mobile-topbar--l7 .academic-quick-links a:hover {
    background: var(--l7-secondary) !important;
    border-color: var(--l7-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.header-layout-seven .academic-quick-links a i {
    margin-right: 6px;
}

/* Notice */
.header-layout-seven .academic-l7-notice-cell marquee {
    width: 100%;
}

.header-layout-seven .academic-l7-notice-cell .academic-notice-item,
.header-layout-seven .academic-l7-notice-cell .academic-notice-click {
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 30px;
}

.header-layout-seven .academic-l7-notice-cell .academic-notice-click {
    font-weight: 900;
}

/* =====================================================
   Identity Section
===================================================== */

.header-layout-seven .academic-l7-identity {
    padding: 14px 0;
    background: var(--l7-soft);
    border-bottom: 1px solid var(--l7-border);
}

.header-layout-seven .academic-l7-identity .container-fluid {
    position: relative;
}

.header-layout-seven .academic-l7-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid rgba(23, 32, 51, 0.10);
    border-left: 5px solid var(--l7-secondary);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.09);
    color: inherit;
    transition: all 0.25s ease;
}

.header-layout-seven .academic-l7-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.12);
}

.header-layout-seven .academic-l7-logo-slab {
    width: 88px;
    min-width: 88px;
    height: 88px;
    border-radius: 16px;
    background: var(--l7-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--l7-primary) 20%, transparent);
    transition: all 0.25s ease;
}

.header-layout-seven .academic-l7-brand:hover .academic-l7-logo-slab {
    background: var(--l7-secondary);
}

.header-layout-seven .academic-l7-logo-slab img {
    max-width: 68px;
    max-height: 68px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 5px;
}

.header-layout-seven .academic-l7-copy {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
}

.header-layout-seven .academic-l7-name {
    display: block;
    color: var(--l7-primary);
    font-family: var(--heading-font, inherit);
    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.header-layout-seven .academic-l7-tagline {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin-top: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--l7-secondary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--l7-secondary) 25%, transparent);
    color: var(--l7-secondary);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
}

.header-layout-seven .academic-l7-address {
    display: block;
    margin-top: 6px;
    color: var(--l7-muted);
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.4;
}

/* Seal Card */
.header-layout-seven .academic-l7-seal-card {
    position: relative;
    overflow: hidden;
    padding: 17px 18px;
    border-radius: 18px;
    background: var(--l7-primary);
    color: #ffffff;
    text-align: right;
    border-bottom: 5px solid var(--l7-secondary);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--l7-primary) 18%, transparent);
    transition: all 0.25s ease;
}

.header-layout-seven .academic-l7-seal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--l7-primary) 24%, transparent);
}

.header-layout-seven .academic-l7-seal-card::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -35px;
    top: -35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.header-layout-seven .academic-l7-seal-card small,
.header-layout-seven .academic-l7-seal-card strong {
    position: relative;
    z-index: 1;
    display: block;
}

.header-layout-seven .academic-l7-seal-card small {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.header-layout-seven .academic-l7-seal-card strong {
    margin-top: 7px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.15;
}

/* =====================================================
   Navbar
===================================================== */

.header-layout-seven .academic-l7-navbar {
    min-height: 58px;
    padding: 0;
    background: #ffffff !important;
    border-top: 1px solid rgba(23, 32, 51, 0.08);
    border-bottom: 4px solid var(--l7-primary);
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
}

.header-layout-seven .navbar-collapse {
    display: flex;
    justify-content: space-between;
}

.header-layout-seven .navbar-nav {
    align-items: center;
    gap: 2px;
}

.header-layout-seven .navbar .nav-item {
    position: relative;
}

.header-layout-seven .navbar .nav-item .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 12px;
    color: var(--l7-text);
    font-size: 13.5px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.header-layout-seven .navbar .nav-item .nav-link::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 9px;
    height: 3px;
    border-radius: 999px;
    background: var(--l7-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.header-layout-seven .navbar .nav-item:hover > .nav-link,
.header-layout-seven .navbar .nav-item .nav-link.active,
.header-layout-seven .navbar .nav-item.show > .nav-link {
    color: var(--l7-primary);
}

.header-layout-seven .navbar .nav-item:hover > .nav-link::before,
.header-layout-seven .navbar .nav-item .nav-link.active::before,
.header-layout-seven .navbar .nav-item.show > .nav-link::before {
    transform: scaleX(1);
}

/* Dropdown */
.header-layout-seven .navbar .dropdown-menu {
    border: 0;
    border-top: 4px solid var(--l7-secondary);
    border-radius: 0 0 16px 16px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(23, 32, 51, 0.16);
    padding: 12px;
    min-width: 230px;
}

.header-layout-seven .navbar .dropdown-menu li {
    border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.header-layout-seven .navbar .dropdown-menu li:last-child {
    border-bottom: 0;
}

.header-layout-seven .navbar .dropdown-menu .dropdown-item {
    color: var(--l7-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    padding: 9px 10px;
    border-radius: 8px;
    white-space: normal;
    transition: all 0.22s ease;
}

.header-layout-seven .navbar .dropdown-menu .dropdown-item:hover,
.header-layout-seven .navbar .dropdown-menu .dropdown-item:focus {
    color: #ffffff;
    background: var(--l7-primary);
    padding-left: 14px;
}

.header-layout-seven .navbar .nav-item.mega-menu {
    position: static;
}

.header-layout-seven .navbar .nav-item.mega-menu .dropdown-menu {
    left: 18px;
    right: 18px;
    width: calc(100% - 36px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.header-layout-seven .mega-content h5 {
    color: var(--l7-primary);
    font-size: 15px;
    font-weight: 950;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(23, 32, 51, 0.10);
    text-transform: uppercase;
}

.header-layout-seven .mega-content .row > [class*="col-"] {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Desktop dropdown animation */
@media (min-width: 992px) {
    .header-layout-seven .navbar .nav-item .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        top: calc(100% + 10px);
        transform: translateY(8px);
        transition: all 0.22s ease;
        pointer-events: none;
    }

    .header-layout-seven .navbar .nav-item:hover > .dropdown-menu,
    .header-layout-seven .navbar .nav-item:focus-within > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        top: 100%;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* =====================================================
   Mobile Responsive
===================================================== */

@media (max-width: 991.98px) {
    .header-layout-seven .academic-l7-topband {
        display: none !important;
    }

    /* Mobile topbar from partial */
    .header-layout-seven .academic-mobile-topbar--l7 {
        display: block !important;
        background: var(--l7-primary) !important;
        color: #ffffff;
        padding: 6px 7px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .header-layout-seven .academic-mobile-topbar--l7 .academic-quick-links {
        justify-content: center;
        gap: 4px;
    }

    .header-layout-seven .academic-mobile-topbar--l7 .academic-quick-links a {
        min-height: 24px;
        padding: 5px 7px;
        font-size: 10.5px;
    }

    .header-layout-seven .academic-mobile-topbar--l7 marquee {
        width: 100%;
    }

    .header-layout-seven .academic-mobile-topbar--l7 .academic-notice-item,
    .header-layout-seven .academic-mobile-topbar--l7 .academic-notice-click {
        color: #ffffff !important;
        font-size: 10.5px;
        line-height: 23px;
    }

    /* Identity mobile */
    .header-layout-seven .academic-l7-identity {
        padding: 10px 8px;
        background: var(--l7-soft);
    }

    .header-layout-seven .academic-l7-identity .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .header-layout-seven .academic-l7-identity .row {
        --bs-gutter-y: 0;
    }

    .header-layout-seven .academic-l7-brand {
        gap: 10px;
        padding: 11px 12px;
        border-left: 4px solid var(--l7-secondary);
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(23, 32, 51, 0.10);
    }

    .header-layout-seven .academic-l7-brand:hover {
        transform: none;
    }

    .header-layout-seven .academic-l7-logo-slab {
        width: 58px;
        min-width: 58px;
        height: 58px;
        border-radius: 12px;
        padding: 6px;
        box-shadow: 0 6px 14px color-mix(in srgb, var(--l7-primary) 18%, transparent);
    }

    .header-layout-seven .academic-l7-logo-slab img {
        max-width: 46px;
        max-height: 46px;
        padding: 3px;
    }

    .header-layout-seven .academic-l7-copy {
        flex: 1;
        text-align: center;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .header-layout-seven .academic-l7-name {
        width: 100%;
        color: var(--l7-primary);
        font-size: clamp(18px, 5.2vw, 25px);
        line-height: 1.08;
        letter-spacing: 0;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .header-layout-seven .academic-l7-tagline {
        margin-top: 5px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--l7-secondary);
        font-size: 11.5px;
        font-weight: 850;
        line-height: 1.25;
        text-align: center;
    }

    .header-layout-seven .academic-l7-address {
        margin-top: 3px;
        color: var(--l7-muted);
        font-size: 10.8px;
        font-weight: 650;
        line-height: 1.25;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Hide desktop seal card on mobile */
    .header-layout-seven .academic-l7-seal-card {
        display: none !important;
    }

    /* Mobile navbar */
    .header-layout-seven .academic-l7-navbar {
        min-height: 52px;
        padding: 7px 0;
        position: sticky;
        top: 0;
        z-index: 9998;
        border-bottom: 3px solid var(--l7-primary);
        box-shadow: 0 8px 20px rgba(23, 32, 51, 0.10);
    }

    /* Hide repeated mobile brand because identity section already shows logo/name */
    /* .header-layout-seven .academic-mobile-brand {
        display: none !important;
    } */

    .header-layout-seven .academic-mobile-actions {
        margin-left: auto !important;
    }

    .header-layout-seven .academic-mobile-icon-btn,
    .header-layout-seven .academic-toggler {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid var(--l7-border);
        border-radius: 10px;
        background: #ffffff;
        color: var(--l7-primary);
        box-shadow: none !important;
    }

    .header-layout-seven .academic-mobile-icon-btn:hover,
    .header-layout-seven .academic-toggler:hover,
    .header-layout-seven .academic-mobile-icon-btn:focus,
    .header-layout-seven .academic-toggler:focus {
        background: var(--l7-primary);
        color: #ffffff;
    }

    .header-layout-seven .academic-collapse.navbar-collapse {
        position: absolute;
        top: calc(100% + 7px);
        left: 8px;
        right: 8px;
        z-index: 9999;
        display: none;
        max-height: calc(100vh - 115px);
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--l7-border);
        border-top: 4px solid var(--l7-primary);
        border-radius: 12px;
        background: #ffffff !important;
        box-shadow: 0 22px 50px rgba(23, 32, 51, 0.16);
    }

    .header-layout-seven .academic-collapse.navbar-collapse.show {
        display: block;
    }

    .header-layout-seven .navbar-collapse {
        display: none;
    }

    .header-layout-seven .navbar-collapse.show {
        display: block;
    }

    .header-layout-seven .navbar-nav {
        align-items: stretch;
        gap: 3px;
    }

    .header-layout-seven .navbar .nav-item .nav-link {
        min-height: auto;
        width: 100%;
        padding: 11px 12px;
        border-radius: 10px;
        border-bottom: 1px solid rgba(23, 32, 51, 0.08);
        color: var(--l7-text) !important;
        white-space: normal;
    }

    .header-layout-seven .navbar .nav-item .nav-link::before {
        display: none;
    }

    .header-layout-seven .navbar .nav-item:hover > .nav-link,
    .header-layout-seven .navbar .nav-item .nav-link.active,
    .header-layout-seven .navbar .nav-item.show > .nav-link {
        color: var(--l7-primary) !important;
        background: #f5f7fb;
    }

    .header-layout-seven .navbar .dropdown-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0;
        margin: 6px 0 10px;
        padding: 8px;
        transform: none !important;
        border: 1px solid rgba(23, 32, 51, 0.10);
        border-radius: 12px;
        background: #f8fafc;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    .header-layout-seven .mega-content .row > [class*="col-"] {
        margin-bottom: 10px;
    }

    .header-layout-seven .mega-content h5 {
        margin-top: 8px;
        margin-bottom: 7px;
        font-size: 13px;
    }

    .header-layout-seven .nav-right {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin: 12px 0 0;
        padding-top: 12px;
        border-top: 1px solid rgba(23, 32, 51, 0.08);
        color: #000 !important;
    }
}

/* Small Mobile */
@media (max-width: 420px) {
    .header-layout-seven .academic-l7-brand {
        gap: 9px;
        padding: 10px;
    }

    .header-layout-seven .academic-l7-logo-slab {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }

    .header-layout-seven .academic-l7-logo-slab img {
        max-width: 41px;
        max-height: 41px;
    }

    .header-layout-seven .academic-l7-name {
        font-size: 17px;
    }

    .header-layout-seven .academic-l7-tagline {
        font-size: 10.6px;
    }

    .header-layout-seven .academic-l7-address {
        font-size: 10.2px;
    }

    .header-layout-seven .academic-mobile-topbar--l7 .academic-quick-links a {
        font-size: 10px;
        padding: 5px 6px;
    }
}

/* Layout 7 Identity Background - Primary + Secondary Gradient */
.header-layout-seven .academic-l7-identity {
    background: linear-gradient(
        135deg,
        var(--l7-primary) 0%,
        var(--l7-primary) 58%,
        var(--l7-secondary) 100%
    ) !important;
}

/* Mobile also use same primary + secondary background */
@media (max-width: 991.98px) {
    .header-layout-seven .academic-l7-identity {
        background: linear-gradient(
            145deg,
            var(--l7-primary) 0%,
            var(--l7-primary) 55%,
            var(--l7-secondary) 100%
        ) !important;
    }
}

/* =====================================================
   Layout 7 Navbar Visibility Fix
   Fix: menu text not visible until hover
===================================================== */

/* Desktop navbar must always show menu */
@media (min-width: 992px) {
    .header-layout-seven .academic-l7-navbar .academic-collapse,
    .header-layout-seven .academic-l7-navbar .navbar-collapse {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-basis: auto !important;
        flex-grow: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }

    .header-layout-seven .academic-l7-navbar .navbar-nav {
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        gap: 2px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .header-layout-seven .academic-l7-navbar .navbar-nav .nav-item {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Main menu text visible before hover */
.header-layout-seven .academic-l7-navbar .navbar-nav .nav-link {
    color: var(--l7-text, #172033) !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 13.5px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
}

/* Hover / active state */
.header-layout-seven .academic-l7-navbar .navbar-nav .nav-item:hover > .nav-link,
.header-layout-seven .academic-l7-navbar .navbar-nav .nav-link:hover,
.header-layout-seven .academic-l7-navbar .navbar-nav .nav-link.active,
.header-layout-seven .academic-l7-navbar .navbar-nav .nav-item.show > .nav-link {
    color: var(--l7-primary) !important;
    background: transparent !important;
}

/* Underline hover effect */
.header-layout-seven .academic-l7-navbar .navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 9px;
    height: 3px;
    border-radius: 999px;
    background: var(--l7-secondary) !important;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.header-layout-seven .academic-l7-navbar .navbar-nav .nav-item:hover > .nav-link::before,
.header-layout-seven .academic-l7-navbar .navbar-nav .nav-link.active::before,
.header-layout-seven .academic-l7-navbar .navbar-nav .nav-item.show > .nav-link::before {
    transform: scaleX(1);
}

/* Keep OSAP and search properly aligned */
.header-layout-seven .academic-l7-navbar .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Search button */
.header-layout-seven .academic-l7-navbar .search-box-outer,
.header-layout-seven .academic-l7-navbar .search-btn button,
.header-layout-seven .academic-l7-navbar .nav-right-link {
    color: var(--l7-primary) !important;
    border-color: rgba(23, 32, 51, 0.12) !important;
    background: #ffffff !important;
}

.header-layout-seven .academic-l7-navbar .search-box-outer:hover,
.header-layout-seven .academic-l7-navbar .search-btn button:hover,
.header-layout-seven .academic-l7-navbar .nav-right-link:hover {
    color: #ffffff !important;
    background: var(--l7-primary) !important;
    border-color: var(--l7-primary) !important;
}

/* OSAP button */
.header-layout-seven .academic-l7-navbar #admission {
    color: var(--l7-primary) !important;
    background: #ffffff !important;
    border: 1px solid var(--l7-primary) !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
}

.header-layout-seven .academic-l7-navbar #admission:hover {
    color: #ffffff !important;
    background: var(--l7-primary) !important;
    border-color: var(--l7-primary) !important;
}

/* Dropdown should appear above other sections */
.header-layout-seven .academic-l7-navbar .dropdown-menu {
    z-index: 99999 !important;
}

/* Mobile menu should stay hidden until hamburger click */
@media (max-width: 991.98px) {
    .header-layout-seven .academic-l7-navbar .academic-collapse.navbar-collapse {
        display: none !important;
    }

    .header-layout-seven .academic-l7-navbar .academic-collapse.navbar-collapse.show {
        display: block !important;
    }

    .header-layout-seven .academic-l7-navbar .navbar-nav .nav-link {
        color: var(--l7-text, #172033) !important;
        background: #ffffff !important;
    }

    .header-layout-seven .academic-l7-navbar .navbar-nav .nav-link:hover,
    .header-layout-seven .academic-l7-navbar .navbar-nav .nav-item.show > .nav-link {
        color: var(--l7-primary) !important;
        background: #f5f7fb !important;
    }
}

/* =====================================================
   Layout 7: Increase Logo + Decrease College Name
   Desktop + Mobile Responsive Override
===================================================== */

/* Desktop */
@media (min-width: 992px) {
    .header-layout-seven .academic-l7-logo-slab {
        width: 112px !important;
        min-width: 112px !important;
        height: 112px !important;
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .header-layout-seven .academic-l7-logo-slab img {
        max-width: 90px !important;
        max-height: 90px !important;
        padding: 5px !important;
    }

    .header-layout-seven .academic-l7-name {
        font-size: clamp(22px, 2.1vw, 31px) !important;
        line-height: 1.08 !important;
        letter-spacing: 0.1px !important;
    }

    .header-layout-seven .academic-l7-brand {
        gap: 22px !important;
        padding: 13px 18px !important;
    }
}

/* Tablet + Mobile */
@media (max-width: 991.98px) {
    .header-layout-seven .academic-l7-logo-slab {
        width: 70px !important;
        min-width: 70px !important;
        height: 70px !important;
        padding: 6px !important;
        border-radius: 14px !important;
    }

    .header-layout-seven .academic-l7-logo-slab img {
        max-width: 58px !important;
        max-height: 58px !important;
        padding: 3px !important;
    }

    .header-layout-seven .academic-l7-name {
        font-size: clamp(16px, 4.4vw, 21px) !important;
        line-height: 1.08 !important;
        letter-spacing: 0 !important;
    }

    .header-layout-seven .academic-l7-brand {
        gap: 11px !important;
        padding: 10px 11px !important;
        align-items: center !important;
    }
}

/* Very Small Mobile */
@media (max-width: 420px) {
    .header-layout-seven .academic-l7-logo-slab {
        width: 64px !important;
        min-width: 64px !important;
        height: 64px !important;
    }

    .header-layout-seven .academic-l7-logo-slab img {
        max-width: 52px !important;
        max-height: 52px !important;
    }

    .header-layout-seven .academic-l7-name {
        font-size: 15.5px !important;
    }
}

/* =====================================================
   Layout 7 Mobile Logo + College Name Visible Fix
   Shows logo/name in mobile navbar
===================================================== */

@media (max-width: 991.98px) {

    /* Hide full identity section on mobile to avoid extra height */
    .header-layout-seven .academic-l7-identity {
        display: none !important;
    }

    /* Show mobile logo + college name in navbar */
    .header-layout-seven .academic-mobile-brand {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        max-width: calc(100% - 100px) !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: var(--l7-primary) !important;
        text-decoration: none !important;
    }

    .header-layout-seven .academic-mobile-brand img {
        display: block !important;
        width: auto !important;
        max-width: 42px !important;
        max-height: 42px !important;
        object-fit: contain !important;
        flex: 0 0 auto !important;
    }

    .header-layout-seven .academic-mobile-brand span {
        display: block !important;
        max-width: 210px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        color: var(--l7-primary) !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        line-height: 1.15 !important;
        text-transform: uppercase !important;
    }

    .header-layout-seven .academic-l7-navbar {
        min-height: 58px !important;
        padding: 8px 0 !important;
        background: #ffffff !important;
    }

    .header-layout-seven .academic-mobile-actions {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }
}

@media (max-width: 420px) {
    .header-layout-seven .academic-mobile-brand img {
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .header-layout-seven .academic-mobile-brand span {
        max-width: 170px !important;
        font-size: 12px !important;
    }
}


/* ---------- Layout 8: Newspaper masthead + centered navigation ---------- */
.header-layout-eight .academic-l8-top {
    background: #f5f5f2;
    border-bottom: 1px solid rgba(31,45,61,0.13);
}

.header-layout-eight .academic-l8-top-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
}

.header-layout-eight .academic-l8-label {
    background: var(--academic-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 28px;
    padding: 0 12px;
}

.header-layout-eight .academic-l8-notice {
    overflow: hidden;
}

.header-layout-eight .academic-l8-notice .academic-notice-item,
.header-layout-eight .academic-l8-notice .academic-notice-click {
    color: var(--academic-text) !important;
    border-left-color: rgba(31,45,61,0.20);
}

.header-layout-eight .academic-l8-links .academic-quick-links a {
    color: var(--academic-primary);
    line-height: 36px;
    background: transparent;
}

.header-layout-eight .academic-l8-links .academic-quick-links a:hover {
    color: var(--academic-secondary);
    background: transparent;
}

.header-layout-eight .academic-l8-masthead {
    padding: 18px 0;
    background: #ffffff;
}

.header-layout-eight .academic-l8-brand {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 270px;
    gap: 18px;
    align-items: center;
    border-top: 4px double var(--academic-primary);
    border-bottom: 4px double var(--academic-primary);
    padding: 14px 0;
}

.header-layout-eight .academic-l8-logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-layout-eight .academic-l8-logo-block img {
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
}

.header-layout-eight .academic-l8-name {
    display: block;
    color: var(--academic-primary);
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.4px;
}

.header-layout-eight .academic-l8-meta,
.header-layout-eight .academic-l8-address {
    display: block;
    color: var(--academic-muted);
    line-height: 1.45;
}

.header-layout-eight .academic-l8-cert {
    flex-direction: column;
    align-items: flex-end;
    color: var(--academic-text);
    line-height: 1.35;
}

.header-layout-eight .academic-l8-cert strong {
    color: var(--academic-secondary);
    font-size: 20px;
}

.header-layout-eight .academic-l8-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(31,45,61,0.12);
}

/* ---------- Layout 9: Diagonal gradient campus hero + floating nav ---------- */
.header-layout-nine {
    background: #ffffff;
}

.header-layout-nine .academic-l9-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 44px;
    background:
        linear-gradient(135deg, var(--academic-primary), var(--academic-secondary)),
        radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 36%);
}

.header-layout-nine .academic-l9-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -70px;
    width: 55%;
    height: 150px;
    background: rgba(255,255,255,0.13);
    transform: rotate(-7deg);
    pointer-events: none;
}

.header-layout-nine .academic-l9-top {
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.header-layout-nine .academic-l9-notice {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.header-layout-nine .academic-l9-links .academic-quick-links a {
    color: #ffffff;
    border-right-color: rgba(255,255,255,0.18);
}

.header-layout-nine .academic-l9-links .academic-quick-links a:hover {
    background: rgba(255,255,255,0.14);
}

.header-layout-nine .academic-l9-brand-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 28px;
}

.header-layout-nine .academic-l9-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.header-layout-nine .academic-l9-logo-orbit {
    width: 106px;
    height: 106px;
    min-width: 106px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 8px solid rgba(255,255,255,0.24);
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.header-layout-nine .academic-l9-logo-orbit img {
    max-width: 78px;
    max-height: 78px;
    object-fit: contain;
}

.header-layout-nine .academic-l9-name {
    display: block;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.1;
}

.header-layout-nine .academic-l9-tagline,
.header-layout-nine .academic-l9-address {
    display: block;
    color: rgba(255,255,255,0.88);
    line-height: 1.45;
    margin-top: 4px;
}

.header-layout-nine .academic-l9-recognition {
    min-width: 280px;
    flex-direction: column;
    align-items: flex-end;
    color: #ffffff;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.16);
}

.header-layout-nine .academic-l9-recognition strong {
    font-size: 20px;
}

.header-layout-nine .academic-l9-nav-card {
    position: relative;
    z-index: 4;
    margin-top: -30px;
    padding: 0 16px 0;
}

.header-layout-nine .academic-l9-navbar {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff !important;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(31,45,61,0.15);
}

/* ---------- Layout 10: Executive institutional card + dark navigation ---------- */
.header-layout-ten {
    background: var(--academic-light);
}

.header-layout-ten .academic-l10-top {
    background: var(--academic-primary);
    padding: 7px 0;
}

.header-layout-ten .academic-l10-top-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.header-layout-ten .academic-l10-notice {
    overflow: hidden;
}

.header-layout-ten .academic-l10-links .academic-quick-links {
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0 8px;
}

.header-layout-ten .academic-l10-links .academic-quick-links a {
    color: #ffffff;
    border-right-color: rgba(255,255,255,0.18);
}

.header-layout-ten .academic-l10-links .academic-quick-links a:hover {
    background: transparent;
    color: #ffffff;
}

.header-layout-ten .academic-l10-main {
    padding: 18px 0;
}

.header-layout-ten .academic-l10-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 22px;
    background: #ffffff;
    border-radius: 24px;
    padding: 18px 20px;
    box-shadow: 0 16px 42px rgba(31,45,61,0.10);
}

.header-layout-ten .academic-l10-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.header-layout-ten .academic-l10-logo-tile {
    width: 90px;
    height: 90px;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--academic-primary);
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.16);
}

.header-layout-ten .academic-l10-logo-tile img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px;
}

.header-layout-ten .academic-l10-name {
    display: block;
    color: var(--academic-primary);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 900;
    line-height: 1.12;
}

.header-layout-ten .academic-l10-tagline,
.header-layout-ten .academic-l10-address {
    display: block;
    color: var(--academic-muted);
    line-height: 1.45;
    margin-top: 4px;
}

.header-layout-ten .academic-l10-recognition {
    gap: 5px;
    text-align: right;
    padding-left: 20px;
    border-left: 1px solid rgba(31,45,61,0.12);
}

.header-layout-ten .academic-l10-recognition span {
    color: var(--academic-muted);
    line-height: 1.35;
}

.header-layout-ten .academic-l10-recognition strong {
    color: var(--academic-secondary);
    font-size: 22px;
    line-height: 1.2;
}

.header-layout-ten .academic-l10-navbar {
    background: var(--academic-dark) !important;
}

.header-layout-ten .academic-l10-navbar .nav-item .nav-link,
.header-layout-ten .academic-l10-navbar .nav-right .nav-right-link,
.header-layout-ten .academic-l10-navbar .search-box-outer {
    color: #ffffff !important;
}

.header-layout-ten .academic-l10-navbar .nav-item .nav-link::before {
    background: var(--academic-secondary);
}

/* =====================================================
   12. Sticky states for Header Layouts 4 to 10
   ===================================================== */
@media (min-width: 992px) {
    .header-layout-four .academic-l4-nav-zone,
    .header-layout-five .academic-l5-navbar,
    .header-layout-six .academic-l6-nav-wrap,
    .header-layout-seven .academic-l7-navbar,
    .header-layout-eight .academic-l8-navbar,
    .header-layout-nine .academic-l9-nav-card,
    .header-layout-ten .academic-l10-navbar {
        position: sticky;
        top: 0;
        z-index: 9997;
    }

    .header-layout-four .academic-l4-navbar.academic-stuck,
    .header-layout-five .academic-l5-navbar.academic-stuck,
    .header-layout-six .academic-l6-navbar.academic-stuck,
    .header-layout-seven .academic-l7-navbar.academic-stuck,
    .header-layout-eight .academic-l8-navbar.academic-stuck,
    .header-layout-nine .academic-l9-navbar.academic-stuck,
    .header-layout-ten .academic-l10-navbar.academic-stuck {
        box-shadow: 0 14px 34px rgba(31,45,61,0.16);
    }

    .header-layout-five .academic-l5-navbar.academic-stuck,
    .header-layout-ten .academic-l10-navbar.academic-stuck {
        background: var(--academic-primary) !important;
    }

    .header-layout-ten .academic-l10-navbar.academic-stuck {
        background: var(--academic-dark) !important;
    }

    .header-layout-six .academic-l6-navbar.academic-stuck,
    .header-layout-nine .academic-l9-navbar.academic-stuck {
        max-width: 100% !important;
        border-radius: 0 !important;
    }
}

/* =====================================================
   13. Mobile/Tablet Responsive Rules For Layouts 4 to 10
   ===================================================== */
@media (max-width: 991.98px) {
    .header-layout-four .academic-l4-ribbon,
    .header-layout-four .academic-l4-identity,
    .header-layout-five .academic-l5-topline,
    .header-layout-five .academic-l5-identity,
    .header-layout-six .academic-l6-topbar,
    .header-layout-six .academic-l6-identity,
    .header-layout-seven .academic-l7-topband,
    .header-layout-seven .academic-l7-identity,
    .header-layout-eight .academic-l8-top,
    .header-layout-eight .academic-l8-masthead,
    .header-layout-ten .academic-l10-top,
    .header-layout-ten .academic-l10-main {
        display: none !important;
    }

    .header-layout-nine .academic-l9-top,
    .header-layout-nine .academic-l9-brand-wrap {
        display: none !important;
    }

    .header-layout-nine .academic-l9-hero {
        padding-bottom: 0;
        background: transparent;
    }

    .header-layout-nine .academic-l9-hero::after {
        display: none;
    }

    .header-layout-nine .academic-l9-nav-card {
        margin-top: 0;
        padding: 0;
    }

    .header-layout-four .academic-l4-nav-zone,
    .header-layout-six .academic-l6-nav-wrap {
        background: #ffffff;
    }

    .header-layout-six .academic-l6-navbar,
    .header-layout-nine .academic-l9-navbar {
        max-width: 100%;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(31,45,61,0.10);
    }

    .header-layout-five .academic-l5-navbar,
    .header-layout-ten .academic-l10-navbar {
        background: #ffffff !important;
    }

    .header-layout-five .academic-l5-navbar .nav-item .nav-link,
    .header-layout-five .academic-l5-navbar .nav-right .nav-right-link,
    .header-layout-five .academic-l5-navbar .search-box-outer,
    .header-layout-ten .academic-l10-navbar .nav-item .nav-link,
    .header-layout-ten .academic-l10-navbar .nav-right .nav-right-link,
    .header-layout-ten .academic-l10-navbar .search-box-outer {
        color: var(--academic-text) !important;
    }

    /* Layout 4 mobile: light rounded left style */
    .header-layout-four .academic-mobile-topbar--l4 {
        background: #ffffff;
        border-bottom: 1px solid rgba(31,45,61,0.10);
        color: var(--academic-primary);
    }

    .header-layout-four .academic-mobile-topbar--l4 .academic-mobile-topbar-notices {
        background: var(--academic-primary);
        border-radius: 999px;
        margin: 7px 8px 6px 0px;
        padding: 0 10px;
    }

    .header-layout-four .academic-mobile-topbar--l4 .academic-mobile-topbar-links .academic-quick-links {
        justify-content: center;
    }

    .header-layout-four .academic-mobile-topbar--l4 .academic-mobile-topbar-links .academic-quick-links a {
        background: #ffffff;
        color: var(--academic-primary) !important;
        border-color: rgba(31,45,61,0.13);
    }

    /* Layout 5 mobile: no background, underline chips */
    .header-layout-five .academic-mobile-topbar--l5 {
        background: #ffffff;
        border-bottom: 1px solid rgba(31,45,61,0.10);
    }

    .header-layout-five .academic-mobile-topbar--l5 .academic-mobile-topbar-notices {
        background: transparent;
        border-bottom: 1px dashed rgba(31,45,61,0.18);
    }

    .header-layout-five .academic-mobile-topbar--l5 .academic-notice-item,
    .header-layout-five .academic-mobile-topbar--l5 .academic-notice-click {
        color: var(--academic-primary) !important;
    }

    .header-layout-five .academic-mobile-topbar--l5 .academic-mobile-topbar-links .academic-quick-links {
        justify-content: flex-end;
    }

    .header-layout-five .academic-mobile-topbar--l5 .academic-mobile-topbar-links .academic-quick-links a {
        background: transparent;
        color: var(--academic-primary) !important;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid rgba(31,45,61,0.18);
    }

    /* Layout 6 mobile: centered gradient chips */
    .header-layout-six .academic-mobile-topbar--l6 {
        background: linear-gradient(90deg, var(--academic-primary), var(--academic-secondary));
    }

    .header-layout-six .academic-mobile-topbar--l6 .academic-mobile-topbar-notices {
        background: rgba(255,255,255,0.14);
        border-radius: 12px;
        margin: 7px 8px 5px;
    }

    .header-layout-six .academic-mobile-topbar--l6 .academic-mobile-topbar-links .academic-quick-links {
        justify-content: center;
    }

    /* Layout 7 mobile: split dark/primary */
    .header-layout-seven .academic-mobile-topbar--l7 {
        background: var(--academic-dark);
    }

    .header-layout-seven .academic-mobile-topbar--l7 .academic-mobile-topbar-notices {
        background: var(--academic-primary);
        clip-path: polygon(0 0, 97% 0, 100% 100%, 0% 100%);
        background: linear-gradient(145deg, var(--academic-primary), var(--academic-secondary));
    }

    .header-layout-seven .academic-mobile-topbar--l7 .academic-mobile-topbar-links .academic-quick-links {
        justify-content: space-between;
    }

    .header-layout-seven .academic-mobile-topbar--l7 .academic-mobile-topbar-links .academic-quick-links a {
        border-radius: 4px;
    }

    /* Layout 8 mobile: editorial grey style */
    .header-layout-eight .academic-mobile-topbar--l8 {
        background: #f5f5f2;
        border-bottom: 1px solid rgba(31,45,61,0.14);
    }

    .header-layout-eight .academic-mobile-topbar--l8 .academic-mobile-topbar-notices {
        background: transparent;
        border-left: 5px solid var(--academic-primary);
    }

    .header-layout-eight .academic-mobile-topbar--l8 .academic-notice-item,
    .header-layout-eight .academic-mobile-topbar--l8 .academic-notice-click {
        color: var(--academic-text) !important;
    }

    .header-layout-eight .academic-mobile-topbar--l8 .academic-mobile-topbar-links .academic-quick-links {
        justify-content: center;
    }

    .header-layout-eight .academic-mobile-topbar--l8 .academic-mobile-topbar-links .academic-quick-links a {
        background: #ffffff;
        color: var(--academic-primary) !important;
        border-color: rgba(31,45,61,0.13);
        border-radius: 3px;
    }

    /* Layout 9 mobile: diagonal gradient */
    .header-layout-nine .academic-mobile-topbar--l9 {
        background: linear-gradient(135deg, var(--academic-primary), var(--academic-secondary));
    }

    .header-layout-nine .academic-mobile-topbar--l9 .academic-mobile-topbar-notices {
        background: rgba(255,255,255,0.13);
        border-radius: 0 0 18px 18px;
    }

    .header-layout-nine .academic-mobile-topbar--l9 .academic-mobile-topbar-links .academic-quick-links {
        justify-content: flex-start;
    }

    .header-layout-nine .academic-mobile-topbar--l9 .academic-mobile-topbar-links .academic-quick-links a {
        border-radius: 14px 4px 14px 4px;
    }

    /* Layout 10 mobile: executive dark chips */
    .header-layout-ten .academic-mobile-topbar--l10 {
        background: var(--academic-primary);
    }

    .header-layout-ten .academic-mobile-topbar--l10 .academic-mobile-topbar-notices {
        background: rgba(0,0,0,0.12);
        border-radius: 8px;
        margin: 7px 8px 5px;
    }

    .header-layout-ten .academic-mobile-topbar--l10 .academic-mobile-topbar-links .academic-quick-links {
        justify-content: space-between;
    }

    .header-layout-ten .academic-mobile-topbar--l10 .academic-mobile-topbar-links .academic-quick-links a {
        border-radius: 10px;
        background: rgba(255,255,255,0.10);
    }
}

@media (max-width: 575.98px) {
    .header-layout-five .academic-mobile-topbar--l5 .academic-mobile-topbar-links .academic-quick-links,
    .header-layout-seven .academic-mobile-topbar--l7 .academic-mobile-topbar-links .academic-quick-links,
    .header-layout-ten .academic-mobile-topbar--l10 .academic-mobile-topbar-links .academic-quick-links {
        justify-content: center;
    }
}

/* =====================================================
   08. Enhancement Patch - Logo Neutrality
   Purpose: preserve original logo shape and identity.
   No wrapper border, shadow, background, radius or decorative frame.
   ===================================================== */
.academic-header .academic-brand-logo-wrap,
.academic-header .academic-l2-logo-box,
.academic-header .academic-l3-logo-ring,
.academic-header .academic-l4-logo-frame,
.academic-header .academic-l5-logo-box,
.academic-header .academic-l6-logo-medal,
.academic-header .academic-l7-logo-slab,
.academic-header .academic-l8-logo-block,
.academic-header .academic-l9-logo-orbit,
.academic-header .academic-l10-logo-tile,
.academic-header .academic-mobile-brand img {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.academic-header .academic-brand-logo-wrap::before,
.academic-header .academic-brand-logo-wrap::after,
.academic-header .academic-l2-logo-box::before,
.academic-header .academic-l2-logo-box::after,
.academic-header .academic-l3-logo-ring::before,
.academic-header .academic-l3-logo-ring::after,
.academic-header .academic-l4-logo-frame::before,
.academic-header .academic-l4-logo-frame::after,
.academic-header .academic-l5-logo-box::before,
.academic-header .academic-l5-logo-box::after,
.academic-header .academic-l6-logo-medal::before,
.academic-header .academic-l6-logo-medal::after,
.academic-header .academic-l7-logo-slab::before,
.academic-header .academic-l7-logo-slab::after,
.academic-header .academic-l8-logo-block::before,
.academic-header .academic-l8-logo-block::after,
.academic-header .academic-l9-logo-orbit::before,
.academic-header .academic-l9-logo-orbit::after,
.academic-header .academic-l10-logo-tile::before,
.academic-header .academic-l10-logo-tile::after {
    display: none !important;
}

.academic-header .academic-brand-logo-wrap,
.academic-header .academic-l2-logo-box,
.academic-header .academic-l3-logo-ring,
.academic-header .academic-l4-logo-frame,
.academic-header .academic-l5-logo-box,
.academic-header .academic-l6-logo-medal,
.academic-header .academic-l7-logo-slab,
.academic-header .academic-l8-logo-block,
.academic-header .academic-l9-logo-orbit,
.academic-header .academic-l10-logo-tile {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.academic-header .academic-brand-logo,
.academic-header .academic-l2-logo-box img,
.academic-header .academic-l3-logo-ring img,
.academic-header .academic-l4-logo-frame img,
.academic-header .academic-l5-logo-box img,
.academic-header .academic-l6-logo-medal img,
.academic-header .academic-l7-logo-slab img,
.academic-header .academic-l8-logo-block img,
.academic-header .academic-l9-logo-orbit img,
.academic-header .academic-l10-logo-tile img {
    max-width: 96px;
    max-height: 96px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.header-layout-two .academic-l2-logo-box img,
.header-layout-five .academic-l5-logo-box img,
.header-layout-seven .academic-l7-logo-slab img,
.header-layout-ten .academic-l10-logo-tile img {
    max-width: 86px;
    max-height: 86px;
}

.header-layout-six .academic-l6-logo-medal img,
.header-layout-eight .academic-l8-logo-block img,
.header-layout-nine .academic-l9-logo-orbit img {
    max-width: 100px;
    max-height: 100px;
}

.academic-mobile-brand img {
    width: 42px !important;
    height: auto !important;
    max-height: 42px !important;
}

/* =====================================================
   09. Enhancement Patch - Top Header Swapped Positions
   Menu links stay on left, notification stays on right.
   ===================================================== */
.academic-header .academic-topbar-news,
.academic-header .academic-l2-news,
.academic-header .academic-l3-notice-wrap,
.academic-header .academic-l4-notice,
.academic-header .academic-l5-notice,
.academic-header .academic-l6-notice,
.academic-header .academic-l7-notice-cell,
.academic-header .academic-l8-notice,
.academic-header .academic-l9-notice,
.academic-header .academic-l10-notice {
    text-align: right;
}

.academic-header .academic-topbar-news marquee,
.academic-header .academic-l2-news marquee,
.academic-header .academic-l3-notice-wrap marquee,
.academic-header .academic-l4-notice marquee,
.academic-header .academic-l5-notice marquee,
.academic-header .academic-l6-notice marquee,
.academic-header .academic-l7-notice-cell marquee,
.academic-header .academic-l8-notice marquee,
.academic-header .academic-l9-notice marquee,
.academic-header .academic-l10-notice marquee {
    display: block;
    width: 100%;
}

.academic-header .academic-l3-topline .academic-quick-links,
.academic-header .academic-l4-links .academic-quick-links,
.academic-header .academic-l6-links .academic-quick-links,
.academic-header .academic-l8-links .academic-quick-links,
.academic-header .academic-l9-links .academic-quick-links,
.academic-header .academic-l10-links .academic-quick-links {
    justify-content: flex-start;
}

.header-layout-eight .academic-l8-top-grid {
    grid-template-columns: minmax(340px, 1.05fr) 150px minmax(300px, 1fr);
    align-items: center;
}

/* =====================================================
   10. Enhancement Patch - Mobile Top Header Order
   Quick links first, notification second. Wrapping is preserved.
   ===================================================== */
.academic-mobile-topbar .academic-mobile-topbar-links {
    order: 1;
}

.academic-mobile-topbar .academic-mobile-topbar-notices {
    order: 2;
}

.academic-mobile-topbar .academic-mobile-topbar-notices marquee {
    width: 100%;
}

/* =====================================================
   11. Enhancement Patch - Distinct Navigation + Submenu + Mega Menu Styles
   Each custom header has its own menu language while preserving Blade logic.
   ===================================================== */
@media (min-width: 992px) {
    /* ---------- Layout 1: Classic underline academic nav ---------- */
    .header-layout-one .academic-nav-wrap {
        background: #ffffff;
        border-top: 1px solid rgba(31,45,61,0.08);
        border-bottom: 3px solid var(--academic-primary);
    }

    .header-layout-one .navbar .nav-item .nav-link {
        color: var(--academic-primary);
        padding: 18px 0;
        font-weight: 800;
    }

    .header-layout-one .navbar .nav-item .nav-link::before {
        height: 2px;
        bottom: 13px;
        background: var(--academic-secondary);
    }

    .header-layout-one .navbar .dropdown-menu {
        border-top: 3px solid var(--academic-primary);
        border-radius: 0;
        background: #ffffff;
        padding: 16px;
    }

    .header-layout-one .navbar .dropdown-menu .dropdown-item:hover {
        background: color-mix(in srgb, var(--academic-primary) 8%, transparent);
        color: var(--academic-primary);
        color: var(--academic-primary) !important; 
    }

    .header-layout-one .mega-content h5 {
        color: var(--academic-primary);
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    /* ---------- Layout 2: Dark block nav with rounded dropdowns ---------- */
    .header-layout-two .academic-l2-navbar {
        background: var(--academic-primary);
    }

    .header-layout-two .navbar .nav-item .nav-link {
        color: #ffffff;
        padding: 17px 13px;
        margin-right: 4px;
        border-radius: 999px;
    }

    .header-layout-two .navbar .nav-item .nav-link::before {
        display: none;
    }

    .header-layout-two .navbar .nav-item:hover .nav-link,
    .header-layout-two .navbar .nav-item .nav-link.active {
        background: rgba(255,255,255,0.14);
        color: #ffffff;
    }

    .header-layout-two .navbar .dropdown-menu {
        border-top: 0;
        border-radius: 18px;
        background: #ffffff;
        padding: 14px;
    }

    .header-layout-two .navbar .dropdown-menu .dropdown-item {
        border-radius: 999px;
    }

    .header-layout-two .navbar .dropdown-menu .dropdown-item:hover {
        background: var(--academic-secondary);
        color: #ffffff;
    }

    .header-layout-two .mega-content .row > [class*="col-"] {
        padding: 14px;
        border-radius: 16px;
        background: color-mix(in srgb, var(--academic-primary) 4%, transparent);
    }

    /* ---------- Layout 3: Floating premium nav with card mega ---------- */
    .header-layout-three .academic-l3-navbar {
        background: #ffffff;
        border-radius: 18px;
        overflow: visible;
    }

    .header-layout-three .navbar .nav-item .nav-link {
        padding: 16px 9px;
        color: var(--academic-dark);
    }

    .header-layout-three .navbar .nav-item .nav-link::before {
        height: 5px;
        bottom: 0;
        border-radius: 20px 20px 0 0;
    }

    .header-layout-three .navbar .dropdown-menu {
        border-top: 0;
        border-radius: 20px;
        background: #f8fafc;
        padding: 18px;
    }

    .header-layout-three .navbar .dropdown-menu li {
        border-bottom: 0;
    }

    .header-layout-three .navbar .dropdown-menu .dropdown-item {
        background: #ffffff;
        margin-bottom: 6px;
        border-radius: 12px;
    }

    .header-layout-three .navbar .dropdown-menu .dropdown-item:hover {
        background: var(--academic-primary);
        color: #ffffff;
    }

    /* ---------- Layout 4: Ribbon nav with pill submenu ---------- */
    .header-layout-four .academic-l4-navbar {
        background: var(--academic-secondary);
    }

    .header-layout-four .navbar .nav-item .nav-link {
        color: #ffffff;
        padding: 18px 11px;
        margin-right: 2px;
    }

    .header-layout-four .navbar .nav-item .nav-link::before {
        background: #ffffff;
        bottom: 9px;
    }

    .header-layout-four .navbar .dropdown-menu {
        border-top: 5px solid var(--academic-secondary);
        border-radius: 0 0 24px 24px;
        padding: 18px;
        background: #fffdf7;
    }

    .header-layout-four .navbar .dropdown-menu .dropdown-item {
        border-radius: 12px 0 12px 0;
    }

    .header-layout-four .navbar .dropdown-menu .dropdown-item:hover {
        background: var(--academic-secondary);
        color: #ffffff;
    }

    /* ---------- Layout 5: Minimal editorial nav ---------- */
    .header-layout-five .academic-l5-navbar {
        background: #ffffff;
        border-top: 1px solid rgba(31,45,61,0.12);
        border-bottom: 1px solid rgba(31,45,61,0.12);
    }

    .header-layout-five .navbar .nav-item .nav-link {
        font-weight: 700;
        color: var(--academic-text);
        margin-right: 24px;
    }

    .header-layout-five .navbar .nav-item .nav-link::before {
        height: 1px;
        background: var(--academic-primary);
    }

    .header-layout-five .navbar .dropdown-menu {
        border-top: 1px solid var(--academic-primary);
        border-radius: 0;
        padding: 10px 0;
        background: #ffffff;
    }

    .header-layout-five .navbar .dropdown-menu .dropdown-item {
        border-radius: 0;
        padding-left: 18px;
        border-left: 3px solid transparent;
    }

    .header-layout-five .navbar .dropdown-menu .dropdown-item:hover {
        background: color-mix(in srgb, var(--academic-primary) 5%, transparent);
        border-left-color: var(--academic-primary);
        color: var(--academic-primary);
    }

    /* ---------- Layout 6: Centered ceremonial nav ---------- */
    .header-layout-six .academic-l6-navbar {
        background: var(--academic-light);
    }

    .header-layout-six .navbar-nav {
        margin-left: auto;
        margin-right: auto;
    }

    .header-layout-six .navbar .nav-item .nav-link {
        color: var(--academic-primary);
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.6px;
        margin: 0 7px;
        padding: 18px 2px;
    }

    .header-layout-six .navbar .nav-item .nav-link::before {
        bottom: 10px;
        height: 3px;
        background: var(--academic-secondary);
    }

    .header-layout-six .navbar .dropdown-menu {
        border-top: 0;
        border-radius: 22px;
        padding: 20px;
        background: #ffffff;
    }

    .header-layout-six .mega-content .row > [class*="col-"] {
        border-left: 4px solid color-mix(in srgb, var(--academic-primary) 12%, transparent);
        padding-left: 18px;
    }

    .header-layout-six .navbar .dropdown-menu .dropdown-item:hover {
        background: var(--academic-light);
        color: var(--academic-secondary);
    }

    /* ---------- Layout 7: Split-band strong nav ---------- */
    .header-layout-seven .academic-l7-navbar {
        background: linear-gradient(90deg, var(--academic-primary) 0 65%, var(--academic-secondary) 65% 100%);
    }

    .header-layout-seven .navbar .nav-item .nav-link {
        color: #ffffff;
        padding: 17px 8px;
    }

    .header-layout-seven .navbar .nav-item .nav-link::before {
        background: #ffffff;
    }

    .header-layout-seven .navbar .dropdown-menu {
        border-top: 0;
        border-left: 6px solid var(--academic-secondary);
        border-radius: 0 18px 18px 0;
        background: #ffffff;
    }

    .header-layout-seven .navbar .dropdown-menu .dropdown-item:hover {
        background: var(--academic-primary);
        color: #ffffff;
    }

    /* ---------- Layout 8: Newspaper masthead nav ---------- */
    .header-layout-eight .academic-l8-navbar {
        background: #f7f3ea;
        border-top: 3px double rgba(31,45,61,0.26);
        border-bottom: 3px double rgba(31,45,61,0.26);
    }

    .header-layout-eight .navbar .nav-item .nav-link {
        color: #111827;
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 15px;
        font-weight: 700;
        margin-right: 18px;
    }

    .header-layout-eight .navbar .nav-item .nav-link::before {
        background: #111827;
        height: 2px;
    }

    .header-layout-eight .navbar .dropdown-menu {
        border: 1px solid rgba(31,45,61,0.18);
        border-top: 4px double var(--academic-primary);
        border-radius: 0;
        background: #fffaf0;
    }

    .header-layout-eight .mega-content h5 {
        font-family: Georgia, 'Times New Roman', serif;
        color: #111827;
    }

    .header-layout-eight .navbar .dropdown-menu .dropdown-item:hover {
        background: #111827;
        color: #ffffff;
    }

    /* ---------- Layout 9: Diagonal gradient nav ---------- */
    .header-layout-nine .academic-l9-navbar {
        background: linear-gradient(135deg, var(--academic-primary), var(--academic-secondary));
        border-radius: 18px;
    }

    .header-layout-nine .navbar .nav-item .nav-link {
        color: #ffffff;
        padding: 16px 10px;
    }

    .header-layout-nine .navbar .nav-item .nav-link::before {
        background: #ffffff;
        bottom: 7px;
    }

    .header-layout-nine .navbar .dropdown-menu {
        border-top: 0;
        border-radius: 20px 4px 20px 4px;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(8px);
    }

    .header-layout-nine .navbar .dropdown-menu .dropdown-item {
        border-radius: 14px 4px 14px 4px;
    }

    .header-layout-nine .navbar .dropdown-menu .dropdown-item:hover {
        background: linear-gradient(135deg, var(--academic-primary), var(--academic-secondary));
        color: #ffffff;
    }

    /* ---------- Layout 10: Executive grid nav ---------- */
    .header-layout-ten .academic-l10-navbar {
        background: #ffffff;
        border-top: 4px solid var(--academic-primary);
        border-bottom: 1px solid rgba(31,45,61,0.12);
    }

    .header-layout-ten .navbar .nav-item .nav-link {
        color: var(--academic-text);
        padding: 16px 12px;
        margin-right: 3px;
    }

    .header-layout-ten .navbar .nav-item .nav-link::before {
        display: none;
    }

    .header-layout-ten .navbar .nav-item:hover .nav-link,
    .header-layout-ten .navbar .nav-item .nav-link.active {
        background: var(--academic-primary);
        color: #ffffff;
    }

    .header-layout-ten .navbar .dropdown-menu {
        border-top: 0;
        border-radius: 4px;
        padding: 18px;
        background: #ffffff;
    }

    .header-layout-ten .mega-content .row > [class*="col-"] {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(31,45,61,0.08);
    }

    .header-layout-ten .navbar .dropdown-menu .dropdown-item:hover {
        background: var(--academic-primary);
        color: #ffffff;
    }
}

/* =====================================================
   12. Enhancement Patch - Mobile/Tablet Menu Visual Difference
   ===================================================== */
@media (max-width: 991.98px) {
    .academic-header .academic-mobile-brand img {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .header-layout-one .navbar-collapse { border-top: 3px solid var(--academic-primary); }
    .header-layout-two .navbar-collapse { border-radius: 20px; background: var(--academic-light) !important; }
    .header-layout-three .navbar-collapse { border-left: 5px solid var(--academic-secondary); }
    .header-layout-four .navbar-collapse { border-radius: 0 0 22px 22px; }
    .header-layout-five .navbar-collapse { border-radius: 0; box-shadow: none; border: 1px solid rgba(31,45,61,0.12); }
    .header-layout-six .navbar-collapse { text-align: center; }
    .header-layout-seven .navbar-collapse { border-top: 4px solid var(--academic-secondary); }
    .header-layout-eight .navbar-collapse { background: #fffaf0 !important; border-radius: 0; }
    .header-layout-nine .navbar-collapse { border-radius: 18px 4px 18px 4px; }
    .header-layout-ten .navbar-collapse { border-top: 4px solid var(--academic-primary); border-radius: 4px; }
}
