/* ==========================================================================
   SDM Institute of Technology - Premium Editorial Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Design System
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-color: #F7F6F2;
    --text-primary: #151515;
    --text-secondary: #475569; /* Refined from #6B6B6B for superior text contrast & readability */
    --border-color: rgba(0, 0, 0, 0.12);
    --white: #FFFFFF;
    --card-surface: #FFFFFF;
    --card-border: rgba(0, 0, 0, 0.08);
    --input-bg: #FFFFFF;
    --input-border: #CBD5E1;
    --input-text: #0F172A;
    color-scheme: light;
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    
    /* Layout */
    --container-max: 1500px;
    --padding-desktop: 60px;
    --padding-mobile: 24px;
}

[data-theme="dark"] {
    --bg-color: #0b1120;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.12);
    --white: #1e293b;
    --card-surface: #1e293b;
    --card-border: rgba(255, 255, 255, 0.12);
    --input-bg: rgba(15, 23, 42, 0.85);
    --input-border: rgba(255, 255, 255, 0.18);
    --input-text: #FFFFFF;
    color-scheme: dark;
}

/* Dark Mode Component Overrides */
[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

[data-theme="dark"] .page-hero,
[data-theme="dark"] .philosophy-section,
[data-theme="dark"] .programs-catalog-section,
[data-theme="dark"] .programs-section,
[data-theme="dark"] .milestones-section,
[data-theme="dark"] .fees-section,
[data-theme="dark"] .scholarship-section,
[data-theme="dark"] .facilities-section,
[data-theme="dark"] .campus-overview-section,
[data-theme="dark"] .contact-page-section,
[data-theme="dark"] .president-spotlight,
[data-theme="dark"] .principal-section,
[data-theme="dark"] .notice-board,
[data-theme="dark"] .founding-institution,
[data-theme="dark"] .bento-campus-section {
    background-color: var(--bg-color) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .program-card,
[data-theme="dark"] .milestone-card,
[data-theme="dark"] .program-row,
[data-theme="dark"] .facility-card,
[data-theme="dark"] .catalog-card,
[data-theme="dark"] .ledger-item,
[data-theme="dark"] .spotlight-wrapper,
[data-theme="dark"] .spotlight-quote-card,
[data-theme="dark"] .notice-column,
[data-theme="dark"] .notice-card,
[data-theme="dark"] .bento-cell,
[data-theme="dark"] .year-accordion-box,
[data-theme="dark"] .pub-paper-card {
    background-color: var(--card-surface) !important;
    border-color: var(--card-border) !important;
    color: var(--text-primary) !important;
}

/* Ensure inline background white elements adapt in dark mode */
[data-theme="dark"] [style*="background: var(--white)"],
[data-theme="dark"] [style*="background:var(--white)"],
[data-theme="dark"] [style*="background-color: var(--white)"],
[data-theme="dark"] [style*="background-color:var(--white)"] {
    background: var(--card-surface) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .glass-panel {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .program-card h3,
[data-theme="dark"] .milestone-card h3,
[data-theme="dark"] .card-content h3,
[data-theme="dark"] .prog-title,
[data-theme="dark"] .editorial-heading,
[data-theme="dark"] .section-heading,
[data-theme="dark"] .ledger-content h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .program-card p,
[data-theme="dark"] .milestone-card p,
[data-theme="dark"] .card-content p,
[data-theme="dark"] .prog-desc,
[data-theme="dark"] .section-desc,
[data-theme="dark"] .hero-desc,
[data-theme="dark"] .ledger-content p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--input-text) !important;
}

[data-theme="dark"] table {
    border-color: var(--border-color);
}
[data-theme="dark"] th {
    background-color: rgba(30, 41, 59, 0.8) !important;
    color: #f8fafc !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] td {
    border-color: var(--border-color) !important;
    color: #e2e8f0 !important;
}

/* Modern Theme Switcher & Nav Buttons in style.css */
.site-theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    outline: none;
    flex-shrink: 0;
}
.site-theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px) rotate(15deg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.site-theme-toggle-btn .sun-icon {
    display: block;
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
    transition: transform 0.3s ease;
}
.site-theme-toggle-btn .moon-icon {
    display: none;
    color: #38bdf8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
    transition: transform 0.3s ease;
}

[data-theme="dark"] .site-theme-toggle-btn {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}
[data-theme="dark"] .site-theme-toggle-btn .sun-icon { display: none; }
[data-theme="dark"] .site-theme-toggle-btn .moon-icon { display: block; }

.nav-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1;
    cursor: pointer;
}
.nav-apply-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}
.nav-apply-btn:active {
    transform: translateY(0);
}
.nav-apply-btn .btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-weight: 800;
}
.nav-apply-btn:hover .btn-arrow {
    transform: translateX(3px);
}
.theme-switcher-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.theme-switcher-pill .sun-icon {
    display: none;
    color: #f59e0b;
}
.theme-switcher-pill .moon-icon {
    display: inline-flex;
    color: #38bdf8;
}

[data-theme="dark"] .theme-switcher-pill .sun-icon {
    display: inline-flex;
}
[data-theme="dark"] .theme-switcher-pill .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-switcher-pill {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(56, 189, 248, 0.35);
}

@media (max-width: 900px) {
    .theme-switcher-pill .theme-label-text {
        display: none;
    }
    .theme-switcher-pill {
        padding: 7px 10px;
    }
}


/* --------------------------------------------------------------------------
   Global Glassmorphism Utility Classes
   -------------------------------------------------------------------------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.glass-panel-dark {
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
}

main {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100%;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. Layout & Grid System
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.thin-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.editorial-heading {
    /* Fluid typography scaling from 40px on mobile to 80px on desktop */
    font-size: clamp(40px, 6vw, 80px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-family: var(--font-serif);
    margin-bottom: 40px;
    font-weight: 400;
}

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Buttons & Links
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--text-primary);
    padding: 16px 36px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline,
.btn-secondary {
    display: inline-block;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-outline:hover,
.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Ensure outline buttons in dark/hero sections stay bright and readable */
.hero .btn-outline,
.page-hero .btn-outline,
.hero-section .btn-outline,
.vm-attachment-section .btn-outline,
.site-footer .btn-outline,
[style*="background: var(--text-primary)"] .btn-outline,
[style*="background-color: var(--text-primary)"] .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.hero-section .btn-outline:hover,
.vm-attachment-section .btn-outline:hover,
.site-footer .btn-outline:hover,
[style*="background: var(--text-primary)"] .btn-outline:hover,
[style*="background-color: var(--text-primary)"] .btn-outline:hover {
    background: #ffffff;
    color: var(--text-primary);
    border-color: #ffffff;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 24px;
    transition: opacity 0.3s ease;
}

.link-arrow:hover {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header-master {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.site-header-master > * {
    pointer-events: auto;
}

.site-header {
    position: relative;
    width: 100%;
    padding: 16px var(--padding-desktop);
    z-index: 100;
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

/* Scrolled state applied via JS */
.site-header.scrolled {
    background-color: rgba(21, 21, 21, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px var(--padding-desktop);
    border-bottom: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Ultra-Modern Logo Lockup (High Visibility Edit)
   ========================================================================== */

/* Main Container - Logo Only Brand */
.brand-logo-ultra {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 50;
    transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   Logo Only Crest Box
   -------------------------------------------------------------------------- */
.logo-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-icon-box img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
    filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

/* Premium Hover Interactions */
.brand-logo-ultra:hover .logo-icon-box {
    transform: translateY(-1px);
}

.brand-logo-ultra:hover .logo-icon-box img {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 4px 18px rgba(56, 189, 248, 0.6));
}

/* Smooth Shrink Effect on Scroll */
.site-header.scrolled .logo-icon-box {
    height: 42px;
}

.site-header.scrolled .logo-icon-box img {
    height: 40px;
}

.site-header.scrolled .text-secondary-brand {
    font-size: 9px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .site-header {
        padding: 10px 14px !important;
    }
    .site-header.scrolled {
        padding: 8px 14px !important;
    }
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .brand-logo-ultra {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 1 auto !important;
        max-width: calc(100% - 90px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .logo-icon-box {
        height: 32px !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    .logo-icon-box img {
        height: 28px !important;
        max-width: 160px !important;
        width: auto !important;
        object-fit: contain !important;
    }
    .header-right-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
    .site-theme-toggle-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }
    .site-theme-toggle-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    .mobile-menu-toggle {
        display: block !important;
        width: 32px !important;
        height: 32px !important;
        padding: 4px !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 380px) {
    .site-header {
        padding: 8px 10px !important;
    }
    .brand-logo-ultra {
        max-width: calc(100% - 78px) !important;
    }
    .logo-icon-box img {
        height: 24px !important;
        max-width: 135px !important;
    }
    .header-right-actions {
        gap: 6px !important;
    }
    .site-theme-toggle-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
    .site-theme-toggle-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
    .mobile-menu-toggle {
        width: 30px !important;
        height: 30px !important;
    }
}

@media (max-width: 480px) {
    .text-secondary-brand {
        display: none; 
    }
    .text-primary-brand {
        margin-bottom: 0;
    }
}
.desktop-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 1.25vw, 20px);
}
.desktop-nav a {
    margin: 0;
    white-space: nowrap;
    font-size: clamp(11.5px, 0.9vw, 13px);
	color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.desktop-nav a:hover {
    opacity: 1;
    color: #38bdf8;
}

/* --------------------------------------------------------------------------
   7. Hero Section (Video Background)
   -------------------------------------------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--padding-desktop);
    background-color: #151515;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Adjust opacity for text readability */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
}

/* ==========================================================================
   Hero Typography Fix
   ========================================================================== */

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(48px, 6vw, 90px); /* Massive, scalable sizing */
    font-weight: 800; /* Extra bold for maximum impact */
    line-height: 1.05; /* Extremely tight line spacing */
    letter-spacing: -0.03em; /* Pulls the letters slightly closer together */
    margin-bottom: 24px;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Helps it lift off the building */
}

.hero-desc {
    font-family: var(--font-sans);
    font-size: clamp(16px, 1.5vw, 20px);
    color: rgba(255, 255, 255, 0.85); /* Slightly muted white */
    max-width: 600px; /* Prevents text from spanning too wide */
    line-height: 1.6;
    margin-bottom: 40px; /* Perfect spacing before the buttons */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   8. Scroll Indicator Animation
   -------------------------------------------------------------------------- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: var(--padding-desktop);
    z-index: 3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    opacity: 0.8;
    pointer-events: none;
    animation: editorialBounce 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes editorialBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --------------------------------------------------------------------------
   9. Sections (Intro, Stats, Programs)
   -------------------------------------------------------------------------- */
.intro-statement {
    padding: 160px 0 80px;
    display: flex;
}

.intro-meta {
    max-width: 400px;
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 18px;
}

.statistics {
    padding: 80px 0 160px;
}

.stat-value {
    display: block;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1;
    margin-bottom: 12px;
    font-family: var(--font-sans);
    font-weight: 300;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 600;
}

.programs-list {
    padding-bottom: 160px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    padding: 48px 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateX(10px);
}

.service-card:hover .service-arrow {
    transform: translateX(10px);
}

.service-meta {
    display: flex;
    gap: 40px;
    align-items: baseline;
}

.service-num {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.service-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.service-content {
    display: flex;
    gap: 60px;
    max-width: 450px;
    align-items: center;
    color: var(--text-secondary);
}

.service-arrow {
    font-size: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .service-content { gap: 30px; max-width: 350px; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--padding-mobile); }
    
    .site-header { padding: 20px var(--padding-mobile); }
    .site-header.scrolled { padding: 16px var(--padding-mobile); }
    
    .desktop-nav { display: none; /* Hide on mobile - Requires Hamburger menu setup */ }
    
    .hero { padding: 0 var(--padding-mobile); }
    .scroll-indicator { left: var(--padding-mobile); bottom: 32px; }
    
    .intro-statement { flex-direction: column; padding: 100px 0 60px; }
    .intro-meta { margin-left: 0; margin-top: 40px; }
    
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
    .statistics { padding: 60px 0 100px; }
    
    .service-card {
        flex-direction: column;
        gap: 24px;
        padding: 32px 0;
    }
    
    .service-card:hover { transform: none; }
    .service-card:hover .service-arrow { transform: none; }
    
    .service-meta { gap: 20px; }
    .service-content { max-width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; gap: 40px; }
}

/* --------------------------------------------------------------------------
   11. Reduced Motion Preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* --------------------------------------------------------------------------
   Floating Hero Attachment (Overlay)
   -------------------------------------------------------------------------- */
.floating-attachment {
    position: absolute;
    right: var(--padding-desktop);
    bottom: 60px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.08); /* Transparent base */
    backdrop-filter: blur(16px); /* Premium glass blur */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    max-width: 320px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.floating-attachment:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.attachment-indicator {
    width: 8px;
    height: 8px;
    background-color: #ffffff; /* Clean white dot */
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.attachment-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attachment-text strong {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.attachment-text span {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.attachment-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.floating-attachment:hover .attachment-arrow {
    transform: translateX(4px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Hide on smaller screens to preserve the editorial composition */
@media (max-width: 1024px) {
    .floating-attachment {
        display: none; 
    }
}
/* --------------------------------------------------------------------------
   Hero Statistics Bar (Overlay Attachment)
   -------------------------------------------------------------------------- */
.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: rgba(21, 21, 21, 0.35); /* Subtle darkening */
    backdrop-filter: blur(16px); /* Premium glass blur effect */
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10; 
}

.hero-stat-item {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Thin editorial dividers */
}

.hero-stat-item:last-child {
    border-right: none;
}

.hero-stat-item .stat-num {
    font-family: var(--font-serif);
    font-size: clamp(28px, 2.5vw, 40px);
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 400;
}

.hero-stat-item .stat-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}
/* --------------------------------------------------------------------------
   Hero Actions Button Layout
   -------------------------------------------------------------------------- */
.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap; /* Ensures buttons wrap to the next line on smaller screens */
    margin-top: 40px;
}

/* Mobile adjustments for a clean stack */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch; /* Makes buttons full-width on mobile */
        gap: 12px;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        text-align: center;
        width: 100%;
    }
}
/* --------------------------------------------------------------------------
   Responsive Rules for Stats Bar
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .hero-stat-item {
        padding: 24px 20px;
    }
}

@media (max-width: 900px) {
    .hero-stats-bar {
        flex-wrap: wrap;
    }
    .hero-stat-item {
        flex: 1 1 33.33%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    /* Remove right border on every 3rd item */
    .hero-stat-item:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    /* Hide on mobile to prevent blocking the video and hero text entirely */
    .hero-stats-bar {
        display: none; 
    }
}

/* --------------------------------------------------------------------------
   Notice Board 3-Column Section
   -------------------------------------------------------------------------- */
.notice-board {
    padding: 100px 0;
    background-color: var(--white);
}

.notice-header-full {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.notice-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.column-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Container with fading top/bottom edges */
.notice-list-container {
    height: 300px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* The Animated Tracks (Slightly different speeds for an organic feel) */
.notice-track {
    display: flex;
    flex-direction: column;
}
.track-speed-1 { animation: scrollVertical 22s linear infinite; }
.track-speed-2 { animation: scrollVertical 26s linear infinite; }
.track-speed-3 { animation: scrollVertical 20s linear infinite; }

/* Pause animation on hover */
.notice-list-container:hover .notice-track {
    animation-play-state: paused;
}

.notice-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.notice-date {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.notice-headline {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.3s ease;
    cursor: pointer;
}

.notice-item:hover .notice-headline {
    color: var(--text-secondary); /* Dim slightly on hover */
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } 
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .notice-grid-3 {
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .notice-header-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .notice-grid-3 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .notice-list-container {
        height: 250px;
    }
}

/* --------------------------------------------------------------------------
   Why Us / Advantage Section (Dark Theme)
   -------------------------------------------------------------------------- */
.why-us {
    padding: 160px 0;
    background-color: var(--text-primary); /* Deep black/gray background */
    color: var(--white);
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start; /* Crucial for sticky behavior */
}

.why-content .editorial-heading {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 32px;
}

/* Retain white heading only when why-us section has dark background */
.why-us:not([style*="background: var(--bg-color)"]):not([style*="background: #"]):not([style*="background-color: var(--bg-color)"]) .why-content .editorial-heading,
.why-us.dark-theme .why-content .editorial-heading {
    color: var(--white);
}

.section-desc {
    font-size: clamp(18px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 80px;
    max-width: 500px;
    line-height: 1.6;
}

/* Premium Numbered List */
.advantage-list {
    display: flex;
    flex-direction: column;
}

.advantage-item {
    display: flex;
    gap: 40px;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.advantage-item:hover {
    transform: translateX(12px);
}

.adv-num {
    font-family: var(--font-serif);
    font-size: clamp(32px, 3vw, 48px);
    color: rgba(255, 255, 255, 0.3);
    line-height: 0.8;
}

.adv-text h3 {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.adv-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
}

/* Sticky Visual Image */
.sticky-visual {
    position: sticky;
    top: 140px; /* Keeps it right below the header when scrolling */
    height: calc(100vh - 180px);
    width: 100%;
    overflow: hidden;
    /* Optional: subtle border radius for a refined look */
    border-radius: 2px; 
}

.sticky-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-visual:hover img {
    transform: scale(1.04);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    
    .sticky-visual {
        position: relative; /* Disables sticky on tablet/mobile */
        top: 0;
        height: 60vh;
    }
    
    .advantage-item {
        gap: 24px;
        padding: 32px 0;
    }
    
    .why-us {
        padding: 100px 0;
    }
}

/* --------------------------------------------------------------------------
   Founding Institution Section (Asymmetrical Layout)
   -------------------------------------------------------------------------- */
.founding-institution {
    padding: 160px 0;
    background-color: var(--bg-color); /* Returns to the light background */
}

.layout-asymmetric {
    display: grid;
    grid-template-columns: 5fr 4fr; /* The image takes up slightly more space */
    gap: 120px;
    align-items: center;
}

.founding-visual {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.founding-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5; /* Premium vertical portrait ratio */
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.founding-visual:hover img {
    transform: scale(1.03);
}

.founding-content .editorial-heading {
    margin-top: 24px;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.founding-content .section-desc {
    color: var(--text-secondary);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 450px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .layout-asymmetric {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .founding-content {
        order: -1; /* On mobile, move the text above the image */
    }
    
    .founding-visual img {
        aspect-ratio: 16/9; /* Switch to landscape on mobile to save vertical space */
    }
	}
	/* --------------------------------------------------------------------------
   Legacy Badge Overlay (Glassmorphism)
   -------------------------------------------------------------------------- */
.legacy-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(21, 21, 21, 0.65); /* Dark frosted glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px; /* Smooth rounded corners */
    padding: 24px 32px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 5;
    pointer-events: none; /* Prevents it from interfering with image hover */
}

.legacy-number {
    font-family: var(--font-serif);
    font-size: clamp(48px, 5vw, 64px); /* Scales cleanly on different devices */
    line-height: 1;
    margin-bottom: 8px;
    color: var(--white); /* Premium white (avoids clashing with brand colors) */
}

.legacy-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    opacity: 0.85;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .legacy-badge {
        bottom: 16px;
        right: 16px;
        padding: 16px 24px;
    }
}

/* --------------------------------------------------------------------------
   Vision, Mission & Core Values Section
   -------------------------------------------------------------------------- */
.vision-mission {
    padding: 160px 0;
    background-color: var(--white); /* Crisp white break from the off-white above */
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.layout-vm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
}

/* Vision */
.vision-block .editorial-heading {
    margin-top: 24px;
    font-size: clamp(36px, 4.5vw, 64px); /* Scales massively on large screens */
    line-height: 1.05;
    max-width: 90%;
}

/* Mission */
.mission-block {
    margin-bottom: 80px;
}

.mission-block .section-desc {
    margin-top: 24px;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

/* Core Values Editorial List */
.values-block .eyebrow {
    display: block;
    margin-bottom: 32px;
}

.editorial-list {
    list-style: none;
    border-top: 1px solid var(--border-color);
}

.editorial-list li {
    display: flex;
    align-items: baseline;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    cursor: default;
}

.editorial-list li:hover {
    padding-left: 16px;
    color: var(--text-secondary);
}

.list-num {
    font-family: var(--font-serif);
    font-size: 24px;
    color: rgba(0, 0, 0, 0.2); /* Subtle numbering */
}

.list-text {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .layout-vm {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    
    .vision-block .editorial-heading {
        max-width: 100%;
    }
    
    .vision-mission {
        padding: 100px 0;
    }
}
/* --------------------------------------------------------------------------
   Vision & Mission Attachment (Parallax Overlay Cards)
   -------------------------------------------------------------------------- */
.vm-attachment-section {
    position: relative;
    padding: 140px 0;
    
    /* Parallax Background Setup */
    background-color: #0b1116; /* Deep dark blue/black fallback */
    background-image: url('../images/abstract-mesh-bg.webp'); /* Add a subtle dark texture/mesh image here */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates the attachment/parallax effect */
}

.vm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 20, 0.7); /* Darkens the background image */
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* The White Cards */
.vm-card {
    background: var(--white);
    border-radius: 8px; /* Subtle rounded corners */
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Internal Card Layout */
.vm-content {
    position: relative;
    z-index: 2;
}

/* Circular Icons */
.vm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    margin-bottom: 24px;
    position: relative;
}

/* Double circle effect from the image */
.vm-icon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid rgba(21, 21, 21, 0.2);
    border-radius: 50%;
}

/* Pill Labels */
.vm-label {
    display: inline-block;
    background-color: #0b1623; /* Dark navy pill background */
    color: #4ade80; /* Vibrant green text from reference */
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    width: max-content;
}

/* Clear tag styling for lab and department cards */
.vm-card .vm-label[style*="display: block"],
.vm-card .vm-label[style*="color: #0284c7"] {
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
}

/* Card Text */
.vm-text {
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Large Faded Watermark Numbers (01, 02) */
.vm-watermark {
    position: absolute;
    bottom: -15px;
    right: 15px;
    font-family: var(--font-serif);
    font-size: 160px;
    color: #F0F0F0; /* Very light gray */
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}
/* Update Grid to 3 Columns */
.vm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; /* Slightly tighter gap to fit 3 cards elegantly */
}

/* Core Values List Styling */
.vm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.vm-list li {
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
}

.vm-list li:last-child {
    border-bottom: none;
}

/* Custom minimal bullet point */
.vm-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4ade80; /* Matches your reference green */
    border-radius: 50%;
    margin-right: 12px;
}

/* Update Responsive Breakpoints */
@media (max-width: 1200px) {
    .vm-grid-3 {
        grid-template-columns: repeat(2, 1fr); /* Drops to 2 columns on tablets */
    }
    
    /* Makes the 3rd card center itself on the next row */
    .vm-card:nth-child(3) {
        grid-column: 1 / -1; 
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .vm-grid-3 {
        grid-template-columns: 1fr; /* Stacks to 1 column on mobile */
    }
    
    .vm-card:nth-child(3) {
        max-width: 100%;
    }
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .vm-card {
        padding: 40px 32px;
    }
    
    .vm-watermark {
        font-size: 120px;
        bottom: -5px;
        right: 10px;
    }
}

/* --------------------------------------------------------------------------
   Campus Life Section (Asymmetrical Gallery)
   -------------------------------------------------------------------------- */
.campus-life {
    padding: 160px 0;
    background-color: var(--bg-color); /* Matches the main off-white background */
    border-top: 1px solid var(--border-color);
}

.campus-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    gap: 60px;
}

.campus-header .header-action p {
    color: var(--text-secondary);
    font-size: clamp(16px, 1.5vw, 18px);
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Asymmetrical Grid Layout */
.campus-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    gap: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

/* Varying Image Spans */
.item-large {
    grid-column: span 7;
    grid-row: span 1;
}

.item-portrait {
    grid-column: span 5;
    grid-row: span 2;
}

.item-square {
    grid-column: span 7;
    grid-row: span 1;
}

/* Image Styling & Zoom Effect */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Hover Overlay & Captions */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-caption {
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .item-caption {
    transform: translateY(0);
}

.item-caption h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
}

.item-caption p {
    font-size: 14px;
    opacity: 0.8;
    max-width: 90%;
    line-height: 1.5;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .campus-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .campus-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 350px;
    }
    
    .item-large, .item-square {
        grid-column: span 2;
    }
    
    .item-portrait {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .campus-life {
        padding: 100px 0;
    }
    
    .campus-gallery {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .gallery-item {
        height: 350px; /* Fixed height for mobile stacking */
    }
    
    /* Make captions always visible on touch devices */
    .item-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
        padding: 24px;
    }
    
    .item-caption {
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Pre-Footer CTA Section
   -------------------------------------------------------------------------- */
/* =========================================================================
   Pre-Footer Conversion CTA (Signature Editorial Theme)
   ========================================================================= */
.pre-footer-cta {
    padding: 140px 0 150px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.cta-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.pre-footer-cta .editorial-heading {
    font-family: var(--font-serif);
    font-size: clamp(52px, 6.8vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0 0 44px;
    text-align: center;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-pill-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #151515;
    color: #ffffff !important;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.cta-pill-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-pill-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #151515 !important;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
}

.cta-pill-secondary:hover {
    border-color: #151515;
    background: #fafafa;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .pre-footer-cta {
        padding: 90px 0 100px;
    }
    
    .pre-footer-cta .editorial-heading {
        margin-bottom: 32px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 12px;
    }

    .cta-pill-primary,
    .cta-pill-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
}

/* --------------------------------------------------------------------------
   Main Editorial Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 120px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 24px;
}

.footer-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease;
}

.footer-logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(56, 189, 248, 0.5));
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-email a {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 24px;
    font-weight: 700;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-topbar-strip a {
    transition: color 0.2s ease;
}

.footer-topbar-strip a:hover {
    color: #38bdf8 !important;
}

.footer-address {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.legal-links {
    display: flex;
    gap: 32px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--white);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .pre-footer-cta {
        padding: 100px 0;
    }
}
/* Update Footer Grid for 4 Columns */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr; /* Brand, Nav, Location, Connect */
    gap: 60px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Subtle styling for social links */
.social-links-list a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links-list a:hover {
    transform: translateX(4px);
    color: #4ade80 !instances; /* Optional highlight color on hover */
}
/* --------------------------------------------------------------------------
   Footer Additions: Social Pills & Visitor Counter
   -------------------------------------------------------------------------- */
.footer-social-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-pill:hover {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--white);
}

/* Visitor Counter Box */
.visitor-counter-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 6px;
    display: inline-block;
}

.counter-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.counter-number {
    font-family: var(--font-serif);
    font-size: 28px;
    color: #4ade80; /* Subtle digital accent */
    letter-spacing: 0.05em;
}

/* 3-Column Footer Grid Layout */
.footer-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Brand, Navigation, Location */
    gap: 60px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Footer Bottom Bar Layout Adjustments */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-visitor-tag {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.footer-visitor-tag strong {
    color: #4ade80; /* Subtle digital green accent */
    font-weight: 500;
    margin-left: 4px;
}

/* Responsive adjustments for footer grid */
@media (max-width: 900px) {
    .footer-grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* 4-Column Footer Grid Layout (Brand, Nav 1, Nav 2, Location) */
.footer-grid-4 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Social Icon Buttons */
.footer-social-icons {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Responsive adjustments for 4-column footer */
@media (max-width: 1024px) {
    .footer-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid-4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
/* --------------------------------------------------------------------------
   Programs & Departments Interactive Section
   -------------------------------------------------------------------------- */
.programs-section {
    padding: 160px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.programs-header {
    margin-bottom: 80px;
}

.programs-header .editorial-heading {
    margin-top: 16px;
}

/* Individual Program Row */
.programs-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.program-row {
    display: grid;
    grid-template-columns: 120px 2fr 2fr;
    align-items: center;
    padding: 40px 24px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Animation Effects */
.program-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.program-row:hover::before {
    transform: translateY(0);
}

.program-row > * {
    position: relative;
    z-index: 2;
}

.program-row:hover {
    padding-left: 36px; /* Smooth slide effect on hover */
    padding-right: 36px;
}

/* Metadata (Number & Duration) */
.prog-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prog-num {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-secondary);
}

.prog-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Department Title */
.prog-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.program-row:hover .prog-title {
    color: #15803d; /* Subtle dark green accent matching the brand */
}

/* Action Area (Description & Arrow) */
.prog-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.prog-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0.8;
}

.arrow-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    flex-shrink: 0;
}

.program-row:hover .arrow-icon {
    transform: translateX(8px);
    color: #15803d;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments for Programs List
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .program-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 32px 16px;
    }
    
    .program-row:hover {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .prog-meta {
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }
    
    .prog-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .arrow-icon {
        align-self: flex-end;
    }
}
/* --------------------------------------------------------------------------
   Interactive Animated Programs Section with Graphics
   -------------------------------------------------------------------------- */
.programs-section {
    padding: 160px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.programs-header {
    margin-bottom: 60px;
}

.programs-header .editorial-heading {
    margin-top: 16px;
}

/* Split Layout for List and Graphic Preview */
.programs-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: center;
}

.programs-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

/* Program Row Animation Styles */
.program-row {
    display: grid;
    grid-template-columns: 100px 1.5fr 2fr;
    align-items: center;
    padding: 32px 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.program-row:hover::before {
    transform: translateY(0);
}

.program-row > * {
    position: relative;
    z-index: 2;
}

.program-row:hover {
    padding-left: 24px;
    padding-right: 24px;
}

.prog-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prog-num {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text-secondary);
}

.prog-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    opacity: 0.7;
}

.prog-title {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.program-row:hover .prog-title {
    color: #15803d; /* Accent green */
}

.prog-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.prog-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    opacity: 0.8;
}

.arrow-icon {
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    flex-shrink: 0;
}

.program-row:hover .arrow-icon {
    transform: translateX(6px);
    color: #15803d;
}

/* Floating Graphic Preview Window */
.programs-preview-window {
    position: sticky;
    top: 120px;
    width: 100%;
    height: 520px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.preview-image-track {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.6s ease-in-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.programs-preview-window:hover .preview-image-track {
    transform: scale(1.03); /* Subtle zoom effect */
}

.preview-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    z-index: 1;
}

.preview-badge {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Responsive Handling */
@media (max-width: 1024px) {
    .programs-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .programs-preview-window {
        position: relative;
        top: 0;
        height: 350px; /* Hide sticky and switch to static block on tablets/mobile */
    }
    
    .program-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 12px;
    }
    
    .prog-meta {
        flex-direction: row;
        gap: 16px;
    }
    
    .prog-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/* --------------------------------------------------------------------------
   Programs Page Specific Styles
   -------------------------------------------------------------------------- */
.page-hero {
    padding: 180px 0 100px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.hero-desc {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: 24px;
    line-height: 1.6;
}

.programs-catalog-section {
    padding: 120px 0 160px;
    background-color: var(--bg-color);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.program-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-num {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #15803d;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero {
        padding: 140px 0 60px;
    }
    
    .programs-catalog-section {
        padding: 80px 0;
    }
}

/* --------------------------------------------------------------------------
   Refined Editorial Programs Page Styles
   -------------------------------------------------------------------------- */
.page-hero {
    padding: 160px 0 80px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.hero-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
}

.hero-header-content .editorial-heading {
    margin-top: 16px;
    font-size: clamp(36px, 5vw, 64px);
}

.hero-desc {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--text-secondary);
    max-width: 450px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.programs-catalog-section {
    padding: 100px 0 160px;
    background-color: var(--bg-color);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 0, 0, 0.2);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f1f1f1;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .card-image-wrapper img {
    transform: scale(1.04);
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-num {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    opacity: 0.7;
}

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
    opacity: 0.85;
}

.card-link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card-link:hover {
    color: #15803d;
    transform: translateX(4px);
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .hero-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero {
        padding: 120px 0 50px;
    }
    
    .programs-catalog-section {
        padding: 60px 0 100px;
    }
}
/* --------------------------------------------------------------------------
   Hero Section Background & Contrast Styling
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background-color: var(--text-primary); /* Deep editorial dark background */
    color: var(--white);
    overflow: hidden;
}

/* Optional: Add a subtle background ambient glow or pattern overlay */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 30%, rgba(21, 128, 61, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Ensure text colors adapt cleanly inside the dark hero section */
.page-hero .eyebrow {
    color: #4ade80; /* Soft accent green */
    letter-spacing: 0.15em;
}

.page-hero .editorial-heading {
    color: var(--white);
}

.page-hero .hero-desc {
    color: rgba(255, 255, 255, 0.75);
}
/* --------------------------------------------------------------------------
   Hero Section with Background Image & Dark Editorial Overlay
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background-image: url('../images/hero-programs-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    overflow: hidden;
}

/* Dark gradient overlay for text legibility */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 12, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

/* Ensure content sits above the overlay */
.page-hero .container {
    position: relative;
    z-index: 2;
}

/* High-contrast text styling for image background */
.page-hero .eyebrow {
    color: #4ade80; /* Soft accent green */
    letter-spacing: 0.15em;
}

.page-hero .editorial-heading {
    color: var(--white);
}

.page-hero .hero-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Mobile Hamburger Menu & Overlay Styles
   -------------------------------------------------------------------------- */

/* Hide mobile elements on desktop by default */
.mobile-menu-toggle,
.mobile-nav {
    display: none;
}

/* Mobile & Tablet Breakpoint */
@media (max-width: 991px) {
    /* Hide Desktop Links & Button */
    .desktop-nav,
    .desktop-btn {
        display: none !important;
    }

    /* Hamburger Button Setup */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001; /* Keeps button above the menu */
        padding: 5px;
    }

    /* Hamburger Bars */
    .mobile-menu-toggle .bar {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px auto;
        background-color: var(--white); /* White to match the logo */
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Full Screen Mobile Navigation Drawer */
    .mobile-nav {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #090e1a !important;
        background: linear-gradient(180deg, rgba(9, 14, 26, 0.99) 0%, rgba(5, 8, 17, 1) 100%) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        opacity: 0 !important;
        pointer-events: none !important;
        box-sizing: border-box !important;
    }

    [data-theme="light"] .mobile-nav {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 245, 249, 1) 100%) !important;
    }

    /* Active State (Triggered by JS) slides the menu in smoothly */
    .mobile-nav.is-active {
        display: flex !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Drawer Sticky Topbar */
    .mobile-nav-topbar {
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        background: rgba(9, 14, 26, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    [data-theme="light"] .mobile-nav-topbar {
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .mobile-drawer-logo {
        height: 38px;
        width: auto;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }
    [data-theme="light"] .mobile-drawer-logo {
        filter: none;
    }

    .mobile-nav-top-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-nav-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
        cursor: pointer;
        padding: 0;
        transition: all 0.25s ease;
    }
    [data-theme="light"] .mobile-nav-close-btn {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.12);
        color: #0f172a;
    }
    .mobile-nav-close-btn:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: #ef4444;
        color: #ef4444;
        transform: rotate(90deg);
    }

    /* Drawer Scrollable Body */
    .mobile-nav-body {
        padding: 20px 20px 40px;
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    /* Action CTAs: Apply Now & e-Payments */
    .mobile-cta-box {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-cta-apply {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 18px;
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: #ffffff !important;
        font-family: var(--font-sans);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        border-radius: 10px;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    }

    .mobile-cta-epay {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 18px;
        background: rgba(56, 189, 248, 0.12);
        border: 1px solid rgba(56, 189, 248, 0.35);
        color: #38bdf8 !important;
        font-family: var(--font-sans);
        font-size: 13px;
        font-weight: 700;
        border-radius: 10px;
        text-decoration: none;
    }
    [data-theme="light"] .mobile-cta-epay {
        background: rgba(2, 132, 199, 0.08);
        border-color: rgba(2, 132, 199, 0.3);
        color: #0284c7 !important;
    }

    /* Navigation Groups */
    .mobile-nav-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-group-title {
        font-family: var(--font-sans);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #38bdf8;
        padding: 0 8px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 6px;
    }
    [data-theme="light"] .mobile-group-title {
        color: #0284c7;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Links in Primary Nav */
    .mobile-nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 11px 12px !important;
        font-family: var(--font-sans) !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #f1f5f9 !important;
        text-decoration: none !important;
        letter-spacing: normal !important;
        border-radius: 8px !important;
        transition: background 0.2s ease, color 0.2s ease !important;
    }
    [data-theme="light"] .mobile-nav-link {
        color: #0f172a !important;
    }
    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #38bdf8 !important;
    }
    [data-theme="light"] .mobile-nav-link:hover,
    [data-theme="light"] .mobile-nav-link:active {
        background: rgba(0, 0, 0, 0.05) !important;
        color: #0284c7 !important;
    }

    .nav-chevron {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.35);
        font-weight: 400;
    }
    [data-theme="light"] .nav-chevron {
        color: rgba(0, 0, 0, 0.3);
    }

    /* 2-Column Sublinks Grid for Portals */
    .mobile-sublinks-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .mobile-sublink {
        display: flex !important;
        align-items: center !important;
        padding: 8px 10px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
        font-family: var(--font-sans) !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        color: #cbd5e1 !important;
        text-decoration: none !important;
        letter-spacing: normal !important;
        line-height: 1.3 !important;
        transition: all 0.2s ease !important;
    }
    [data-theme="light"] .mobile-sublink {
        background: rgba(0, 0, 0, 0.02) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: #334155 !important;
    }
    .mobile-sublink:hover,
    .mobile-sublink:active {
        background: rgba(56, 189, 248, 0.12) !important;
        border-color: rgba(56, 189, 248, 0.3) !important;
        color: #38bdf8 !important;
    }
    .mobile-sublink.admin-sublink {
        grid-column: span 2;
        background: rgba(37, 99, 235, 0.15) !important;
        border-color: rgba(37, 99, 235, 0.35) !important;
        color: #93c5fd !important;
        font-weight: 700 !important;
        justify-content: center !important;
    }

    /* Drawer Footer */
    .mobile-nav-footer {
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    [data-theme="light"] .mobile-nav-footer {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    .mobile-footer-title {
        font-family: var(--font-sans);
        font-size: 13px;
        font-weight: 700;
        color: #f1f5f9;
    }
    [data-theme="light"] .mobile-footer-title {
        color: #0f172a;
    }
    .mobile-footer-address {
        font-size: 11.5px;
        color: #94a3b8;
    }
    .mobile-footer-phone {
        font-size: 12.5px;
        color: #38bdf8 !important;
        text-decoration: none;
        font-weight: 600;
        margin-top: 4px;
        display: inline-block;
    }
    [data-theme="light"] .mobile-footer-phone {
        color: #0284c7 !important;
    }

    /* Hamburger Animation: Turns into an 'X' when open */
    .mobile-menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
/* --------------------------------------------------------------------------
   About Page Specific Styles
   -------------------------------------------------------------------------- */

/* Custom Hero Background for About Page */
.page-hero.about-hero {
    background-image: url('../images/hero-about-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Philosophy Section Spacing */
.philosophy-section {
    padding: 160px 0;
    background-color: var(--white);
}

/* Editorial Quote Section */
.quote-section {
    padding: 160px 0;
    background-color: var(--text-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background accent for the quote */
.quote-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(21, 128, 61, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.editorial-quote {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
    color: var(--white);
    letter-spacing: -0.01em;
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.quote-author strong {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4ade80;
}

.quote-author span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Leadership Grid */
.leadership-section {
    padding: 160px 0;
    background-color: var(--bg-color);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.leader-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    group: hover;
    cursor: pointer;
}

.leader-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
    background-color: #e5e5e5;
}

.leader-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(100%) contrast(1.1); /* Editorial B&W look */
}

.leader-card:hover .leader-portrait img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1); /* Color reveals on hover */
}

.leader-info h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.leader-info p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsive Handling */
@media (max-width: 1024px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .quote-section {
        padding: 100px 0;
    }
    
    .philosophy-section, .leadership-section {
        padding: 80px 0;
    }
}
/* --------------------------------------------------------------------------
   About Page: Expanded Sections
   -------------------------------------------------------------------------- */

/* About Dharmasthala (Dark Heritage Section) */
.heritage-section {
    padding: 160px 0;
    background-color: var(--text-primary);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.heritage-text .editorial-heading {
    color: var(--white);
    margin-top: 24px;
    margin-bottom: 32px;
}

.heritage-text .section-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.heritage-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.heritage-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.heritage-image-wrapper:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

/* About SDME Society Section */
.society-section {
    padding: 160px 0;
    background-color: var(--white);
}

.society-visual {
    background-color: #f1f1f1;
    border-radius: 4px;
}

/* President Spotlight Section */
.president-spotlight {
    padding: 160px 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.spotlight-wrapper {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 100px;
    align-items: center;
}

.spotlight-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-content {
    display: flex;
    flex-direction: column;
}

.spotlight-content .editorial-heading {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: clamp(32px, 4vw, 56px);
}

.spotlight-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #15803d; /* Accent green */
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.6;
}

.spotlight-bio {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.spotlight-bio p {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
}

.spotlight-quote {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid #15803d;
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.5vw, 32px);
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .heritage-grid, .spotlight-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .spotlight-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .heritage-section, .society-section, .president-spotlight {
        padding: 100px 0;
    }
    
    .spotlight-quote {
        padding-left: 20px;
        font-size: 24px;
    }
}

/* --------------------------------------------------------------------------
   Principal Spotlight Section
   -------------------------------------------------------------------------- */
.principal-section {
    padding: 160px 0;
    background-color: var(--white);
}

.principal-visual {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/5;
    background-color: #f1f1f1;
}

.principal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.5s ease;
}

.principal-visual:hover img {
    filter: grayscale(0%) contrast(1);
}

.contact-info-block {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.contact-link:hover {
    color: #15803d;
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Governing Council Editorial Table
   -------------------------------------------------------------------------- */
.council-section {
    padding: 160px 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.council-list-container {
    max-width: 1000px;
    margin: 60px auto 0;
    border-top: 2px solid var(--text-primary);
}

.council-row {
    display: grid;
    grid-template-columns: 2.5fr 3fr 1.5fr;
    padding: 28px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.council-row:hover:not(.header-row) {
    background-color: rgba(0, 0, 0, 0.02);
    padding-left: 24px;
}

.header-row {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--text-primary);
}

.c-col {
    display: flex;
    align-items: center;
}

.name-col {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.role-col {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.position-col {
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
/* Fix visibility for the Governing Council description */
.council-section .section-desc {
    color: var(--text-secondary); /* Changes it to the dark gray/black */
    max-width: 600px; /* Keeps the line length readable */
    margin-top: 24px;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .council-row {
        grid-template-columns: 2fr 2.5fr 1fr;
    }
}

@media (max-width: 768px) {
    .principal-visual {
        order: -1; /* Puts the image above the text on mobile */
    }
    
    .council-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 0;
    }
    
    .council-row:hover:not(.header-row) {
        padding-left: 0;
        background-color: transparent;
    }
    
    .header-row {
        display: none; /* Hide header row on mobile to let data stack cleanly */
    }
    
    .position-col {
        display: inline-block;
        background-color: rgba(21, 128, 61, 0.1);
        padding: 6px 12px;
        border-radius: 20px;
        margin-top: 8px;
        width: max-content;
    }
}
.page-hero.ece-hero {
    /* Replace 'hero-ece-bg.webp' with your new file name */
    background-image: url('../images/ece-campus-shot.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   Editorial Accordion (For PEOs, POs, PSOs)
   -------------------------------------------------------------------------- */
.editorial-accordion {
    max-width: 900px;
    margin: 0 auto;
    border-top: 2px solid var(--text-primary);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: padding-left 0.3s ease;
}

.accordion-header:hover {
    padding-left: 16px;
}

.accordion-title {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-weight: 400;
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
/* Fix visibility for the Program Outcomes description */
.outcomes-section .section-desc {
    color: var(--text-secondary); /* Snaps the text back to readable dark gray */
    margin-top: 24px;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
}

/* Creating the + and - lines via pseudo-elements */
.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.accordion-icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

.accordion-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

/* Active State Icon Rotation (Morphs + to -) */
.accordion-item.is-open .accordion-icon::after {
    transform: rotate(90deg) scaleY(0);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-inner {
    padding-bottom: 40px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.accordion-item.is-open .accordion-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Formatting the text inside the accordion */
.outcome-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.outcome-list.grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
}

.outcome-list li {
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--text-secondary);
    line-height: 1.6;
}

.outcome-list li strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .outcome-list.grid-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .accordion-header {
        padding: 24px 0;
    }
}

/* --------------------------------------------------------------------------
   Department Faculty Directory Grid
   -------------------------------------------------------------------------- */
.faculty-section {
    padding: 160px 0;
    background-color: var(--bg-color); /* Blends perfectly with the sections around it */
    border-top: 1px solid var(--border-color);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.faculty-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* Portrait Image Wrapper */
.faculty-photo {
    width: 100%;
    aspect-ratio: 3/4; /* Classic editorial portrait ratio */
    background-color: #e5e5e5;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 24px;
    position: relative;
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05); /* Premium B&W default state */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

/* Hover Effects on the entire card */
.faculty-card:hover .faculty-photo img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1); /* Reveals true color on hover */
}

/* Text and Link Styling */
.faculty-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.faculty-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.faculty-designation {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.faculty-link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto; /* Always pushes the link to the bottom so they align */
    transition: color 0.3s ease;
}

.faculty-link .arrow {
    font-size: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faculty-card:hover .faculty-link {
    color: #15803d; /* Accent green */
}

.faculty-card:hover .faculty-link .arrow {
    transform: translateX(4px); /* Arrow slides right smoothly */
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .faculty-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .faculty-grid {
        grid-template-columns: 1fr; /* Stacks to a single column on phones */
        gap: 48px;
    }
    
    .faculty-section {
        padding: 100px 0;
    }
}

/* --------------------------------------------------------------------------
   Program Quick Facts Bar
   -------------------------------------------------------------------------- */
.program-quick-facts {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 40px 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fact-item {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    padding-left: 32px;
}

/* Remove the left border on the first item so it aligns with the container */
.fact-item:first-child {
    border-left: none;
    padding-left: 0;
}

.fact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.fact-value {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.fact-sub {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: normal;
}

/* Responsive Grid Adjustments */
@media (max-width: 900px) {
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    
    /* Remove left border for the 3rd item when it drops to a new row */
    .fact-item:nth-child(3) {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .program-quick-facts {
        padding: 48px 0;
    }

    .facts-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .fact-item {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    
    /* Remove the bottom border on the very last item */
    .fact-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* --------------------------------------------------------------------------
   Inside the Department / Department Life Section
   -------------------------------------------------------------------------- */
.department-life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.life-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.life-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.life-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #e5e5e5;
}

.life-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(20%) contrast(1.05);
}

.life-card:hover .life-image img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

.life-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.life-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #15803d; /* Accent green */
    font-weight: 600;
    margin-bottom: 12px;
}

.life-info h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.life-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Handling */
@media (max-width: 1024px) {
    .department-life-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .department-life-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .department-life-section {
        padding: 80px 0;
    }
}

/* --------------------------------------------------------------------------
   Achievements & Milestones Section
   -------------------------------------------------------------------------- */
.milestones-section {
    padding: 160px 0;
    background-color: var(--text-primary); /* Dark theme to create visual contrast */
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.milestone-card {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 32px;
}

.milestone-number {
    font-family: var(--font-serif);
    font-size: clamp(48px, 5vw, 64px);
    color: #4ade80; /* Accent green */
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.milestone-card h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.milestone-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .milestones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .milestones-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .milestones-section {
        padding: 100px 0;
    }
}

/* --------------------------------------------------------------------------
   Milestones Detailed Ledger (Fixed Visibility)
   -------------------------------------------------------------------------- */
.milestones-ledger {
    display: flex;
    flex-direction: column;
}

.milestones-ledger .ledger-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: baseline;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.milestones-ledger .ledger-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    padding-left: 16px;
}

.milestones-ledger .ledger-year {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4ade80 !important;
    font-weight: 600;
}

.milestones-ledger .ledger-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: #ffffff !important;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.milestones-ledger .ledger-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6;
}

/* Responsive Handling for Ledger */
@media (max-width: 768px) {
    .milestones-ledger .ledger-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 0;
    }
    
    .milestones-ledger .ledger-item:hover {
        padding-left: 0;
        background-color: transparent;
    }
}

/* --------------------------------------------------------------------------
   Hero Section Background Utility
   -------------------------------------------------------------------------- */
.hero-bg-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Optional: uncomment the line below for a premium parallax scrolling effect! */
    /* background-attachment: fixed; */ 
}

/* --------------------------------------------------------------------------
   Context-Aware Typography & Legibility Contrast Engine
   -------------------------------------------------------------------------- */
/* Light section descriptions */
.programs-header p,
.section-desc {
    color: var(--text-secondary);
}

/* Ensure dark section paragraphs & descriptions remain bright, crisp, and high-contrast */
.page-hero .section-desc,
.hero-section .section-desc,
.hero-cinematic .section-desc,
.vm-attachment-section .section-desc,
.heritage-section .section-desc,
.philosophy-section.dark-theme .section-desc,
.dark-theme .section-desc,
.site-footer .section-desc,
[style*="background: var(--text-primary)"] .section-desc,
[style*="background-color: var(--text-primary)"] .section-desc,
[style*="background: #0"] .section-desc,
[style*="background-color: #0"] .section-desc,
[style*="background: #1"] .section-desc,
[style*="background-color: #1"] .section-desc,
[style*="background-image: linear-gradient"] .section-desc {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* Fallback & refinement for section headings */
.programs-header p {
    color: #475569; 
}