/* ==========================================================================
   Raiganj University - Utility bar, site header, main nav & mega menu
   File: assets/css/02-header.css
   ======================================================================= */

/* ===== Utility bar ===== */
.utility-bar {
    background: var(--teal);
    color: #DCE7E3;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.utility-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 0 0px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 18px;
    flex-shrink: 0;
    white-space: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

    .contact-info::-webkit-scrollbar {
        display: none;
    }

    .contact-info a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        opacity: .92;
    }

        .contact-info a:hover {
            opacity: 1;
            color: var(--gold-soft);
        }

    .contact-info svg {
        flex-shrink: 0;
        opacity: .85;
    }

.utility-bar .track {
    display: flex;
    gap: 15px;
    white-space: nowrap;
    padding: 8px 20px;
    margin: 6px 0;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
}

    .utility-bar .track::-webkit-scrollbar {
        display: none;
    }

.utility-bar a {
    opacity: .88;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}

    .utility-bar a:hover {
        opacity: 1;
        border-bottom-color: var(--gold);
    }

.utility-bar .sep {
    opacity: .35;
}

.utility-toggle {
    display: none;
}
/* ===== Header ===== */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 500;
}

.header-row {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.seal {
    width: 118px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

    .seal img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

.brand-text .name {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.12;
    color: var(--maroon-dark);
}

.brand-text .name-bn {
    font-family: 'Noto Sans Bengali', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: var(--maroon);
    margin-top: 3px;
}

.brand-text .sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: .09em;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin-top: 7px;
}

.header-actions-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.header-mini-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-mini-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--maroon-dark);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px 6px 10px;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

    .header-mini-link svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        color: var(--gold);
    }

    .header-mini-link:hover {
        color: #fff;
        background: var(--maroon);
        border-color: var(--maroon);
        transform: translateY(-1px);
    }

        .header-mini-link:hover svg {
            color: var(--gold-soft);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--maroon);
    border-radius: var(--radius);
    cursor: pointer;
    background: transparent;
    color: var(--maroon-dark);
    white-space: nowrap;
}

.btn-solid {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

    .btn-solid:hover {
        background: var(--maroon-dark);
    }

.btn:hover {
    background: rgba(110,20,35,0.06);
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.google-search-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    background: #fff;
    border-radius: 24px;
    position: relative;
    isolation: isolate;
}

    .google-search-box::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 24px;
        padding: 1.5px;
        background: linear-gradient(90deg,var(--maroon),var(--maroon-dark));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

.gsb-icon {
    color: #5f6368;
    flex: 0 0 auto;
}

.gsb-input {
    border: none;
    outline: none;
    font-size: 13.5px;
    color: #3c4043;
    width: 100px;
    background: transparent;
}

    .gsb-input::placeholder {
        color: #9aa0a6;
    }


/* ===== Main nav ===== */
.main-nav {
    background: var(--maroon);
}

.nav-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
}


/* Mobile */
@media (max-width: 900px) {
    .nav-inner {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        margin: 0;
        box-sizing: border-box;
        justify-content: flex-start;
    }

}

@media (max-width: 991.98px) {
    .nav-link {
        font-size: 10px !important;
    }
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

    .nav-list > li {
        position: relative;
    }

.nav-link {
     display: flex;
    align-items: center;
    height: 50px;
    padding: 0 5px;
    color: #F3E9DC;
    font-size: 15px;
    font-weight: 200;
    letter-spacing: .01em;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.nav-list > li:hover > .nav-link,
.nav-list > li.open > .nav-link {
    background: rgba(255,255,255,0.06);
    border-bottom-color: var(--gold);
    color: #fff;
}

.nav-link .caret {
    margin-left: 6px;
    font-size: 10px;
    opacity: .7;
    transition: transform .15s ease;
}

.nav-list > li.open > .nav-link .caret {
    transform: rotate(180deg);
}
/* 1. Force top-level menu items to stay on a single line */
.nav-list > li > .nav-link {
    white-space: nowrap;
}

/* 2. Reset all nested dropdown/child links back to normal text wrapping */
.nav-list > li ul .nav-link,
.nav-list > li .submenu .nav-link { 
    white-space: normal;
}

/* Mega menu */
.mega {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--cream);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    box-shadow: 0 18px 40px rgba(20,10,8,0.18);
    padding: 26px 30px;
    display: none;
    z-index: 400;
    min-width: 640px;
    max-width: 920px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.nav-list > li.open > .mega {
    display: block;
}

    .nav-list > li.open > .mega.flip {
        left: auto;
        right: 0;
    }

.mega.flat {
    min-width: 420px;
    columns: 2;
    column-gap: 36px;
}

    .mega.flat .mega-col {
        break-inside: avoid;
        margin-bottom: 4px;
    }

.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 34px;
}

.mega-col {
    min-width: 0;
}

    .mega-col + .mega-col {
    }

.mega-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--maroon);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.mega-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin: 10px 0 4px;
}

.mega-heading-ic {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--maroon-dark);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 9px;
    margin: 0 0 10px;
}

    .mega-heading-ic + ul {
        margin-top: 0;
    }

    .mega-heading-ic .ic {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--gold);
    }

        .mega-heading-ic .ic svg {
            width: 17px;
            height: 17px;
        }

.mega-group + .mega-group {
    margin-top: 20px;
}

.mega ul {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
}

.mega li a, .mega-col > a {
    display: block;
    font-size: 13.5px;
    color: var(--ink-soft);
    padding: 4px 0;
    line-height: 1.4;
}

    .mega li a:hover, .mega-col > a:hover {
        color: var(--maroon-dark);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.mega .nested {
    padding-left: 12px;
    border-left: 2px solid var(--paper);
    margin: 4px 0 8px 2px;
}

.mega-index {
    font-family: 'Fraunces', serif;
    font-size: 34px;
    color: var(--gold-soft);
    -webkit-text-stroke: 1px var(--maroon);
    position: absolute;
    right: 24px;
    top: 14px;
    opacity: .5;
    pointer-events: none;
}

/* mobile toggle */
.nav-toggle {
    display: none;
}
/* =========================================================
   MOBILE MEGA MENU
   Each inner mega-col displayed one-by-one
   Full width - no horizontal/vertical scrollbar
   ========================================================= */

@media (max-width: 900px) {

    /* Mobile navigation */
    .main-nav {
        position: relative;
    }

    .nav-inner {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        justify-content: flex-start;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        color: #fff;
        padding: 14px 18px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

        .nav-toggle .bar {
            width: 22px;
            height: 2px;
            background: #fff;
            position: relative;
        }

            .nav-toggle .bar:before,
            .nav-toggle .bar:after {
                content: "";
                position: absolute;
                left: 0;
                width: 22px;
                height: 2px;
                background: #fff;
            }

            .nav-toggle .bar:before {
                top: -6px;
            }

            .nav-toggle .bar:after {
                top: 6px;
            }


    /* =====================================================
       Main mobile menu
       ===================================================== */

    .nav-list {
        display: none;
    }

    .main-nav.nav-open .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--maroon-dark);
        /*
         * Do not use a fixed/max height here.
         * This prevents the menu from getting its own scrollbar.
         */
        max-height: none;
        overflow: visible;
        box-shadow: 0 20px 30px rgba(0,0,0,0.25);
        z-index: 999;
    }

    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-link {
        height: auto;
        min-height: 50px;
        padding: 14px 20px;
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }


    /* =====================================================
       MEGA MENU
       ===================================================== */

    .mega,
    .mega.flip {
        position: static;
        width: 100%;
        min-width: 0 !important;
        max-width: none;
        box-sizing: border-box;
        /*
         * Important:
         * Do NOT give the mega menu a max-height.
         */
        max-height: none;
        /*
         * No internal scrollbar
         */
        overflow: visible;
        overflow-x: hidden;
        overflow-y: visible;
        display: none;
        padding: 0;
        margin: 0;
        background: rgba(0,0,0,0.18);
        border: none;
        border-top: 1px solid rgba(255,255,255,0.10);
        box-shadow: none;
        columns: 1;
    }


    /* Open mega menu */
    .nav-list > li.open > .mega {
        display: block;
    }


    /* =====================================================
       INNER MEGA GRID
       ===================================================== */

    .mega-grid {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        /*
         * Remove desktop grid behaviour
         */
        grid-template-columns: none;
        /*
         * Prevent content from creating horizontal overflow
         */
        box-sizing: border-box;
    }


    /* =====================================================
       EACH INNER DIV / COLUMN
       ===================================================== */

    .mega-col {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
        padding: 18px 20px;
        margin: 0;
        /*
         * One column at a time
         */
        break-inside: auto;
        border-bottom: 1px solid rgba(255,255,255,0.10);
    }


        /* Last inner div */
        .mega-col:last-child {
            border-bottom: none;
        }


    /* =====================================================
       Mega headings
       ===================================================== */

    .mega-heading {
        display: block;
        width: 100%;
        box-sizing: border-box;
        color: var(--gold-soft);
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding-bottom: 8px;
        margin-bottom: 10px;
        font-size: 11px;
    }


    .mega-heading-ic {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        color: var(--gold-soft);
        border-bottom: 2px solid rgba(255,255,255,0.30);
        padding-bottom: 9px;
        margin: 0 0 10px;
        font-size: 13px;
    }


    /* =====================================================
       Mega links
       ===================================================== */

    .mega ul {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mega li {
        width: 100%;
    }

        .mega li a,
        .mega-col > a {
            display: block;
            width: 100%;
            box-sizing: border-box;
            color: #D8CFC2;
            padding: 8px 0;
            font-size: 14px;
            line-height: 1.5;
            /*
         * Allow long menu text to wrap
         */
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: normal;
        }

            .mega li a:hover,
            .mega-col > a:hover {
                color: #fff;
                text-decoration: none;
                background: rgba(255,255,255,0.05);
            }


    /* =====================================================
       Sub-menu / nested links
       ===================================================== */

    .mega .nested {
        width: 100%;
        box-sizing: border-box;
        padding-left: 14px;
        margin: 4px 0 8px 0;
        border-left: 2px solid rgba(255,255,255,0.15);
    }


    .mega-sub {
        color: #F3E9DC;
        font-size: 13px;
        margin: 12px 0 5px;
    }


    /* =====================================================
       Hide desktop decorative index
       ===================================================== */

    .mega-index {
        display: none;
    }


    /* =====================================================
       Flat mega menu
       ===================================================== */

    .mega.flat {
        min-width: 0 !important;
        width: 100%;
        columns: 1;
        column-count: 1;
        column-gap: 0;
        padding: 0;
    }

        .mega.flat .mega-col {
            width: 100%;
            break-inside: auto;
            margin-bottom: 0;
        }
}

/*Kaustav */
/* ==========================================================================
   Leadership - Saffron glassmorphism cards
   ========================================================================== */

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    position: relative;
    padding: 26px;
    isolation: isolate;
}

    /* Saffron glow lives on a pseudo-element that bleeds 40px past the grid
       and is masked to fade out, so it can never produce a clipped edge.
       Sits behind the cards so their backdrop-filter has something to blur. */
    .leadership-grid::before {
        content: "";
        position: absolute;
        inset: -40px;
        z-index: -1;
        pointer-events: none;
        background: radial-gradient(38% 46% at 26% 28%, rgba(255,138,28,0.78), transparent 70%), radial-gradient(36% 44% at 76% 74%, rgba(200,155,60,0.70), transparent 70%), radial-gradient(30% 38% at 64% 22%, rgba(255,102,26,0.52), transparent 72%);
        -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000 40%, transparent 100%);
        mask-image: radial-gradient(72% 72% at 50% 50%, #000 40%, transparent 100%);
    }


/* ==========================================================================
   COMMON LEADER CARD
   ========================================================================== */

.leader-profile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 32px 28px 28px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .leader-profile:hover {
        transform: translateY(-5px);
    }


/* ==========================================================================
   CHANCELLOR + VICE-CHANCELLOR
   Identical saffron glassmorphism treatment for both cards.
   Prefixed with .leadership-grid so these outrank .vc-card rules in
   06-about-vision.css, which the home page loads after this file.
   ========================================================================== */

.leadership-grid .leader-profile {
    background: rgba(249, 223, 144, 0.5);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(0px);
-webkit-backdrop-filter: blur(0px);
border: 1px solid rgba(249, 223, 144, 0.88);
}

    .leadership-grid .leader-profile:hover {
        box-shadow: 0 26px 54px rgba(150,70,10,0.32), inset 0 1px 0 rgba(255,255,255,0.75), inset 0 -1px 0 rgba(255,255,255,0.20);
    }

    /* Shared top sheen - replaces the old red / gold divergent bars */
    .leadership-grid .leader-profile::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.85), rgba(255,255,255,0.15));
    }

    /* Soft specular glow, keeps the glass from looking flat */
    .leadership-grid .leader-profile::after {
        content: "";
        position: absolute;
        top: -55%;
        left: -20%;
        width: 80%;
        height: 120%;
        background: radial-gradient(closest-side, rgba(255,255,255,0.34), transparent 70%);
        pointer-events: none;
    }

/* ---- Role badge - frosted pill ---- */
.leadership-grid .leader-priority {
    display: inline-block;
    margin: 0 auto 6px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--maroon-dark);
}

/* ---- Photo ---- */
.leadership-grid .vc-photo {
    border: 4px solid rgba(255,255,255,0.78);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.22), 0 12px 30px rgba(120,55,8,0.32);
}

/* ---- Typography ---- */
.leadership-grid .leader-profile h3 {
    color: var(--maroon-dark);
}

.leadership-grid .leader-profile .vc-title {
    color: rgba(78,14,25,0.80);
}

.leadership-grid .leader-profile .vc-quote {
    color: var(--maroon-dark);
    border-left: 3px solid rgba(255,255,255,0.75);
}

/* ---- CTA ---- */
.leadership-grid .leader-profile .btn-more {
    color: #fff;
    background: var(--maroon-dark);
    border: 1px solid rgba(255,255,255,0.35);
}

    .leadership-grid .leader-profile .btn-more:hover {
        background: var(--maroon);
        border-color: rgba(255,255,255,0.55);
    }
	
/* ==========================================================================
   LEADERSHIP HISTORY
   ========================================================================== */

.leadership-section .vc-history {
    margin-top: 28px;
    margin-bottom: 0;
    padding: 20px 24px;
    border-radius: 12px;
    /* background: #fafafa; */
    border-left: 5px solid var(--gold);
    color: #444;
    line-height: 1.7;
}


/* ==========================================================================
   ABOUT US - ALWAYS FULL WIDTH
   ========================================================================== */

.about-panel-full {
    width: 100%;
    grid-column: 1 / -1;
  
}


/* If .block is a normal container rather than CSS Grid */

.about-panel.about-panel-full {
    width: 100%;
}


/* ==========================================================================
   MOBILE
   Chancellor and Vice-Chancellor remain 50% / 50%
   ========================================================================== */

@media (max-width: 768px) {

    .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .leader-profile {
        padding: 26px 12px 22px;
        border-radius: 13px;
    }

        .leader-profile .vc-photo {
            width: 105px;
            height: 105px;
            margin: 15px auto;
        }

        .leader-profile h3 {
            font-size: 18px;
            text-align: center;
        }

        .leader-profile .vc-title {
            font-size: 9px;
            letter-spacing: 0.07em;
            text-align: center;
        }

        .leader-profile .vc-quote {
            font-size: 12px;
            line-height: 1.5;
            text-align: center;
        }

    .leader-priority {
        top: 9px;
        right: 9px;
        font-size: 7px;
        padding: 5px 7px;
    }

    /*
       More space before About Us on tablet/mobile
    */
    .about-panel-full {
        margin-top: 35px;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .leader-profile {
        padding: 22px 8px 17px;
        border-radius: 11px;
    }

        .leader-profile .vc-photo {
            width: 82px;
            height: 82px;
            margin: 14px auto 11px;
        }

        .leader-profile h3 {
            font-size: 15px;
        }

        .leader-profile .vc-title {
            font-size: 7px;
            line-height: 1.4;
        }

        .leader-profile .vc-quote {
            font-size: 10.5px;
            line-height: 1.45;
        }

        .leader-profile .btn-more {
            font-size: 10px;
            padding: 7px 8px;
        }

    .leader-priority {
        position: static;
        display: inline-block;
        margin: 0 auto 5px;
        font-size: 6.5px;
        padding: 4px 6px;
    }

    .about-panel-full {
        margin-top: 30px;
    }
}

/* Home shown as an icon rather than a word. Padding matches .nav-link so the
   icon sits in the same rhythm as the text items beside it. */
.nav-link-home {
    padding: 0 10px;
}

    .nav-link-home i {
        font-size: 17px;
        line-height: 1;
        display: block; /* takes the glyph off the text baseline so flex centres it */
    }
/*end*/