@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================
   PREMIUM CUSTOM CSS DESIGN SYSTEM (GURUKUL)
   ========================================== */

:root {
    /* Color System */
    --primary: #0f172a;       /* Slate 900 - Trust, Authority */
    --primary-light: #1e293b; /* Slate 800 */
    --primary-accent: #334155;/* Slate 700 */
    --secondary: #0f766e;     /* Teal 700 - Wisdom, Growth */
    --secondary-light: #0d9488;/* Teal 600 */
    --accent: #d97706;        /* Amber 700 - Heritage, Prestige */
    --accent-light: #f59e0b;  /* Amber 500 - Active Highlights */
    --accent-glow: rgba(217, 119, 6, 0.15);
    
    /* Neutral Shades */
    --text-main: #f8fafc;     /* White/Light gray for dark context */
    --text-dark: #1e293b;     /* Main text dark */
    --text-muted: #64748b;    /* Slate 500 */
    --bg-light: #f8fafc;      /* Slate 50 */
    --bg-white: #ffffff;
    --bg-dark: #090d16;       /* Deep Luxury Blue-Black background */
    --bg-card-dark: #131b2e;  /* Deep Slate Card background */
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(15, 23, 42, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Structural Constants */
    --header-height: 80px;
    --header-shrink-height: 70px;
    --max-width: 1280px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-circle: 50%;
    
    /* Shadow Vault */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.3);
    --shadow-glow-accent: 0 0 25px rgba(217, 119, 6, 0.35);
    
    /* Easing Options */
    --ease-premium: cubic-bezier(0.25, 1, 0.5, 1); /* Custom ease-out */
    --transition-smooth: all 0.4s var(--ease-premium);
    --transition-fast: all 0.2s ease;
}

/* ==========================================
   RESET & SYSTEM RESET
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

body.dark-theme-active {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

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

ul, ol {
    list-style: none;
}

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

button, input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ==========================================
   PREMIUM GLASSY CONTAINER & WRAPPERS
   ========================================== */

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

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* ==========================================
   TYPOGRAPHY DESIGN SYSTEM
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

body.dark-theme-active h1, 
body.dark-theme-active h2, 
body.dark-theme-active h3, 
body.dark-theme-active h4,
body.dark-theme-active h5,
body.dark-theme-active h6 {
    color: var(--bg-white);
}

/* Global High-Contrast Overrides for testimonial authors, designations, and ranks in Dark Mode */
body.dark-theme-active .quote-author h5,
body.dark-theme-active .quote-author p,
body.dark-theme-active .author-meta h5,
body.dark-theme-active .author-meta p,
body.dark-theme-active .topper-rank,
body.dark-theme-active .topper-info h3,
body.dark-theme-active .spotlight-topper-info h3,
body.dark-theme-active .spotlight-topper-rank,
body.dark-theme-active .mentor-role {
    color: #ffffff !important;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

p {
    color: var(--text-muted);
}

body.dark-theme-active p {
    color: #94a3b8; /* Slate-400 */
}

/* Radiant Text Gradient */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Accent Highlight line */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    margin-bottom: 12px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ==========================================
   RESPONSIVE HEADER & MOBILE DRAWER
   ========================================== */

.header {
    position: fixed !important;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
    background: transparent;
}

/* Header Scrolled States - Premium Floating Glass Pill */
.header.scrolled {
    position: fixed !important;
    height: var(--header-shrink-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.08), var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: calc(100% - 48px);
    max-width: var(--max-width);
    top: 15px;
    border-radius: 40px;
}

body.dark-theme-active .header.scrolled {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), var(--shadow-lg);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Elegant Premium Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF !important;
    transition: var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    color: #FFFFFF !important;
    transition: var(--transition-smooth);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.logo-crest {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #FFFFFF;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.logo:hover .logo-crest {
    transform: rotate(5deg) scale(1.05);
}

/* Desktop Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: #FFFFFF !important;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

/* Active and Hover markers on Dark Background */
.nav-link:hover,
.nav-link.active {
    color: var(--accent-light) !important; /* Amber highlight */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-light), var(--accent-light));
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- STATE B: SCROLLED LIGHT MODE (Over light glass background on scroll) --- */

.header.scrolled .logo {
    color: #0B1E4F !important;
}

.header.scrolled .logo span {
    color: #0B1E4F !important;
}

.header.scrolled .nav-link {
    color: #0B1E4F !important;
}

/* Active and Hover markers on Light Scrolled Background */
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--secondary-light) !important; /* Teal highlight */
}


/* --- STATE C: DARK MODE OVERRIDES (Remains white whether scrolled or unscrolled) --- */

body.dark-theme-active .logo,
body.dark-theme-active .header.scrolled .logo,
body.dark-theme-active .logo span,
body.dark-theme-active .header.scrolled .logo span {
    color: #FFFFFF !important;
}

body.dark-theme-active .nav-link,
body.dark-theme-active .header.scrolled .nav-link {
    color: #FFFFFF !important;
}

body.dark-theme-active .nav-link:hover,
body.dark-theme-active .nav-link.active,
body.dark-theme-active .header.scrolled .nav-link:hover,
body.dark-theme-active .header.scrolled .nav-link.active {
    color: var(--accent-light) !important; /* Amber highlight */
}

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Elegant Button Presets */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--secondary);
}

body.dark-theme-active .btn-secondary {
    color: var(--bg-white);
    border-color: var(--secondary-light);
}

.btn-secondary:hover {
    background: rgba(13, 148, 136, 0.08);
    transform: translateY(-2px);
}

.hero .btn-secondary,
.page-hero .btn-secondary {
    color: #FFFFFF !important;
    border-color: var(--secondary-light) !important;
}

.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover {
    background: rgba(13, 148, 136, 0.15) !important;
    color: #FFFFFF !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-accent:hover {
    box-shadow: var(--shadow-glow-accent);
    transform: translateY(-2px);
}

/* Hamburger Trigger Menu Icon */
.menu-trigger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF !important;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.header.scrolled .menu-trigger span {
    background-color: #0B1E4F !important;
}

body.dark-theme-active .menu-trigger span,
body.dark-theme-active .header.scrolled .menu-trigger span {
    background-color: #FFFFFF !important;
}

.menu-trigger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-trigger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay navigation */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 100px 40px 40px;
    box-shadow: var(--shadow-lg);
    transition: right 0.5s var(--ease-premium);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.dark-theme-active .mobile-drawer {
    background: rgba(9, 13, 22, 0.98);
}

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

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateX(30px);
    transition: transform 0.5s var(--ease-premium), opacity 0.5s var(--ease-premium);
}

body.dark-theme-active .drawer-link {
    color: var(--bg-white);
}

.mobile-drawer.active .drawer-link {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger drawer animations using JS or structural inline index */
.drawer-link:nth-child(1) { transition-delay: 0.1s; }
.drawer-link:nth-child(2) { transition-delay: 0.15s; }
.drawer-link:nth-child(3) { transition-delay: 0.2s; }
.drawer-link:nth-child(4) { transition-delay: 0.25s; }
.drawer-link:nth-child(5) { transition-delay: 0.3s; }
.drawer-link:nth-child(6) { transition-delay: 0.35s; }

.drawer-link:hover,
.drawer-link.active {
    color: var(--secondary-light);
    padding-left: 8px;
}

.drawer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-premium) 0.4s;
}

.mobile-drawer.active .drawer-actions {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-circle);
    background: rgba(255, 255, 255, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #FFFFFF !important;
}

.header.scrolled .theme-toggle {
    background: rgba(11, 30, 79, 0.05) !important;
    color: #0B1E4F !important;
}

body.dark-theme-active .theme-toggle,
body.dark-theme-active .header.scrolled .theme-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--accent-light) !important;
}

.theme-toggle:hover {
    background: rgba(13, 148, 136, 0.1);
    transform: scale(1.05);
}

/* Back-to-Top Overlay Drawer Trigger */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-circle);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: right 0.4s var(--ease-premium), transform 0.2s ease, box-shadow 0.2s ease;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Mobile responsive navigation limits */
@media (max-width: 992px) {
    .nav-menu, .header-actions .btn {
        display: none;
    }
    .menu-trigger {
        display: flex;
    }
}

/* ==========================================
   SCROLL ENTRANCE ANIMATIONS
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

.reveal.reveal-left {
    transform: translateX(-50px);
}

.reveal.reveal-right {
    transform: translateX(50px);
}

.reveal.reveal-scale {
    transform: scale(0.92);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Custom Micro Floating animation */
.float-anim {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Spin animation for icons */
.spin-anim {
    animation: spinning 20s linear infinite;
}

@keyframes spinning {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   PREMIUM MODULAR CARDS SYSTEM
   ========================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.premium-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body.dark-theme-active .premium-card {
    background-color: var(--bg-card-dark);
    border-color: var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Glow Border & Underlay overlay */
.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-light), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-premium);
    z-index: 2;
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.15);
}

body.dark-theme-active .premium-card:hover {
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-light);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

body.dark-theme-active .card-icon {
    background: rgba(13, 148, 136, 0.15);
}

.premium-card:hover .card-icon {
    background: var(--secondary);
    color: var(--bg-white);
    transform: scale(1.08) rotate(3deg);
}

.premium-card h3 {
    margin-bottom: 12px;
}

/* ==========================================
   PAGE HERO SECTIONS
   ========================================== */

.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #090d16 0%, #1e1b4b 100%);
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 10% 80%, rgba(217, 119, 6, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.page-hero-container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--bg-white);
    margin-bottom: 16px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #94a3b8; /* Slate 400 */
}

.breadcrumbs a {
    transition: var(--transition-fast);
}

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

.breadcrumbs span {
    color: #475569; /* Slate 600 */
}

.breadcrumbs .current {
    color: var(--bg-white);
}

/* ==========================================
   PREMIUM RESPONSIBLE FOOTER
   ========================================== */

.footer {
    background-color: var(--primary);
    color: #94a3b8; /* Slate-400 */
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

body.dark-theme-active .footer {
    background-color: #05080f;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .logo {
    color: var(--bg-white);
}

.footer-brand p {
    font-size: 0.95rem;
}

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

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-circle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--secondary-light);
    color: var(--bg-white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(13, 148, 136, 0.3);
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-light), var(--accent-light));
}

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

.footer-link-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #94a3b8;
}

.footer-link-item a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-info-item svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--accent-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   GLOBAL PREMIUM DYNAMIC STYLING (GURUKUL)
   ========================================== */

/* 1. Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-light) 0%, var(--accent-light) 100%);
    z-index: 10002;
    transition: width 0.1s ease-out;
}

/* 2. Page Preloader Loading Animation */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-premium), visibility 0.6s var(--ease-premium);
}

body.dark-theme-active #page-preloader {
    background-color: var(--bg-dark);
}

.preloader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.preloader-crest {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
    animation: preloader-pulse 2s infinite ease-in-out;
    z-index: 2;
}

.preloader-spinner {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: var(--secondary-light);
    border-bottom-color: var(--accent-light);
    border-radius: 50%;
    animation: preloader-spin 1.2s linear infinite;
    z-index: 1;
}

#page-preloader.preloader-done {
    opacity: 0;
    visibility: hidden;
}

@keyframes preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.12); }
}

/* 3. Smooth Page Shutter Transitions */
.page-shutter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 99998;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.page-shutter.shutter-active {
    transform: translateY(0);
    pointer-events: all;
}

.page-shutter.shutter-dismiss {
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

/* 4. Premium Image Hover Zoom Constraints */
.zoom-box {
    overflow: hidden;
    position: relative;
    border-radius: inherit;
}

.zoom-box img {
    transition: transform 0.8s var(--ease-premium) !important;
}

.zoom-box:hover img {
    transform: scale(1.06) !important;
}

/* Apply image zooms to existing component containers */
.gallery-visual-box, 
.spotlight-media, 
.news-card-image, 
.pillar-media, 
.admission-media,
.intro-media,
.achievement-card-icon-box {
    overflow: hidden !important;
}

.gallery-visual-box img, 
.spotlight-media img, 
.news-card-image img, 
.pillar-media img, 
.admission-media img,
.intro-media img {
    transition: transform 0.8s var(--ease-premium) !important;
}

.gallery-visual-box:hover img, 
.spotlight-media:hover img, 
.news-card-image:hover img, 
.pillar-media:hover img, 
.admission-media:hover img,
.intro-media:hover img {
    transform: scale(1.06) !important;
}

/* 5. Floating Background Parallax Glow Layers */
.parallax-layer {
    position: absolute;
    border-radius: var(--border-radius-circle);
    pointer-events: none;
    filter: blur(80px);
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.parallax-glow-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 70%);
    top: 15%;
    right: 8%;
}

.parallax-glow-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: 6%;
}

/* 6. Dynamic Button Micro-Shine Effect & Interactive Hover Lifts */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.btn:hover::before {
    left: 150%;
    transition: left 0.6s ease-in-out;
}

.nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Enhance existing scroll reveal styles with variations */
.reveal-up {
    transform: translateY(40px) !important;
}

.reveal-down {
    transform: translateY(-40px) !important;
}

.reveal-left {
    transform: translateX(-40px) !important;
}

.reveal-right {
    transform: translateX(40px) !important;
}

.reveal-scale {
    transform: scale(0.94) !important;
}

.reveal-up.active,
.reveal-down.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    transform: translate(0) scale(1) !important;
    opacity: 1 !important;
}

/* ========================================================
   CENTRALIZED REUSABLE FLOATING LABEL DESIGN SYSTEM
   ======================================================== */
:root {
    --floating-label-bg: #ffffff;
}
body.dark-theme-active {
    --floating-label-bg: #131b2e; /* Matches var(--bg-card-dark) card background */
}

/* Wrapper group */
.floating-container {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
}

/* Form inputs, textareas, selects */
.floating-input-field {
    width: 100%;
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: var(--bg-light) !important;
    color: var(--primary) !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    display: block;
}

/* Hide placeholder when not focused to prevent overlap with floating label */
.floating-input-field::placeholder {
    color: transparent !important;
    transition: color 0.2s ease;
}
.floating-input-field:focus::placeholder {
    color: var(--text-muted) !important;
}

body.dark-theme-active .floating-input-field {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--glass-border) !important;
    color: var(--bg-white) !important;
}

/* Textarea height customization */
textarea.floating-input-field {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Floating Label text element */
.floating-label-text {
    position: absolute;
    left: 18px;
    top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease, font-size 0.2s ease, background-color 0.2s ease, padding 0.2s ease;
    transform-origin: left top;
    padding: 0 6px;
    z-index: 5;
    background-color: transparent;
    line-height: 1;
}

/* Focused / Prefilled States (Triggered by .is-focused or .is-filled) */
.floating-container.is-focused .floating-label-text,
.floating-container.is-filled .floating-label-text {
    transform: translateY(-24px) scale(0.8);
    color: var(--secondary-light);
    font-weight: 600;
    background-color: var(--floating-label-bg);
}

body.dark-theme-active .floating-container.is-focused .floating-label-text,
body.dark-theme-active .floating-container.is-filled .floating-label-text {
    color: var(--accent-light);
}

/* Focused input highlight states */
.floating-container.is-focused .floating-input-field {
    border-color: var(--secondary-light) !important;
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.15) !important;
    background: var(--bg-white) !important;
}

body.dark-theme-active .floating-container.is-focused .floating-input-field {
    border-color: var(--accent-light) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.15) !important;
}

/* Validation Error state */
.floating-container.has-error .floating-input-field {
    border-color: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15) !important;
}

.floating-container.has-error .floating-label-text {
    color: #ef4444 !important;
}

/* Mobile responsive font sizing */
@media (max-width: 576px) {
    .floating-label-text {
        font-size: 0.9rem;
    }
    .floating-container.is-focused .floating-label-text,
    .floating-container.is-filled .floating-label-text {
        transform: translateY(-22px) scale(0.8);
    }
}

/* ==========================================
   MANDATORY DISCLOSURE MEGA MENU SYSTEM
   ========================================== */

/* Dropdown Parent Item */
.disclosure-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown Chevron rotation */
.disclosure-nav-item .dropdown-chevron {
    transition: transform 0.3s var(--ease-premium);
    margin-left: 4px;
    vertical-align: middle;
}

.disclosure-nav-item:hover .dropdown-chevron,
.disclosure-nav-item.menu-open .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--accent-light);
}

/* Bridging gap for hover retention */
.disclosure-nav-item::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
    z-index: 99;
}

/* Mega Menu Dropdown Panel */
.mega-menu-panel {
    position: fixed;
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 90vw;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.02);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium), visibility 0.4s;
}

.header.scrolled .mega-menu-panel {
    top: calc(var(--header-shrink-height) + 15px);
}

/* Show Menu on Hover or Open class */
.disclosure-nav-item:hover .mega-menu-panel,
.disclosure-nav-item.menu-open .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Dark Mode Overrides for Mega Menu */
body.dark-theme-active .mega-menu-panel {
    background: rgba(19, 27, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(217, 119, 6, 0.08);
}

/* Featured Badges Row */
.mega-menu-featured {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.dark-theme-active .mega-menu-featured {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

body.dark-theme-active .featured-badge {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    color: var(--accent-light);
}

.featured-badge:hover {
    transform: translateY(-2px);
    background: var(--secondary-light);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

body.dark-theme-active .featured-badge:hover {
    background: var(--accent-light);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

/* Mega Menu Grid Layout */
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.25fr;
    gap: 32px;
}

.mega-menu-col {
    display: flex;
    flex-direction: column;
}

.col-header {
    margin-bottom: 16px;
}

.col-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-bottom: 8px;
}

body.dark-theme-active .col-header h3 {
    color: #FFFFFF;
}

.col-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-light), var(--accent-light));
}

/* Left Column: Institution Profile Card */
.school-profile-card {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--border-radius-md);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.dark-theme-active .school-profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-logo-wrapper {
    width: 70px;
    height: 70px;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-profile-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

body.dark-theme-active .school-profile-card h4 {
    color: #FFFFFF;
}

.school-trust {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.profile-meta-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 16px;
}

body.dark-theme-active .profile-meta-list {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.meta-label {
    color: var(--text-muted);
}

.meta-value {
    font-weight: 600;
    color: var(--primary);
}

body.dark-theme-active .meta-value {
    color: var(--text-main);
}

.meta-value.badge-active {
    color: var(--secondary-light);
    background: rgba(13, 148, 136, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Center & Right Column: Document Grid Cards */
.cert-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom Scrollbar for dropdown content */
.cert-cards-container::-webkit-scrollbar {
    width: 4px;
}

.cert-cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.cert-cards-container::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 4px;
}

body.dark-theme-active .cert-cards-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.dark-theme-active .cert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-card:hover {
    transform: translateY(-3px);
    background: #FFFFFF;
    border-color: var(--secondary-light);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.08);
}

body.dark-theme-active .cert-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cert-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(13, 148, 136, 0.06);
    color: var(--secondary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

body.dark-theme-active .cert-card-icon {
    background: rgba(217, 119, 6, 0.06);
    color: var(--accent-light);
}

.cert-card:hover .cert-card-icon {
    background: var(--secondary-light);
    color: #FFFFFF;
}

body.dark-theme-active .cert-card:hover .cert-card-icon {
    background: var(--accent-light);
    color: var(--primary);
}

.cert-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

body.dark-theme-active .cert-card-title {
    color: #FFFFFF;
}

.cert-card-authority {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cert-card-footer {
    display: flex;
    align-items: center;
}

.cert-status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.cert-status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.cert-status-badge.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.no-certs {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 16px 0;
}

/* ==========================================
   MOBILE ACCORDION (Drawer Integration)
   ========================================== */
.drawer-accordion-item {
    width: 100%;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 16px;
    opacity: 0;
    transform: translateX(30px);
    transition: transform 0.5s var(--ease-premium), opacity 0.5s var(--ease-premium);
}

.mobile-drawer.active .drawer-accordion-item {
    opacity: 1;
    transform: translateX(0);
}

.drawer-accordion-item {
    transition-delay: 0.15s;
}

body.dark-theme-active .drawer-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    padding: 0;
}

body.dark-theme-active .drawer-accordion-trigger {
    color: var(--bg-white);
}

.drawer-accordion-trigger .accordion-chevron {
    transition: transform 0.3s var(--ease-premium);
    color: var(--text-muted);
}

.drawer-accordion-item.active .drawer-accordion-trigger .accordion-chevron {
    transform: rotate(180deg);
    color: var(--secondary-light);
}

body.dark-theme-active .drawer-accordion-item.active .drawer-accordion-trigger .accordion-chevron {
    color: var(--accent-light);
}

.drawer-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-premium);
    display: flex;
    flex-direction: column;
    padding-left: 8px;
}

.drawer-accordion-item.active .drawer-accordion-content {
    max-height: 500px;
    margin-top: 16px;
    overflow-y: auto;
}

.drawer-school-details {
    background: rgba(15, 23, 42, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-bottom: 16px;
}

body.dark-theme-active .drawer-school-details {
    background: rgba(255, 255, 255, 0.03);
}

.drawer-school-details p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-dark);
}

body.dark-theme-active .drawer-school-details p {
    color: var(--text-main);
}

.drawer-school-details .trust-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.drawer-sub-category {
    margin-bottom: 16px;
}

.drawer-sub-category h5 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.drawer-cert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.dark-theme-active .drawer-cert-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-cert-item:active {
    background: rgba(13, 148, 136, 0.08);
}

.drawer-cert-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.3;
}

body.dark-theme-active .drawer-cert-item span {
    color: #FFFFFF;
}

.drawer-cert-item svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ==========================================
   CERTIFICATE MODAL VIEWER SYSTEM
   ========================================== */
.cert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-premium), visibility 0.4s;
    padding: 24px;
}

.cert-modal-overlay.modal-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cert-modal-container {
    width: 100%;
    max-width: 950px;
    height: 90vh;
    max-height: 750px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s var(--ease-premium);
}

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

body.dark-theme-active .cert-modal-container {
    background: #0d1527;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.dark-theme-active .cert-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

body.dark-theme-active .cert-modal-title {
    color: #FFFFFF;
}

.cert-modal-close {
    background: rgba(15, 23, 42, 0.04);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

body.dark-theme-active .cert-modal-close {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

.cert-modal-close:hover {
    background: #ef4444;
    color: #FFFFFF;
    transform: rotate(90deg);
}

.cert-modal-body {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    height: calc(100% - 77px);
}

.cert-modal-viewer {
    background: #525659;
    position: relative;
    height: 100%;
}

.cert-modal-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cert-modal-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    padding: 32px;
    text-align: center;
    color: #FFFFFF;
}

.fallback-icon {
    color: var(--accent-light);
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.cert-modal-fallback p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.5;
}

/* Info side pane */
.cert-modal-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

body.dark-theme-active .cert-modal-info {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-modal-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

body.dark-theme-active .cert-modal-info h4 {
    color: #FFFFFF;
}

.cert-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.cert-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

body.dark-theme-active .info-value {
    color: var(--text-main);
}

.cert-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-download {
    width: 100%;
    gap: 8px;
}

/* Breakpoint adjustments for Modal Viewer */
@media (max-width: 850px) {
    .cert-modal-container {
        height: 95vh;
        max-height: none;
    }
    .cert-modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1.2fr 1fr;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cert-modal-info {
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        padding: 24px;
    }
    body.dark-theme-active .cert-modal-info {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Breakpoint adjustments for Mega Menu Grid */
@media (max-width: 992px) {
    .disclosure-nav-item {
        display: none !important;
    }
}

@media (min-width: 993px) {
    .mega-menu-panel {
        display: block;
    }
}
}

/* ========================================================
   CREATIVE BRAND UPGRADES & AMBIENT INTERACTIVE STYLES
   ======================================================== */

/* 1. Brand Selection Styling */
::selection {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
}

/* 2. Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--secondary-light), var(--accent-light));
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
}

/* 3. Global Hero Tag & Badge styling */
.hero-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.08) !important;
    border: 1px solid rgba(13, 148, 136, 0.2) !important;
    color: var(--secondary-light) !important;
    padding: 6px 16px !important;
    border-radius: 30px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    transition: var(--transition-smooth) !important;
}
body.dark-theme-active .hero-tag {
    background: rgba(45, 212, 191, 0.08) !important;
    border-color: rgba(45, 212, 191, 0.2) !important;
    color: #2dd4bf !important;
}
.hero-tag:hover {
    background: rgba(13, 148, 136, 0.15) !important;
    border-color: var(--secondary-light) !important;
    transform: translateY(-1px) !important;
}
body.dark-theme-active .hero-tag:hover {
    background: rgba(45, 212, 191, 0.15) !important;
    border-color: #2dd4bf !important;
}

/* 4. Elegant Glassmorphic Cards Hover Glow */
.premium-card:hover {
    box-shadow: 0 20px 45px rgba(13, 148, 136, 0.12), 0 5px 15px rgba(217, 119, 6, 0.05) !important;
    border-color: rgba(13, 148, 136, 0.3) !important;
}
body.dark-theme-active .premium-card:hover {
    box-shadow: 0 20px 45px rgba(13, 148, 136, 0.18), 0 5px 15px rgba(251, 191, 36, 0.08) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}
.premium-card:hover .card-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%) !important;
    color: var(--bg-white) !important;
    transform: scale(1.1) rotate(4deg) !important;
    box-shadow: 0 8px 16px rgba(13, 148, 136, 0.2) !important;
}

/* 5. Smooth transition for theme switching */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* 6. Form Fields Focused Ambient Glow */
.floating-container.is-focused .floating-input-field {
    border-color: var(--secondary-light) !important;
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.15) !important;
}

/* ========================================================
   PREMIUM LUXURY DESIGN UPGRADES & INTERACTIVE EFFECTS
   ======================================================== */

/* 1. Enhanced Glassmorphic Header & Nav Indicators */
.header.scrolled {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.05), var(--shadow-md) !important;
}

body.dark-theme-active .header.scrolled {
    background: rgba(9, 13, 22, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), var(--shadow-lg) !important;
}

/* Nav Link Hover Micro-interaction */
.nav-link::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(to right, var(--secondary-light), var(--accent-light)) !important;
}

/* Scroll progress glow */
#scroll-progress {
    background: linear-gradient(90deg, var(--secondary-light) 0%, var(--accent-light) 50%, var(--secondary-light) 100%) !important;
    box-shadow: 0 0 12px var(--secondary-light), 0 0 4px var(--accent-light) !important;
    height: 5px !important;
}

/* Theme Toggle Rotate Hover */
.theme-toggle:hover {
    transform: rotate(45deg) scale(1.1) !important;
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.25) !important;
}

body.dark-theme-active .theme-toggle:hover {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35) !important;
}

/* 2. Global Heading Text Gradients & Glowing Dividers */
.section-title h2,
.section-title h3,
.page-hero h1,
.hero-title {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
    font-weight: 800 !important;
}

/* Page Hero text styles */
.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
    letter-spacing: -0.02em !important;
}

/* Glowing section dividers */
.section-title::after {
    background: linear-gradient(to right, var(--secondary-light) 0%, var(--accent-light) 50%, var(--secondary-light) 100%) !important;
    box-shadow: 0 0 8px rgba(13, 148, 136, 0.45) !important;
    width: 80px !important;
    height: 3px !important;
}

/* 3. Luxury Buttons Hover Pulse Glow */
.btn-primary:hover {
    animation: btn-glow-pulse 2s infinite alternate;
}

@keyframes btn-glow-pulse {
    0% {
        box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3), 0 0 0px rgba(13, 148, 136, 0.2);
    }
    100% {
        box-shadow: 0 4px 20px rgba(13, 148, 136, 0.5), 0 0 10px rgba(13, 148, 136, 0.4);
    }
}

.btn-accent:hover {
    animation: btn-glow-accent-pulse 2s infinite alternate;
}

@keyframes btn-glow-accent-pulse {
    0% {
        box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3), 0 0 0px rgba(217, 119, 6, 0.2);
    }
    100% {
        box-shadow: 0 4px 20px rgba(217, 119, 6, 0.5), 0 0 10px rgba(217, 119, 6, 0.4);
    }
}

/* 4. Ambient Page Aura Glow Effects */
.ambient-glow-wrapper {
    position: relative;
    overflow: hidden;
}

.ambient-glow-wrapper::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.ambient-glow-wrapper::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* 5. Interactive Gallery, Premium Cards, & Topper cards Hover Lifts */
.gallery-item:hover,
.premium-card:hover,
.topper-card:hover,
.spotlight-topper-card:hover,
.news-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(13, 148, 136, 0.25) !important;
}

body.dark-theme-active .gallery-item:hover,
body.dark-theme-active .premium-card:hover,
body.dark-theme-active .topper-card:hover,
body.dark-theme-active .spotlight-topper-card:hover,
body.dark-theme-active .news-card:hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15), 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Circular glowing frames for student toppers */
.spotlight-media,
.topper-image-wrapper {
    position: relative;
}

.spotlight-media::before,
.topper-image-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--secondary-light), var(--accent-light));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.spotlight-media:hover::before,
.topper-image-wrapper:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.5);
}

/* 6. Form input line animation focus states */
.floating-container .floating-input-field {
    transition: all 0.3s ease !important;
}

.floating-container.is-focused .floating-input-field {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body.dark-theme-active .floating-container.is-focused .floating-input-field {
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.05) !important;
}

/* 7. Premium Footer Column & Links styling */
.footer {
    position: relative;
    overflow: hidden;
}

/* Ambient bottom glow inside footer */
.footer::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.footer-link-item a {
    transition: transform 0.3s var(--ease-premium), color 0.3s ease !important;
}

.footer-link-item a:hover {
    color: var(--accent-light) !important;
    transform: translateX(6px) !important;
}

/* Social Icon Hover Expansions */
.social-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-premium), height 0.4s var(--ease-premium);
    z-index: -1;
}

.social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-btn:hover {
    color: #FFFFFF !important;
    border-color: var(--secondary) !important;
    transform: translateY(-4px) scale(1.05) !important;
}

/* Centered gold logo separation element */
.footer-divider-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 20px;
    position: relative;
    z-index: 2;
}

.footer-divider-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08) 50%, transparent);
}

.footer-divider-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transform: rotate(45deg);
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: var(--primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

body.dark-theme-active .footer-divider-diamond {
    background: #05080f;
}

.footer-divider-diamond svg {
    transform: rotate(-45deg);
    color: var(--accent-light);
}

/* Custom Themed Trailing Cursor Styles */
@media (min-width: 1025px) {
    body, a, button, select, input, textarea, [role="button"], .faq-header, .gallery-item {
        cursor: none !important;
    }

    .custom-cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--secondary-light);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 100000;
        transform: translate3d(-50%, -50%, 0);
        transition: width 0.2s ease, height 0.2s ease, background-color 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }

    body.dark-theme-active .custom-cursor-dot {
        background-color: var(--accent-light);
    }

    .custom-cursor-outline {
        width: 32px;
        height: 32px;
        border: 2px solid var(--secondary);
        background-color: rgba(15, 118, 110, 0.03);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 99999;
        transform: translate3d(-50%, -50%, 0);
        transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }

    body.dark-theme-active .custom-cursor-outline {
        border-color: var(--accent-light);
        background-color: rgba(245, 158, 11, 0.03);
    }

    /* Hovered States */
    .custom-cursor-outline.hovered {
        width: 48px;
        height: 48px;
        border-color: var(--accent-light) !important;
        background-color: rgba(245, 158, 11, 0.08) !important;
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
    }

    body.dark-theme-active .custom-cursor-outline.hovered {
        border-color: var(--secondary-light) !important;
        background-color: rgba(13, 148, 136, 0.08) !important;
        box-shadow: 0 0 15px rgba(13, 148, 136, 0.25);
    }

    .custom-cursor-dot.hovered {
        opacity: 0 !important;
    }

    /* Clicked State */
    .custom-cursor-outline.clicked {
        width: 24px;
        height: 24px;
        background-color: rgba(13, 148, 136, 0.2) !important;
        border-color: var(--secondary-light) !important;
    }

    body.dark-theme-active .custom-cursor-outline.clicked {
        background-color: rgba(245, 158, 11, 0.2) !important;
        border-color: var(--accent-light) !important;
    }
}

/* Header & Drawer Social Links Extensions */
.header-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-circle);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header.scrolled .header-social-btn {
    background: rgba(11, 30, 79, 0.05);
    color: #0B1E4F;
}

body.dark-theme-active .header-social-btn,
body.dark-theme-active .header.scrolled .header-social-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.header-social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-premium), height 0.4s var(--ease-premium);
    z-index: -1;
}

.header-social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.header-social-btn:hover {
    color: #FFFFFF !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

@media (max-width: 992px) {
    .header-social {
        display: none;
    }
}

/* Drawer Social Links */
.drawer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-premium) 0.45s;
}

.mobile-drawer.active .drawer-social {
    opacity: 1;
    transform: translateY(0);
}

.drawer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-circle);
    background: rgba(11, 30, 79, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(11, 30, 79, 0.05);
}

body.dark-theme-active .drawer-social-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.08);
}

.drawer-social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-premium), height 0.4s var(--ease-premium);
    z-index: -1;
}

.drawer-social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.drawer-social-btn:hover {
    color: #FFFFFF !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* Responsive adjustments for mid-sized desktop viewports to prevent collisions */
@media (min-width: 993px) and (max-width: 1200px) {
    .logo {
        font-size: 1.1rem !important;
        gap: 8px !important;
    }
    .logo-crest {
        width: 30px !important;
        height: 30px !important;
    }
    .nav-menu {
        gap: 12px !important;
    }
    .nav-link {
        font-size: 0.82rem !important;
    }
    .header-actions {
        gap: 8px !important;
    }
    .header-social-btn {
        width: 32px !important;
        height: 32px !important;
    }
    .theme-toggle {
        width: 32px !important;
        height: 32px !important;
    }
    .header-actions .btn-primary {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
    }
}

@media (min-width: 1201px) and (max-width: 1350px) {
    .logo {
        font-size: 1.2rem !important;
        gap: 10px !important;
    }
    .logo-crest {
        width: 34px !important;
        height: 34px !important;
    }
    .nav-menu {
        gap: 16px !important;
    }
    .nav-link {
        font-size: 0.88rem !important;
    }
    .header-actions {
        gap: 10px !important;
    }
    .header-social-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .theme-toggle {
        width: 36px !important;
        height: 36px !important;
    }
    .header-actions .btn-primary {
        padding: 10px 18px !important;
        font-size: 0.88rem !important;
    }
}





