/* 
   Jai Prakash College, Narayanpur - Custom Premium Style Sheet
   Designed with HSL Colors, Responsive Grids, Premium Hover micro-animations,
   Theme-aware CSS Variables, and Glassmorphic Layers.
*/

/* ==========================================================================
   1. VARIABLES & THEME SCHEMES
   ========================================================================== */
:root {
    /* DEFAULT MAROON/GOLD THEME (#6d0100 / #c79600) */
    --primary-h: 1;
    --primary-s: 100%;
    --primary-l: 21%;

    --accent-h: 45;
    --accent-s: 100%;
    --accent-l: 39%;

    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), 45%, 35%);
    --primary-dark: hsl(var(--primary-h), 70%, 12%);
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);

    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-light: hsl(var(--accent-h), var(--accent-s), 60%);
    --accent-dark: hsl(var(--accent-h), 100%, 40%);
    --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);

    /* Polytechnic theme variable bridge mappings */
    --theme-primary: var(--primary);
    --theme-primary-dark: var(--primary-dark);
    --theme-accent: var(--accent);

    /* Dual Color Header — Color 2 (contrast pair) */
    --header-color-1: #6d0100;
    /* Deep Maroon */
    --header-color-2: #0d2d6b;
    /* Royal Blue */

    --slider-accent: #ffca28;
    --slider-text-grad: linear-gradient(135deg, #ffca28 0%, #ff8f00 60%, #ffffff 100%);

    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --bg-main: #faf4f4;
    --bg-white: #ffffff;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.18);

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius: 12px;
}

/* Charcoal/Slate Theme (#1f2937) */
[data-theme="slate"] {
    --primary-h: 215;
    --primary-s: 28%;
    --primary-l: 17%;

    --accent-h: 45;
    --accent-s: 100%;
    --accent-l: 39%;

    --bg-main: #f3f4f6;

    /* Slate + Deep Teal */
    --header-color-1: #1f2937;
    --header-color-2: #0f4c5c;

    --slider-accent: #00d2fe;
    --slider-text-grad: linear-gradient(135deg, #00d2fe 0%, #4facfe 60%, #ffffff 100%);
}

/* Olive Green Theme (#6b8c23) */
[data-theme="olive"] {
    --primary-h: 80;
    --primary-s: 60%;
    --primary-l: 34%;

    --accent-h: 45;
    --accent-s: 100%;
    --accent-l: 39%;

    --bg-main: #f6f8f2;

    /* Olive Green + Deep Forest */
    --header-color-1: #3a5c10;
    --header-color-2: #1a3a1e;

    --slider-accent: #a8ff78;
    --slider-text-grad: linear-gradient(135deg, #a8ff78 0%, #78ffd6 60%, #ffffff 100%);
}

/* Maroon Theme (#6d0100) */
[data-theme="maroon"] {
    --primary-h: 1;
    --primary-s: 100%;
    --primary-l: 21%;

    --accent-h: 45;
    --accent-s: 100%;
    --accent-l: 39%;

    --bg-main: #faf4f4;

    /* Maroon + Royal Blue */
    --header-color-1: #6d0100;
    --header-color-2: #0d2d6b;

    --slider-accent: #ffca28;
    --slider-text-grad: linear-gradient(135deg, #ffca28 0%, #ff8f00 60%, #ffffff 100%);
}

/* Gold Theme (#c79600) */
[data-theme="gold"] {
    --primary-h: 220;
    --primary-s: 45%;
    --primary-l: 18%;

    --accent-h: 41;
    --accent-s: 95%;
    --accent-l: 42%;

    --bg-main: #faf8f2;

    /* Premium Midnight Blue + Obsidian Black for header */
    --header-color-1: #0a0f1d;
    --header-color-2: #162035;

    --slider-accent: #ffca28;
    --slider-text-grad: linear-gradient(135deg, #ffca28 0%, #ff9800 60%, #ffffff 100%);
}

/* ==========================================================================
   2. GENERAL RULES & ACCESSIBILITY
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    /* Dynamically changed by accessibility controls */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Custom Badges */
.badge-accent {
    background-color: var(--accent-glow);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
}

/* Button Custom Styles */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff !important;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-custom {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: #fff;
    color: var(--primary-dark) !important;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Section Title Wrappers */
.section-title-wrapper {
    margin-bottom: 40px;
}

.section-title-wrapper.center {
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
    margin-top: 5px;
}

.title-underline.center {
    margin: 5px auto 0 auto;
}

/* ==========================================================================
   3. TOP STRIP HEADER
   ========================================================================== */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, hsla(var(--primary-h), var(--primary-s), 10%, 1) 100%);
    padding: 5px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.25);
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-bar .contact-info span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-right: 5px;
}

.top-bar .contact-info span i {
    color: var(--accent);
}

.font-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 2px;
    transition: var(--transition);
}

.font-btn:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.color-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.color-btn:hover,
.color-btn.active {
    transform: scale(1.3);
    border-color: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.color-slate {
    background-color: #1f2937;
}

.color-olive {
    background-color: #6b8c23;
}

.color-maroon {
    background-color: #6d0100;
}

.color-gold {
    background-color: #c79600;
}

.btn-admission {
    background-color: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-admission:hover {
    background-color: #fff;
    transform: translateY(-1px);
}

.bar-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   4. NAVIGATION & HEADER WRAPPER
   ========================================================================== */
.header-wrapper {
    position: absolute;
    top: 33px;
    /* Placed exactly under Top Bar */
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Fix header overlap on internal pages */
body.internal-page .header-wrapper {
    position: relative;
    top: 0;
}

body.internal-page .header {
    background: linear-gradient(90deg,
            var(--header-color-1) 0%,
            var(--header-color-2) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header {
    background: linear-gradient(90deg,
            var(--header-color-1) 0%,
            var(--header-color-1) 40%,
            var(--header-color-2) 60%,
            var(--header-color-2) 100%);
    background-image:
        radial-gradient(400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
            rgba(255, 202, 40, 0.14),
            transparent 80%),
        linear-gradient(90deg,
            var(--header-color-1) 0%,
            var(--header-color-1) 40%,
            var(--header-color-2) 60%,
            var(--header-color-2) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 10px 0;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 20;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #c79600, rgba(100, 160, 255, 0.7), #c79600) 1;
}

/* Scrolled state (Floating rounded capsule navbar) */
.header-wrapper.scrolled {
    position: fixed;
    top: 15px;
    /* Floats slightly offset from top */
    left: 50%;
    transform: translateX(-50%);
    width: 92% !important;
    /* Elegant narrower container */
    max-width: 1380px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-wrapper.scrolled .header {
    background: linear-gradient(90deg,
            var(--header-color-1) 0%,
            var(--header-color-1) 40%,
            var(--header-color-2) 60%,
            var(--header-color-2) 100%);
    background-image:
        radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
            rgba(255, 202, 40, 0.18),
            transparent 80%),
        linear-gradient(90deg,
            var(--header-color-1) 0%,
            var(--header-color-1) 40%,
            var(--header-color-2) 60%,
            var(--header-color-2) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 8px 25px;
    border-radius: 100px;
    border: 1.5px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 0 25px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
}

.navigation-container {
    height: 68px;
}

/* Logo Details & Glows */
.logo-area {
    text-decoration: none;
    display: flex;
    align-items: center;
    perspective: 1000px;
    position: relative;
}

.logo-emblem {
    width: 58px;
    height: 58px;
    color: var(--accent);
    transition: transform 0.15s ease-out, filter 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
}

.logo-title {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

/* Sparkles on Logo Hover */
.logo-sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 100;
    color: var(--accent);
    animation: sparkleFloat 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sparkleFloat {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }

    25% {
        transform: translate(-50%, -50%) scale(1) rotate(45deg);
        opacity: 1;
        filter: drop-shadow(0 0 5px var(--accent-light));
    }

    100% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.1) rotate(180deg);
        opacity: 0;
    }
}

.logo-svg {
    width: 100%;
    height: 100%;
    fill: none;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
    animation: goldPulse 3s infinite alternate ease-in-out;
}

.logo-area:hover .logo-emblem {
    transform: scale(1.08) rotate(5deg);
    filter: drop-shadow(0 0 8px var(--accent-light));
}

@keyframes goldPulse {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.85));
    }
}

.logo-title h1 {
    font-size: 1.36rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.logo-area:hover .logo-title h1 {
    color: var(--accent);
    text-shadow: 0 0 10px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
}

.logo-title p {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.location-text {
    color: var(--accent-light, #ffb347);
    font-weight: 800;
    text-transform: uppercase;
}

.bar-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.header-tag-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #0b1220 !important;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 160, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    animation: badgeGlow 2.5s infinite alternate ease-in-out;
}

.logo-area:hover .header-tag-badge {
    box-shadow: 0 0 18px rgba(255, 160, 0, 0.75), 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px) scale(1.02);
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 8px rgba(255, 160, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.25);
    }

    100% {
        box-shadow: 0 0 16px rgba(255, 160, 0, 0.65), 0 2px 4px rgba(0, 0, 0, 0.25);
    }
}

/* Nav Menu Items & Sliding Underlines */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem !important;
    /* Premium spacing between desktop nav items */
    position: relative;
}

.nav-list li {
    position: relative;
    z-index: 2;
    /* Keeps link text above the sliding capsule */
}

.nav-indicator-pill {
    display: none !important;
}



.nav-icon {
    font-size: 0.8rem;
    color: var(--accent);
    margin-right: 4px;
    transition: all 0.3s ease;
}

.nav-list li a.nav-link:hover .nav-icon,
.nav-list li a.nav-link.active .nav-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.nav-list li a.nav-link {
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.98rem;
    padding: 8px 3px;
    position: relative;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Prevents "About Us" or other links from wrapping */
}

.nav-list li a.nav-link:hover,
.nav-list li a.nav-link.active {
    color: var(--accent);
}

.nav-list li a.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
    border-radius: 10px;
}

.nav-list li a.nav-link:hover::after,
.nav-list li a.nav-link.active::after {
    width: 80%;
}

/* Navigation Call-to-Action (CTA) Button styling */
.nav-cta-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 202, 40, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-cta-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(255, 202, 40, 0.55),
        0 0 10px rgba(255, 255, 255, 0.15);
    color: var(--primary-dark) !important;
}

.nav-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

.nav-arrow {
    font-size: 0.65rem;
    margin-left: 3px;
    transition: transform 0.3s;
}

.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu styling - Premium Glassmorphic Card */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(16, 16, 16, 0.78);
    /* High contrast dark glass */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.22);
    /* Elegant thin gold outline */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    /* Fully rounded capsule look */
    width: 250px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s cubic-bezier(0.25, 1, 0.5, 1),
        visibility 0.38s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0s, 0.12s, 0s;
    /* hide visibility with a small delay so cursor can reach */
    z-index: 1000;
}

/* 3D Reveal on Hover */
.has-dropdown {
    perspective: 1000px;
}

/* ── INVISIBLE BRIDGE: fills the gap between nav-link & dropdown ── */
/* Without this, moving mouse from link to dropdown crosses empty space
   and triggers mouseleave, hiding the dropdown before user can reach it. */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 18px;
    /* covers the translateY(6px) gap + a little extra */
    background: transparent;
    pointer-events: auto;
    /* keeps hover alive while crossing the gap */
    z-index: 999;
}

.has-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: menuReveal 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.dropdown-menu-custom li a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 8px 16px;
    margin: 2px 8px;
    /* Indents items to float inside the glass container */
    border-radius: 8px;
    /* Clean pill highlight look */
    display: flex;
    align-items: center;
    transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
}

.dropdown-menu-custom li a i {
    font-size: 0.82rem;
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--accent);
    opacity: 0.85;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.dropdown-menu-custom li a:hover {
    background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08);
    /* Subtle gold tint pill */
    color: var(--accent-light);
    transform: translateX(4px);
}

.dropdown-menu-custom li a:hover i {
    transform: scale(1.15) translateX(2px);
    opacity: 1;
    color: var(--accent-light);
}

/* ==========================================
   MEGA MENU STYLES
   ========================================== */
/* Mega Menu Styling - Premium Glassmorphic Card */
.mega-menu-custom {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(16, 16, 16, 0.82);
    /* Darker glass backdrop */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border-radius: 18px;
    /* Soft rounded edges */
    padding: 24px 28px;
    width: 650px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s cubic-bezier(0.25, 1, 0.5, 1),
        visibility 0.38s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0s, 0.12s, 0s;
    /* small delay on hide so cursor can reach the menu */
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Wide layout variants (3 columns) */
.mega-menu-wide {
    width: 820px;
    grid-template-columns: repeat(3, 1fr);
}

/* Extra Wide layout variants (4 columns) */
.mega-menu-xl {
    width: 980px;
    grid-template-columns: repeat(4, 1fr);
    padding: 26px 32px;
}

.has-dropdown:hover .mega-menu-custom {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: menuReveal 0.42s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes menuReveal {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px) scale(0.96);
        visibility: hidden;
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(6px) scale(1);
        visibility: visible;
    }
}

/* Right-aligned dropdowns and mega menus to prevent viewport overflow */
.dropdown-menu-right,
.mega-menu-right {
    left: auto !important;
    right: 0 !important;
    transform: translateY(15px) !important;
}

.has-dropdown:hover .dropdown-menu-right,
.has-dropdown:hover .mega-menu-right {
    animation: menuRevealRight 0.42s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

@keyframes menuRevealRight {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
        visibility: hidden;
    }

    100% {
        opacity: 1;
        transform: translateY(6px) scale(1);
        visibility: visible;
    }
}

/* Staggered Entrance for Mega Menu Columns */
.mega-menu-custom>div {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.has-dropdown:hover .mega-menu-custom>div {
    opacity: 1;
    transform: translateY(0);
}

.has-dropdown:hover .mega-menu-custom>div:nth-child(1) {
    transition-delay: 0.04s;
}

.has-dropdown:hover .mega-menu-custom>div:nth-child(2) {
    transition-delay: 0.1s;
}

.has-dropdown:hover .mega-menu-custom>div:nth-child(3) {
    transition-delay: 0.16s;
}

.has-dropdown:hover .mega-menu-custom>div:nth-child(4) {
    transition-delay: 0.22s;
}

.mega-menu-col-title {
    font-size: 0.84rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffffff;
    /* High-contrast white text */
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    border-bottom: 1.5px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45);
    /* Themed gold divider line */
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    /* Drop shadow to pop from dark background */
}

.mega-menu-col-title i {
    color: var(--accent-light) !important;
    /* Elegant gold icon */
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-menu-links li a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-menu-links li a:hover {
    color: var(--accent-light);
    transform: translateX(6px);
}

.mega-menu-links li a i {
    font-size: 0.82rem;
    width: 20px;
    text-align: center;
    margin-right: 6px;
    color: var(--accent);
    opacity: 0.85;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.mega-menu-links li a:hover i {
    transform: scale(1.15) translateX(2px);
    opacity: 1;
    color: var(--accent-light);
}



/* Portal Button */
.btn-portal {
    background: rgba(255, 255, 255, 0.12);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-portal:hover {
    background-color: var(--accent);
    color: var(--primary-dark) !important;
    border-color: var(--accent);
    box-shadow: 0 5px 15px var(--accent-glow);
    transform: translateY(-2px);
}

/* Morphing Hamburger Mobile Toggle */
.mobile-toggle {
    background: transparent;
    border: none;
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle:hover .bar {
    background-color: var(--accent);
}

/* Morphing active transitions for Hamburger */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
    background-color: var(--accent);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
    width: 0%;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
    background-color: var(--accent);
}

/* Premium Glowing Bottom Accent Line */
/* Dynamic Sweeping Laser Accent Beam */
.header-border-beam {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    z-index: 25;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-border-beam::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 202, 40, 0.15) 20%,
            var(--accent-light) 50%,
            rgba(255, 202, 40, 0.15) 80%,
            transparent 100%);
    animation: beam-sweep 3.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes beam-sweep {
    0% {
        transform: translateX(-300px);
    }

    100% {
        transform: translateX(100vw);
    }
}

/* Hide or modify border beam inside floating capsule scrolled state */
.header-wrapper.scrolled .header-border-beam {
    opacity: 0;
    /* Let the full capsule glow outline handle it on scroll */
    pointer-events: none;
}

/* ==========================================================================
   5. MOBILE DRAWER NAVIGATION
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: hsla(var(--primary-h), var(--primary-s), 10%, 0.98);
    border-left: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.25);
    box-shadow: var(--shadow-lg);
    z-index: 2005;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    background-color: var(--primary-dark);
    color: white;
}

.drawer-logo-icon {
    color: var(--accent);
}

.drawer-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.3rem;
}

.drawer-body {
    overflow-y: auto;
    flex-grow: 1;
}

.drawer-nav-list {
    list-style: none;
}

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

.drawer-link {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    padding: 14px 0;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.drawer-link:hover,
.drawer-link.active {
    color: var(--accent);
}

.drawer-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.drawer-has-submenu.open>.drawer-link>.drawer-arrow {
    transform: rotate(90deg);
}

.drawer-submenu {
    list-style: none;
    padding-left: 15px;
    background-color: rgba(0, 0, 0, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.drawer-has-submenu.open .drawer-submenu {
    max-height: 1200px;
    /* High enough to contain long nested lists */
    padding-bottom: 8px;
}

.drawer-submenu li a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    display: block;
    padding: 9px 0;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.drawer-submenu li a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.drawer-subtitle {
    color: var(--accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding-top: 10px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   4. CINEMATIC HERO IMAGE SLIDER
   ========================================================================== */
.slider-section {
    width: 100%;
    background-color: #0b0f19;
    --accent-color: var(--accent, #ffca28);
    /* Bind accent color dynamically to theme variables */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 520px;
    /* Increased height from 418px for a cinematic feel */
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    clip-path: circle(0% at 50% 50%);
    filter: blur(15px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 1.2s;
}

/* Active slide is on top of the leaving slide */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    clip-path: circle(150% at 50% 50%) !important;
    filter: blur(0px) !important;
}

/* Leaving slide stays static underneath active slide during transition, slowly blurring out */
.slide.leaving {
    opacity: 1;
    visibility: visible;
    z-index: 5;
    clip-path: circle(150% at 50% 50%) !important;
    filter: blur(15px);
    transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.slide.leaving .slide-bg {
    transform: scale(1.02) !important;
    transition: none !important;
}

/* Slide Background with subtle scale on activation (rotation removed to prevent cropping) */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .slide-bg {
    transform: scale(1.02);
}

/* Directional Slide Entrance States */
.slide.entering-right {
    opacity: 1;
    visibility: visible;
    z-index: 12;
    clip-path: circle(0% at 90% 50%);
    filter: blur(15px);
}

.slide.entering-right .slide-bg {
    transform: scale(1.08);
}

.slide.entering-left {
    opacity: 1;
    visibility: visible;
    z-index: 12;
    clip-path: circle(0% at 10% 50%);
    filter: blur(15px);
}

.slide.entering-left .slide-bg {
    transform: scale(1.08);
}

/* .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        hsla(var(--primary-h), var(--primary-s), 8%, 0.85) 0%,
        hsla(var(--primary-h), var(--primary-s), 10%, 0.4) 30%,
        transparent 60%
    );
    z-index: 2;
} */

/* Slide Content Overlay Text blocks (Center Bottom) */
.slide-content {
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 3;
    color: #ffffff;
    text-align: center;
}

.slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: 25px;
    /* Reduced from 38px */
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

/* Letter reveal spring animation classes */
.char-span {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(12px) scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.slide.active .char-span {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.slide-desc {
    font-size: 14.5px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.slide.active .slide-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Slider Navigation arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(11, 15, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.slider-arrow:hover {
    background-color: var(--accent-color);
    color: #0b0f19;
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.06);
}

.arrow-left {
    left: 25px;
}

.arrow-right {
    right: 25px;
}

/* Cinematic Lens Flare Sweep Transition Overlay */
.slider-lens-flare {
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 15%,
            var(--accent-color) 45%,
            #ffffff 50%,
            var(--accent-color) 55%,
            rgba(255, 255, 255, 0.05) 85%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-28deg);
    z-index: 15;
    pointer-events: none;
    opacity: 0;
}

.slider-lens-flare.sweep-active {
    animation: flareSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes flareSweep {
    0% {
        left: -150%;
        opacity: 0;
    }

    15% {
        opacity: 0.85;
    }

    45% {
        opacity: 0.95;
    }

    85% {
        opacity: 0.3;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Bottom Progress indicators / dots */
.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.indicator-dot {
    width: 25px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    width: 45px;
    background-color: var(--accent-color);
}

/* Bottom Progress Timer Line */
.slider-timer-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.slider-timer-bar {
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
}

/* Slider Bottom Wave Divider Container */
.slider-wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 24px;
    z-index: 4;
    line-height: 0;
    pointer-events: none;
    overflow: hidden;
}

#slider-wave-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive adjustment for slider container and text */
@media (max-width: 992px) {
    .slider-section {
        margin-top: 123px;
    }
}

@media (max-width: 768px) {
    .slider-section {
        margin-top: 123px;
    }

    .slider-container {
        height: 380px;
        /* Increased height from 320px */
    }

    .slide-title {
        font-size: 22px;
        /* Reduced from 26px */
    }

    .slide-desc {
        font-size: 12.5px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
    }

    .arrow-left {
        left: 10px;
    }

    .arrow-right {
        right: 10px;
    }

    .slide-content {
        bottom: 35px;
    }
}

/* Floating Quick Links Overlays */
.quick-links-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    transform: translateY(50%);
    /* Half overlapping */
}

.quick-card {
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    transition: var(--transition);
    border-bottom: 4px solid #ddd;
    height: 100%;
}

.quick-card.card-1 {
    border-color: var(--primary);
}

.quick-card.card-2 {
    border-color: var(--accent);
}

.quick-card.card-3 {
    border-color: #17a2b8;
}

.quick-card.card-4 {
    border-color: #6c757d;
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.quick-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--bg-main);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 1.4rem;
    transition: var(--transition);
}

.quick-card:hover .quick-card-icon {
    background-color: var(--primary);
    color: white;
}

.quick-card.card-2:hover .quick-card-icon {
    background-color: var(--accent);
}

.quick-card.card-3:hover .quick-card-icon {
    background-color: #17a2b8;
}

.quick-card.card-4:hover .quick-card-icon {
    background-color: #6c757d;
}

.quick-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.card-link {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Spacer for banner overlap */
@media (min-width: 992px) {
    .welcome-section {
        padding-top: 100px !important;
    }
}

/* FLASH NEWS TICKER — removed (replaced by notice-bar) */

/* ==========================================================================
   8. WELCOME & PRINCIPAL MESSAGE
   ========================================================================== */
.welcome-section {
    position: relative;
}

/* Aurora Orbs */
.bg-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.orb-1 {
    top: 10%;
    left: -50px;
    background-color: var(--primary-glow);
}

.orb-2 {
    bottom: 10%;
    right: -50px;
    background-color: var(--accent-glow);
}

.welcome-body p {
    font-size: 0.98rem;
    margin-bottom: 15px;
    text-align: justify;
}

.academic-badges-grid .badge-custom {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.academic-badges-grid .badge-custom i {
    margin-right: 6px;
}

/* Principal Card Design */
.principal-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary);
    transition: var(--transition);
}

.principal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.principal-img-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.principal-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-position: top;
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
    z-index: 2;
    position: relative;
}

.principal-border {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    z-index: 1;
    animation: rotateDashed 20s linear infinite;
}

@keyframes rotateDashed {
    to {
        transform: rotate(360deg);
    }
}

.principal-msg {
    font-size: 0.92rem;
    line-height: 1.7;
    position: relative;
    font-style: italic;
    background-color: #fafbfc;
    padding: 15px;
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
}

.btn-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   9. STATS & COUNTER SECTION
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.stat-box {
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-box h3 {
    font-size: 2.3rem;
    margin-bottom: 2px;
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ==========================================================================
   10. INTERACTIVE NOTICE BOARD SECTION
   ========================================================================== */
.board-panel-left {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--primary);
}

.notice-search-field {
    border-radius: 50px;
    padding: 10px 40px 10px 20px;
    border: 1px solid #ddd;
    font-size: 0.88rem;
    transition: var(--transition);
}

.notice-search-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon-input {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.clear-btn-search {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #cc0000;
    cursor: pointer;
}

.notice-tab-btn {
    width: 100%;
    background-color: #fafbfc;
    border: 1px solid #f0f0f0;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.notice-tab-btn:hover,
.notice-tab-btn.active {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.notice-tab-btn .tab-badge {
    font-size: 0.75rem;
    background-color: #eaedf0;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    transition: var(--transition);
}

.notice-tab-btn:hover .tab-badge,
.notice-tab-btn.active .tab-badge {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.board-panel-right {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    height: 480px;
    display: flex;
    flex-direction: column;
}

.notices-scroller-box {
    flex-grow: 1;
    overflow-y: hidden;
    position: relative;
}

.notices-scroller-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Notice auto scroll when active (Handled by JS scrolling) */
.notices-scroller-track.auto-scroll {
    /* animation: scrollNotices 20s linear infinite; */
}

.notices-scroller-track.auto-scroll:hover {
    /* animation-play-state: paused; */
}

@keyframes scrollNotices {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }

    /* Halfway for seamless loop repeating content */
}

.notice-item-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-left: 4px solid #ddd;
}

.notice-item-card:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-sm);
    border-color: #e2e8f0;
}

.notice-item-card[data-category="admissions"] {
    border-left-color: var(--primary);
}

.notice-item-card[data-category="exams"] {
    border-left-color: #e53e3e;
}

.notice-item-card[data-category="general"] {
    border-left-color: var(--accent);
}

.notice-date-badge {
    min-width: 50px;
    height: 55px;
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notice-date-badge .day {
    color: var(--primary-dark);
    font-size: 1.15rem;
    line-height: 1;
}

.notice-date-badge .month {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.notice-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.notice-excerpt {
    line-height: 1.3;
}

.notice-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #f0f4f8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.notice-action-btn:hover {
    background-color: var(--primary);
    color: white;
}

.btn-read-more-secondary {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.no-notices-found {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* Modal styles overrides */
.custom-modal-content {
    border-radius: var(--border-radius);
    border-top: 6px solid var(--primary);
}

/* ==========================================================================
   11. COURSES & FACULTY SECTION
   ========================================================================== */
.courses-section {
    background-color: var(--primary-dark);
    position: relative;
}

.faculty-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.faculty-tab-btn:hover,
.faculty-tab-btn.active {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.faculty-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.faculty-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.course-card {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    height: 100%;
    transition: var(--transition);
}

.course-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.course-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.course-card:hover .course-icon {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.course-code {
    font-size: 0.7rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.course-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.course-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.course-card hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.course-card .course-meta {
    color: rgba(255, 255, 255, 0.55) !important;
    font-weight: 500;
}

/* ==========================================================================
   12. CAMPUS FACILITIES
   ========================================================================== */
.facilities-grid {
    transition: var(--transition);
}

.facility-card-new {
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    border-top: 4px solid var(--accent);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.facility-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--accent-h), 90%, 50%, 0.05) 0%, transparent 80%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.facility-card-new:hover::before {
    opacity: 1;
}

.facility-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--primary);
}

.facility-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.facility-card-new:hover .facility-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.facility-card-new h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.facility-card-new p {
    font-size: 0.88rem;
}

.facility-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.facility-meta span {
    font-size: 0.75rem;
    background-color: var(--bg-main);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-main);
}

.facility-meta span i {
    color: var(--primary);
    margin-right: 4px;
}

/* ==========================================================================
   13. PHOTO GALLERY
   ========================================================================== */
.gallery-section {
    background-color: var(--primary-dark);
}

.gallery-filter-btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.gallery-item {
    transition: all 0.4s ease;
}

.gallery-item.hidden {
    display: none !important;
}

.gallery-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow-md);
}

.gallery-box img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.gallery-box:hover img {
    transform: scale(1.1);
}

.gallery-overlay-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-box:hover class-overlay,
.gallery-box:hover .gallery-overlay-box {
    opacity: 1;
}

.gallery-tag {
    font-size: 0.68rem;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 5px;
}

.gallery-overlay-box h5 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: var(--accent);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-zoom-btn:hover {
    transform: scale(1.1);
    background-color: white;
}

/* Lightbox Modal Custom */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.05rem;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
}

.lightbox-arrow:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.lightbox-arrow.prev {
    left: 40px;
}

.lightbox-arrow.next {
    right: 40px;
}

/* ==========================================================================
   14. CONTACT & MAP SECTION
   ========================================================================== */
.contact-card {
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    border-bottom: 5px solid var(--primary);
}

.contact-field {
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.88rem;
    border: 1px solid #dcdde1;
    transition: var(--transition);
}

.contact-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.map-card {
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
}

.map-container {
    height: 350px;
    border-radius: 6px;
    overflow: hidden;
}

.bg-light-custom {
    background-color: #fafbfc;
    border: 1px solid #f0f0f0;
}

/* ==========================================================================
   15. MEGA FOOTER SECTION
   ========================================================================== */
.footer-section {
    background: linear-gradient(135deg, #0b110e, var(--primary-dark));
    color: rgba(255, 255, 255, 0.7);
    border-top: 4px solid var(--accent);
}

.footer-logo-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer-socials .social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials .social-btn:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    margin-top: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contacts li {
    margin-bottom: 12px;
}

.footer-contacts li i {
    font-size: 1rem;
}

.text-accent {
    color: var(--accent) !important;
}

.newsletter-input {
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    color: white;
    box-shadow: none;
}

.btn-accent {
    background-color: var(--accent);
    border: none;
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: #fff;
    color: var(--primary-dark) !important;
}

.footer-bottom-strip {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   16. BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 44px;
    height: 44px;
    background-color: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    right: 30px;
}

.back-to-top:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

/* Animation Pulse for Notices live dot */
.animate-pulse {
    display: inline-flex;
    align-items: center;
}

.animate-pulse i {
    animation: alertPulse 1.2s infinite alternate;
}

@keyframes alertPulse {
    from {
        color: #f56565;
        transform: scale(0.9);
    }

    to {
        color: #e53e3e;
        transform: scale(1.1);
    }
}

/* ==========================================================================
   16.5 FLOATING SIDEBAR & ADMISSION ENQUIRY MODAL
   ========================================================================== */
.floating-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Subtle gap between buttons */
}

.sidebar-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Snappy bounce transition */
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    outline: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    border-radius: 0 16px 16px 0;
    /* Fully rounded right corners */
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2);
    /* Dual Color Gradient matching the header theme */
    background: linear-gradient(135deg, var(--header-color-1) 0%, var(--header-color-2) 100%);
    border-right: 3px solid var(--accent);
    /* Elegant accent border on the right */
    overflow: hidden;
}

/* Hover Gradient pseudo-element for smooth transition */
.sidebar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.sidebar-btn i {
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
    /* Keeps icon above the hover overlay */
}

/* Hover States — Slides out, fades in accent gradient, and alters icon color */
.sidebar-btn:hover {
    width: 54px;
    padding-left: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    border-right-color: var(--primary-light);
}

.sidebar-btn:hover::before {
    opacity: 1;
}

.sidebar-btn:hover i {
    color: var(--primary-dark) !important;
    transform: scale(1.2) rotate(8deg);
}

/* floating-enquiry-tab — removed (not used in HTML) */

/* Enquiry Modal Input styling to guarantee high visibility of text and fields */
#enquiryModal .modal-content {
    background-color: #ffffff !important;
    color: #2b2d42 !important;
}

#enquiryModal .modal-header .modal-title,
#enquiryModal .modal-header h5 {
    color: #ffffff !important;
}

/* Hide scrollbar when modal is open */
body.modal-open {
    overflow: hidden !important;
}

#enquiryModal .form-label {
    color: #2b2d42 !important;
    font-weight: 600 !important;
}

#enquiryModal .form-control,
#enquiryModal .form-select,
#enquiryModal textarea {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
}

#enquiryModal .form-control:focus,
#enquiryModal .form-select:focus,
#enquiryModal textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

#enquiryModal .input-group-text {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #ced4da !important;
}

#enquiryModal option {
    color: #1a1a1a !important;
    background-color: #ffffff !important;
}

#enquiryModal .text-muted {
    color: #6c757d !important;
}

/* ==========================================================================
   17. MEDIA RESPONSIVENESS ADJUSTMENTS
   ========================================================================== */
@media (max-width: 992px) {
    .header {
        background: var(--primary-dark);
        border-bottom: 2px solid var(--accent);
    }

    .header-wrapper {
        top: 0 !important;
        /* Top bar disappears or flows naturally */
        position: relative;
    }

    .top-bar {
        padding: 5px 0;
    }

    .hero-slider-section {
        height: 75vh;
    }

    .slide-content {
        padding-bottom: 20px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .slider-bullets {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .top-bar-controls {
        justify-content: center !important;
        font-size: 0.72rem;
    }

    .logo-emblem {
        width: 45px;
        height: 45px;
    }

    .logo-title h1 {
        font-size: 1.15rem;
    }

    .logo-title p {
        font-size: 0.58rem;
    }

    .hero-slider-section {
        height: 60vh;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .stat-box h3 {
        font-size: 1.8rem;
    }

    .floating-sidebar {
        display: none !important;
    }

    .floating-enquiry-tab {
        display: none !important;
    }
}

/* Responsive adjustments for intermediate desktop screens (Laptops) to prevent header items colliding */
@media (min-width: 992px) and (max-width: 1450px) {
    .logo-title h1 {
        font-size: 1.2rem !important;
    }

    .logo-title p.logo-subtitle {
        font-size: 0.68rem !important;
    }

    .nav-list {
        gap: 0.75rem !important;
    }

    .logo-emblem {
        width: 48px !important;
        height: 48px !important;
    }

    .navigation-container {
        height: auto !important;
        min-height: 64px !important;
        padding: 4px 0 !important;
    }

    .nav-list li a.nav-link {
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   20. NOTICE BAR — LIVE UPDATES
   ========================================================================== */
.notice-bar {
    display: flex;
    align-items: stretch;
    height: 52px;
    background: #0b1220;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 90;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* Left glowing label */
.notice-bar__label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #e8eaf6;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

.notice-bar__label::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 100%;
    background: var(--primary-dark);
    transform: skewX(-12deg);
    z-index: -1;
}

.notice-bar__label i {
    font-size: 0.88rem;
    color: var(--accent);
}

/* Pulsing live dot */
.notice-bar__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5);
    animation: notice-pulse 1.8s ease-in-out infinite;
}

.notice-bar__pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0, 230, 118, 0.3);
    animation: notice-ring 1.8s ease-in-out infinite;
}

@keyframes notice-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.6);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }
}

@keyframes notice-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Scrolling track */
.notice-bar__track-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 40px, black calc(100% - 40px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40px, black calc(100% - 40px), transparent 100%);
}

.notice-bar__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: notice-scroll 40s linear infinite;
    gap: 0;
    will-change: transform;
}

.notice-bar__track-wrap:hover .notice-bar__track {
    animation-play-state: paused;
}

@keyframes notice-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Individual items */
.notice-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px 0 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #b0bec5;
    letter-spacing: 0.2px;
    transition: color 0.2s;
    cursor: default;
}

.notice-bar__item::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
    margin-left: 30px;
    flex-shrink: 0;
}

.notice-bar__item:hover {
    color: #eceff1;
}

.notice-bar__item strong {
    color: #ffffff;
    font-weight: 600;
}

/* Pill tags */
.notice-bar__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    flex-shrink: 0;
}

.notice-bar__tag--primary {
    background: rgba(66, 165, 245, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(66, 165, 245, 0.25);
}

.notice-bar__tag--info {
    background: rgba(38, 198, 218, 0.12);
    color: #4dd0e1;
    border: 1px solid rgba(38, 198, 218, 0.22);
}

.notice-bar__tag--new {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    border: none;
    animation: tag-blink 2s ease-in-out infinite alternate;
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.5);
    text-transform: uppercase;
    font-size: 0.62rem;
}

.notice-bar__tag--gold {
    background: rgba(255, 193, 7, 0.12);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.22);
}

@keyframes tag-blink {
    0% {
        opacity: 0.85;
        box-shadow: 0 0 4px rgba(229, 57, 53, 0.4);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(229, 57, 53, 0.7);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notice-bar {
        height: auto;
        flex-direction: column;
    }

    .notice-bar__label {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        /* Adjusted vertical padding */
        font-size: 0.9rem;
        /* Adjusted font size for mobile */
        box-shadow: none;
    }

    .notice-bar__label::after {
        display: none;
    }

    .notice-bar__track-wrap {
        padding: 12px 0;
        /* Adjusted vertical padding */
        mask-image: none;
        -webkit-mask-image: none;
    }

    .notice-bar__item {
        font-size: 1.0rem;
        /* Adjusted scrolling text on mobile */
    }
}

/* ==========================================================================
   MAIN CONTENT SECTION (PREMIUM WELCOME & NEWS)
   ========================================================================== */

.home-main-section {
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: var(--bg-main) !important;
}

.tech-waves-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
}

.tech-waves-bg svg {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.z-index-2 {
    z-index: 2 !important;
}

.z-index-3 {
    z-index: 3 !important;
}

/* Background Glows */
.section-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    top: -200px;
    left: -200px;
    background: var(--primary-glow);
}

.glow-2 {
    bottom: -200px;
    right: -200px;
    background: var(--accent-glow);
}

.relative {
    position: relative;
}

.z-index-1 {
    z-index: 1;
}

/* --- PREMIUM WELCOME CARD --- */
.premium-welcome-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: translateZ(0);
    /* Hardware accel */
    border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
    min-height: 480px;
    display: flex;
    align-items: flex-end;
}

.premium-img-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease, opacity 0.8s ease-in-out;
}

.premium-welcome-card:hover .premium-img {
    transform: scale(1.1);
}

.premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            hsla(var(--primary-h), var(--primary-s), 5%, 0.1) 0%,
            hsla(var(--primary-h), var(--primary-s), 10%, 0.95) 100%);
}

.premium-glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
    border-right: 1px solid hsla(255, 255, 255, 0.1);
    padding: 35px;
    width: 100%;
    border-radius: 0 0 24px 24px;
    transform: translateY(0);
    transition: var(--transition);
}

.glass-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.glass-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.glass-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- PREMIUM NEWS SECTION --- */
.premium-news-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    color: var(--text-main);
    font-weight: 800;
    position: relative;
    padding-bottom: 5px;
}

.heading-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 4px;
}

.view-all-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}

.view-all-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.premium-news-list-wrapper {
    position: relative;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
    height: 400px;
    overflow: hidden;
}

[data-theme="slate"] .premium-news-list-wrapper,
[data-theme="maroon"] .premium-news-list-wrapper,
[data-theme="olive"] .premium-news-list-wrapper,
[data-theme="gold"] .premium-news-list-wrapper {
    background: var(--bg-main);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), var(--shadow-lg);
    border: 1px solid hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

.news-list {
    height: 100%;
    overflow-y: auto;
    padding-right: 15px;
    padding-bottom: 20px;
}

.news-list::-webkit-scrollbar {
    width: 5px;
}

.news-list::-webkit-scrollbar-track {
    background: transparent;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

/* Scroll Fades for smooth look */
.scroll-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, var(--bg-main) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.scroll-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, var(--bg-main) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Individual News Items */
.premium-news-item {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 16px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.premium-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom;
}

.premium-news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: #ffffff;
}

.premium-news-item:hover::before {
    transform: scaleY(1);
}

.news-pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
    margin-right: 18px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 0 rgba(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.news-content-box {
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.premium-news-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.premium-news-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.tag-tender {
    background: hsla(0, 80%, 50%, 0.1);
    color: #d32f2f;
}

.tag-student {
    background: hsla(210, 80%, 50%, 0.1);
    color: #1976d2;
}

.tag-academic {
    background: hsla(280, 80%, 50%, 0.1);
    color: #7b1fa2;
}

.premium-news-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    display: block;
    text-decoration: none;
}

.premium-news-item:hover .premium-news-link {
    color: var(--primary);
}

/* ==========================================================================
   ADMINISTRATOR & WELCOME SECTION
   ========================================================================== */
.admin-welcome-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom,
            hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.08) 50%,
            hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12) 50%) !important;
}

@media (min-width: 992px) {
    .admin-welcome-section {
        background: linear-gradient(to right,
                hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.08) 45%,
                hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12) 45%) !important;
    }
}

/* Premium Glassmorphic Glowing Orbs */
.orb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
    mix-blend-mode: multiply;
}

/* For dark themes */
[data-theme="slate"] .orb,
[data-theme="maroon"] .orb,
[data-theme="olive"] .orb,
[data-theme="gold"] .orb {
    mix-blend-mode: screen;
    opacity: 0.25;
}

.orb-primary {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.6) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: floatOrb1 25s infinite alternate ease-in-out;
}

.orb-accent {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.5) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation: floatOrb2 30s infinite alternate ease-in-out;
}

.orb-highlight {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    top: 30%;
    left: 45%;
    animation: floatOrb3 20s infinite alternate ease-in-out;
}

/* Smooth floating animations */
@keyframes floatOrb1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(80px, 60px) scale(1.15);
    }

    100% {
        transform: translate(-40px, 120px) scale(0.9);
    }
}

@keyframes floatOrb2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-100px, -50px) scale(0.85);
    }

    100% {
        transform: translate(60px, 60px) scale(1.1);
    }
}

@keyframes floatOrb3 {
    0% {
        transform: translate(0, 0) scale(0.9);
    }

    50% {
        transform: translate(50px, -80px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 30px) scale(0.95);
    }
}

.admin-header-line {
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
}

.admin-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.admin-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
}

.admin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.admin-card:hover .admin-img {
    transform: scale(1.08);
}

.fallback-bg {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}

.admin-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    text-align: center;
    transform: translateY(0);
    transition: var(--transition);
}

.admin-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.admin-title {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Welcome Text Column */
.welcome-heading {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.text-accent-themed {
    color: var(--accent);
}

.heading-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.welcome-text-body {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
}

.drop-cap-text {
    position: relative;
}

.drop-cap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary-dark);
}

.btn-premium-solid {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary-dark) !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 8px 20px var(--accent-glow);
    transition: var(--transition);
    border: none;
}

.btn-premium-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
}

.btn-premium-solid i {
    transition: transform 0.3s ease;
}

.btn-premium-solid:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   CAMPUS FACILITIES SECTION
   ========================================================================== */
.facilities-section {
    background-color: var(--primary-dark);
    color: #ffffff;
}

[data-theme="slate"] .facilities-section {
    background-color: #111827;
}

.facilities-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.facilities-underline {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.facilities-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.facility-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
    border-color: rgba(var(--accent-h), var(--accent-s), var(--accent-l), 0.6);
}

.facility-img-box {
    height: 130px;
    position: relative;
    overflow: hidden;
}

.facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-card:hover .facility-img {
    transform: scale(1.15);
}

.facility-icon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.facility-icon-overlay i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.facility-icon-overlay span {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1rem;
    text-transform: uppercase;
}

.bg-light-card {
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 100%);
}

/* Gradient Icons for Premium Look */
.text-accent-themed i {
    background: linear-gradient(135deg, var(--accent), #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.text-primary i {
    background: linear-gradient(135deg, var(--primary), #0052cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.text-success i {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.text-danger i {
    background: linear-gradient(135deg, #dc3545, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.facility-footer {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.facility-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.facility-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.facility-card:hover .facility-footer {
    background-color: rgba(255, 255, 255, 0.06);
}

.facility-card:hover .facility-arrow {
    color: #ffffff;
    background: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
}

/* ==========================================================================
   DEPARTMENT OVERVIEW SECTION
   ========================================================================== */
.dept-overview-section {
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: #ffffff;
}

/* Custom Department Constellation/Network Background */
.dept-network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

.dept-network-bg svg {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Ambient glow spots for Department Section */
.dept-bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
    animation: floatGlow 8s infinite alternate ease-in-out;
}

.dept-bg-glow.glow-primary {
    top: -100px;
    left: -100px;
    background-color: var(--primary);
}

.dept-bg-glow.glow-accent {
    bottom: -150px;
    right: -100px;
    background-color: var(--accent);
}

@keyframes floatGlow {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(30px) scale(1.15);
    }
}

.dept-profile-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dept-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

.dept-hod-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent, #ff9933) 0%, #d97706 100%);
    color: #000000;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    z-index: 3;
    pointer-events: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dept-hod-badge::before {
    content: '👑';
    font-size: 0.75rem;
}

.dept-card-buttons {
    display: flex;
    gap: 6px;
    z-index: 3;
    position: relative;
    width: 100%;
}

.dept-card-buttons .btn-view-profile {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 20px;
}

.btn-view-profile-hod {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-view-profile-hod:hover {
    background: #ffffff !important;
    color: var(--primary-dark) !important;
    border-color: #ffffff !important;
}

.dept-hod-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    z-index: 3;
    position: relative;
}

.dept-hod-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent, #ff9933);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: #ffffff;
}

.dept-hod-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dept-hod-label {
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--accent, #ff9933);
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.dept-profile-overlay .prof-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.dept-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.dept-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dept-profile-card:hover .dept-profile-img {
    transform: scale(1.05);
}

.dept-profile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.dept-name {
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.prof-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.btn-view-profile {
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    align-self: flex-start;
    transition: var(--transition);
}

.btn-view-profile:hover {
    background: #ffffff;
    color: var(--primary-dark);
}

.dept-banner {
    background-color: var(--primary-dark);
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="slate"] .dept-banner {
    background-color: #1a202c;
}

/* ==========================================================================
   NOTICES & LINKS SECTION
   ========================================================================== */
.bg-light-section {
    background-color: #f8f9fa;
}

[data-theme="slate"] .bg-light-section,
[data-theme="maroon"] .bg-light-section,
[data-theme="olive"] .bg-light-section,
[data-theme="gold"] .bg-light-section {
    background-color: var(--bg-main);
}

.pill-tabs-container {
    display: flex;
}

.pill-tab-btn {
    flex: 1;
    text-align: center;
    border: none;
    padding: 12px 10px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.tab-blue {
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
}

.tab-orange {
    background-color: var(--accent);
}

.tab-gray {
    background-color: #5c6c7b;
}

.tab-dark {
    background-color: var(--primary-dark);
}

.notices-links-section {
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: var(--bg-main) !important;
}

.notices-digital-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

.notices-digital-grid svg {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Ambient glows for Notices & Links section */
.notices-bg-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.28;
    pointer-events: none;
    z-index: 1;
    animation: floatGlowReverse 10s infinite alternate ease-in-out;
}

.notices-bg-glow.glow-primary {
    bottom: -100px;
    left: -150px;
    background-color: var(--primary);
}

.notices-bg-glow.glow-accent {
    top: -150px;
    right: -100px;
    background-color: var(--accent);
}

@keyframes floatGlowReverse {
    0% {
        transform: translateY(0) rotate(0deg) scale(1.1);
    }

    100% {
        transform: translateY(-40px) rotate(15deg) scale(0.9);
    }
}

/* Main Card Wrapper */
.notices-main-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.notice-tab-content-box-pill {
    min-height: 400px;
}

.notice-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.notice-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-pill-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.notice-pill-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
    transform: translateX(3px);
}

.notice-icon-bg {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.notice-item-body {
    flex-grow: 1;
}

.title-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.notice-arrow-bg {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    color: #adb5bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.notice-pill-item:hover .notice-arrow-bg {
    background: var(--primary);
    color: #ffffff;
}

.btn-view-all-gradient {
    background: linear-gradient(to right, var(--primary-dark), var(--accent));
    color: #ffffff !important;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-view-all-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
}

/* Important Links Card */
.important-links-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.links-header-accent {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 15px 20px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    border-bottom: 4px solid var(--accent);
}

.links-body {
    padding: 10px 20px;
}

.link-item {
    display: block;
    padding: 12px 0;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.link-item:last-child {
    border-bottom: none;
}

.link-item i {
    font-size: 0.75rem;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.link-item:hover {
    color: var(--primary);
    padding-left: 8px;
}

.link-item:hover i {
    transform: translateX(4px);
    color: var(--primary) !important;
}

[data-theme="slate"] .notices-main-card,
[data-theme="slate"] .important-links-card,
[data-theme="maroon"] .notices-main-card,
[data-theme="maroon"] .important-links-card,
[data-theme="olive"] .notices-main-card,
[data-theme="olive"] .important-links-card,
[data-theme="gold"] .notices-main-card,
[data-theme="gold"] .important-links-card {
    background: var(--bg-main);
    border-color: rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
}

[data-theme="slate"] .notice-pill-item,
[data-theme="maroon"] .notice-pill-item,
[data-theme="olive"] .notice-pill-item,
[data-theme="gold"] .notice-pill-item {
    background: var(--bg-main);
    border-color: rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.05);
}

[data-theme="slate"] .notice-pill-item:hover,
[data-theme="maroon"] .notice-pill-item:hover,
[data-theme="olive"] .notice-pill-item:hover,
[data-theme="gold"] .notice-pill-item:hover {
    border-color: rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
}

.bg-white-custom {
    background-color: var(--bg-white);
}

/* ==========================================================================
   LATEST IMAGES SECTION
   ========================================================================== */
.latest-images-section {
    background-color: var(--primary-dark);
}

[data-theme="slate"] .latest-images-section {
    background-color: #1a202c;
}

.gallery-icon-box {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.gallery-heading-wrapper {
    position: relative;
    padding-bottom: 5px;
}

.gallery-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.btn-gallery-view-all {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-gallery-view-all:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

.gallery-img-card {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-img-card:hover .gallery-img {
    transform: scale(1.08);
}

/* ==========================================================================
   MAIN FOOTER SECTION
   ========================================================================== */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a0a0a 100%);
    color: #a0aec0;
    font-size: 0.9rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to left, rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.08), transparent);
    pointer-events: none;
}

.footer-heading {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-about-text {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Pre-Footer */
.pre-footer-cta {
    background: linear-gradient(to right, var(--primary-dark), #1a202c);
    padding: 40px 0;
    border-top: 3px solid var(--accent);
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-circle:hover {
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.bg-facebook {
    background-color: #3b5998;
}

.bg-twitter {
    background-color: #000000;
}

.bg-youtube {
    background-color: #ff0000;
}

.bg-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-contact-block .contact-item {
    transition: var(--transition);
}

.footer-contact-block .contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text h6 {
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-text p {
    font-size: 0.85rem;
    color: #a0aec0;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links-list a i {
    font-size: 0.7rem;
    margin-right: 10px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-links-list a:hover i {
    transform: translateX(3px);
}

.footer-copyright {
    font-size: 0.85rem;
}

.footer-credits {
    font-size: 0.85rem;
}

/* ==========================================================================
   INTERNAL PAGE STYLES (Copied from CMS)
   ========================================================================== */
.page-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 90px 0 50px;
    overflow: hidden;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/bg-pattern.png');
    background-repeat: repeat;
    opacity: 0.12;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

.page-header-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.page-header .container {
    position: relative;
    z-index: 4;
}

.page-header .page-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-item.active {
    color: var(--accent) !important;
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5) !important;
}

.content-section {
    padding: 50px 0;
    background-color: #f8fafc;
}

.sidebar-menu {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sidebar-menu .card-header {
    background: #fff;
    border-bottom: 2px solid var(--accent);
}

.sidebar-menu .list-group-item {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s;
    color: #475569;
    font-weight: 500;
}

.sidebar-menu .list-group-item:hover,
.sidebar-menu .list-group-item.active {
    background-color: var(--theme-primary, #0f4c5c);
    color: #fff;
    padding-left: 25px !important;
}

.content-card {
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #fff;
    padding: 2.5rem;
}

.page-content p {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

.page-content h3,
.page-content h4 {
    color: var(--theme-primary-dark, #020617);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* -- Ultra-Premium Modern Glassmorphic Sidebar ------------------------------------------- */
.sidebar-box {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.01),
        0 20px 40px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 30px;
}

.sidebar-box:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.02),
        0 30px 60px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.85);
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(15, 23, 42, 0.9) 100%);
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.sidebar-header::before {
    display: none !important;
}

.sidebar-list {
    list-style: none;
    padding: 12px 10px;
    margin: 0;
    background: transparent;
}

.sidebar-list li {
    position: relative;
    margin-bottom: 6px;
    border-bottom: none !important;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: #475569;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.sidebar-list a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0;
    width: 4px;
    background-color: var(--accent);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.sidebar-list a:hover::after,
.sidebar-list a.active::after {
    height: 60%;
}

.sidebar-list a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.sidebar-list a:hover::before {
    opacity: 1;
}

.sidebar-list a span.label-text {
    flex-grow: 1;
    z-index: 1;
    transition: transform 0.3s ease;
}

.sidebar-list a:hover span.label-text {
    transform: translateX(4px);
    color: var(--accent);
}

.sidebar-list a .item-icon {
    font-size: 16px;
    color: #64748b;
    background: rgba(241, 245, 249, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-list a:hover .item-icon {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    transform: scale(1.1) rotate(5deg);
    border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.sidebar-list a .sidebar-arrow {
    font-size: 12px;
    color: #cbd5e1;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-5px);
    z-index: 1;
    flex-shrink: 0;
}

.sidebar-list a:hover .sidebar-arrow,
.sidebar-list a.active .sidebar-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

.sidebar-list a.active {
    background: color-mix(in srgb, var(--accent) 10%, transparent) !important;
    border-color: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent) !important;
}

.sidebar-list a.active .item-icon {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 30%, transparent);
    border-color: transparent;
}

.sidebar-list a.active .sidebar-arrow {
    color: var(--accent);
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0 !important;
    transform: translate3d(0, 15px, 0) !important;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Specific delay classes for staggered grid layouts */
.stagger-1 {
    transition-delay: 0.1s !important;
}

.stagger-2 {
    transition-delay: 0.2s !important;
}

.stagger-3 {
    transition-delay: 0.3s !important;
}

.stagger-4 {
    transition-delay: 0.4s !important;
}

.stagger-5 {
    transition-delay: 0.5s !important;
}

/* Left-to-Right Reveal */
.reveal-left {
    opacity: 0 !important;
    transform: translate3d(-30px, 0, 0) !important;
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: opacity, transform;
}

.reveal-left.is-visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Right-to-Left Reveal */
.reveal-right {
    opacity: 0 !important;
    transform: translate3d(30px, 0, 0) !important;
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: opacity, transform;
}

.reveal-right.is-visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Pure Opacity Fade */
.reveal-fade {
    opacity: 0 !important;
    transition: opacity 0.8s ease-out !important;
    will-change: opacity;
}

.reveal-fade.is-visible {
    opacity: 1 !important;
}

/* ==========================================================================
   20. PREMIUM GLASSMORPHIC PDF LIGHTBOX MODAL
   ========================================================================== */
.pdf-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdf-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.pdf-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

.pdf-lightbox-container {
    position: relative;
    width: 92vw;
    height: 88vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-lightbox-modal.active .pdf-lightbox-container {
    transform: scale(1) translateY(0);
}

.pdf-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-bottom: 3px solid var(--accent);
    color: #ffffff;
}

.pdf-lightbox-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.pdf-lightbox-icon {
    color: #ffffff !important;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

.pdf-lightbox-title {
    color: #ffffff !important;
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
    text-transform: uppercase;
}

.pdf-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pdf-lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.pdf-lightbox-btn i {
    font-size: 14px;
}

.pdf-lightbox-btn.btn-newtab {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-lightbox-btn.btn-newtab:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}

.pdf-lightbox-btn.btn-download {
    background: var(--accent);
    color: #ffffff;
}

.pdf-lightbox-btn.btn-download:hover {
    background: #e08320;
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

.pdf-lightbox-btn.btn-close-custom {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 8px 12px;
}

.pdf-lightbox-btn.btn-close-custom:hover {
    background: #ef4444;
    color: #ffffff;
}

.pdf-lightbox-body {
    flex-grow: 1;
    background: #f8fafc;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pdf-lightbox-iframe-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.pdf-lightbox-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .pdf-lightbox-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .pdf-lightbox-header {
        padding: 12px 16px;
    }

    .pdf-lightbox-title {
        font-size: 14px;
    }

    .pdf-lightbox-btn span {
        display: none;
    }

    .pdf-lightbox-btn {
        padding: 8px 10px;
    }
}

/* ==========================================================================
   DOCUMENT FILTERING & SEARCH CONTROLS (Unified and Theme-Aware)
   ========================================================================== */
.doc-filter-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.doc-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doc-filter-tab {
    padding: 8px 18px;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 30px;
    background: #ffffff;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-filter-tab:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.doc-filter-tab.active {
    background: var(--theme-primary);
    color: #ffffff;
    border-color: var(--theme-primary);
    box-shadow: 0 4px 12px rgba(109, 1, 0, 0.15);
}

.doc-search-wrapper {
    position: relative;
    width: 100%;
}

.doc-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.doc-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 14.5px;
    font-weight: 500;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
}

.doc-search-input:focus {
    background-color: #ffffff;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px rgba(109, 1, 0, 0.1);
}

.doc-search-icon {
    position: absolute;
    left: 18px;
    font-size: 16px;
    color: #64748b;
    pointer-events: none;
    transition: color 0.3s ease;
}

.doc-search-input:focus~.doc-search-icon {
    color: var(--theme-primary);
}

.doc-search-clear {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease;
}

.doc-search-clear:hover {
    color: #64748b;
}

.doc-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    margin-top: 12px;
}

.doc-empty-icon {
    font-size: 36px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.doc-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.doc-empty-text {
    font-size: 13.5px;
    color: #94a3b8;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE SYSTEM — ALL PAGES & BREAKPOINTS
   ========================================================================== */

/* ── 1200px — Large Tablet / Small Desktop ─────────────────────────────── */
@media (max-width: 1200px) {

    /* Top Bar */
    .top-bar .contact-info span {
        font-size: 0.75rem;
    }

    /* Header / Nav */
    .logo-area {
        margin-right: 2rem !important;
    }

    .nav-list {
        gap: 1rem !important;
    }

    .nav-list li a.nav-link {
        font-size: 0.88rem !important;
    }

    .navigation-container {
        height: auto !important;
        min-height: 62px !important;
    }

    /* Mega menus — shrink width */
    .mega-menu-custom {
        width: 560px;
    }

    .mega-menu-wide {
        width: 700px;
    }

    .mega-menu-xl {
        width: 860px;
    }

    /* Slider */
    .slider-container {
        height: 460px;
    }

    .slide-title {
        font-size: 22px;
    }

    /* Page header */
    .page-header {
        padding: 70px 0 40px;
    }

    .page-header .page-title {
        font-size: 2rem;
    }

    /* Content card */
    .content-card-wrapper {
        padding: 30px;
    }

    /* Stats */
    .stat-box h3 {
        font-size: 2rem;
    }

    /* Section title */
    .section-title {
        font-size: 1.9rem;
    }
}

/* ── 992px — Tablet + MOBILE HEADER CENTERED LAYOUT ───────────────────── */
@media (max-width: 992px) {

    /* Top bar — color buttons LEFT, font+portal RIGHT */
    .top-bar .container {
        justify-content: space-between !important;
    }

    .top-bar-right {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: space-between !important;
        gap: 4px !important;
    }

    /* Hide separators on mobile — gap handles spacing */
    .top-bar-right .bar-separator {
        display: none !important;
    }

    /* Color circles → LEFT (order -1) */
    .top-bar-right .theme-controls {
        order: -1 !important;
    }

    /* Font buttons → group right */
    .top-bar-right .font-controls {
        order: 1 !important;
        margin-left: auto !important;
        gap: 3px !important;
    }

    /* TMBU Portal → far right */
    .top-bar-right .btn-admission {
        order: 2 !important;
    }


    /* Header becomes sticky band */
    .header-wrapper {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
    }

    .header-wrapper.scrolled {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        transform: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }

    .header-wrapper.scrolled .header {
        border-radius: 0 !important;
        padding: 8px 0 !important;
    }

    .header {
        padding: 8px 0;
    }

    .navigation-container {
        height: 60px !important;
    }

    /* Logo */
    .logo-area {
        margin-right: 0 !important;
    }

    .logo-emblem {
        width: 50px !important;
        height: 50px !important;
    }

    .logo-title h1 {
        font-size: 1.1rem !important;
    }

    .logo-title p.logo-subtitle {
        font-size: 0.62rem !important;
    }

    /* Slider */
    .slider-section {
        margin-top: 0 !important;
    }

    .slider-container {
        height: 360px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-desc {
        font-size: 12px;
    }

    .slide-content {
        bottom: 30px;
    }

    /* Quick links overlay — disable overlap on tablet */
    .quick-links-overlay {
        position: relative;
        transform: none;
        margin-top: -4px;
    }

    .welcome-section {
        padding-top: 30px !important;
    }

    /* Stats */
    .stat-box h3 {
        font-size: 1.85rem;
    }

    .stat-icon {
        font-size: 1.9rem;
    }

    /* Notice board — stack panels */
    .board-panel-right {
        height: auto;
        min-height: 340px;
    }

    /* Courses mega menu — kill mega, fallback width */
    .mega-menu-custom,
    .mega-menu-wide,
    .mega-menu-xl {
        display: none !important;
    }


    /* Page header */
    .page-header {
        padding: 60px 0 35px;
    }

    .page-header .page-title {
        font-size: 1.8rem;
    }

    /* Internal page layout — sidebar on top on tablet */
    .content-section {
        padding: 35px 0;
    }

    .content-card {
        padding: 1.8rem;
    }

    /* Sidebar box — less margin */
    .sidebar-box {
        margin-bottom: 20px;
    }

    /* Section title */
    .section-title {
        font-size: 1.75rem;
    }

    /* Footer */
    .pre-footer-cta {
        padding: 28px 0;
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
        margin-top: 12px;
    }

    /* Doc viewer height reduce */
    .doc-viewer [style*="height: 85vh"] {
        min-height: 500px !important;
    }

    /* ═══════════════════════════════════════════════════════════════════
       MOBILE HEADER — CENTERED PREMIUM LAYOUT
       Logo + Name centered | Hamburger fixed on right
       ═══════════════════════════════════════════════════════════════════ */

    /* Header shell — full gradient, clean border */
    .header {
        padding: 0 !important;
        background: linear-gradient(135deg,
                var(--header-color-1) 0%,
                var(--header-color-2) 100%) !important;
        border-bottom: 2.5px solid var(--accent) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    /* Navigation container → centered, with space for hamburger */
    .navigation-container {
        height: auto !important;
        min-height: unset !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        padding: 11px 56px 11px 56px !important;
    }

    /* Logo area → centered row */
    .logo-area {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 11px !important;
        margin-right: 0 !important;
        width: 100% !important;
        text-decoration: none !important;
    }

    /* Logo emblem — circular glow */
    .logo-emblem {
        width: 56px !important;
        height: 56px !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.07) !important;
        padding: 2px !important;
        border: 2px solid rgba(255, 255, 255, 0.22) !important;
        box-shadow: 0 0 16px rgba(255, 202, 40, 0.3) !important;
    }

    /* Logo title column */
    .logo-title {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    /* College main name */
    .logo-title h1 {
        font-size: 0.97rem !important;
        font-weight: 800 !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        letter-spacing: 0.3px !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        background: none !important;
        filter: none !important;
        margin: 0 !important;
        text-transform: uppercase !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    /* "NARAYANPUR" — accent color, new line */
    .logo-title h1 .title-location {
        color: var(--accent, #ffca28) !important;
        -webkit-text-fill-color: var(--accent, #ffca28) !important;
        display: block !important;
        font-size: 1.1rem !important;
        letter-spacing: 1.5px !important;
        line-height: 1.15 !important;
        text-shadow: 0 0 10px rgba(255, 202, 40, 0.4) !important;
    }

    /* Subtitle */
    .logo-title p.logo-subtitle {
        font-size: 0.62rem !important;
        color: rgba(255, 255, 255, 0.72) !important;
        white-space: normal !important;
        line-height: 1.45 !important;
        margin-top: 3px !important;
        display: block !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        animation: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hamburger — absolute right, vertically centered */
    .mobile-toggle {
        position: absolute !important;
        right: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 32px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 8px !important;
        padding: 5px 7px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
        z-index: 2010 !important;
        transition: all 0.3s ease !important;
    }

    .mobile-toggle .bar {
        width: 100% !important;
        height: 2.5px !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 2px !important;
        transition: all 0.35s ease !important;
    }

    .mobile-toggle:hover {
        background: rgba(255, 202, 40, 0.18) !important;
        border-color: rgba(255, 202, 40, 0.55) !important;
    }

    .mobile-toggle:hover .bar {
        background-color: var(--accent, #ffca28) !important;
    }

    .mobile-toggle.active {
        background: rgba(255, 255, 255, 0.12) !important;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg) !important;
        background-color: var(--accent, #ffca28) !important;
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
        width: 0 !important;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg) !important;
        background-color: var(--accent, #ffca28) !important;
    }

    /* Scrolled compact state */
    .header-wrapper.scrolled .navigation-container {
        padding: 8px 56px !important;
    }

    .header-wrapper.scrolled .logo-emblem {
        width: 44px !important;
        height: 44px !important;
    }

    .header-wrapper.scrolled .logo-title h1 {
        font-size: 0.82rem !important;
    }

    .header-wrapper.scrolled .logo-title h1 .title-location {
        font-size: 0.95rem !important;
    }

    .header-wrapper.scrolled .logo-title p.logo-subtitle {
        display: none !important;
    }

    /* Hide laser beam on mobile */
    .header-border-beam {
        display: none !important;
    }
}


/* ── 768px — Large Mobile / Small Tablet ──────────────────────────────── */
@media (max-width: 768px) {

    /* Top bar */
    .top-bar {
        font-size: 0.72rem;
    }

    .btn-admission {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .font-btn {
        font-size: 0.68rem;
        padding: 2px 6px;
    }

    /* Slider */
    .slider-container {
        height: 300px;
    }

    .slide-title {
        font-size: 17px;
    }

    .slide-desc {
        display: none;
    }

    /* hide desc on very small screens */
    .slide-content {
        bottom: 20px;
        width: 95%;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .arrow-left {
        left: 8px;
    }

    .arrow-right {
        right: 8px;
    }

    /* Quick cards — 2 column on mobile */
    .quick-links-overlay .col-md-3 {
        width: 50%;
    }

    /* Stats — 2 per row */
    .stats-section .col-6 {
        width: 50% !important;
    }

    .stat-box h3 {
        font-size: 1.7rem;
    }

    /* Welcome section */
    .principal-card {
        margin-top: 20px;
    }

    /* Notice board */
    .notice-tab-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .board-panel-right {
        min-height: 280px;
    }

    /* Gallery filter — wrap */
    .gallery-filter-btn {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    /* Page header */
    .page-header {
        padding: 45px 0 28px;
    }

    .page-header .page-title {
        font-size: 1.5rem;
        word-break: break-word;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
    }

    /* Content card wrapper */
    .content-card-wrapper {
        padding: 20px 16px;
        border-radius: 16px;
    }

    /* Content header box */
    .content-header-box {
        padding: 18px 20px;
    }

    .content-header-box h2 {
        font-size: 20px;
    }

    /* Sidebar on mobile — collapse to single col */
    .col-lg-4.col-md-5,
    .col-md-5 {
        width: 100% !important;
    }

    .col-lg-8.col-md-7,
    .col-md-7 {
        width: 100% !important;
    }

    /* Sidebar list compact */
    .sidebar-header {
        padding: 14px 18px;
        font-size: 14px;
    }

    .sidebar-list a {
        padding: 10px 14px;
        font-size: 13.5px;
    }

    .sidebar-box {
        border-radius: 14px;
    }

    /* Doc filter tabs — wrap */
    .doc-filter-wrapper {
        gap: 7px;
    }

    .doc-filter-tab {
        font-size: 12.5px;
        padding: 6px 14px;
    }

    /* Doc item cards — stack vertically */
    .doc-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .doc-item .d-flex.align-items-center.gap-2 {
        width: 100%;
        justify-content: flex-end;
    }

    /* Doc viewer iframe */
    .doc-viewer>div {
        min-height: 55vh !important;
        height: 55vh !important;
    }

    /* PDF lightbox mobile */
    .pdf-lightbox-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    /* Highlights grid */
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .highlight-card {
        padding: 14px 16px;
    }

    /* Faculty / course tab buttons */
    .faculty-tab-btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Section title */
    .section-title {
        font-size: 1.55rem;
    }

    .section-title-wrapper {
        margin-bottom: 28px;
    }

    /* Footer columns stack */
    .main-footer .col-lg-4,
    .main-footer .col-lg-2,
    .main-footer .col-lg-3 {
        margin-bottom: 20px;
    }

    /* Pre-footer CTA */
    .pre-footer-cta h3 {
        font-size: 1.3rem;
    }

    .pre-footer-cta p {
        font-size: 0.88rem;
    }

    .pre-footer-cta .btn {
        margin-top: 10px;
    }


    /* Pill tabs */
    .pill-tab-btn {
        font-size: 0.82rem;
        padding: 9px 6px;
    }

    /* Page content description */
    .content-description {
        font-size: 15px;
    }

    .content-description p.intro-paragraph {
        font-size: 15px;
    }

    .content-description p.intro-paragraph::first-letter {
        font-size: 2.2rem;
    }

    .content-description h4.section-heading-custom {
        font-size: 16px;
    }

    /* All notices page */
    .all-notices-search-wrap {
        flex-direction: column;
        gap: 8px;
    }

    /* Breadcrumb */
    .breadcrumb-custom {
        font-size: 13px;
    }

    /* Contact page */
    .contact-info-card {
        margin-bottom: 16px;
    }

    /* Gallery items — 2 per row on mobile */
    .gallery-item.col-lg-3 {
        width: 50% !important;
    }

    /* Page container spacing */
    .page-container {
        padding-top: 24px;
        padding-bottom: 40px;
    }
}

/* ── 576px — Small Mobile ──────────────────────────────────────────────── */
@media (max-width: 576px) {

    /* Premium News Heading (Campus Video Tour / Latest Updates) */
    .news-heading {
        font-size: 1.45rem !important;
    }
    
    .view-all-link {
        font-size: 0.75rem !important;
    }

    /* Admin Card — Mobile: sirf text chhota */
    .admin-name  { font-size: 0.78rem !important; }
    .admin-title { font-size: 0.65rem !important; }


    .top-bar .top-bar-right {
        gap: 6px !important;
    }

    .bar-separator {
        display: none !important;
    }

    .theme-controls {
        gap: 4px !important;
    }

    .color-btn {
        width: 12px;
        height: 12px;
    }

    /* Logo shrink */
    .logo-emblem {
        width: 42px !important;
        height: 42px !important;
    }

    .logo-title h1 {
        font-size: 0.92rem !important;
        line-height: 1.2 !important;
    }

    .logo-title p.logo-subtitle {
        font-size: 0.55rem !important;
        white-space: normal !important;
    }

    .logo-area {
        gap: 8px;
    }

    /* Navigation container height */
    .navigation-container {
        height: 54px !important;
    }

    /* Slider */
    .slider-container {
        height: 240px;
    }

    .slide-title {
        font-size: 14px;
    }

    .slide-content {
        bottom: 12px;
    }

    .indicator-dot {
        width: 18px;
    }

    .indicator-dot.active {
        width: 32px;
    }

    /* Quick links — 1 per row */
    .quick-links-overlay .col-md-3 {
        width: 100%;
    }

    .quick-card {
        padding: 18px 14px;
    }

    /* Stats — 2 per row kept, just smaller */
    .stat-box h3 {
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 1.6rem;
    }

    .text-light-muted {
        font-size: 0.78rem;
    }

    /* Section title */
    .section-title {
        font-size: 1.4rem;
    }

    .badge-accent {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    /* Page header */
    .page-header {
        padding: 36px 0 22px;
    }

    .page-header .page-title {
        font-size: 1.25rem;
    }

    /* Breadcrumb hide on very small */
    .breadcrumb {
        display: none !important;
    }

    /* Content card */
    .content-card-wrapper {
        padding: 14px 12px;
        border-radius: 12px;
    }

    .content-header-box {
        padding: 14px 16px;
        border-radius: 10px;
    }

    .content-header-box h2 {
        font-size: 17px;
    }

    /* Doc item — stack & smaller text */
    .doc-item h6 {
        font-size: 13px !important;
    }

    .doc-item .btn-sm {
        font-size: 11.5px !important;
        padding: 5px 10px !important;
    }

    /* Highlights */
    .highlight-card-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .highlight-card-text {
        font-size: 13px;
    }

    /* Gallery items — 1 per row */
    .gallery-item.col-lg-3,
    .gallery-item.col-6 {
        width: 100% !important;
    }

    /* Footer */
    .footer-copyright,
    .footer-credits {
        font-size: 0.78rem;
        text-align: center;
    }

    .footer-social-links {
        gap: 8px;
    }

    .social-circle {
        width: 35px;
        height: 35px;
        font-size: 0.95rem;
    }

    /* Pill tabs — column on very small */
    .pill-tabs-wrap {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .pill-tab-btn {
        width: 100% !important;
    }

    /* Notice bar label — hide text keep icon */
    .notice-bar__label .label-text {
        display: none !important;
    }

    /* Modal PDF */
    .pdf-lightbox-btn span {
        display: none !important;
    }

    .pdf-lightbox-btn {
        padding: 8px 10px !important;
    }

    .pdf-lightbox-title {
        font-size: 13px;
    }

    /* Sidebar drawer width */
    .mobile-drawer {
        width: 280px !important;
        right: -290px !important;
    }

    .mobile-drawer.active {
        right: 0 !important;
    }

    /* Content description text */
    .content-description {
        font-size: 14px;
    }

    /* Button custom */
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 10px 20px;
        font-size: 0.88rem;
    }

    /* Principal card */
    .principal-img-wrapper {
        width: 90px;
        height: 90px;
    }

    .principal-border {
        width: 100px;
        height: 100px;
    }

    .principal-msg {
        font-size: 0.85rem;
    }

    /* Page container */
    .page-container {
        padding-top: 18px;
        padding-bottom: 30px;
    }
}

/* ── 400px — Very Small Mobile (Galaxy S8, iPhone SE) ─────────────────── */
@media (max-width: 400px) {
    .logo-emblem {
        width: 36px !important;
        height: 36px !important;
    }

    .logo-title h1 {
        font-size: 0.82rem !important;
    }

    .logo-title p.logo-subtitle {
        display: none !important;
    }

    .slider-container {
        height: 200px;
    }

    .slide-title {
        font-size: 12px;
    }

    .content-card-wrapper {
        padding: 12px 10px;
    }

    .content-header-box h2 {
        font-size: 15px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .stat-box h3 {
        font-size: 1.3rem;
    }

    .page-header .page-title {
        font-size: 1.1rem;
    }

    /* Top bar — theme circles smaller but always visible */
    .theme-controls {
        gap: 3px !important;
    }
    .color-btn {
        width: 11px !important;
        height: 11px !important;
    }
}

/* ── Utility: Image responsiveness in content ──────────────────────────── */
.content-description img,
.page-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* ── Table responsiveness ──────────────────────────────────────────────── */
.content-description table,
.page-content table,
.content-card-wrapper table {
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
}

.content-description table th,
.content-description table td {
    min-width: 100px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

/* ── Overflow prevention ───────────────────────────────────────────────── */
.content-card-wrapper,
.content-card,
.sidebar-box,
.content-description,
.page-container {
    overflow-x: hidden;
}

/* ── Ensure iframes (PDF/Maps) are responsive ─────────────────────────── */
iframe {
    max-width: 100%;
}

.embed-responsive-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 */
}

.embed-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Fix for Bootstrap col stacking on mobile ─────────────────────────── */
@media (max-width: 768px) {
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .content-section .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-container.container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 576px) {
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ==========================================================================
   HEADER LOGO & MOBILE LAYOUT
   (Moved from inline <style> in header.php)
   ========================================================================== */

/* ── DESKTOP ── */
.logo-area {
    display: flex !important;
    align-items: center !important;
    margin-right: 4.5rem !important;
    gap: 14px !important;
}
.logo-emblem {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0 !important;
    transition: transform 0.15s ease-out, filter 0.3s ease !important;
}
.logo-title {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
.logo-title h1 {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}
.logo-title h1 .title-location {
    color: var(--accent, #ff9933) !important;
    -webkit-text-fill-color: var(--accent, #ff9933) !important;
    margin-left: 8px !important;
    font-weight: 800 !important;
    text-shadow: 0 0 10px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3) !important;
}
.logo-title p.logo-subtitle {
    font-size: 0.76rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    margin-top: 4px !important;
    display: block !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    white-space: nowrap !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    animation: none !important;
    text-transform: none !important;
}
.logo-area:hover .logo-title h1 .title-location {
    color: var(--accent-light, #ffca28) !important;
    -webkit-text-fill-color: var(--accent-light, #ffca28) !important;
    text-shadow: 0 0 15px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.6) !important;
}

/* ── DESKTOP MEDIUM: 992–1450px ── */
@media (min-width: 992px) and (max-width: 1450px) {
    .logo-title h1               { font-size: 1.2rem !important; }
    .logo-title p.logo-subtitle  { font-size: 0.68rem !important; }
    .logo-emblem                 { width: 58px !important; height: 58px !important; }
}
@media (max-width: 1200px) {
    .logo-title h1               { font-size: 1.25rem !important; }
    .logo-title p.logo-subtitle  { font-size: 0.7rem !important; }
}

/* ── MOBILE HEADER ≤ 992px — Government Polytechnic Style ── */
@media (max-width: 992px) {
    .header, .header-wrapper, .header-wrapper.scrolled {
        height: auto !important;
        min-height: unset !important;
    }
    .navigation-container {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: auto !important;
        min-height: unset !important;
        overflow: visible !important;
        position: relative !important;
        padding: 18px 0 0 0 !important;
        gap: 4px !important;
        width: 100% !important;
    }
    .logo-area {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-right: 0 !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 0 15px !important;
    }
    .logo-emblem {
        width: 74px !important;
        height: 74px !important;
        margin: 0 auto !important;
        border-radius: 50% !important;
    }
    .logo-title {
        align-items: center !important;
        text-align: center !important;
    }
    .logo-title h1 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        font-size: 0.92rem !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        gap: 0 !important;
        filter: none !important;
        letter-spacing: 1px !important;
    }
    .logo-title h1 .title-location {
        display: block !important;
        margin-left: 0 !important;
        font-size: 1.45rem !important;
        letter-spacing: 2.5px !important;
        line-height: 1.25 !important;
        text-shadow: 0 0 20px rgba(255, 202, 40, 0.45) !important;
    }
    .logo-title p.logo-subtitle {
        text-align: center !important;
        font-size: 0.6rem !important;
        white-space: normal !important;
        line-height: 1.45 !important;
        max-width: 260px !important;
        margin: 3px auto 0 !important;
    }
    /* Mobile Menu Strip */
    .mobile-menu-strip {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        background: rgba(0, 0, 0, 0.25) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: 1px solid var(--accent, #ffca28) !important;
        margin-top: 15px !important;
        padding: 8px 15px !important;
    }
    /* Hamburger */
    .mobile-toggle {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        right: auto !important;
        width: 38px !important;
        height: 32px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 6px !important;
        padding: 5px 7px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
        z-index: 2020 !important;
    }
    .mobile-toggle .bar {
        width: 100% !important;
        height: 2.5px !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
    }
    .mobile-toggle:hover,
    .mobile-toggle.active {
        background: rgba(255, 202, 40, 0.2) !important;
        border-color: rgba(255, 202, 40, 0.6) !important;
    }
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
        background-color: var(--accent, #ffca28) !important;
    }
    .mobile-toggle.active .bar:nth-child(2) { opacity: 0 !important; }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
        background-color: var(--accent, #ffca28) !important;
    }
}

/* ── MOBILE ≤ 576px ── */
@media (max-width: 576px) {
    .logo-emblem { width: 64px !important; height: 64px !important; }
    .logo-title h1 { font-size: 0.82rem !important; }
    .logo-title h1 .title-location { font-size: 1.25rem !important; letter-spacing: 2px !important; }
    .logo-title p.logo-subtitle { font-size: 0.55rem !important; max-width: 220px !important; }
}

/* ── MOBILE ≤ 400px ── */
@media (max-width: 400px) {
    .logo-emblem { width: 56px !important; height: 56px !important; }
    .logo-title h1 { font-size: 0.75rem !important; }
    .logo-title h1 .title-location { font-size: 1.1rem !important; }
    .logo-title p.logo-subtitle { display: none !important; }
}