/* ==========================================================================
   SDM Institute of Technology - Premium Editorial Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Design System
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-color: #F7F6F2;
    --text-primary: #151515;
    --text-secondary: #6B6B6B;
    --border-color: rgba(0, 0, 0, 0.12);
    --white: #FFFFFF;
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    
    /* Layout */
    --container-max: 1500px;
    --padding-desktop: 60px;
    --padding-mobile: 24px;
}


/* --------------------------------------------------------------------------
   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;
}

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;
}

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 {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--text-primary) !important;
    border-color: var(--white);
}

.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 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 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: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Ultra-Modern Logo Lockup (High Visibility Edit)
   ========================================================================== */

/* Main Container */
.brand-logo-ultra {
    display: flex;
    align-items: center;
    gap: 18px; /* Slightly wider gap */
    text-decoration: none;
    position: relative;
    z-index: 50;
    transition: opacity 0.3s ease;
}

/* Glassmorphic Crest Box - INCREASED SIZE & OPACITY */
.logo-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;  /* Scaled up from 46px */
    height: 56px; /* Scaled up from 46px */
    background: rgba(255, 255, 255, 0.08); /* Less transparent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Brighter, thicker-looking border */
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Added shadow to lift box off background */
}

.logo-icon-box img {
    height: 36px; /* Scaled up from 28px */
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Typographic Stack & Vertical Divider */
.logo-typography {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid rgba(255, 255, 255, 0.3); /* Thicker, brighter vertical line */
    padding-left: 18px; /* Increased padding */
}

/* 'SDM' Text - SCALED UP & ADDED SHADOW */
.text-primary-brand {
    font-family: var(--font-sans);
    font-weight: 800; 
    font-size: 28px; /* Scaled up from 22px */
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    transition: color 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Forces text to pop against complex backgrounds */
}

/* 'Institute of Technology' - BRIGHTER & LARGER */
.text-secondary-brand {
    font-family: var(--font-sans);
    font-weight: 700; /* Bolder weight */
    font-size: 11px; /* Scaled up from 9px */
    color: rgba(255, 255, 255, 0.9); /* Almost solid white instead of 50% transparent */
    text-transform: uppercase;
    letter-spacing: 0.2em; 
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* Added text shadow here too */
}

/* Premium Hover Interactions */
.brand-logo-ultra:hover .logo-icon-box {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.brand-logo-ultra:hover .logo-icon-box img {
    transform: scale(1.1);
}

.brand-logo-ultra:hover .text-primary-brand {
    color: var(--white);
}

/* Smooth Shrink Effect on Scroll - Adjusted for new larger base sizes */
.site-header.scrolled .logo-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.site-header.scrolled .logo-icon-box img {
    height: 26px;
}

.site-header.scrolled .text-primary-brand {
    font-size: 22px;
    margin-bottom: 4px;
}

.site-header.scrolled .text-secondary-brand {
    font-size: 9px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .brand-logo-ultra {
        gap: 12px;
    }
    .logo-typography {
        border-left: none;
        padding-left: 0;
    }
    .text-primary-brand {
        font-size: 22px;
        margin-bottom: 2px;
    }
    .text-secondary-brand {
        font-size: 9px;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 480px) {
    .text-secondary-brand {
        display: none; 
    }
    .text-primary-brand {
        margin-bottom: 0;
    }
}
.desktop-nav a {
    margin: 0 20px;
    font-size: 13px;
	color:#FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.desktop-nav a:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   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(--white);
    margin-top: 24px;
    margin-bottom: 32px;
}

.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;
    display: block;
    width: max-content;
}

/* 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-cta {
    padding: 160px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.cta-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pre-footer-cta .editorial-heading {
    margin-bottom: 48px;
    font-size: clamp(40px, 6vw, 88px);
}

.cta-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.pre-footer-cta .btn-primary {
    background: var(--text-primary);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   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-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-email a {
    color: #4ade80;
    text-decoration: underline;
}

.footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
    font-weight: 600;
}

.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-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('<?= asset('images/hero-programs-bg.png') ?>'); /* Replace with your desired image path */
    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 Breakpoint */
@media (max-width: 768px) {
    /* 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 Overlay */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen to the right */
        width: 100%;
        height: 100vh;
        background-color: var(--text-primary); /* Dark premium background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    /* Active Class (Added by JS) slides the menu in */
    .mobile-nav.is-active {
        right: 0;
    }

    /* Mobile Menu Link Typography */
    .mobile-nav a {
        font-family: var(--font-serif);
        font-size: 36px;
        color: var(--white);
        text-decoration: none;
        letter-spacing: -0.01em;
        transition: opacity 0.3s ease;
    }

    .mobile-nav a:hover {
        opacity: 0.7;
    }
    
    /* Make the admissions button look right inside the menu */
    .mobile-nav .btn-outline {
        font-family: var(--font-sans);
        font-size: 14px;
        letter-spacing: 0.1em;
    }

    /* 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; */ 
}

/* --------------------------------------------------------------------------
   Light Section Typography Fixes
   -------------------------------------------------------------------------- */
/* Forces paragraphs under these specific headers to be dark gray */
.programs-header p,
.section-desc {
    color: var(--text-secondary) !important; /* Ensures it overrides any white text */
}

/* Fallback just in case your variable isn't passing through */
.programs-header p {
    color: #475569; 
}