/* Professional Academic & Institutional Theme */
/* Navy, Teal, Crisp White, Light Gray */

:root {
    /* Base Palette */
    --bg-main: #FFFFFF; /* Pure white background */
    --bg-alt: #F8F9FA; /* Light Institutional Gray for sections */
    --bg-dark: #0A2540; /* Deep Academic Navy */
    
    /* Accents */
    --brand-primary: #0A2540; /* Navy */
    --brand-secondary: #007769; /* Medical Teal/Green */
    --brand-accent: #C41230; /* Optional Crimson strict accent, keeping it teal mostly */
    
    /* Text */
    --text-heading: #111827; /* Near Black */
    --text-main: #374151; /* Dark Slate Gray */
    --text-muted: #6B7280; /* Neutral Gray */
    --text-light: #F3F4F6;
    
    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Components */
    --card-bg: #FFFFFF;
    --card-border: #E5E7EB; /* Light crisp border */
    --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);
    
    /* Formatting */
    --radius-sm: 2px;
    --radius-md: 4px;
    
    /* Spacing */
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 5rem;
    --space-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px; /* Structured narrower container */
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.text-center { text-align: center; }
.gold-text { color: var(--brand-secondary); } /* Re-mapped to Medical Teal */
.text-muted { color: var(--text-muted) !important; }

/* Navigation - Strict & Solid */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    background: var(--bg-main);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--brand-primary);
    letter-spacing: 0px;
    font-weight: 900;
}

.logo-icon {
    color: var(--brand-secondary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
}

.nav-links a:hover {
    color: var(--brand-secondary);
}

.nav-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--brand-secondary);
    color: #FFF !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-btn:hover {
    background-color: #005a4f;
}

/* Typography & Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: var(--radius-sm);
}

.btn-glow { /* Renamed conceptually, but modifying class styling to act strictly solid */
    background-color: var(--brand-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-glow:hover {
    background-color: #0d3257;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.btn-outline-gold:hover {
    background: var(--brand-secondary);
    color: #FFF;
}

/* Sections */
section {
    padding: var(--space-xl) 0;
}

.section-header {
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-family: var(--font-body);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('assets/hero_bg.webp') center/cover no-repeat;
    background-color: var(--bg-main);
    padding-top: 100px;
}

/* A very solid, academic navy overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.85); /* Deep Navy semi-transparent */
    z-index: 1;
}

/* Modifying the images deeply via CSS because of quota limits */
.hero-section {
    filter: contrast(1.1) saturate(0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-headline {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #FFFFFF;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-headline .gold-text {
    color: #6ee7d9; /* Light teal for extremely dark backgrounds */
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #E5E7EB;
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.7;
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    animation: fadeUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dividers & Lists */
.gold-divider {
    display: inline-block;
    width: 50px;
    height: 4px;
    background-color: var(--brand-secondary);
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.gold-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.gold-bullets li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

.gold-bullets i {
    color: var(--brand-secondary);
    font-size: 1.4rem;
}

/* Academic Cards replacing glassmorphism */
.courses-grid, .teaser-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.glassmorphism { /* Recycled class name to avoid mass renaming in HTML, acting as academic-card */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.glassmorphism:hover {
    border-color: var(--brand-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}

.glassmorphism:hover .card-icon {
    color: var(--brand-secondary);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.card-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 80px;
    font-size: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-secondary);
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.card-link i {
    transition: transform 0.2s ease;
    font-size: 1.1rem;
}

.glassmorphism:hover .card-link i {
    transform: translateX(4px);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--bg-alt);
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}

/* Muting the current photography aggressively for professionalism */
.moody-filter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1) brightness(0.95);
    transition: all 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.85); /* Academic Navy Overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    font-size: 3rem;
    color: #FFF;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    filter: grayscale(0) contrast(1.1) brightness(1.05);
}

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

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.98); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #FFF;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
}

.close-lightbox:hover {
    color: var(--brand-secondary);
}

/* Specific Section Modifiers */
.growth-section {
    background-color: var(--brand-primary);
    color: #FFF;
}

.growth-section .gold-text {
    color: #FFF; /* Numbers are white */
}

.growth-section .text-muted {
    color: #9CA3AF !important; /* Lighter text for navy background */
}

.team-section {
    background-color: var(--bg-alt);
}

/* Page Headers for subpages */
.page-header {
    background-color: var(--brand-primary) !important; /* Overrides the linear gradient inline styles */
    background-image: none !important; /* Professional pages don't usually use massive header images for about/courses */
    padding: 140px 0 80px 0 !important;
}

.page-header .hero-headline {
    color: #FFF;
    font-size: 3.5rem;
    animation: none;
    opacity: 1;
    transform: none;
}
.page-header .hero-subheadline {
    color: #E5E7EB;
    animation: none;
    opacity: 1;
    transform: none;
}
.page-header .gold-text {
    color: #6ee7d9;
}


/* Featured Course enhancements */
.featured-course {
    grid-column: 1 / -1;
    position: relative;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-glass), var(--bg-glass)), linear-gradient(135deg, var(--gold), #2A9D8F);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 20px rgba(42,157,143,0.1);
    transform: translateY(0);
    transition: all 0.4s ease;
}

@media (min-width: 900px) {
    .featured-course {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        padding: 3rem 2rem;
    }
}

.featured-course:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25), 0 0 30px rgba(212,175,55,0.2);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: #FFF;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.6rem 1.5rem 0.6rem 1rem;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    z-index: 10;
}

.featured-badge::after {
    content: '';
    position: absolute;
    right: 0;
    top: 100%;
    border-top: 10px solid #C02E4E;
    border-right: 10px solid transparent;
}

/* How We Teach Section */
.teach-section {
    padding: 4rem 0;
    background-color: var(--bg-dark);
    position: relative;
}

.teach-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.teach-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.teach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.teach-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.teach-card:hover {
    transform: translateY(-5px);
}

.teach-card.online-mode {
    background-color: #E0FBFC; /* Solid Light Cyan */
    border-color: #90E0EF;
}

.teach-card.offline-mode {
    background-color: #FFE5D9; /* Solid Light Orange */
    border-color: #FFCAD4;
}

.teach-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.teach-card.online-mode h3 { color: #0077b6; }
.teach-card.offline-mode h3 { color: #d00000; }

.teach-card p {
    color: #4A4A4A; /* High contrast dark text for light pastel background */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.teach-features-list {
    list-style: none;
    padding: 0;
}

.teach-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    color: #2b2d42; /* Strict dark navy for robust readability */
}

.teach-features-list li i {
    font-size: 1.3rem;
    margin-top: 2px;
}

.teach-card.online-mode .teach-features-list li i { color: #0096c7; }
.teach-card.offline-mode .teach-features-list li i { color: #e85d04; }

.why-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    background: #FFF;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

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

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.why-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--brand-primary);
    margin-bottom: 0.8rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Modal Footer Additions */
.modal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed rgba(0,0,0,0.1);
}

.modal-footer h3 {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--brand-primary);
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.modal-modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.modal-mode-box {
    padding: 1.5rem;
    border-radius: 8px;
    background: #f9fbfb;
    border: 1px solid #e5e7eb;
}

.modal-mode-box.online { border-left: 4px solid #00b4d8; }
.modal-mode-box.offline { border-left: 4px solid #f4a261; }

.modal-mode-box h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.modal-mode-box p, .modal-mode-box ul {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.modal-mode-box ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.modal-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: #FFF;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    gap: 0.6rem;
}

.modal-feature i {
    font-size: 2rem;
}

.modal-feature span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-heading);
}

@media (max-width: 768px) {
    .modal-modes-grid {
        grid-template-columns: 1fr;
    }
    .modal-features-grid {
        grid-template-columns: 1fr 1fr; 
    }
    .modal-features-grid .modal-feature:last-child {
        grid-column: 1 / -1;
    }
}
/* Contact & Footer */
.footer-section {
    background-color: var(--brand-primary);
    color: #FFF;
    padding-top: var(--space-xl);
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-title {
    font-size: 2rem;
    color: #FFF;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #9CA3AF;
    margin-bottom: 2.5rem;
    max-width: 400px;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: #FFF;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: var(--brand-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #FFF;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text-heading);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(0, 119, 105, 0.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4rem;
    padding-top: 2rem;
    color: #9CA3AF;
    font-size: 0.85rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive Overhaul */
@media (max-width: 1024px) {
    .hero-headline { font-size: 3.5rem; }
    .page-header .hero-headline { font-size: 3rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gold-bullets { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Navbar Stacking for Mobile */
    .nav-content { flex-direction: column; gap: 0.8rem; padding: 0.5rem 0; }
    .nav-links { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 1.2rem; 
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .nav-links a { font-size: 0.95rem; }
    .nav-btn { display: none; } /* Hide top-right 'Enroll Now' on mobile to save critical space */
    
    /* Layout Scaling */
    section { padding: var(--space-md) 0; }
    .hero-section { padding-top: 150px; }
    .page-header { padding: 170px 0 60px 0 !important; }
    
    /* Typography Scaling */
    .hero-headline { font-size: 2.3rem; line-height: 1.3; }
    .hero-subheadline { font-size: 1.1rem; }
    .page-header .hero-headline { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
    
    /* Card Scaling */
    .courses-grid, .teaser-grid, .values-grid, .team-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .glassmorphism { padding: 2rem 1.5rem; }
    .card-title { font-size: 1.3rem; }
    .gold-bullets { gap: 1rem; }
    .gold-bullets li { font-size: 0.95rem; }
    
    /* Gallery Formatting */
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
    
    /* Footer Scaling */
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-title { font-size: 1.6rem; }
    .footer-contact-info h3 { font-size: 1.3rem !important; }
    .footer-contact-info p { word-break: break-all; }
    
    /* Utilities */
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 28px; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 1.9rem; }
    .page-header .hero-headline { font-size: 1.7rem; }
    .section-title { font-size: 1.8rem; }
    .nav-links { gap: 0.8rem; }
    .nav-links a { font-size: 0.85rem; }
    .hero-subheadline { font-size: 0.95rem; margin-bottom: 1.5rem; }
}

/* =========================================
   AGGRESSIVE MOBILE OPTIMIZATION & SPACING
   ========================================= */
@media (max-width: 768px) {
    /* 1. Global Section Padding Crush (max 40px top/bottom) */
    section[style*="padding"], .teach-section, .courses-section, .about-section, .gallery-section, .values-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* 2. Global Inner-Margin Crush (max 24px) */
    div[style*="margin-top: 4rem"], div[style*="margin-top: 3rem"], div[style*="margin-top: 2.5rem"], .team-grid, .values-grid-5, .teaser-grid, .reviews-grid {
        margin-top: 1.5rem !important;
    }
    div[style*="margin-bottom: 4rem"], div[style*="margin-bottom: 3rem"], div[style*="margin-bottom: 2.5rem"], .text-center {
        margin-bottom: 1.5rem !important;
    }
    div[style*="gap: 5rem"], div[style*="gap: 4rem"], div[style*="gap: 3rem"], div[style*="gap: 2rem"], .mission-grid, .courses-grid, .footer-grid, .about-grid {
        gap: 1.5rem !important;
    }

    /* 3. Typography Scaling */
    .hero-headline {
        font-size: 2.6rem !important;
        line-height: 1.2 !important;
    }
    .hero-subheadline {
        font-size: 1.05rem !important;
    }
    .section-title, h2[style*="font-size: 2.5rem"], h2[style*="font-size: 2.6rem"], h2[style*="font-size: 2.8rem"] {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    h3[style*="font-size: 3.5rem"] {
        font-size: 2.5rem !important;
    }
    
    /* 4. Hero Headers Shrink (reclaim viewport space) */
    .page-header {
        padding: 120px 0 60px 0 !important;
    }
    
    /* 5. Force 1-Column Layout Overrides where Grid fails */
    .mission-grid, .teaser-grid, .values-grid-5, .courses-grid, .about-grid, .reviews-grid, .youtube-carousel {
        grid-template-columns: 1fr !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .footer-contact-info p {
        justify-content: center;
        text-align: left;
    }
    
    /* 6. Form Scaling */
    .contact-form {
        padding: 2rem !important;
    }
    .value-card {
        padding: 1.5rem !important;
    }
}
