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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
    /* Color Palette (Refactored to perfectly suit the Blue, Purple, Orange, and Gold of the Logo) */
    --primary-900: #1b154c; /* Deepest Royal Indigo */
    --primary-800: #3c2b98; /* Deep Logo Violet/Purple */
    --primary-700: #1768c1; /* Vibrant Logo Blue */
    --primary-600: #1e538f; /* Medium Steel Blue */
    --primary-100: #eff6ff; /* Soft Royal Blue Tint */
    
    --accent-600: #e27d14;  /* Deep Logo Amber */
    --accent-500: #f7901e;  /* Vibrant Logo Orange */
    --accent-100: #fff9e6;  /* Soft Warm Gold Tint */
    
    --bg-primary: #f8fafc;    /* Clean Slate Warm Off-White */
    --bg-secondary: #ffffff;  /* Pure White */
    --bg-tertiary: #f1f5f9;   /* Slate Gray Light */
    --bg-glass: rgba(248, 250, 252, 0.85); /* Premium Glassmorphism background */
    
    --text-main: #0f172a;     /* Deep Slate Charcoal */
    --text-muted: #475569;    /* Medium Slate Gray */
    --text-light: #64748b;    /* Light Slate Gray */
    --text-white: #ffffff;
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Responsive Spacing (Using Clamp) */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.875rem, 1.5vw, 1.25rem);
    --space-md: clamp(1.5rem, 3vw, 2.25rem);
    --space-lg: clamp(2.5rem, 5vw, 4.5rem);
    --space-xl: clamp(4rem, 8vw, 7.5rem);
    
    /* Borders & Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    --border-light: 1px solid rgba(27, 21, 76, 0.08);
    --border-glass: 1px solid rgba(255, 255, 255, 0.6);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px -2px rgba(27, 21, 76, 0.04);
    --shadow-md: 0 12px 30px -8px rgba(27, 21, 76, 0.06);
    --shadow-lg: 0 20px 48px -10px rgba(27, 21, 76, 0.1);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- BASE STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-900);
    line-height: 1.15;
    font-weight: 700;
}

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

h2 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.875rem);
    letter-spacing: -0.01em;
}

p {
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    color: var(--text-muted);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-600); }
.bg-white { background-color: var(--bg-secondary); }

/* Elegant Badges */
.badge {
    display: inline-block;
    padding: 0.35em 1em;
    background-color: var(--primary-100);
    color: var(--primary-800);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

/* Premium Buttons (Modern Squircle Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.6rem, 1.2vw, 0.75rem) clamp(1.2rem, 2.5vw, 1.8rem);
    border-radius: 12px; /* Sophisticated modern squircle shape */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.975rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-900);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(27, 21, 76, 0.12);
}

.btn-primary:hover {
    background-color: var(--primary-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 21, 76, 0.22);
}

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

.btn-secondary:hover {
    background-color: var(--primary-900);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 21, 76, 0.15);
}

/* Custom Spacing Helpers */
.py-section { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-section-lg { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-light);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: clamp(4.5rem, 8vh, 5.5rem);
    transition: var(--transition-smooth);
}

.site-header.scrolled .nav-container {
    height: clamp(3.75rem, 6vh, 4.5rem);
}

/* Modern Logo Typography */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: var(--primary-900);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent-600);
    margin-left: 0.15rem;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--space-sm);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.975rem;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-900);
}

/* Elegant Underline Hover Trigger */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background-color: var(--accent-600);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Nav Toggler */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-900);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* Mobile menu open transform */
.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding-top: calc(clamp(4.5rem, 8vh, 5.5rem) + var(--space-lg));
    padding-bottom: var(--space-xl);
    background: radial-gradient(circle at 10% 20%, rgba(236, 253, 245, 0.7) 0%, rgba(250, 250, 249, 1) 90%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    width: 100%;
}

.hero-slide {
    grid-area: 1 / 1 / 2 / 2; /* All slides occupy the exact same grid cell */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
    width: 100%;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--accent-600);
    margin-bottom: var(--space-xs);
}

.hero-title {
    margin-bottom: var(--space-sm);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Fresh overlapping/floating hero image block */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

/* Overlay Glass Accent */
.hero-glass-accent {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-glass);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.hero-glass-accent h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-900);
}

.hero-glass-accent p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- STATS SECTION --- */
.stats-section {
    background-color: var(--primary-900);
    color: var(--text-white);
    border-radius: var(--radius-lg);
    margin: 0 var(--space-sm);
    padding: var(--space-lg) var(--space-sm);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--accent-500);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.875rem, 1.2vw, 1.05rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- ASYMMETRIC HIGHLIGHTS / PILLARS SECTION --- */
.section-header {
    max-width: 650px;
    margin-bottom: var(--space-md);
}

.section-header p {
    margin-top: 0.5rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* Fresh asymmetrical pillar layout */
.pillar-card {
    background-color: var(--bg-secondary);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 21, 76, 0.15);
}

.pillar-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--accent-100);
    color: var(--accent-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.pillar-card.school-pillar .pillar-icon-box {
    background-color: var(--primary-100);
    color: var(--primary-800);
}

.pillar-card h3 {
    margin-bottom: var(--space-xs);
}

.pillar-card p {
    margin-bottom: var(--space-sm);
}

.pillar-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.pillar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-image {
    transform: scale(1.05);
}

/* --- PROGRAMS PAGE STYLES --- */
.program-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.program-item:last-child {
    margin-bottom: 0;
}

.program-content {
    padding: var(--space-xs) 0;
}

.program-title {
    margin-bottom: var(--space-xs);
}

.program-details-list {
    list-style: none;
    margin-top: var(--space-sm);
}

.program-details-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.program-details-list li::before {
    content: "✓";
    color: var(--primary-700);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.program-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.program-image-frame img {
    border-radius: 0;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* --- ABOUT PAGE STYLES --- */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.value-card {
    background: var(--bg-secondary);
    border: var(--border-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-card h4 {
    color: var(--primary-900);
    margin-bottom: 0.25rem;
}

.message-box {
    background-color: var(--bg-secondary);
    border: var(--border-light);
    border-left: 5px solid var(--accent-500);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.founder-signature {
    margin-top: var(--space-sm);
}

.founder-signature h4 {
    margin-bottom: 0.15rem;
}

.founder-signature span {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* --- DYNAMIC GALLERY GRID --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.filter-btn {
    background-color: var(--bg-secondary);
    border: var(--border-light);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px; /* Elegant smaller squircle corner radius */
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-900);
    color: var(--text-white);
    border-color: var(--primary-900);
    box-shadow: var(--shadow-sm);
}

/* Masonry-inspired grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.gallery-item img {
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(27, 21, 76, 0.9) 0%, rgba(27, 21, 76, 0.2) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-sm);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

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

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

.gallery-overlay-tag {
    align-self: flex-start;
    background-color: var(--accent-500);
    color: var(--text-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.35rem;
}

.gallery-overlay h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Interactive Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 21, 76, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-secondary);
}

.lightbox-caption {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-top: var(--space-sm);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-500);
}

.lightbox-nav-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.lightbox-nav-btn {
    background: rgba(27, 21, 76, 0.6);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin: 0 1rem;
    backdrop-filter: blur(4px);
    z-index: 2010;
}

.lightbox-nav-btn:hover {
    background: var(--primary-900);
    color: var(--accent-500);
    border-color: var(--accent-500);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-nav-area {
        position: static;
        flex-direction: column;
    }
    
    .lightbox-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-nav-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }
}

/* --- CONTACT PAGE & FORM --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-card {
    background-color: var(--bg-secondary);
    border: var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary-100);
    color: var(--primary-800);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-card-details h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.contact-card-details p, .contact-card-details a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Modern clean form styles */
.contact-form-wrapper {
    background-color: var(--bg-secondary);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-900);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(28, 25, 23, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.975rem;
    color: var(--text-main);
    background-color: var(--bg-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-700);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    background-color: var(--bg-secondary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-notification {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    font-weight: 500;
    display: none;
}

.form-notification.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-notification.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.contact-map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: var(--border-light);
    height: 300px;
    margin-top: var(--space-md);
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-900);
    color: var(--text-white);
    padding: var(--space-lg) 0 var(--space-sm) 0;
    margin-top: var(--space-lg);
    border-top: 4px solid var(--accent-500);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--text-white);
    margin-bottom: var(--space-xs);
}

.footer-logo span {
    color: var(--accent-500);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
    color: var(--text-white);
    position: relative;
    padding-bottom: 0.35rem;
}

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

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--accent-500);
    padding-left: 4px;
}

.footer-contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact-details li strong {
    color: var(--text-white);
}

/* Footer Social Trays & Vector Icons */
.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background-color: var(--accent-500);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.35);
    border-color: var(--accent-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-sm);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* --- RECENT WORK HORIZONTAL SCROLLER --- */
.scroller-outer-container {
    position: relative;
    width: 100%;
}

.recent-work-scroller {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: var(--space-xs) 0 var(--space-md) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.recent-work-scroller::-webkit-scrollbar {
    display: none; /* Chrome & Safari */
}

.scroller-card {
    flex: 0 0 85%; /* Default mobile display width */
    min-width: 290px;
    scroll-snap-align: start;
    margin-bottom: 0.5rem;
}

/* Glassy scroller navigation buttons */
.scroller-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-full);
    display: none; /* Desktop / tablet only */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-900);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: var(--transition-smooth);
}

.scroller-nav-btn:hover {
    background-color: var(--primary-900);
    color: var(--text-white);
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.scroller-btn-left {
    left: -24px;
}

.scroller-btn-right {
    right: -24px;
}

/* --- MEDIA QUERIES (DESKTOP FIRST BUT HIGHLY RESPONSIVE IN-BETWEEN) --- */

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .scroller-card {
        flex: 0 0 calc(50% - var(--space-md) / 2);
    }
    
    .scroller-nav-btn {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-slide {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-item {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-lg);
    }
    
    .program-item:nth-child(even) {
        direction: rtl;
    }
    
    .program-item:nth-child(even) .program-content {
        direction: ltr;
    }
    
    .program-item:nth-child(even) .program-image-frame {
        direction: ltr;
    }
    
    .about-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .contact-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .scroller-card {
        flex: 0 0 calc(33.333% - (var(--space-md) * 2) / 3);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Nav Styles */
@media (max-width: 767px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-secondary);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-md);
        transition: var(--transition-smooth);
        padding: var(--space-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
}
