/* ==========================================================================
   NAVIGATION STYLES — PSD Hierarchical Submenu, Dropdowns, Mobile Fixes
   ========================================================================== */

/* ── PSD Dropdown Menu — Hierarchical Flyout Architecture ──
   Main categories drop down from 'PUBLIC SELF DISCLOSURE'.
   Styled in the clean institutional white theme matching NAAC, UGC MC, IQAC.
   Hovering any category opens its .psd-sub-flyout row-aligned to the left!
── */
.nav-links > li.psd-nav-item {
    position: relative;
}

/* Category menu container (Matches standard .dropdown: white with brand-red top border) */
.nav-links > li.psd-nav-item > .psd-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: 230px !important;
    background: var(--white, #ffffff) !important;
    padding: 6px 0 !important;
    list-style: none !important;
    margin: 0 !important;
    border-radius: 0 0 8px 8px !important;
    border-top: 3px solid var(--brand-red, #8b1a2b) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    z-index: 1000 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 1025px) {
    .nav-links > li.psd-nav-item:hover > .psd-dropdown-menu,
    .nav-links > li.psd-nav-item:focus-within > .psd-dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

.nav-links > li.psd-nav-item > .psd-dropdown-menu > li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Category links (Matches standard .dropdown li a) */
.nav-links > li.psd-nav-item > .psd-dropdown-menu > li > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 20px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: var(--text-color, #1e293b) !important;
    text-decoration: none !important;
    border-left: 3px solid transparent !important;
    border-bottom: 1px solid var(--border-color, #f1f5f9) !important;
    background: transparent !important;
    transition: all 0.15s ease !important;
    line-height: 1.4 !important;
}

.nav-links > li.psd-nav-item > .psd-dropdown-menu > li:last-child > a {
    border-bottom: none !important;
}

.nav-links > li.psd-nav-item > .psd-dropdown-menu > li > a .psd-arrow {
    font-size: 0.65rem !important;
    color: #64748b !important;
    opacity: 0.8 !important;
    transition: transform 0.15s ease, color 0.15s ease !important;
}

/* Hover / Active state on Category item: Light brand tinted background with brand red text */
.nav-links > li.psd-nav-item > .psd-dropdown-menu > li:hover > a,
.nav-links > li.psd-nav-item > .psd-dropdown-menu > li.active > a {
    background: var(--brand-light, #fdf2f4) !important;
    color: var(--brand-red, #8b1a2b) !important;
    font-weight: 700 !important;
    border-left-color: var(--brand-red, #8b1a2b) !important;
    padding-left: 23px !important;
}

.nav-links > li.psd-nav-item > .psd-dropdown-menu > li:hover > a .psd-arrow,
.nav-links > li.psd-nav-item > .psd-dropdown-menu > li.active > a .psd-arrow {
    color: var(--brand-red, #8b1a2b) !important;
    opacity: 1 !important;
    transform: translateX(-3px) !important;
}

/* Submenu flyout — Aligned vertically with the hovered row, white card theme */
.nav-links > li.psd-nav-item .psd-sub-flyout {
    position: absolute !important;
    top: 0 !important; /* Exactly at the top of the hovered item */
    right: 100% !important; /* Opens to the left */
    width: 275px !important;
    background: var(--white, #ffffff) !important;
    padding: 6px 0 !important;
    list-style: none !important;
    margin: 0 !important;
    border-radius: 6px !important;
    box-shadow: -8px 10px 30px rgba(0, 0, 0, 0.14) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-top: 3px solid var(--brand-red, #8b1a2b) !important;
    z-index: 1005 !important;
    display: none;
}

/* Bottom alignment for lower items (e.g. Information Corner) to prevent screen overflow */
.nav-links > li.psd-nav-item > .psd-dropdown-menu > li.psd-has-sub:nth-last-child(-n+4) > .psd-sub-flyout {
    top: auto !important;
    bottom: 0 !important;
}

@media (min-width: 1025px) {
    .nav-links > li.psd-nav-item > .psd-dropdown-menu > li.psd-has-sub:hover > .psd-sub-flyout,
    .nav-links > li.psd-nav-item > .psd-dropdown-menu > li.psd-has-sub.active > .psd-sub-flyout {
        display: block !important;
    }
}

.nav-links > li.psd-nav-item .psd-sub-flyout > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Submenu links */
.nav-links > li.psd-nav-item .psd-sub-flyout > li > a {
    display: block !important;
    padding: 9px 20px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--text-color, #334155) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--border-color, #f1f5f9) !important;
    background: transparent !important;
    transition: all 0.12s ease !important;
    line-height: 1.45 !important;
}

.nav-links > li.psd-nav-item .psd-sub-flyout > li:last-child > a {
    border-bottom: none !important;
}

/* Hover on submenu link */
.nav-links > li.psd-nav-item .psd-sub-flyout > li > a:hover {
    background: var(--brand-light, #fdf2f4) !important;
    color: var(--brand-red, #8b1a2b) !important;
    font-weight: 600 !important;
    padding-left: 25px !important;
}

@media (max-width: 1024px) {
    .nav-links > li.psd-nav-item > .psd-dropdown-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid var(--brand-red) !important;
        margin: 4px 0 4px 12px !important;
        border-radius: 0 !important;
        transform: none !important;
        display: none !important;
        background: transparent !important;
    }
    .nav-links > li.psd-nav-item.open > .psd-dropdown-menu {
        display: block !important;
        opacity: 1 !important;
    }
    .nav-links > li.psd-nav-item .psd-sub-flyout {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8fafc !important;
        border-left: 2px solid var(--brand-red) !important;
        margin: 4px 0 4px 12px !important;
        border-radius: 0 !important;
        display: none !important;
    }
    .nav-links > li.psd-nav-item .psd-has-sub.open > .psd-sub-flyout {
        display: block !important;
    }
}

/* Scrollbar styling for child panel */
.psd-child-panel::-webkit-scrollbar {
    width: 5px;
}
.psd-child-panel::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}
.psd-child-panel::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 10px;
}
.psd-child-panel::-webkit-scrollbar-thumb:hover {
    background: #81121c;
}
.psd-child-panel {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-red) #f8f9fa;
}

/* ── NAAC Scrollable Dropdown (Single Column) ── */
/* Higher specificity to override general .dropdown:not(...) rule */
.naac-scrollable:not(.dropdown-columns):not(:has(.has-dropdown)) {
    min-width: 360px;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
    scroll-behavior: smooth;
}

.naac-scrollable li {
    margin-bottom: 0;
}

/* Custom thin scrollbar for NAAC dropdown */
.naac-scrollable::-webkit-scrollbar {
    width: 5px;
}
.naac-scrollable::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}
.naac-scrollable::-webkit-scrollbar-thumb {
    background: var(--brand-red, #a4101e);
    border-radius: 10px;
}
.naac-scrollable::-webkit-scrollbar-thumb:hover {
    background: #81121c;
}
/* Firefox scrollbar */
.naac-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #a4101e #f8f9fa;
}

/* ── Two-Line Nav Labels (UGC items) — same font size/weight as single-line items ── */
.nav-two-line {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    gap: 0;
    vertical-align: middle;
}

.nav-l1 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    color: inherit;
}

.nav-l2 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    color: inherit;
    text-transform: none;
}

/* ── Careers Button ── */
.btn-careers {
    background-color: #003366;
    color: #f5c518;
    border: 1px solid #f5c518;
    padding: 0 20px;
    height: 35px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.75rem;
    gap: 6px;
    transition: all 0.3s;
}

.btn-careers:hover {
    background-color: #f5c518;
    color: #003366;
}

/* ── Mobile: Show dropdown when .open class toggled ── */
@media (max-width: 1024px) {
    .has-dropdown.open > .dropdown {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .has-dropdown.open > .psd-mega-menu {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* ── PSD mega menu responsive (mobile: single column) ──
     KEEPS institutional dark-red category panel treatment on mobile.
   ── */
@media (max-width: 768px) {
    .nav-links > li.flyout-trigger > .psd-mega-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--brand-red);
        margin: 4px 0 4px 12px;
        border-radius: 0;
    }

    .nav-links > li.flyout-trigger:hover > .psd-mega-menu {
        display: none; /* No hover on mobile */
    }

    .nav-links > li.flyout-trigger.open > .psd-mega-menu {
        display: flex !important;
    }

    .psd-mega-left {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 0;
        background: var(--brand-red);
    }

    .psd-mega-left li a {
        padding: 12px 14px;
        font-size: 0.82rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        border-left: 2px solid transparent;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .psd-mega-left li a:hover,
    .psd-mega-left li.active a {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border-left-color: #fff;
    }

    /* On mobile, child links render inline under each category (as .psd-child-inline) */
    .psd-mega-left .psd-child-inline {
        background: rgba(255, 255, 255, 0.05);
        padding: 4px 0 4px 12px;
        border-left: 2px solid rgba(255, 255, 255, 0.3);
        margin: 0 0 0 14px;
        border-radius: 0 0 6px 6px;
    }

    .psd-mega-left .psd-child-inline a {
        display: block;
        padding: 8px 14px;
        font-size: 0.8rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.12s ease;
    }

    .psd-mega-left .psd-child-inline a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        padding-left: 20px;
    }

    .naac-scrollable {
        min-width: 0;
        max-height: none;
        overflow-y: visible;
    }

    .btn-careers {
        height: 28px;
        padding: 0 12px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   SKIP TO MAIN CONTENT LINK
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -1000px;
    left: 10px;
    z-index: 10000;
    background: var(--brand-red, #a4101e);
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: none;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid #f5c518;
    outline-offset: 2px;
}

/* ==========================================================================
   FOCUS INDICATORS
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--brand-blue, #003366);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #003366;
    outline-offset: 2px;
    border-radius: 2px;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid #f5c518;
    outline-offset: 2px;
}

/* ==========================================================================
   RESET & BASE STYLES (Vanilla CSS)
   ========================================================================== */
:root {
    --brand-blue: #0b223c;
    --brand-dark-blue: #061528;
    --brand-red: #a4101e;
    --brand-orange: #d1561f;
    --brand-yellow: #ffc107;
    --brand-light: #f5f5f5;
    --brown-bg: #EAE6DF;    
    --text-color: #333333;
    --white: #ffffff;
    --border-color: #e0e0e0;
    
    --font-primary: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    --container-width: 1280px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.text-white { color: var(--white); }
.text-brand-blue { color: var(--brand-blue); }
.text-brand-red { color: var(--brand-red); }
.text-yellow { color: var(--brand-yellow); }
.text-shadow { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* Buttons & Links */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}
.view-all-link-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* ==========================================================================
   NAV OVERLAY — Mobile menu backdrop
   ========================================================================== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.show {
    display: block;
    opacity: 1;
}

body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* ==========================================================================
   MOBILE MENU TOGGLE — Hamburger to X Animation
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: var(--brand-blue);
    border-radius: 0;
    transition: background 0.2s ease;
    align-items: center;
    gap: 10px;
    line-height: 1;
    flex-shrink: 0;
    touch-action: manipulation;
}
.mobile-menu-toggle:hover {
    background: #0d2a4a;
}
.mobile-menu-toggle .hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 22px;
    height: 18px;
    position: relative;
    transition: all 0.3s ease;
}
.mobile-menu-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}
.mobile-menu-toggle .hamburger-icon span:nth-child(1) {
    top: 0;
}
.mobile-menu-toggle .hamburger-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
}
.mobile-menu-toggle .hamburger-icon span:nth-child(3) {
    bottom: 0;
}
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}
.mobile-menu-toggle .menu-label {
    font-size: 0.85rem;
    transition: opacity 0.2s;
}
.mobile-menu-toggle.active .menu-label-close {
    display: inline;
}
.mobile-menu-toggle.active .menu-label-open {
    display: none;
}
.mobile-menu-toggle .menu-label-close {
    display: none;
}

/* ==========================================================================
   FLOATING ELEMENTS
   ========================================================================== */
.floating-side-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rotate-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.btn-side {
    padding: 15px 5px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
}
.bg-brand-yellow { background-color: var(--brand-yellow); }
.bg-light-gray { background-color: #f0f0f0; }

.floating-circle-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.circle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    touch-action: manipulation;
}
.circle-btn:hover { transform: scale(1.1); }
.bg-brand-blue { background-color: var(--brand-blue); }
.bg-green { background-color: #25D366; }

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.main-header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top Bar */
.top-bar {
    background-color: #1a3250;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
}
.top-bar-left, .top-bar-middle {
    display: flex;
    gap: 20px;
    align-items: center;
}
.top-bar-left a:hover, .top-bar-middle a:hover {
    color: var(--brand-yellow);
}
.btn-pay-online {
    background-color: #187bcd;
    padding: 0 20px;
    height: 35px;
    display: flex;
    align-items: center;
    font-weight: 700;
}
.btn-pay-online:hover { background-color: #1162a6; }

/* Logo Bar */
.logo-bar {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.logo-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.main-logo { height: 70px; }
.logo-text h1 {
    color: var(--brand-red);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
}
.logo-text h2 {
    color: var(--brand-red);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}
.logo-address {
    font-size: 0.55rem;
    color: var(--brand-red);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 3px;
    max-width: 500px;
}
.accreditations-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.accred-logos {
    display: flex;
    gap: 0; /* Remove gap so banner slices connect seamlessly */
    align-items: center;
}
.accred-logos img { 
    height: 50px; /* Reduced height to make logos smaller globally */
    object-fit: contain;
}

/* Halve the size of the specific StartupTN logo as requested */
.accred-logos img[src*="008-blue-horizontal"] {
    height: 25px; 
}
.btn-call-us {
    background-color: var(--brand-yellow);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-call-us:hover { transform: scale(1.05); }

/* Notice Bar */
.notice-bar {
    background-color: var(--brand-red);
    height: 35px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.notice-label {
    background-color: #d4701e;
    color: var(--white);
    font-weight: 800;
    font-size: 0.8rem;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.marquee-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

/* Navigation */
.main-nav {
    background-color: var(--brand-light);
    border-bottom: 2px solid var(--border-color);
}
.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-links > li {
    position: relative;
}
.nav-links > li > a {
    display: block;
    padding: 12px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-color);
    touch-action: manipulation;
}
.nav-links > li > a:hover { color: var(--brand-red); }


/* Dropdown styling */
.has-dropdown:hover > .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--brand-red);
    border-radius: 0 0 8px 8px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 100;
}

/* Scrollable Dropdown for Desktop — Only for terminal menus (no sub-menus inside) */
@media (min-width: 769px) {
    .dropdown:not(.dropdown-columns):not(:has(.has-dropdown)) {
        max-height: 450px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Premium Scrollbar Styling — for terminal menus */
    .dropdown:not(.dropdown-columns):not(:has(.has-dropdown))::-webkit-scrollbar {
        width: 5px;
    }
    .dropdown:not(.dropdown-columns):not(:has(.has-dropdown))::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 10px;
    }
    .dropdown:not(.dropdown-columns):not(:has(.has-dropdown))::-webkit-scrollbar-thumb {
        background: var(--brand-red, #a4101e);
        border-radius: 10px;
    }
    .dropdown:not(.dropdown-columns):not(:has(.has-dropdown))::-webkit-scrollbar-thumb:hover {
        background: #81121c;
    }
}
.dropdown-columns { min-width: 400px; column-count: 2; column-gap: 20px; }
.dropdown-wide { min-width: 300px; }
.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
    background-color: var(--brand-light);
    color: var(--brand-red);
    padding-left: 25px;
}

/* 3rd Level Nested Dropdown Logic */
.has-dropdown .dropdown .has-dropdown {
    position: relative;
}
.has-dropdown .dropdown .has-dropdown > .dropdown {
    top: -3px;
    right: 100%; /* Flip to left side */
    left: auto;
    margin-right: 1px;
    margin-top: 15px; /* Offset to slide-in */
    transform: translateX(-10px); /* Start from a bit left to slide in */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.has-dropdown .dropdown .has-dropdown:hover > .dropdown {
    display: block;
    opacity: 1;
    margin-top: 0;
    transform: translateX(0);
}

/* ==========================================================================
   HERO SECTION (UPDATED TO MATCH IMAGE 2 & 3)
   ========================================================================== */
.hero-section {
    position: relative;
    height: calc(100vh - 180px); /* Adjust based on actual header height */
    min-height: 700px;
    overflow: hidden;
    background-color: #dadada;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.05); /* lightened — video visible but cards readable */
}

/* Absolute Top Bar Info (Logo + TNEA) */
.hero-top-panel {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    /* PART 22-24 (re-fixed): the panel currently contains ONLY the TNEA pill
       (brand block is absent from index.html), so justify-content:space-between
       would pin a lone pill to the far LEFT edge. The design intent is the TNEA
       code anchored to the hero's top-RIGHT; flex-end restores that intended
       position now that the pill is once again a real flex child. Mobile rules
       (responsive.css) re-anchor it explicitly, so this is desktop-only. */
    justify-content: flex-end;
    align-items: flex-start;
}
.hero-college-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
}
.hero-logo-medium {
    width: 75px;
}
.hero-brand-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.hero-brand-text p {
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.hero-tnea-box {
    background: var(--brand-yellow);
    color: #000;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    /* PART 22-24 — TNEA pill must persist after the count.
       Layout/position unchanged; only visibility/opacity locked. */
    visibility: visible !important;
    opacity: 1 !important;
}
/* Same persistence on the inner counter — covers both mobile and desktop. */
.hero-tnea-box .counter-value,
.hero-tnea-box .counter-value.counter-finished {
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-admission-title-wrap {
    flex: 1;
    text-align: center;
}
.hero-admission-year {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    margin: 0 20px;
}

/* Button & Card Micro-Interactions */
.btn-pay-online, .btn-call-us, .explore-card, .circle-btn, .hero-slide-card, .testi-card, .news-card, .admission-btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-pay-online:hover, .btn-call-us:hover, .explore-card:hover, .circle-btn:hover, .hero-slide-card:hover, .testi-card:hover, .news-card:hover, .admission-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
}

/* Centered Glass Flex Container */
.hero-glass-center {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 40px; 
    width: 100%;
    max-width: 950px;
    padding: 0 15px;
    margin-top: 50px; /* offset slightly down to balance top panel */
}

/* Custom left pagination pill */
.custom-glass-pagination {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 30px;
    padding: 25px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.custom-glass-pagination span {
    display: block;
    width: 25px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    transition: var(--transition-smooth);
}
.custom-glass-pagination span.active {
    background: var(--brand-yellow);
}

/* Glass Card */
.nirf-glass-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.nirf-glass-title {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.nirf-glass-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.nirf-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nirf-logo-square {
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    width: 210px;
    height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.nirf-logo-square img {
    max-width: 130px;
    margin-bottom: 12px;
}
.nirf-logo-square .nirf-sub {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1.2;
    text-align: center;
}
.nirf-text-yellow {
    color: var(--brand-yellow);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.nirf-text-white {
    color: var(--white);
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.nirf-divider {
    width: 1px;
    height: 200px;
    background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   OUR BUILDINGS GALLERY
   ========================================================================== */
.buildings-section {
    padding: 90px 0;
    background: #fdfdfd;
}
.buildings-marquee {
    overflow: hidden;
    position: relative;
    margin-top: 50px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.buildings-grid {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: buildingsScroll 45s linear infinite;
    will-change: transform;
}
.buildings-marquee:hover .buildings-grid {
    animation-play-state: paused;
}
@keyframes buildingsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.building-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    width: 340px;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    cursor: default;
}
.building-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 51, 102, 0.15);
}
.building-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.building-card:hover img {
    transform: scale(1.06);
}
.building-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    pointer-events: none;
}
@media (max-width: 820px) {
    .building-card {
        width: 280px;
    }
    .building-caption {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
}
@media (max-width: 520px) {
    .building-card {
        width: 240px;
    }
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */
.news-section {
    background-color: var(--brand-blue);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.world-map-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.05; /* very subtle */
    pointer-events: none;
}
.news-container {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 10;
}
.news-left {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.news-prev, .news-next {
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-prev:after, .news-next:after {
    font-size: 1rem;
    font-weight: bold;
    color: var(--white);
}
.news-prev:hover, .news-next:hover { background: rgba(255,255,255,0.3); }

.news-right {
    flex: 1;
    min-width: 0; /* Important for swiper inside flex */
}
.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
#news-slider .swiper-slide {
    height: auto !important;
    display: flex;
}
.news-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    z-index: 2;
}
.news-date {
    display: block;
    font-size: 0.76rem;
    color: #999;
    margin-bottom: 6px;
}
.news-card-excerpt {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.55;
    margin: 4px 0 14px;
    flex: 1;
}
.news-read-more {
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: color 0.18s;
}
.news-read-more:hover { color: var(--brand-red, #c0392b); }

/* ==========================================================================
   EVENTS — homepage slider badge
   ========================================================================== */
.event-reg-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #27ae60;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    z-index: 2;
}
.event-reg-cta { color: #27ae60 !important; }
.event-reg-cta:hover { color: #1e8449 !important; }
.nearest-event {
    box-shadow: 0 0 20px rgba(255,152,0,0.2) !important;
}
.nearest-event:hover {
    box-shadow: 0 12px 36px rgba(255,152,0,0.25) !important;
}

/* ==========================================================================
   EXPLORE CAMPUS
   ========================================================================== */
.explore-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--brown-bg); /* Use matching beige/brown color from figma */
}
.explore-bg-layer {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: multiply;
}
.explore-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.explore-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}
.explore-card:hover { transform: translateY(-10px); }
.explore-card i {
    font-size: 3rem;
    color: var(--brand-blue);
    margin-bottom: 15px;
}
.explore-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-blue);
}

/* ==========================================================================
   TESTIMONIALS SECTION — Homepage Slider (Redesigned)
   ========================================================================== */
.testimonials-section {
    padding: 80px 0 60px;
    background: linear-gradient(160deg, #f0f4f9 0%, #e8edf5 100%);
    overflow: hidden;
    position: relative;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(0,51,102,0.04);
    pointer-events: none;
}
.testimonial-title {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.testimonials-slider-wrapper {
    padding: 10px 0 30px;
}
.testimonials-slider {
    padding: 20px 0 40px !important;
}

#testimonials-slider .swiper-slide {
    height: auto !important;
    display: flex;
}

/* ── Testimonial Card (Single Unified Design) ── */
.testi-card {
    background: var(--white);
    border-radius: 18px;
    padding: 26px 22px 24px;
    box-shadow: 0 4px 22px rgba(0, 34, 85, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 51, 102, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    min-height: 420px;
    box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
    .testi-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 44px rgba(0, 34, 85, 0.16);
    }
    .testi-card:hover .testi-photo-wrap img {
        transform: scale(1.06);
    }
}

/* Top: College Logo (left) + Company Logo (right) */
.testi-logos-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
    min-height: 58px;
    background: #f7f9fc;
    border-radius: 10px;
    padding: 8px 12px;
}
.testi-clg-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}
.testi-comp-logo {
    max-width: 110px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Center: Circular Student Photo */
.testi-photo-wrap {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--brand-blue);
    margin: 0 auto 16px;
    flex-shrink: 0;
    background: #e8edf5;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.18);
}
.testi-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Content Area */
.testi-name {
    font-weight: 800;
    font-size: 1rem;
    color: #003366;
    margin-bottom: 4px;
    line-height: 1.3;
}
.testi-meta {
    font-size: 0.76rem;
    color: #8899aa;
    margin-bottom: 12px;
    line-height: 1.4;
}
.testi-quote {
    font-size: 0.86rem;
    color: #445566;
    line-height: 1.65;
    font-style: italic;
    position: relative;
    padding-top: 6px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.testi-quote::before {
    content: '\201C';
    font-size: 2.8rem;
    color: #003366;
    opacity: 0.12;
    position: absolute;
    top: -10px;
    left: -2px;
    line-height: 1;
    font-style: normal;
}

/* "See More" Button */
.testi-see-more-wrap {
    text-align: center;
    margin-top: 44px;
}
.btn-see-more-testi {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-blue);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.4px;
    border: 2px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .btn-see-more-testi:hover {
        background: transparent;
        color: var(--brand-blue);
        border-color: var(--brand-blue);
        transform: translateY(-2px);
    }
}

/* ── Legacy Compatibility ── */
.testi-logo-area { display: none; }
.testi-image-area { display: none; }
.testi-info-area { display: none; }
.testi-person { display: none; }
.testi-batch { display: none; }
.testi-logo { display: none; }

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--brand-dark-blue);
    color: #bdc3c7;
    padding-top: 60px;
    font-size: 0.85rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--brand-yellow);
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.footer-college-name {
    color: var(--brand-yellow);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.about-col p { margin-bottom: 15px; }
.contact-list li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--brand-yellow); }

.accred-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.badge {
    background: var(--brand-red);
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}
.social-links a i { font-size: 1.2rem; }
.social-links a:hover { color: var(--brand-yellow); }

.footer-bottom {
    background-color: #030d1a;
    padding: 20px 0;
    font-size: 0.8rem;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a:hover { color: var(--brand-yellow); }

/* ==========================================================================
   ABOUT US PAGE STYLES (NEW)
   ========================================================================== */

/* About Hero Info */
.about-hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
}
.hero-overlay-light {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(255,255,255,0.1) 100%);
}
.hero-red-dropdown {
    position: absolute;
    top: 0;
    right: 15%;
    background: var(--brand-red);
    width: 250px;
    padding: 20px;
    z-index: 10;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.hrd-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 700;
}
.hrd-list {
    list-style: none;
    font-size: 0.85rem;
}
.hrd-list li { margin-bottom: 12px; }
.hrd-list a { color: var(--white); text-decoration: none; transition: color 0.3s; }
.hrd-list a:hover { color: var(--brand-yellow); }

.about-hero-card {
    position: absolute;
    bottom: -40px; /* Overlap effect */
    left: 10%;
    width: 80%;
    max-width: 900px;
    background: var(--white);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 20;
    display: flex;
    align-items: center;
}
.about-hero-card h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-right: 2rem;
}
.about-hero-text {
    flex: 1;
    border-left: 2px solid #ddd;
    padding-left: 30px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

/* Why Choose Grid */
.why-choose-section {
    padding: 100px 0 60px 0;
    background: #f8f9fa;
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 30px;
    align-items: center;
}
.why-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.red-stat-box {
    background: var(--brand-red);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(186, 12, 47, 0.2);
}
.red-stat-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.red-stat-box p { font-size: 0.85rem; }
.why-img-left {
    width: 100%;
    border-radius: 8px;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.why-col-middle {
    position: relative;
    padding-top: 50px;
}
.why-main-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.white-overlap-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    width: 80%;
    z-index: 5;
}
.white-overlap-box h2 { font-size: 1.5rem; font-weight: 800; color: #111; margin-bottom: 10px; line-height: 1.2;}
.white-overlap-box p { font-size: 0.95rem; color: #1e293b; font-weight: 500; line-height: 1.7; }

.why-col-right {
    padding-left: 30px;
}
.why-subtitle {
    color: var(--brand-red);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.why-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 25px;
}
.highlight-underline {
    position: relative;
    display: inline-block;
    color: var(--brand-blue);
    padding-bottom: 4px; border-bottom: 4px solid var(--brand-blue);
}
.why-desc {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 30px;
}
.why-features-list {
    list-style: none;
    margin-bottom: 40px;
}
.why-features-list li {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.why-features-list i { margin-top: 4px; font-size: 1.1rem; }
.btn-more-details {
    display: inline-block;
    background: var(--brand-red);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.btn-more-details:hover {
    box-shadow: 0 8px 20px rgba(186, 12, 47, 0.15);
    transform: translateY(-2px);
}

/* Vision & Mission section */
.vision-mission-section {
    padding: 80px 0;
    background: var(--white);
}
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 2rem;}
.vision-images-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 60px;
}
.v-img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: transform 0.3s;
}
.v-img:hover { transform: translateY(-10px); }
.v-small { width: 200px; height: 150px; }
.v-medium { width: 220px; height: 180px; }
.v-large { width: 250px; height: 350px; z-index: 5; margin: 0 -10px; }
.v-tall { width: 200px; height: 280px; }

.vision-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 40px;
}
.v-title-red { color: #e53935; font-size: 1.25rem; font-weight: 800; margin-bottom: 15px; }
.v-title-green { color: #43a047; font-size: 1.25rem; font-weight: 800; margin-bottom: 15px; }
.v-title-cyan { color: #00acc1; font-size: 1.25rem; font-weight: 800; margin-bottom: 15px; }

.v-text-body, .v-list-body {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.75;
}
.v-list-body { padding-left: 20px; list-style-type: disc; color: #1e293b; }
.v-list-body li {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.75;
}
.v-list-body li strong {
    color: #0f172a;
    font-weight: 700;
}

/* Achievements Marquee Custom */
.achievements-section {
    background: var(--white);
}
.achievements-label {
    color: #666;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: capitalize;
}
.achievements-marquee-wrapper {
    overflow: hidden;
    position: relative;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}
.achieve-logo {
    height: 70px;
    object-fit: contain;
    filter: grayscale(10%) contrast(1.1);
    transition: filter 0.3s, transform 0.3s;
}
.achieve-logo:hover {
    filter: grayscale(0) contrast(1.2);
    transform: scale(1.1);
}

.achievements-marquee {
    display: flex;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

.achievements-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); } /* Assuming we triple the content */
}

/* ==========================================================================
   DEPARTMENTS PAGE STYLES (NEW)
   ========================================================================== */

.dept-hero-section {
    position: relative;
    height: 400px;
    background-color: #000;
}
.dept-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.dept-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0) 100%);
}

.dept-content-section {
    padding: 80px 0;
    background: var(--white);
}
.dept-page-title {
    font-size: 2rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 50px;
    line-height: 1;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.dept-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 15px;
    border: 1px solid #1a3250;
    border-radius: 4px;
    color: #1a3250;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 120px;
    background: var(--white);
}
.dept-card:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.dept-card i {
    font-size: 2rem;
    margin-bottom: 12px;
}
.dept-card span {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.dept-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}
.btn-dept-action {
    background: var(--brand-red);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: 2px solid var(--brand-red);
}
.btn-dept-action:hover {
    background: transparent;
    color: var(--brand-red);
}
.outline-action {
    background: #8b0000;
    border-color: #8b0000;
}
.outline-action:hover {
    background: transparent;
    color: #8b0000;
}

/* Make dropdown list avoid breaking items weirdly in CSS columns */
.dropdown-columns li {
    break-inside: avoid;
    margin-bottom: 5px;
}

/* ==========================================================================
   DEPARTMENT DETAILS PAGE STYLES (NEW)
   ========================================================================== */

/* ── Shared Department UI Components ── */

/* Glass Card (used by IT, ECE, and others) */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(163, 31, 36, 0.3);
}

/* Premium Glass Card (IT dept) */
.glass-card-premium {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.glass-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}
.glass-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 51, 102, 0.2);
    border-color: rgba(163, 31, 36, 0.4);
}
.glass-card-premium:hover::before {
    left: 200%;
}

/* Event Grid Cards (IT dept) */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.event-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border-top: 4px solid #a31f24;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
.event-box:hover {
    transform: translateY(-5px);
}
.event-date {
    display: inline-block;
    padding: 5px 12px;
    background: #fdf5f5;
    color: #a31f24;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Event Cards (ECE dept) */
.event-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-left: 4px solid #a31f24;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.event-card:hover {
    box-shadow: 0 8px 25px rgba(163, 31, 36, 0.15);
    transform: translateX(5px);
}
.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
}
.event-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Lab Cards (IT dept) */
.lab-card {
    background: linear-gradient(145deg, #1A1A2E, #16213E);
    color: #E94560;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #0F3460;
    box-shadow: 0 8px 32px rgba(22, 33, 62, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lab-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.3);
    border-left: 5px solid #E94560;
}
.lab-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lab-spec {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #00FFCC;
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 5px;
}

/* PDF Download Button */
.pdf-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #003366;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: 500;
}
.pdf-btn:hover {
    background: #a31f24;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Publication Table */
.pub-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}
.pub-table th {
    background: #a31f24;
    color: white;
    padding: 12px 15px;
    text-align: left;
}
.pub-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    color: #444;
}
.pub-table tr:hover td {
    background: #fdf5f5;
}

/* Hero Innovation Banner (ECE) */
.hero-innovate {
    background: linear-gradient(135deg, #003366, #a31f24);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(163, 31, 36, 0.3);
}
.hero-innovate h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #f5c518;
}
.hero-innovate p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Grid 2-column (ECE) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Achievement Cards (IT) */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.achieve-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,250,0.9));
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 51, 102, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.achieve-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,1));
}
.achieve-card::after {
    content: '\f091';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 6rem;
    color: rgba(163, 31, 36, 0.05);
    transform: rotate(-15deg);
    transition: all 0.5s;
}
.achieve-card:hover::after {
    color: rgba(245, 197, 24, 0.2);
    transform: rotate(0deg) scale(1.1);
}
.student-name {
    color: #003366;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #a31f24;
    display: inline-block;
    padding-bottom: 5px;
}
.prize-item {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.prize-badge {
    background: #f5c518;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Network Dashboard Cards (IT Placement) */
.net-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.net-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border-bottom: 6px solid #003366;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}
.net-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #f5c518;
    box-shadow: 0 20px 45px rgba(0, 51, 102, 0.15);
}
.net-icon {
    font-size: 3rem;
    color: #003366;
    margin-bottom: 15px;
    opacity: 0.9;
}
.net-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: #a31f24;
    margin: 5px 0;
    display: block;
}
.net-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dept-details-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 20px;
}

/* Sidebar */
.dept-sidebar {
    flex: 0 0 300px;
    background-color: #003030; /* Dark teal from screenshot */
    border-radius: 8px;
    padding: 20px 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}
.dept-sidebar-menu {
    list-style: none;
    margin: 0; padding: 0;
}
.dept-sidebar-menu li {
    border-bottom: 1px dotted rgba(255,255,255,0.2);
}
.dept-sidebar-menu li:last-child {
    border-bottom: none;
}
.dept-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    padding: 15px 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}
.dept-sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
.dept-sidebar-menu a:hover, .dept-sidebar-menu a.active {
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid var(--brand-yellow);
    padding-left: 21px; /* adjust for border */
}

/* Main Content */
.dept-main-content {
    flex: 1;
    min-width: 0; /* Important for preventing flex blowout */
}
.dept-main-slider {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.dept-main-slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.dept-slider-caption {
    background: #f8f9fa;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    font-weight: 600;
}
.dept-title-red {
    color: var(--brand-red);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 40px;
    text-transform: uppercase;
}
.dept-section {
    margin-bottom: 40px;
}
.dept-section h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.dept-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}
.dept-section ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}
.dept-section ul li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
}

/* Adjust layout for mobile */
@media (max-width: 992px) {
    .dept-details-wrapper {
        flex-direction: column;
    }
    .dept-sidebar {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
        max-height: 400px;
    }
}

/* Accred Logos Global Scaling */
.accred-logos img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s;
}

.accred-logos img[src*="008-blue-horizontal"] {
    height: 25px !important; /* Half size as requested: "bas iska size half kardo ab jitna hai uska .. sabhi page" */
}

/* ==========================================================================
   AI WIDGET STYLES
   ========================================================================== */
/* AI Widget Container - Hidden by default, shown when active */
#ai-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* AI Widget Box - HIDDEN by default */
.ai-widget-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    width: 100%;
    max-width: 400px;
    height: 500px;
    display: none !important;
    flex-direction: column;
    position: relative;
}

/* AI Widget Box - SHOWN when container is active */
#ai-widget-container.active .ai-widget-box {
    display: flex !important;
}

/* ==========================================================================
   TABLET & MOBILE SCALING OPTIMIZATIONS
   Requested: "Sahi size me do mobile aur tab view me modify chaahiye"
   ========================================================================== */

/* 1. Tablet View (max-width: 1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 16px; /* Audit fix: keep 16px baseline (was 14.5px) */
    }
    
    .main-logo {
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 0.9rem;
    }
    
    .logo-text h2 {
        font-size: 0.55rem;
    }

    .notice-bar {
        height: 30px;
        padding: 0 10px;
    }

    .notice-text {
        font-size: 0.65rem;
    }

    .notice-link {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .nav-links > li > a {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .footer-area {
        padding: 30px 0;
    }
}

/* 2. Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    html {
        font-size: 16px; /* Audit fix: keep 16px baseline (was 13px) */
    }

    .main-header {
        padding: 5px 0;
    }

    .logo-container {
        gap: 8px;
    }

    .main-logo {
        height: 35px;
    }

    .logo-text h1 {
        font-size: 0.8rem;
        letter-spacing: 0;
    }

    .logo-text h2 {
        font-size: 0.45rem;
    }

    .notice-bar {
        height: 24px;
        padding: 0 5px;
    }

    .notice-text {
        font-size: 0.55rem;
    }

    .notice-link {
        font-size: 0.55rem;
        padding: 1px 6px;
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .mobile-menu-btn {
        font-size: 1.1rem;
    }

    /* Accreditations Logos in header (if present) */
    .accred-logos img {
        height: 35px !important; /* Force smaller size on mobile */
    }
    
    .accred-logos img[src*="008-blue-horizontal"] {
        height: 14px !important; /* Scale StartupTN uniquely for mobile */
    }

    /* Footer Shrinking */
    .footer-grid {
        gap: 20px;
    }

    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 0.75rem;
        padding: 4px 0;
    }

    .contact-list li {
        font-size: 0.75rem;
    }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }
}



/* ==========================================================================
   ABOUT DESCRIPTION — Premium Typography
   ========================================================================== */
.about-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 18px;
    text-align: justify;
    word-spacing: 0.04em;
    letter-spacing: 0.01em;
    max-width: 38em; /* ~60-70 characters per line for optimal readability */
}

.about-description p:last-child {
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .about-description p {
        text-align: left;
        max-width: none;
    }
}

/* ==========================================================================
   ACADEMIC CONTENT STYLES (Salient Features & Eligibility)
   ========================================================================== =*/

/* Salient Features Section */
.salient-features-section {
    padding: 100px 0;
    background: #fdfdfd;
    position: relative;
    overflow: hidden;
}

.salient-features-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(0, 51, 102, 0.03);
    border-radius: 50%;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    display: block;
    color: var(--brand-yellow);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-main-title {
    font-size: 2.8rem;
    color: var(--brand-blue);
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.section-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-yellow);
    border-radius: 2px;
}

.salient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.salient-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.salient-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 0;
    background: linear-gradient(to bottom, var(--brand-blue), #004d99);
    transition: all 0.4s ease;
    z-index: -1;
}

.salient-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.12);
    border-color: var(--brand-blue);
}

.salient-card:hover i {
    color: var(--brand-yellow);
    transform: scale(1.1) rotate(10deg);
}

.salient-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.salient-card:hover .salient-icon-box {
    background: rgba(255, 255, 255, 0.15);
}

.salient-icon-box i {
    font-size: 2rem;
    color: var(--brand-blue);
    transition: all 0.4s ease;
}

.salient-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.salient-card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Eligibility Table Styles */
.eligibility-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.eligibility-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 500px;
}

.eligibility-table th {
    background: var(--brand-blue);
    color: #fff;
    text-align: left;
    padding: 18px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.eligibility-table td {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 0.95rem;
}

.eligibility-table tr:last-child td {
    border-bottom: none;
}

.eligibility-table tr:nth-child(even) {
    background: #f9fbff;
}

.percentage-badge {
    background: rgba(245, 197, 24, 0.2);
    color: #c09400;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-block;
}

.lateral-badge {
    background: rgba(0, 51, 102, 0.1);
    color: var(--brand-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
}

/* ==========================================================================
   NAAC ACCREDITATION PORTAL STYLES (PREMIUM)
   ========================================================================== */

/* ─── ACCORDION KI CARDS ────────────────────────────── */
.ki-accordion { 
    max-width: 1000px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.ki-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.ki-card:hover { 
    box-shadow: 0 12px 40px rgba(0,0,0,0.14); 
    transform: translateY(-2px);
}

.ki-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
    user-select: none;
}

.ki-header:hover { background: #f8f9fa; }
.ki-header.open { 
    background: #0b223c; 
    color: #fff; 
}

.ki-icon-box {
    width: 52px; 
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b1a2b, #b71c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.ki-header.open .ki-icon-box { 
    background: rgba(255,255,255,0.15); 
    transform: rotate(-10deg) scale(1.05); 
}

.ki-header-text { flex: 1; }

.ki-code {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b1a2b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.ki-header.open .ki-code { color: rgba(245,197,24,0.9); }

.ki-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.ki-header.open .ki-title { color: #fff; }

.ki-chevron { 
    font-size: 0.9rem; 
    transition: transform 0.35s; 
    color: #888; 
}
.ki-header.open .ki-chevron { transform: rotate(180deg); color: #f5c518; }

.ki-count-badge {
    background: #f0f2f5;
    color: #555;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: auto;
    flex-shrink: 0;
}
.ki-header.open .ki-count-badge { background: rgba(255,255,255,0.15); color: #fff; }

.ki-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}
.ki-body.open { max-height: 2500px; }
.ki-body-inner { padding: 30px; border-top: 2px solid #f0f2f5; }

.ki-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #8b1a2b;
}

/* ─── EVIDENCE LINKS (MULTI-LINK) ─────────────────── */
.metric-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.evidence-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    color: #333;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.evidence-link:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #8b1a2b;
}

.evidence-link i {
    color: #8b1a2b;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.evidence-link:hover i {
    color: #8b1a2b;
    transform: scale(1.15);
}

/* Red-Solid Button Override for specific pages */
.iv-pdf-btn {
    background: #8b1a2b;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.iv-pdf-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2);
    transform: translateY(-3px);
}

@media(max-width: 768px) {
    .metric-links-list {
        grid-template-columns: 1fr;
    }
    .ki-header { padding: 18px; gap: 15px; }
    .ki-title { font-size: 1rem; }
}
/* ---- MASTER HERO & AI WIDGET STYLES MIGRATED FROM INDEX.HTML ---- */
/* ---- HERO SWIPER CAROUSEL ---- */
.hero-slides-wrap {
    position: absolute;
    top: 50%;
    right: 56px;
    transform: translateY(-50%);
    z-index: 10;
    width: 660px;
    max-width: 48vw;
    pointer-events: all;
}

.hero-main-swiper {
    width: 100%;
}

/* Slide 6: Autonomous full-view image (no card, no text, no divider) */
.hero-slide-autonomous-img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-slide-card {
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 36px 42px 28px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s;
}

.hero-slide-card:hover {
    transform: translateY(-3px);
}

.hero-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: #fff;
    letter-spacing: 0.5px;
}

.hero-card-flex {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hero-card-item {
    flex: 1;
    text-align: center;
}

.hero-card-logo-box {
    background: #fff;
    border-radius: 10px;
    padding: 18px 14px 10px;
    margin-bottom: 14px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-card-logo-box img {
    width: 70px;
    height: auto;
    object-fit: contain;
}

.hero-card-logo-box p {
    font-size: 0.6rem;
    color: #333;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.hero-card-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.25);
    min-height: 140px;
    align-self: center;
    flex-shrink: 0;
}

.hero-card-label {
    color: #f5c518;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-card-value {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.hero-swiper-pagination {
    margin-top: 18px;
    position: static !important;
    text-align: center;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #f5c518;
    opacity: 1;
    width: 22px;
    border-radius: 4px;
}

/* =============================================
   AI WIDGET — MODERN REDESIGN
   ============================================= */
.ai-widget-hidden {
    position: fixed;
    bottom: 95px;
    right: 22px;
    width: 370px;
    max-width: calc(100vw - 30px);
    display: none;
    z-index: 9999;
}

.ai-widget-hidden.active {
    display: block;
    animation: aiSlideUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes aiSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-widget-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(0, 51, 102, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}

.ai-widget-header {
    background: linear-gradient(135deg, #002855 0%, #0a4a8f 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

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

.ai-header-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ai-header-info {
    display: flex;
    flex-direction: column;
}

.ai-header-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.ai-header-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.ai-status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.ai-widget-close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ai-widget-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ai-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f2f4f8;
    overflow: hidden;
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
}

.ai-messages::-webkit-scrollbar {
    width: 4px;
}

.ai-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-messages::-webkit-scrollbar-thumb {
    background: #c0c9d9;
    border-radius: 4px;
}

.ai-message-group {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-message-group.bot { flex-direction: row; }
.ai-message-group.user { flex-direction: row-reverse; }

.ai-message-group.animate .ai-message-bubble {
    animation: msgFadeIn 0.25s ease-out both;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-bot-avatar {
    width: 30px;
    height: 30px;
    background: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.ai-message-bubble {
    max-width: 76%;
    padding: 10px 14px;
    font-size: 0.875rem;
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ai-message-group.bot .ai-message-bubble {
    background: #fff;
    color: #1a1a2e;
    border-radius: 0 14px 14px 14px;
}

.ai-message-group.user .ai-message-bubble {
    background: linear-gradient(135deg, #003366, #0a4a8f);
    color: #fff;
    border-radius: 14px 0 14px 14px;
}

.ai-message-group.user .ai-message-bubble a {
    color: #a8d4ff;
}

.ai-message {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-message.bot { flex-direction: row; }
.ai-message.user { flex-direction: row-reverse; }

.ai-message-text {
    max-width: 76%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.ai-message.bot .ai-message-text {
    background: #fff;
    color: #1a1a2e;
    border-radius: 0 14px 14px 14px;
}

.ai-message.user .ai-message-text {
    background: #003366;
    color: #fff;
    border-radius: 14px 0 14px 14px;
}

.ai-action-link {
    display: inline-block;
    background: #003366;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 4px 4px 0 0;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.ai-action-link:hover {
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
    transform: translateY(-1px);
}

.ai-message.bot .ai-action-link {
    background: #003366;
}

.ai-suggestions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0 6px;
    margin-left: 38px;
}

.ai-suggestions-row.animate {
    animation: msgFadeIn 0.3s ease-out 0.1s both;
}

.ai-suggestion-chip {
    background: #fff;
    border: 1.5px solid #c5d4e8;
    color: #003366;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ai-suggestion-chip:hover {
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
    border-color: #003366;
}

.ai-typing-bubble {
    background: #fff !important;
    border-radius: 0 14px 14px 14px !important;
    padding: 12px 16px !important;
    display: flex;
    gap: 5px;
    align-items: center;
}

.ai-typing-dot {
    width: 7px;
    height: 7px;
    background: #8898b0;
    border-radius: 50%;
    animation: typingBounce 1.1s ease-in-out infinite;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.ai-result-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.ai-result-card {
    display: block;
    background: #f0f4ff;
    border: 1px solid #d0daee;
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.ai-result-card:hover { background: #dce6fb; }

.ai-result-card-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: #003366;
}

.ai-result-card-desc {
    font-size: 0.75rem;
    color: #555;
    margin-top: 2px;
}

.ai-result-card-cat {
    font-size: 0.7rem;
    color: #8898b0;
    margin-top: 4px;
}

.ai-btn.outline {
    background: none;
    border: 1.5px solid #003366;
    color: #003366;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    margin: 4px 4px 0 0;
    transition: all 0.2s;
}

.ai-btn.outline:hover { box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2); border-color: #003366; }

.ai-chips-bar {
    display: flex;
    gap: 7px;
    padding: 8px 12px;
    overflow-x: auto;
    background: #f2f4f8;
    border-top: 1px solid #e0e5ef;
    flex-shrink: 0;
    scrollbar-width: none;
}

.ai-chips-bar::-webkit-scrollbar { display: none; }

.ai-chip-btn {
    background: #fff;
    border: 1.5px solid #c5d4e8;
    color: #003366;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-chip-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
    border-color: #003366;
}

.ai-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 12px;
    background: #f2f4f8;
    flex-shrink: 0;
}

.ai-input {
    flex: 1;
    border: 1.5px solid #d0d9e9;
    border-radius: 22px;
    padding: 9px 16px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.ai-input:focus { border-color: #003366; }

.ai-send-btn {
    background: linear-gradient(135deg, #003366, #0a4a8f);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.3);
}

.ai-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 51, 102, 0.4);
}

@media (max-width: 768px) {
    .stats-section div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    section div[style*="grid-template-columns:1fr 1fr;gap:40px"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .ai-widget-hidden {
        width: calc(100vw - 28px);
        bottom: 115px;
        right: 14px;
        left: 14px;
    }
    .ai-widget-box { height: 470px; }
    .ai-message-bubble, .ai-message-text { font-size: 0.83rem; max-width: 84%; }
    .ai-input { font-size: 16px; }
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
