/* ================================================
   ST. MARY'S JUNIOR SCHOOL - MODERN UI DESIGN
   ================================================ */

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Colors */
    --primary-900: #1e3a5f;
    --primary-800: #2c4a6e;
    --primary-700: #3a5a7d;
    --primary-600: #486a8c;
    --primary-500: #5a7a9e;
    
    /* Accent Colors */
    --accent-500: #e8b923;
    --accent-400: #f0c535;
    --accent-300: #f8d547;
    --accent-600: #d4a420;
    
    /* Secondary Colors */
    --secondary-500: #2d8a6e;
    --secondary-400: #3da882;
    --secondary-600: #1f7058;
    
    /* Neutral Colors */
    --neutral-900: #0f1419;
    --neutral-800: #1a2332;
    --neutral-700: #2d3748;
    --neutral-600: #4a5568;
    --neutral-500: #718096;
    --neutral-400: #a0aec0;
    --neutral-300: #cbd5e0;
    --neutral-200: #e2e8f0;
    --neutral-100: #f7fafc;
    --neutral-50: #ffffff;
    
    /* Semantic Colors */
    --success: #38a169;
    --warning: #d69e2e;
    --error: #e53e3e;
    --info: #3182ce;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(232, 185, 35, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-600) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-400) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(44, 74, 110, 0.85) 100%);
    --gradient-card: linear-gradient(145deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    --gradient-dark: linear-gradient(180deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-700);
    background: var(--neutral-50);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-800);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
    max-width: var(--container-max);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.school-name h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.school-name p {
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-500);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-700);
    background: rgba(30, 58, 95, 0.05);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    width: calc(100% - 1.5rem);
}

/* Quick Links */
.quick-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-hero,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-hero {
    background: var(--gradient-accent);
    color: var(--neutral-900);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--neutral-900);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-700);
    transform: translateY(-3px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    gap: 5px;
    padding: 0;
}

.hamburger:hover {
    transform: scale(1.05);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.hamburger.active {
    background: var(--gradient-accent);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-slider {
    position: relative;
    margin-top: 70px;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.1);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s 0.2s ease forwards;
    opacity: 0;
}

/* Hero Navigation */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev { left: 2rem; }
.hero-next { right: 2rem; }

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.hero-dot:hover,
.hero-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ================================================
   SECTIONS - COMMON
   ================================================ */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--neutral-500);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-intro {
    padding: 6rem 0;
    background: var(--neutral-50);
}

.about-intro .container {
    max-width: 1200px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-900);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    min-width: 120px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--accent-500);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat p {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin: 0;
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 100%;
    height: 100%;
    background: var(--accent-500);
    border-radius: var(--radius-xl);
    opacity: 0.2;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Programs Section */
.programs {
    padding: 6rem 0;
    background: var(--neutral-100);
}

.programs h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-900);
    margin-bottom: 3rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(232, 185, 35, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.program-card h3 {
    color: var(--primary-800);
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.program-card p {
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-600);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.learn-more:hover {
    gap: 0.75rem;
    color: var(--accent-500);
}

/* Values Section */
.values {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
}

.values h2 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.value-item h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.value-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-900);
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: var(--neutral-50);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--accent-500);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--accent-500);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-800);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

/* CTA Section */
.home-cta {
    padding: 6rem 0;
    background: var(--neutral-100);
}

.cta-box {
    background: var(--gradient-primary);
    padding: 4rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-box h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.cta-box p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ================================================
   PAGE HEADER
   ================================================ */
.page-header {
    margin-top: 70px;
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    min-height: 35vh;
    display: flex;
    align-items: center;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    color: var(--primary-800);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* ================================================
   FORMS
   ================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-400);
}

/* ================================================
   GALLERY - MODERN CARD LAYOUT
   ================================================ */
.gallery-filters {
    padding: 2rem 0;
    background: var(--neutral-100);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--primary-600);
    background: transparent;
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-700);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-section {
    padding: 3rem 0;
    background: var(--neutral-50);
}

/* Modern Gallery Grid */
.modern-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.25rem;
    padding: 1rem 0;
}

/* Gallery Card */
.gallery-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.gallery-card .card-image {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.gallery-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-card:hover .card-image img {
    transform: scale(1.1);
}

.gallery-card .card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: var(--accent-500);
    color: var(--neutral-900);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-card .card-content {
    padding: 1.25rem;
    background: white;
    border-top: 1px solid var(--neutral-100);
    transition: background var(--transition-base);
}

.gallery-card:hover .card-content {
    background: var(--primary-800);
}

.gallery-card .card-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-800);
    margin: 0 0 0.375rem 0;
    transition: color var(--transition-base);
}

.gallery-card:hover .card-content h3 {
    color: white;
}

.gallery-card .card-content p {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin: 0;
    line-height: 1.4;
    transition: color var(--transition-base);
}

.gallery-card:hover .card-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Card Size Variants */
.gallery-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-card.wide {
    grid-column: span 2;
}

.gallery-card.tall {
    grid-row: span 2;
}

.gallery-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Card Hover Icon */
.gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8) 0%, rgba(45, 138, 110, 0.6) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.gallery-card:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .modern-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (max-width: 768px) {
    .modern-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        gap: 1rem;
    }
    
    .gallery-card.featured,
    .gallery-card.wide,
    .gallery-card.large {
        grid-column: span 2;
    }
    
    .gallery-card.tall {
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .modern-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
    
    .gallery-card.featured,
    .gallery-card.wide,
    .gallery-card.tall,
    .gallery-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
}

.modal .close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    border: none;
}

.modal .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--neutral-900);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-500);
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: var(--neutral-300);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.footer-section a {
    color: var(--neutral-300);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-500);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--accent-500);
    transform: translateY(-3px);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neutral-400);
    font-size: 0.875rem;
}

/* ================================================
   WHATSAPP FLOAT
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* ================================================
   STAFF CARDS
   ================================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.staff-card img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* ================================================
   INFO CARDS
   ================================================ */
.info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.info-card h3 {
    color: var(--primary-800);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card li:last-child {
    border-bottom: none;
}

/* ================================================
   NEWS ITEMS
   ================================================ */
.news-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: 0.5rem;
}

/* ================================================
   MAP CONTAINER
   ================================================ */
.map-container {
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 2rem 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   LOADING OVERLAY
   ================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .quick-links {
        display: none;
    }
    
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-prev { left: 1rem; }
    .hero-next { right: 1rem; }
    
    section {
        padding: 3rem 0;
    }
    
    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        min-width: 100px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values h2 {
        font-size: 1.75rem;
    }
    
    .cta-box {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.75rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-float img {
        width: 26px;
        height: 26px;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.9375rem;
    }
    
    .btn-hero,
    .btn-outline {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .program-card,
    .testimonial {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }