/* 
   Government Polytechnic Bhagalpur - Premium UI CSS
   Design System: Neumorphism / Glassmorphism mix, vibrant gradients.
*/


:root {
    --saffron: #ff9933;
    --white: #ffffff;
    --green: #39b54a;
    --dark-blue: #111827;
    --royal-blue: #1f2937;
    --charcoal: #1f2937;
    --bi-red: #d94e34;
    --top-bar-bg: #2d3748;

    /* Theming tokens (default = slate/charcoal) */
    --theme-primary: #1f2937;
    --theme-primary-dark: #111827;
    --theme-accent: #ff9933;
    --theme-nav-bg: #2d3748;
    --theme-nav-border: #ff9933;
    --theme-header-bg1: #ff9933;
    --theme-header-bg2: #ffffff;
    --theme-header-bg3: #39b54a;
    --theme-ticker-bg: #111827;
    --theme-ticker-label: #ff9933;
    --theme-btn-bg: #1f2937;
    --theme-link-hover: #111827;
    --theme-section-title: #111827;
    --theme-top-bar: #2d3748;
    --theme-news-bg: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    --theme-news-border: #ff9933;

    /* --- Backwards Compatibility Maps --- */
    --primary: var(--theme-primary);
    --primary-light: var(--theme-primary);
    --secondary: var(--theme-accent);
    --secondary-light: var(--theme-accent);
    --accent: var(--theme-accent);
    --text-main: #2d3436;
    --header-scrolled-bg: var(--theme-primary-dark);
    --text-muted: #636e72;
    --bg-main: #f8f9fa;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);

    --bg-dark-section: var(--theme-primary-dark);
    --bg-dark-section-glow1: var(--theme-primary);
    --bg-dark-section-glow2: var(--theme-accent);
    --bg-dark-section-glow3: var(--theme-primary-dark);
    --menu-drawer-bg: rgba(17, 24, 39, 0.98);

    /* Notice Board / Sub-section Dynamic Variables */
    --tab-color-1: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
    --tab-color-2: linear-gradient(135deg, var(--theme-accent), var(--theme-primary-dark));
    --tab-color-3: linear-gradient(135deg, var(--theme-primary), var(--theme-nav-bg));
    --tab-color-4: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));

    --tab-accent-1: var(--theme-primary);
    --tab-accent-2: var(--theme-accent);
    --tab-accent-3: var(--theme-primary);
    --tab-accent-4: var(--theme-primary-dark);

    --tab-border-1: var(--theme-primary);
    --tab-border-2: var(--theme-accent);
    --tab-border-3: var(--theme-primary);
    --tab-border-4: var(--theme-primary-dark);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =============================================
   MAROON THEME
   ============================================= */
[data-theme="maroon"] {
    --saffron: #e8a0a0;
    --royal-blue: #7b1e1e;
    --dark-blue: #5a0f0f;
    --top-bar-bg: #3d0f0f;

    --theme-primary: #7b1e1e;
    --theme-primary-dark: #5a0f0f;
    --theme-accent: #e8a0a0;
    --theme-nav-bg: #3d0f0f;
    --theme-nav-border: #c0392b;
    --theme-header-bg1: #c0392b;
    --theme-header-bg2: #ffffff;
    --theme-header-bg3: #7b1e1e;
    --theme-ticker-bg: #5a0f0f;
    --theme-ticker-label: #e8a0a0;
    --theme-btn-bg: #7b1e1e;
    --theme-link-hover: #5a0f0f;
    --theme-section-title: #6d0100;
    --theme-top-bar: #3d0f0f;
    --theme-news-bg: linear-gradient(145deg, #3d0f0f 0%, #270808 100%);
    --theme-news-border: #e8a0a0;
    --menu-drawer-bg: rgba(90, 15, 15, 0.98);
}

/* =============================================
   GOLD THEME
   ============================================= */
[data-theme="gold"] {
    --saffron: #c79600;
    --royal-blue: #7a6000;
    --dark-blue: #5a4400;
    --top-bar-bg: #3d2e00;

    --theme-primary: #7a6000;
    --theme-primary-dark: #5a4400;
    --theme-accent: #f0c000;
    --theme-nav-bg: #3d2e00;
    --theme-nav-border: #c79600;
    --theme-header-bg1: #c79600;
    --theme-header-bg2: #fffbe6;
    --theme-header-bg3: #7a6000;
    --theme-ticker-bg: #5a4400;
    --theme-ticker-label: #f0c000;
    --theme-btn-bg: #7a6000;
    --theme-link-hover: #5a4400;
    --theme-section-title: #7a6000;
    --theme-top-bar: #3d2e00;
    --theme-news-bg: linear-gradient(145deg, #3d2e00 0%, #261c00 100%);
    --theme-news-border: #f0c000;
    --menu-drawer-bg: rgba(92, 67, 8, 0.98);
}

/* =============================================
   OLIVE GREEN THEME
   ============================================= */
[data-theme="olive"] {
    --saffron: #a5b84c;
    --royal-blue: #4a5e1a;
    --dark-blue: #3a4c12;
    --top-bar-bg: #2e3d0f;

    --theme-primary: #4a5e1a;
    --theme-primary-dark: #3a4c12;
    --theme-accent: #8aa62a;
    --theme-nav-bg: #2e3d0f;
    --theme-nav-border: #8aa62a;
    --theme-header-bg1: #6b8c23;
    --theme-header-bg2: #f4f8e8;
    --theme-header-bg3: #3a4c12;
    --theme-ticker-bg: #3a4c12;
    --theme-ticker-label: #a5b84c;
    --theme-btn-bg: #4a5e1a;
    --theme-link-hover: #3a4c12;
    --theme-section-title: #4a5e1a;
    --theme-top-bar: #2e3d0f;
    --theme-news-bg: linear-gradient(145deg, #2e3d0f 0%, #1c2608 100%);
    --theme-news-border: #8aa62a;
    --menu-drawer-bg: rgba(58, 76, 18, 0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Slab', serif;
    color: var(--text-main);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}


/* Glass effect to make particles visible under sections */
/* Glass effect to make particles visible under sections */
.departments-section {
    background: rgba(248, 249, 250, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.info-board-section {
    background: rgba(238, 242, 246, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.facilities-section {
    background: #0f172a;
    padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light {
    background-color: var(--bg-main);
}

/* --- Header Wrapper (Overlay) --- */
.header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
    /* Contains the canvas */
}

#header-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind header content */
    pointer-events: none;
}

.header-wrapper.scrolled {
    position: fixed;
    background: var(--header-scrolled-bg);
    /* Solid dark theme-aware glass when scrolled to hide canvas */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    top: 0;
    /* Keep at top 0 to prevent cutting off the logo */
}

/* When scrolled, hide the top strip and make header compact */
.header-wrapper.scrolled .kata-top-strip {
    display: none !important;
}

.header-wrapper.scrolled .kata-header {
    height: 65px !important;
}

.header-wrapper.scrolled .kata-logo-area {
    padding-top: 2px;
    padding-bottom: 2px;
}

.header-wrapper.scrolled .kata-header-actions {
    padding-right: 3%;
}

/* --- Top Bar --- */
.top-bar {
    background: transparent;
    /* Let canvas show through */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.8rem;
    padding: 8px 0;
    transition: var(--transition);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-info span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.top-bar .contact-info span i {
    color: var(--accent);
    /* Glowing icons */
}

.quick-links {
    display: flex;
    gap: 10px;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.quick-links a:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.4);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.header {
    background: transparent;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    font-family: 'Roboto Slab', serif;
}

.logo-text h1 {
    font-size: 25px;
    color: white;
    margin-bottom: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.logo-text p {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

/* Scrolled state text colors and icon sizing */
.header-wrapper.scrolled .logo-text h1 {
    color: #ffffff;
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    font-family: 'Roboto Slab', serif;
    text-shadow: none;
}

.header-wrapper.scrolled .logo-text p {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: clamp(0.55rem, 0.65vw, 0.65rem);
    padding: 2px 8px;
}

.header-wrapper.scrolled .logo-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.3);
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.nav-list li a {
    color: white;
    /* Initially white */
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

/* Scrolled state nav colors */
.header-wrapper.scrolled~.kata-bottom-nav .nav-list li a {
    color: var(--text-main);
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--accent);
}

.header-wrapper.scrolled~.kata-bottom-nav .nav-list li a:hover,
.header-wrapper.scrolled~.kata-bottom-nav .nav-list li a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white !important;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    z-index: 10000;
}

.mobile-menu-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.4);
}

.header-wrapper.scrolled .mobile-menu-btn {
    display: flex !important;
    color: white !important;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* --- Hero Slider Section --- */
.hero-slider {
    position: relative;
    min-height: calc(81vh + 10px);
    /* Reduced height by 30px as requested */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-color: #000;
    /* Dark backdrop for flawless cross-fades */
}

.slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    /* Soft cross-fade transition and deferred z-index change for inactive slide */
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), z-index 1.2s step-end;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 3;
    /* Instantly bring the active slide to the top while it fades in */
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;
}

/* Premium Optimized Diagonal Split Animation */
.premium-slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0;
    will-change: transform, opacity;

    /* Starts shifted away, slightly scaled, with a tilted orientation */
    transform: translate3d(var(--startX), var(--startY), 0) scale(1.1) rotate(var(--rot));

    /* Decoupled from expensive filters (like blur/drop-shadow) to ensure 60fps GPU acceleration */
    transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
}

/* Joined state - perfectly seamless and smooth */
.premium-slice.animate {
    transform: translate3d(0, 0, 0) scale(1.02) rotate(0deg);
    opacity: 1;

    /* Slow continuous zoom AFTER joining to keep the motion alive */
    animation: continuousZoom 10s linear 1.0s forwards;
}

@keyframes continuousZoom {
    to {
        transform: translate3d(0, 0, 0) scale(1.08) rotate(0deg);
    }
}

/* The neon laser flash exactly on the diagonal seam (optimized) */
.laser-seam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: polygon(64.8% 0, 65.2% 0, 35.2% 100%, 34.8% 100%);
    background: linear-gradient(to bottom, transparent 0%, var(--secondary) 40%, #fff 50%, var(--accent) 60%, transparent 100%);
    background-size: 100% 300%;
    background-position: 0% -100%;
    opacity: 0;
    filter: brightness(1.3) drop-shadow(0 0 5px var(--secondary));
    mix-blend-mode: screen;
    will-change: background-position, opacity;
}

.laser-seam.animate {
    animation: laserSwipe 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes laserSwipe {
    0% {
        background-position: 0% 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        background-position: 0% 100%;
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content.text-left {
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.slide-title {
    font-size: 2.5rem;
    /* Smaller, elegant size */
    color: white;
    margin-bottom: 0;
    line-height: 1.2;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(30px);
    max-width: 800px;
    /* Prevent it from stretching too far on large screens */
}

.slide.active .slide-title {
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Premium Slider CTA button */
.slider-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    border: none;
    outline: none;
}
.slide.active .slider-cta-btn {
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
.slider-cta-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 25px rgba(242, 101, 34, 0.4);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 55px;
    /* Horizontally aligned with title */
    right: 5%;
    /* Moved to bottom right corner */
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background: var(--secondary);
    transform: scale(1.2);
}

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 126, 95, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* ============================================
   Hero Slider - Mobile Responsive Fixes
   ============================================ */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 60vh;
        max-height: 60vh;
    }

    .slide {
        padding-bottom: 24px;
        align-items: flex-end;
    }

    /* Ensure image covers the full card neatly */
    .slide-bg {
        background-position: center center !important;
        background-size: cover !important;
    }

    /* Darker gradient overlay for text readability */
    .slide::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-content {
        z-index: 3;
        padding: 0 16px;
    }

    .slide-title {
        font-size: 1.35rem;
        max-width: 100%;
        line-height: 1.35;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    /* Prev/Next buttons - smaller & tucked in */
    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        top: 45%;
    }

    .slider-btn.prev {
        left: 8px;
    }

    .slider-btn.next {
        right: 8px;
    }

    /* Dots centered at bottom */
    .slider-dots {
        bottom: 14px;
        right: 50%;
        transform: translateX(50%);
        gap: 7px;
    }

    .slider-dots .dot {
        width: 7px;
        height: 7px;
    }

    /* Simplify animations on mobile */
    .premium-slice {
        transform: none !important;
        transition: opacity 0.9s ease !important;
    }

    .laser-seam {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 52vh;
        max-height: 52vh;
    }

    .slide-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* --- News Ticker (Modern CSS Animated Tracker) --- */
.news-ticker {
    background: var(--bg-main);
    /* Light background for contrast */
    color: var(--text-main);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
    height: 45px;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    width: 100%;
    align-items: center;
    height: 100%;
}

.ticker-title {
    background: var(--primary);
    /* Strong primary block */
    color: white;
    padding: 0 40px 0 25px;
    height: 100%;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.ticker-title i {
    font-size: 1.1rem;
    color: var(--secondary);
    animation: flashIcon 1.5s infinite;
}

@keyframes flashIcon {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 25s linear infinite;
}

/* Pause animation on hover */
.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Scrolls exactly half to perfectly loop the duplicated items */
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 40px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle divider between news items */
}

/* Pulsing Notification Dot instead of bulky badge */
.ticker-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px var(--secondary-light);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 var(--secondary-light);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
    }

    /* Fades out */
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}



/* --- Simple & Elegant Welcome Section (Light Theme) --- */
.welcome-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #ffffff;
    /* Very subtle dot pattern to match the premium feel */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.5s ease;
}



.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 50px;
    align-items: center;
}

/* Profiles Grid Layout */
.profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 5px;
}

.profile-card {
    background: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Glassy border */
    border-radius: 20px;
    height: 260px;
    /* Reduced height as requested */
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push content to bottom */
    align-items: center;
    box-shadow: 0 10px 40px rgba(30, 60, 114, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    /* Important to keep the image inside the border radius */
    z-index: 1;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 60, 114, 0.15);
}

/* Make the image wrapper cover the entire card */
.profile-card .img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1;
}

/* Gradient overlay to make text readable at bottom */
.profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.profile-card>.img-wrapper>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    /* Ensures faces stay visible */
    border-radius: 0;
    transition: transform 0.6s ease;
}

.profile-card:hover>.img-wrapper>img {
    transform: scale(1.08);
}

/* Text placed at the bottom of the image */
.profile-info {
    position: relative;
    z-index: 3;
    padding-bottom: 20px;
    width: 100%;
    text-align: center;
}

.profile-info h4 {
    font-size: 1.15rem;
    /* Slightly smaller to fit compact card */
    color: #ffffff;
    margin-bottom: 3px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-info p {
    font-size: 0.72rem;
    /* Adjusted for compactness */
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Small circle icon next to subtitle to match reference */
.profile-info p::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: inline-block;
}

.profile-card:hover .profile-info h4,
.profile-card:hover .profile-info p {
    color: #ffffff;
    /* Override old hover colors */
}



/* Welcome Text Content */
.welcome-content {
    padding-left: 20px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.08) 0%, rgba(30, 60, 114, 0.03) 100%);
    border: 1px solid rgba(30, 60, 114, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    /* Pill shape for premium look */
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.05);
}

/* Custom theme badge support */
:root[data-theme="green"] .welcome-badge {
    background: rgba(45, 106, 79, 0.06);
    border-color: rgba(45, 106, 79, 0.12);
    color: var(--primary);
}

:root[data-theme="red"] .welcome-badge {
    background: rgba(120, 0, 0, 0.06);
    border-color: rgba(120, 0, 0, 0.12);
    color: var(--primary);
}

:root[data-theme="yellow"] .welcome-badge {
    background: rgba(176, 137, 0, 0.06);
    border-color: rgba(176, 137, 0, 0.12);
    color: var(--primary);
}

.sliced-title {
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.sliced-title .highlight {
    color: var(--primary);
}

.title-underline {
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Welcome Section Title Premium Tweaks */
.welcome-content .sliced-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--text-main) !important;
    line-height: 1.25;
    margin-bottom: 12px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .welcome-content .sliced-title {
        white-space: normal;
    }
}

.welcome-content .sliced-title .highlight {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.welcome-content .title-underline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 25px;
    background: none;
    width: auto;
    height: auto;
}

.welcome-content .title-underline::before {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.welcome-content .title-underline::after {
    content: '';
    width: 15px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.welcome-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 18px;
    text-align: justify;
}

.welcome-text strong {
    color: var(--primary);
    font-weight: 700;
}

/* Button Sliced style - tweaked for light theme */
.btn-sliced-wrapper {
    display: inline-block;
    margin-top: 10px;
}

.btn-sliced {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.88rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.2);
}

.btn-sliced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
}

.btn-sliced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    transition: 0.6s ease;
    z-index: 2;
}

.btn-sliced:hover::before {
    left: 150%;
}

.btn-sliced i {
    transition: transform 0.3s ease;
}

.btn-sliced:hover i {
    transform: translateX(6px);
}

.btn-sliced:hover {
    transform: translateY(-4px);
    background: var(--primary-light);
    color: white;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

.btn-sliced:active {
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .welcome-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .profiles-grid {
        gap: 15px;
    }

    .profiles-grid .profile-card:nth-child(even) {
        transform: translateY(0);
    }

    .profiles-grid .profile-card:nth-child(even):hover {
        transform: translateY(-5px);
    }

    .welcome-section {
        padding: 60px 0;
    }

    .sliced-title {
        font-size: 2rem;
    }
}

/* --- Campus Facilities Section --- */
.facilities-section {
    padding: 120px 0;
    background: var(--bg-dark-section);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: background 0.5s ease;
}

.facilities-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Theme space background with tech dot grid & glowing spots matching Welcome section */
    background: var(--bg-dark-section);
    background-image:
        radial-gradient(circle at 80% 20%, var(--bg-dark-section-glow2) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, var(--bg-dark-section-glow1) 0%, transparent 50%),
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px;
    z-index: -2;
    transition: background 0.5s ease;
}

.facilities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Theme slanted glowing seam matching Welcome section */
    background: linear-gradient(225deg, transparent 40%, rgba(255, 126, 95, 0.08) 47%, rgba(251, 197, 49, 0.15) 50%, rgba(255, 126, 95, 0.08) 53%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.text-white {
    color: white !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* --- Campus Facilities Grid --- */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.facility-card {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: white;
    border: 1px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%) border-box;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.facility-card:hover {
    transform: translateY(-8px);
    background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)) padding-box,
        linear-gradient(135deg, var(--secondary), var(--accent)) border-box;
    box-shadow: 0 16px 36px rgba(255, 126, 95, 0.15), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.facility-card:active {
    transform: translateY(-4px) scale(0.97);
}

/* Mouse spotlight glow tracker */
.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(250px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 126, 95, 0.08), transparent 45%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.facility-card:hover::before {
    opacity: 1;
}

.facility-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.0);
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-card:hover .facility-image img {
    transform: scale(1.06);
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 10, 24, 0.1) 0%, rgba(5, 10, 24, 0.6) 60%, rgba(5, 10, 24, 0.95) 100%);
    transition: background 0.4s ease;
    z-index: 2;
}

.facility-card:hover .facility-overlay {
    background: linear-gradient(to bottom, rgba(5, 10, 24, 0.05) 0%, rgba(5, 10, 24, 0.45) 50%, rgba(5, 10, 24, 0.92) 100%);
}

.facility-content {
    position: relative;
    z-index: 4;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.facility-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    display: inline-block;
}

.facility-content h4 {
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    font-family: 'Roboto Slab', serif;
}

.facility-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-card:hover .facility-desc {
    max-height: 52px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 4px;
}

.facility-specs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.04s;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
}

.facility-card:hover .facility-specs {
    max-height: 50px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 6px;
}

.facility-specs .spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.9);
}

.facility-specs .spec-item i {
    color: var(--accent);
    font-size: 0.75rem;
}

.facility-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.facility-card:hover .facility-footer {
    opacity: 1;
    margin-top: 8px;
}

.read-more-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
}

.arrow-icon {
    font-size: 0.75rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.facility-card:hover .arrow-icon {
    transform: translateX(3px);
}

@media (max-width: 576px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .facility-card {
        height: auto;
        min-height: 280px;
    }

    .facility-content {
        padding: 20px;
        height: 100%;
        justify-content: flex-end;
    }
}


/* --- Department Overview Section --- */
.departments-section {
    padding: 100px 0 0;
    background: var(--bg-main);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
    margin-bottom: -50px;
    position: relative;
    z-index: 2;
}

.dept-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
    text-decoration: none !important;
}

.dept-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dept-card:hover img {
    transform: scale(1.1);
}

.dept-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 26, 48, 0.95) 0%, rgba(11, 26, 48, 0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px 20px;
    color: white;
}

.dept-text .dept-name {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 5px;
    font-weight: 800;
}

.dept-text .hod-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.btn-sliced.small {
    padding: 8px 15px;
    font-size: 0.75rem;
    align-self: flex-start;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.discover-bar {
    background: var(--primary-light);
    padding: 90px 0 40px;
    color: white;
}

.discover-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discover-flex p {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.btn-light {
    background: white;
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.3);
}

/* --- Main Grid Layout (Notices + About) --- */
.main-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding: 60px 20px 80px;
    position: relative;
    z-index: 10;
}

/* Notice Board */
.glass-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 30px;
}

.section-header.small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-main);
    padding-bottom: 15px;
}

.section-header.small h3 {
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 600;
}

.marquee-container {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    animation: scrollUp 15s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

.notice-item {
    display: block;
    padding: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    transition: var(--transition);
}

.notice-item:hover {
    background: var(--bg-main);
    border-radius: 8px;
    padding-left: 20px;
}

.notice-item .date {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 5px;
}

.notice-item p {
    font-size: 0.95rem;
    font-weight: 500;
}

.notice-item.new::after {
    content: 'New';
    background: var(--accent);
    color: var(--text-main);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: super;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

/* About Section */
.welcome-section h2 {
    font-size: 2.5rem;
    color: #ffffff;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: var(--secondary);
    margin-top: 10px;
    border-radius: 2px;
}

.title-underline.center {
    margin: 10px auto;
}

.center {
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 60, 114, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.stat-card h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Courses Section --- */
.courses-section {
    padding: 100px 0;
}

.section-header.center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 60, 114, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition);
}

.course-card:hover .course-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.course-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.course-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link i {
    transition: transform 0.3s;
}

.course-card:hover .btn-link i {
    transform: translateX(5px);
}

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon.small {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.footer-logo h3 {
    color: white;
    font-size: 1.2rem;
}

.about-col p {
    margin-bottom: 25px;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Cleaned legacy footer columns to prevent conflict */

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-list li i {
    color: var(--secondary);
    margin-top: 5px;
}

.footer-bottom {
    background: #0b1120;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: right;
    flex-wrap: wrap;
    gap: 15px;
}

.text-danger {
    color: #e74c3c;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .notice-board {
        order: 2;
    }

    .welcome-section {
        order: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
    }
}

/* --- Information Board Section (Premium Re-design) --- */
.info-board-section {
    padding: 100px 0;
    background: #eef2f6;
    position: relative;
}

.board-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
}

.board-main {
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Colored Pill Tabs with Premium Glassmorphism & 3D Depth */
.board-tabs-colored {
    display: flex;
    gap: 15px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 22px;
}

.tab-btn-col {
    flex: 1;
    padding: 12px 10px;
    border-radius: 14px;
    color: white !important;
    background: var(--tab-color) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn-col:nth-child(1) {
    --tab-color: var(--tab-color-1);
}

.tab-btn-col:nth-child(2) {
    --tab-color: var(--tab-color-2);
}

.tab-btn-col:nth-child(3) {
    --tab-color: var(--tab-color-3);
}

.tab-btn-col:nth-child(4) {
    --tab-color: var(--tab-color-4);
}

.tab-btn-col:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn-col.active {
    opacity: 1 !important;
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* Floating Notice Cards with Custom Theme Colors */
.tab-content-box {
    background: transparent;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Tab pane transition */
.tab-pane {
    animation: tabFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Static Notice List Container */
.notice-list-floating {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    justify-content: space-between;
}

.notice-card-float {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.notice-card-float:hover {
    transform: translateY(-2px);
}

/* Custom theme accents - applied directly without hover */
/* Notices Theme: Blue */
#tab-notices .notice-card-float {
    border-color: var(--tab-border-1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.015);
}

#tab-notices .notice-card-float:hover {
    border-color: var(--tab-accent-1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

#tab-notices .n-icon-float {
    background: var(--tab-color-1);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#tab-notices .n-arrow-float {
    color: var(--tab-accent-1);
    border-color: var(--tab-border-1);
}

#tab-notices .notice-card-float:hover .n-arrow-float {
    background: var(--tab-accent-1);
    border-color: var(--tab-accent-1);
    color: white;
}

#tab-notices .board-footer-float .btn-sliced {
    --btn-color: var(--tab-accent-1) !important;
}

/* Tenders Theme: Orange */
#tab-tenders .notice-card-float {
    border-color: var(--tab-border-2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.015);
}

#tab-tenders .notice-card-float:hover {
    border-color: var(--tab-accent-2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

#tab-tenders .n-icon-float {
    background: var(--tab-color-2);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#tab-tenders .n-arrow-float {
    color: var(--tab-accent-2);
    border-color: var(--tab-border-2);
}

#tab-tenders .notice-card-float:hover .n-arrow-float {
    background: var(--tab-accent-2);
    border-color: var(--tab-accent-2);
    color: white;
}

#tab-tenders .board-footer-float .btn-sliced {
    --btn-color: var(--tab-accent-2) !important;
}

/* Placement Theme: Teal */
#tab-placement .notice-card-float {
    border-color: var(--tab-border-3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.015);
}

#tab-placement .notice-card-float:hover {
    border-color: var(--tab-accent-3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

#tab-placement .n-icon-float {
    background: var(--tab-color-3);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#tab-placement .n-arrow-float {
    color: var(--tab-accent-3);
    border-color: var(--tab-border-3);
}

#tab-placement .notice-card-float:hover .n-arrow-float {
    background: var(--tab-accent-3);
    border-color: var(--tab-accent-3);
    color: white;
}

#tab-placement .board-footer-float .btn-sliced {
    --btn-color: var(--tab-accent-3) !important;
}

/* Reward Theme: Gold */
#tab-reward .notice-card-float {
    border-color: var(--tab-border-4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.015);
}

#tab-reward .notice-card-float:hover {
    border-color: var(--tab-accent-4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

#tab-reward .n-icon-float {
    background: var(--tab-color-4);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#tab-reward .n-arrow-float {
    color: var(--tab-accent-4);
    border-color: var(--tab-border-4);
}

#tab-reward .notice-card-float:hover .n-arrow-float {
    background: var(--tab-accent-4);
    border-color: var(--tab-accent-4);
    color: white;
}

#tab-reward .board-footer-float .btn-sliced {
    --btn-color: var(--tab-accent-4) !important;
}

/* Unified card inner elements */
.n-icon-float {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.notice-card-float:hover .n-icon-float {
    transform: rotate(-10deg) scale(1.06);
}

.n-content {
    flex: 1;
    min-width: 0;
}

.n-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.35;
    color: var(--text-dark);
}

.n-content p {
    font-size: 0.72rem;
    margin: 0;
    color: var(--text-muted);
}

.n-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
    flex-shrink: 0;
}

.badge-new {
    background: linear-gradient(135deg, #ff3838, #ff4d4d);
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 56, 56, 0.3);
    animation: badgePulse 1.8s infinite alternate;
}

@keyframes badgePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 2px 6px rgba(255, 56, 56, 0.3);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 2px 10px rgba(255, 56, 56, 0.5);
    }
}

.n-arrow-float {
    width: 30px;
    height: 30px;
    background: white;
    border: 2px solid #f0f4f8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    transition: all 0.4s ease;
}

.notice-card-float:hover .n-arrow-float {
    transform: translateX(4px);
}

.board-footer-float {
    text-align: right;
    margin-top: 15px;
}

.board-footer-float .btn-sliced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px !important;
    background: var(--btn-color, #007bff) !important;
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px var(--btn-color, rgba(0, 123, 255, 0.2)) !important;
    border: none !important;
    clip-path: none !important;
}

.board-footer-float .btn-sliced::before {
    display: none !important;
}

.board-footer-float .btn-sliced:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px var(--btn-color, rgba(0, 123, 255, 0.3)) !important;
    filter: brightness(1.08) !important;
}

/* Sidebar Solid Dark Premium */
.sidebar-solid-dark {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header-solid {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    padding: 25px 25px;
    border-bottom: 4px solid var(--accent);
}

.sidebar-header-solid h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.sidebar-header-solid h3 i {
    color: var(--accent);
    margin-right: 10px;
}

.sidebar-content-solid {
    padding: 15px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.links-list-solid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-evenly;
}

.links-list-solid li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.links-list-solid li:last-child {
    border-bottom: none;
}

.links-list-solid a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.links-list-solid a i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.links-list-solid a:hover {
    color: white;
    padding-left: 10px;
}

.links-list-solid a:hover i {
    transform: translateX(4px);
    opacity: 1;
}


/* --- Latest Images Section --- */
.gallery-section {
    background: var(--primary);
    padding: 70px 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.gallery-header .header-title h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.gallery-header .header-title h3 i {
    color: var(--accent);
    margin-right: 12px;
}

.gallery-header .title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0;
    border-radius: 2px;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #1e293b;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.image-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 2.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-item:hover .image-zoom-overlay {
    opacity: 1;
    transform: scale(1);
}

/* --- Placement Partners Section (Premium Dark Theme-Aware) --- */
.partners-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    background-size: 100% 100%, 25px 25px, 100% 100%;
    padding: 110px 0;
    border-top: 5px solid var(--secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.partners-section .badge-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

/* Override badge support for themes */
:root[data-theme="green"] .partners-section .badge-pill,
:root[data-theme="red"] .partners-section .badge-pill,
:root[data-theme="yellow"] .partners-section .badge-pill {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.partners-section .sliced-title {
    color: white !important;
}

.partners-section .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 10px auto 0;
}

.partners-section .title-underline::before {
    background: white;
}

.partners-section .title-underline::after {
    background: var(--secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.partner-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

/* Glass shine shimmer sweep across the card on hover */
.partner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    z-index: 2;
}

.partner-card:hover::after {
    left: 150%;
}

/* Micro-interactive animated sliding border on top of card */
.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3;
}

.partner-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--secondary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.05);
}

:root[data-theme="green"] .partner-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(45, 106, 79, 0.15);
}

:root[data-theme="red"] .partner-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(120, 0, 0, 0.15);
}

:root[data-theme="yellow"] .partner-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(176, 137, 0, 0.15);
}

.partner-card:hover::before {
    transform: scaleX(1);
}

/* Rounded squircle, dynamic container for logo */
.p-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

/* Silhouette effect for clean corporate look on dark background */
.p-logo img,
.p-logo i {
    filter: brightness(0) invert(1) opacity(0.65);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Floating animation on hover */
@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1.08) rotate(5deg);
    }

    50% {
        transform: translateY(-3px) scale(1.08) rotate(5deg);
    }
}

.partner-card:hover .p-logo {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    animation: logoFloat 2s ease-in-out infinite;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

:root[data-theme="green"] .partner-card:hover .p-logo {
    border-color: var(--secondary);
}

:root[data-theme="red"] .partner-card:hover .p-logo {
    border-color: var(--secondary);
}

:root[data-theme="yellow"] .partner-card:hover .p-logo {
    border-color: var(--secondary);
}

.partner-card:hover .p-logo img,
.partner-card:hover .p-logo i {
    filter: brightness(1) invert(0) opacity(1);
}

.p-logo img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.partner-card p {
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color 0.3s ease;
}

.partner-card:hover p {
    color: white;
}

.partner-card p i {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 5px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.partner-card:hover p i {
    opacity: 1;
    transform: translateX(0);
    color: var(--secondary);
}

.btn-light-pill {
    background: var(--bg-white);
    color: var(--primary);
    padding: 14px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.btn-light-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.15);
}

/* ==========================================
   Footer Section (Premium 5-Column)
========================================== */
/* ==========================================
   Footer Section (Premium 5-Column Space-Tech Theme)
   ========================================== */
.main-footer {
    background: var(--bg-dark-section);
    /* Theme-aware dark background */
    color: #cbd5e1;
    padding-top: 80px;
    border-top: 4px solid var(--accent);
    position: relative;
    transition: background 0.5s ease;
}

/* Premium Dark Partners Section */
.dark-partners {
    background: var(--bg-dark-section);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Background Glowing Orbs for the dark section */
.dark-partners::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--bg-dark-section-glow1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dark-partners::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--bg-dark-section-glow2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dark-partners .light-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-partners .text-white {
    color: #ffffff !important;
}

.dark-partners .text-light {
    color: rgba(255, 255, 255, 0.7);
}

/* Recruiters Grid Layout - 6 Items Per Row & Centered */
.recruiters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    margin-top: 50px;
}

.recruiter-box {
    flex: 0 0 calc(16.666% - 20px);
    /* 6 items per line */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.recruiter-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary);
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--bg-dark-section-glow2);
}

.recruiter-box i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}

.recruiter-box img {
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.8);
    /* Make logos white! */
    transition: all 0.4s ease;
}

.recruiter-box span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

.recruiter-box:hover i {
    color: var(--secondary-light);
    transform: scale(1.1);
}

.recruiter-box:hover img {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.1);
}

.recruiter-box:hover span {
    color: #ffffff;
}

.light-btn {
    background: #ffffff;
    color: #0f172a;
}

.light-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Background grid overlay in footer for premium tech feel */
/* --- KATA HUA GPB HEADER --- */
.kata-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 90px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.kata-logo-area {
    position: relative;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    padding-left: 2vw;
    padding-right: 40px;
    z-index: 2;
    gap: 12px;
}

.kata-logo-area::after {
    content: '';
    position: absolute;
    top: 0;
    right: -40px;
    width: 60px;
    height: 100%;
    background: var(--primary);
    transform-origin: top right;
    transform: skewX(-25deg);
    border-right: 6px solid var(--secondary);
    z-index: -1;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

.kata-logo-area a {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    perspective: 1000px;
    transform-style: preserve-3d;
}

.kata-logo-area a img {
    transition: all 0.4s ease;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.kata-logo-area a:hover img {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.kata-logo-area .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-style: preserve-3d;
}

.kata-logo-area .logo-text h1 {
    color: #ffffff;
    /* Premium Shimmer Effect */
    background: linear-gradient(120deg,
            #ffffff 20%,
            var(--accent) 40%,
            #ffffff 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 5s linear infinite;
    text-shadow: none;
    margin-bottom: 2px;
    font-size: 25px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-weight: 800;
    font-family: 'Roboto Slab', serif;
    transition: all 0.3s ease;
}

.kata-logo-area:hover .logo-text h1 {
    transform: translateZ(10px);
    letter-spacing: 1px;
}

.kata-logo-area .logo-text p {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    font-size: clamp(0.55rem, 0.7vw, 0.7rem);
    white-space: nowrap;
    margin: 0;
    font-family: 'Roboto Slab', serif;
    position: relative;
    display: inline-block;
}

/* Typewriter cursor effect */
.kata-logo-area .logo-text p::after {
    content: none;
    position: absolute;
    right: -8px;
    top: 0;
    color: var(--accent);
    animation: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.kata-logo-area .logo-text p.typing::after {
    opacity: 1;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.kata-header-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    height: 100%;
    z-index: 1;
}

.kata-top-strip {
    width: 100%;
    height: 45px;
    /* height of the bar */
    background: var(--primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align content to right */
    padding: 0 2%;
    gap: 10px;
}

/* Accessibility & Quick Links Styles */
.accessibility-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.font-btn {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.font-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.color-palette {
    display: flex;
    align-items: center;
    gap: 4px;
}

.color-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.color-btn:hover {
    transform: scale(1.2);
    border-color: #ffffff;
}

.color-btn.active {
    transform: scale(1.2);
    border-color: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.color-navy {
    background: #1a202c;
}

.color-green {
    background: #65a30d;
}

.color-red {
    background: #991b1b;
}

.color-yellow {
    background: #ca8a04;
}

.top-quick-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.top-quick-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-quick-links a:hover {
    opacity: 0.8;
}

.top-quick-links .divider {
    color: rgba(255, 255, 255, 0.6);
}

.kata-header-actions {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-right: 5%;
}

.kata-bottom-nav {
    width: 100%;
    background: var(--primary);
    /* Simple flat background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /* Clean shadow */
}

/* Adjust mobile button for right side */
.kata-header-right .mobile-menu-btn {
    margin-left: 20px;
}

@media (max-width: 992px) {
    .kata-logo-area {
        padding-right: 40px;
    }

    .kata-logo-area .logo-text h1 {
        font-size: 1rem;
    }

    .kata-logo-area .logo-text p {
        display: none;
    }
}

/* --- Dropdown Submenu Styles --- */
.kata-bottom-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    /* Clean spacing */
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
    /* Centered perfectly */
}

.kata-bottom-nav .nav-list>li {
    position: relative;
    padding: 0;
    display: flex;
}

.kata-bottom-nav .nav-list>li>a {
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted to make active pop */
    text-decoration: none;
    font-weight: 500;
    /* Cleaner font weight */
    font-size: clamp(0.85rem, 0.95vw, 1.05rem);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 10px;
    /* Taller, flatter padding */
    margin: 0;
    position: relative;
    /* For the animated underline */
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* The Cool Simple Underline Animation */
.kata-bottom-nav .nav-list>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 3px;
    background: var(--secondary);
    /* Theme color line */
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.kata-bottom-nav .nav-list>li>a:hover,
.kata-bottom-nav .nav-list>li>a.active {
    color: #ffffff;
    /* Bright white text on active */
    background: transparent;
}

.kata-bottom-nav .nav-list>li>a:hover::after,
.kata-bottom-nav .nav-list>li>a.active::after {
    width: 100%;
    /* Line beautifully grows from the center */
}

.kata-bottom-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    /* Uses theme primary */
    min-width: 200px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--secondary);
    /* Uses theme secondary */
}

.kata-bottom-nav .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kata-bottom-nav .dropdown li {
    padding: 0;
}

.kata-bottom-nav .nav-list li .dropdown a {
    color: #ffffff !important;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kata-bottom-nav .nav-list li .dropdown a:hover {
    background: var(--theme-link-hover, var(--primary-light)) !important;
    color: var(--secondary, #ff9933) !important;
    padding-left: 25px;
    /* Slight indent effect on hover */
}

/* ==========================================
   Premium Slide-out Navigation Drawer
   ========================================== */

/* Turn horizontal menu into drawer on mobile OR when scrolled on desktop */
@media (max-width: 992px) {
    .kata-bottom-nav {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        border: none !important;
        height: 0 !important;
        width: 0 !important;
        position: static !important;
    }
}


/* Style main-nav as fixed right drawer */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--menu-drawer-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
        padding: 90px 24px 40px 24px;
        z-index: 9999;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-left: 3px solid var(--secondary);
        overflow-y: auto;
        display: block !important;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav .nav-list {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .main-nav .nav-list>li {
        width: 100% !important;
        flex-direction: column !important;
    }

    .main-nav .nav-list>li>a {
        width: 100% !important;
        padding: 14px 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        justify-content: space-between !important;
        font-size: 0.95rem !important;
        color: rgba(255, 255, 255, 0.85) !important;
    }

    .main-nav .nav-list>li>a::after {
        display: none !important;
    }

    .main-nav .dropdown {
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.2) !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 2px solid var(--accent) !important;
        padding: 6px 0 6px 15px !important;
        margin-top: 5px !important;
        margin-bottom: 8px !important;
        display: none !important;
    }

    .main-nav .has-dropdown:hover .dropdown,
    .main-nav .has-dropdown.submenu-open .dropdown {
        display: block !important;
    }
}



/* ==========================================
   Tactile Drawer Close Button & Staggered Animations
   ========================================== */

/* Drawer Close Button */
.drawer-close-btn {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white !important;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    z-index: 10001;
}

.drawer-close-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.4);
}

/* Show Close Button inside active drawer states */
@media (max-width: 992px) {
    .drawer-close-btn {
        display: flex;
    }
}

.header-wrapper.scrolled~.kata-bottom-nav .drawer-close-btn {
    display: flex;
}

/* Staggered entrance animation for drawer menu items to create a real app feel */
@media (max-width: 992px) {
    .main-nav .nav-list>li {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .main-nav.active .nav-list>li {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-wrapper.scrolled~.kata-bottom-nav .main-nav .nav-list>li {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Drawer item staggered fade-in delays when active */
.main-nav.active .nav-list>li:nth-child(1) {
    transition-delay: 0.04s;
}

.main-nav.active .nav-list>li:nth-child(2) {
    transition-delay: 0.08s;
}

.main-nav.active .nav-list>li:nth-child(3) {
    transition-delay: 0.12s;
}

.main-nav.active .nav-list>li:nth-child(4) {
    transition-delay: 0.16s;
}

.main-nav.active .nav-list>li:nth-child(5) {
    transition-delay: 0.20s;
}

.main-nav.active .nav-list>li:nth-child(6) {
    transition-delay: 0.24s;
}

.main-nav.active .nav-list>li:nth-child(7) {
    transition-delay: 0.28s;
}

.main-nav.active .nav-list>li:nth-child(8) {
    transition-delay: 0.32s;
}

.main-nav.active .nav-list>li:nth-child(9) {
    transition-delay: 0.36s;
}

.main-nav.active .nav-list>li:nth-child(10) {
    transition-delay: 0.40s;
}

.main-nav.active .nav-list>li:nth-child(11) {
    transition-delay: 0.44s;
}

/* ==========================================
   Search Bar & Video Showcase Custom Styling
   ========================================== */

/* Board Search Bar */
.board-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 60, 114, 0.15);
    border-radius: 30px;
    padding: 10px 20px;
    margin: 15px 0 25px 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.board-search-bar:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.15);
}

.board-search-bar .search-icon {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 1rem;
}

.board-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-main);
}

.board-search-bar input::placeholder {
    color: #a0a8b0;
}

.board-search-bar .clear-icon {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: none;
    /* Hidden by default */
}

.board-search-bar .clear-icon:hover {
    color: var(--secondary);
}

/* No Results Card */
.no-results-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(30, 60, 114, 0.2);
    border-radius: 16px;
    color: var(--text-muted);
    animation: fadeIn 0.4s ease;
    margin-top: 15px;
}

.no-results-icon {
    color: var(--text-muted);
    opacity: 0.6;
}

.no-results-card h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/* Sidebar Video Panel */
.sidebar-video-panel {
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(30, 60, 114, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
    transition: var(--transition);
}

.sidebar-video-panel:hover {
    box-shadow: var(--shadow-hover);
}

.sidebar-header-solid {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 20px 25px;
    color: white;
}

.sidebar-header-solid h3 {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto Slab', serif;
    letter-spacing: 0.5px;
}

.sidebar-content-video {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    justify-content: space-between;
}

.video-container-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #000;
}

.video-container-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.video-actions p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.btn-video-update {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
    transition: var(--transition);
    font-family: 'Roboto Slab', serif;
}

.btn-video-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
}

/* Premium Modal (Glassmorphic) */
.premium-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 24, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.premium-modal.active .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--secondary);
}

.modal-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.modal-input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.modal-input-group input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(30, 60, 114, 0.15);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #ffffff;
}

.modal-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.15);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-modal-cancel {
    background: transparent;
    border: 1px solid rgba(30, 60, 114, 0.15);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Roboto Slab', serif;
}

.btn-modal-cancel:hover {
    background: rgba(30, 60, 114, 0.05);
}

.btn-modal-save {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.2);
    transition: var(--transition);
    font-family: 'Roboto Slab', serif;
}

.btn-modal-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.3);
}

/* ==========================================
   Campus Video + Notice Section
   ========================================== */

.campus-video-section {
    padding: 60px 0;
    position: relative;
    background-color: #f8fafc;
    /* Subtle dot pattern */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    border-bottom: 1px solid rgba(30, 60, 114, 0.08);
    overflow: hidden;
}

/* Animated Glowing Orbs Background */
.ws-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    animation: floatOrb 18s infinite alternate ease-in-out;
}

.ws-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.08) 0%, rgba(30, 60, 114, 0) 70%);
    top: -100px;
    left: -150px;
    animation-delay: 0s;
}

.ws-orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 126, 95, 0.08) 0%, rgba(255, 126, 95, 0) 70%);
    bottom: -100px;
    right: -100px;
    animation-duration: 22s;
    animation-delay: -5s;
}

.ws-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, rgba(74, 222, 128, 0) 70%);
    top: 30%;
    left: 40%;
    animation-duration: 25s;
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-40px, 50px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Equal height grid — both columns stretch to tallest item */
.video-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 30px;
    align-items: stretch;
    position: relative;
    z-index: 1;
    /* keep content above background */
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Left: Video Player ---- */
.video-player-box {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30, 60, 114, 0.18);
    background: #0d1b2a;
    /* Fixed equal height matching notice panel */
    min-height: 420px;
    max-height: 420px;
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.native-video-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    background: #0d1b2a;
    min-height: 0;
}

/* Video Header with premium gradient, matching notice board header */
.vidsec-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
    color: white;
    padding: 16px 20px;
    font-size: 0.97rem;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

/* Pulsing live indicator dot */
.vidsec-video-header span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vidsec-video-header span::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    animation: livePulse 1.8s ease infinite;
    flex-shrink: 0;
}

.native-video-wrapper video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Overlay when no video */
.video-upload-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.video-upload-overlay.hidden {
    display: none;
}

.vup-content {
    text-align: center;
    color: white;
    padding: 30px;
}

.vup-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.vup-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.85;
    line-height: 1.5;
}

/* ---- Right: Notice Board Panel ---- */
.vidsec-notice-panel {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30, 60, 114, 0.12);
    background: #fff;
    border: 1px solid rgba(30, 60, 114, 0.1);
    /* Must match video height exactly */
    min-height: 420px;
    max-height: 420px;
}

/* Header with premium gradient */
.vidsec-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
    color: white;
    padding: 16px 20px;
    font-size: 0.97rem;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

/* Pulsing live indicator dot */
.vidsec-notice-header span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vidsec-notice-header span::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    animation: livePulse 1.8s ease infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.vidsec-header-links {
    display: flex;
    gap: 14px;
}

.vidsec-header-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 1px;
}

.vidsec-header-links a:hover {
    color: white;
    border-color: white;
}

/* ---- Search Bar inside Notice Panel ---- */
.vidsec-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(30, 60, 114, 0.08);
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.01);
}

.vidsec-search-bar:focus-within {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.05);
    border-bottom-color: rgba(30, 60, 114, 0.15);
    z-index: 5;
    position: relative;
}

.vidsec-search-icon {
    color: #8a94a6;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.vidsec-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.84rem;
    color: #2d3748;
    font-family: 'Roboto Slab', serif;
}

.vidsec-search-bar input::placeholder {
    color: #a0aec0;
}

.vidsec-clear-icon {
    color: #a0aec0;
    font-size: 0.78rem;
    cursor: pointer;
    display: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.vidsec-clear-icon:hover {
    color: #e53e3e;
}

.vidsec-clear-icon.visible {
    display: block;
}

/* No results state */
.vidsec-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #a0aec0;
    font-size: 0.84rem;
    display: none;
}

.vidsec-no-results i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.vidsec-no-results.visible {
    display: block;
}

/* Scrolling container */
.vidsec-notice-scroll {
    overflow: hidden;
    flex: 1;
    position: relative;
}

/* Fade top/bottom edges for scroll illusion */
.vidsec-notice-scroll::before,
.vidsec-notice-scroll::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    z-index: 3;
    pointer-events: none;
}

.vidsec-notice-scroll::before {
    top: 0;
    background: linear-gradient(to bottom, #fff 0%, transparent 100%);
}

.vidsec-notice-scroll::after {
    bottom: 0;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
}

/* Auto-scroll track */
.vidsec-scroll-track {
    display: flex;
    flex-direction: column;
    animation: noticeScroll 26s linear infinite;
}

.vidsec-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes noticeScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Each notice row */
.vidsec-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(30, 60, 114, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    background: transparent;
}

.vidsec-notice-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.08);
    transform: translateY(-2px);
    z-index: 10;
    border-bottom-color: transparent;
    border-radius: 8px;
    margin: 0 8px;
    /* Slight inset on hover */
    padding-left: 18px;
    /* Adjust padding to compensate for margin */
}

/* Left accent bar on hover */
.vidsec-notice-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease;
}

.vidsec-notice-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.vn-date {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.vn-date::before {
    content: '\f073';
    /* Calendar alt icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    font-size: 0.7rem;
    color: #94a3b8;
}

.vn-badge {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.vn-tender {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #d84315;
    border: 1px solid #ffccbc;
}

.vn-student {
    background: linear-gradient(135deg, #e8f4fd, #bbdefb);
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.vn-general {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #6a1b9a;
    border: 1px solid #ce93d8;
}

.vn-title {
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.55;
    font-weight: 500;
    transition: color 0.2s;
}

.vidsec-notice-item:hover .vn-title {
    color: var(--primary);
}

/* Footer */
.vidsec-notice-footer {
    padding: 13px 20px;
    border-top: 1px solid rgba(30, 60, 114, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    flex-shrink: 0;
}

.vidsec-notice-footer::before {
    content: '🖱 Hover to pause scroll';
    font-size: 0.7rem;
    color: #a0aec0;
    font-style: italic;
}

.vn-view-all {
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    padding: 5px 14px;
    border: 1px solid var(--primary);
    border-radius: 20px;
}

.vn-view-all:hover {
    gap: 10px;
}

/* Video Change Button */
.btn-video-change {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
    transition: var(--transition);
    font-family: 'Roboto Slab', serif;
}

.btn-video-change:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
}

.btn-video-change.small {
    padding: 7px 16px;
    font-size: 0.8rem;
}

/* Modal Divider */
.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(30, 60, 114, 0.1);
}

.modal-divider:not(:empty)::before {
    margin-right: 10px;
}

.modal-divider:not(:empty)::after {
    margin-left: 10px;
}

/* ── Premium Color Scheme Palette ───────────────────────────── */
.kata-top-strip .color-palette {
    display: flex;
    gap: 5px;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.kata-top-strip .color-btn {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.kata-top-strip .color-btn:hover {
    transform: scale(1.4);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.kata-top-strip .color-btn.active {
    transform: scale(1.3);
    border-color: #ffffff;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 10px rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.kata-top-strip .color-btn.color-navy {
    background: radial-gradient(circle at 35% 35%, #374151, #1f2937);
}

.kata-top-strip .color-btn.color-green {
    background: radial-gradient(circle at 35% 35%, #84a832, #4a5e1a);
}

.kata-top-strip .color-btn.color-red {
    background: radial-gradient(circle at 35% 35%, #a12020, #6d0100);
}

.kata-top-strip .color-btn.color-yellow {
    background: radial-gradient(circle at 35% 35%, #e8b000, #a07000);
}

/* Floating elements (Social Sidebar on Left & Enquiry Button on Right, Symmetrically Centered) */
.floating-social-sidebar {
    position: fixed;
    left: 0;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.social-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 6px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    z-index: 9999;

    /* Initial state for animation */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.social-item.show-item {
    opacity: 1;
    transform: translateX(0);
}

.social-item.facebook {
    background: #1877f2;
    color: white !important;
}

.social-item.twitter {
    background: #111827;
    color: white !important;
}

.social-item.youtube {
    background: #ff0000;
    color: white !important;
}

.social-item.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
}

.social-item.whatsapp {
    background: #25d366;
    color: white !important;
}

.social-item.email {
    background: #ea4335;
    color: white !important;
}

/* Hover States with Brand Colors */
.social-item.facebook:hover {
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.7);
}

.social-item.twitter:hover {
    box-shadow: 0 0 20px rgba(17, 24, 39, 0.7);
}

.social-item.youtube:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

.social-item.instagram:hover {
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.7);
}

.social-item.whatsapp:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.7);
}

.social-item.email:hover {
    box-shadow: 0 0 20px rgba(234, 67, 53, 0.7);
}

.social-item.enquiry {
    background: linear-gradient(135deg, #f26522 0%, #c94e00 100%);
    color: white !important;
    cursor: pointer;
}

.social-item.enquiry:hover {
    box-shadow: 0 0 20px rgba(242, 101, 34, 0.75);
}

.social-item.show-item:hover {
    transform: translateX(8px);
}

/* Social Tooltip labels */
.social-label {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-15px);
    background: #1e293b;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    margin-left: 12px;
    z-index: 10000;
}

.social-item.show-item:hover .social-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .floating-social-sidebar {
        display: none;
    }
}

/* --- Enquiry Modal Styles --- */
.enquiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.enquiry-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.enquiry-modal-card {
    background: var(--theme-primary-dark, #111827);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 153, 51, 0.15);
    width: 92%;
    max-width: 440px;
    border-radius: 20px;
    padding: 24px 28px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.enquiry-modal-overlay.active .enquiry-modal-card {
    transform: scale(1) translateY(0);
}

.enquiry-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
}

.enquiry-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.3rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.enquiry-modal-close:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
    transform: rotate(90deg);
}

.enquiry-modal-header {
    margin-bottom: 18px;
}

.enquiry-modal-header h3 {
    font-family: 'Roboto Slab', serif;
    color: white;
    font-size: 1.5rem;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enquiry-modal-header h3 i {
    color: var(--secondary);
}

.enquiry-modal-header p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.4;
}

.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--secondary);
    font-size: 0.8rem;
    opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.15);
}

.form-group select option {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

/* Submit and Success styles */
.enquiry-form .submit-btn {
    margin-top: 5px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%) !important;
    color: white !important;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enquiry-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.3);
}

.enquiry-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
    animation: fadeInSuccess 0.5s ease forwards;
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon-wrap {
    font-size: 4.5rem;
    color: #22c55e;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4));
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }

    80% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.enquiry-success-message h4 {
    font-family: 'Roboto Slab', serif;
    color: white;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
}

.enquiry-success-message p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    max-width: 350px;
}

/* -------------------------------------------
   CUSTOM NATIVE HOVER MODAL SLIDER 
   ------------------------------------------- */
.custom-slider-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.custom-slider-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-slider-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-slider-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

.custom-slider-caption {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* Slider Controls */
.custom-slider-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.custom-slider-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.custom-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.custom-slider-nav:hover {
    background: var(--theme-accent, #ff8c42);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.custom-slider-nav.prev {
    left: 20px;
}

.custom-slider-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .custom-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .custom-slider-nav.prev {
        left: 10px;
    }

    .custom-slider-nav.next {
        right: 10px;
    }

    .custom-slider-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }
}

/* Homepage Sub-section Responsiveness Fixes */
@media (max-width: 1200px) {
    .departments-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    /* Notice board grid fix */
}

@media (max-width: 768px) {
    .departments-grid {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .board-tabs-colored {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn-col {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 12px 5px;
        font-size: 0.85rem;
    }

    .tab-btn-col.active {
        transform: scale(1.02) translateY(-2px);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn-col {
        flex: 1 1 calc(50% - 8px);
        margin-bottom: 0px;
        padding: 10px 4px;
        font-size: 0.75rem;
    }

    .native-video-wrapper {
        min-height: 220px;
        max-height: 250px;
    }

    .vidsec-notice-panel {
        min-height: 420px;
        max-height: 450px;
    }

    .vn-date {
        font-size: 0.62rem;
        padding: 2px 8px;
        background: #f1f5f9;
        border-radius: 4px;
        color: #64748b;
        border: 1px solid #e2e8f0;
    }

    .vn-date::before {
        font-size: 0.6rem;
    }

    .vn-badge {
        font-size: 0.58rem;
        padding: 2px 8px;
    }

    .vn-title {
        font-size: 0.82rem;
        width: 100%;
        margin-top: 2px;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    .native-video-wrapper {
        min-height: 300px;
        max-height: 350px;
    }

    .vidsec-notice-panel {
        min-height: 380px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .discover-bar {
        padding: 50px 0 30px;
    }

    .discover-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}