/* ============================================
   Best Breed International Academy
   Main Stylesheet
   ============================================ */

/* ============================================
   CSS Variables (Brand Colors)
   ============================================ */
:root {
    /* Primary Colors - Deep Navy Blue */
    --primary-blue: #1a365d;
    --primary-blue-dark: #0f2341;
    --primary-blue-light: #2c4a7c;

    /* Secondary Colors - Rich Gold */
    --gold: #d4a017;
    --gold-dark: #b8890f;
    --gold-light: #e8bc3d;

    /* Accent Color - Hint of Red */
    --accent-red: #c41e3a;
    --accent-red-dark: #a31830;
    --accent-red-light: #e63950;

    /* House Colors */
    --house-red: #C41E3A;
    --house-blue: #2563EB;
    --house-green: #2E8B57;
    --house-yellow: #d4a017;
    --house-purple: #7c3aed;

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --black: #212529;

    /* Functional Colors */
    --success: #28A745;
    --error: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--gold);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: var(--spacing-md);
}

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

.text-gold { color: var(--gold); }
.text-blue { color: var(--primary-blue); }
.text-white { color: var(--white); }

/* ============================================
   Layout & Container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

.section {
    padding: var(--spacing-3xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

/* Flexbox Utilities */
.flex {
    display: flex;
}

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

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.header-scrolled {
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo img:hover {
    transform: scale(1.15);
}

.logo a {
    display: inline-block;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gold);
}

/* Main Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-gray);
    padding: var(--spacing-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
    cursor: pointer;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    min-height: 48px; /* Touch-friendly */
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(26, 54, 93, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary-blue);
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--off-white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Accent Red Button */
.btn-accent {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(196, 30, 58, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
    min-height: 40px;
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.15rem;
    min-height: 56px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    animation: heroZoom 20s ease-in-out infinite alternate;
    transition: opacity 0.5s ease;
}

.hero:hover .hero-bg {
    opacity: 0.7;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.85) 0%,
        rgba(15, 35, 65, 0.75) 50%,
        rgba(26, 54, 93, 0.7) 100%
    );
    transition: opacity 0.5s ease;
}

.hero:hover .hero-overlay {
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
    font-size: 3.75rem;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    font-weight: 800;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-title span {
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(212, 160, 23, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-xs);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.card-body {
    padding: var(--spacing-xl);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-md);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: var(--spacing-2xl);
    border-left: 4px solid var(--gold);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.25);
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* House Cards */
.house-card {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    color: var(--white);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.house-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.house-card.red { background: linear-gradient(135deg, var(--house-red) 0%, #a01830 100%); }
.house-card.blue { background: linear-gradient(135deg, var(--house-blue) 0%, #1d4ed8 100%); }
.house-card.green { background: linear-gradient(135deg, var(--house-green) 0%, #22754a 100%); }
.house-card.yellow { background: linear-gradient(135deg, var(--house-yellow) 0%, var(--gold-dark) 100%); color: var(--primary-blue); }
.house-card.purple { background: linear-gradient(135deg, var(--house-purple) 0%, #6d28d9 100%); }

/* ============================================
   Academic Levels Section
   ============================================ */
.level-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--gold);
    transition: all var(--transition-normal);
}

.level-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.level-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.level-content {
    flex: 1;
}

.level-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.level-description {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   Sports & Achievements
   ============================================ */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gold);
    color: var(--primary-blue);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-top: var(--spacing-sm);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 60px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

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

.social-link:hover {
    background: var(--gold);
    color: var(--primary-blue);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

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

.footer-link:hover {
    color: var(--gold);
}

.footer-contact-item {
    display: flex;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.footer-contact-item i {
    color: var(--gold);
    width: 20px;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.page-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    position: relative;
}

.breadcrumb a {
    color: var(--gold);
}

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

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-lg);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.gallery-caption {
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   Timeline (10th Anniversary)
   ============================================ */
.timeline {
    position: relative;
    padding: var(--spacing-2xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-2xl);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 4px solid var(--white);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Animations & Micro-interactions
   ============================================ */

/* Fade in on scroll (add .animate-on-scroll to elements) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for lists */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Link hover underline effect */
.nav-link, .footer a {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Pulse animation for badges/notifications */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Shine effect for gold elements */
@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.shine {
    background: linear-gradient(
        90deg,
        var(--gold) 0%,
        var(--gold-light) 50%,
        var(--gold) 100%
    );
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* Achievement Banner */
.achievement-banner {
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 160, 23, 0.3); }
    50% { box-shadow: 0 0 40px rgba(212, 160, 23, 0.6); }
}

/* Image overlay on hover */
.img-hover-overlay {
    position: relative;
    overflow: hidden;
}

.img-hover-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.img-hover-overlay:hover::after {
    opacity: 1;
}

.img-hover-overlay img {
    transition: transform var(--transition-normal);
}

.img-hover-overlay:hover img {
    transform: scale(1.1);
}

/* Clickable phone numbers */
a[href^="tel:"],
a[href^="https://wa.me"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

a[href^="tel:"]:hover,
a[href^="https://wa.me"]:hover {
    background: var(--off-white);
    color: var(--primary-blue);
}

/* Section divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--accent-red) 100%);
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-full);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-title { font-size: 2.75rem; }
    .hero-stats { gap: var(--spacing-xl); }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .nav-main { display: none; }
    .mobile-menu-toggle { display: flex; }

    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero-bg { background-position: center top; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: flex-start;
    }
    .hero-stat { text-align: left; }

    /* Touch-friendly improvements */
    .btn {
        min-height: 50px;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    a[href^="tel:"],
    a[href^="https://wa.me"] {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-md);
        background: var(--off-white);
        border-radius: var(--radius-md);
    }

    /* Bigger tap areas for nav */
    .mobile-nav .nav-item {
        padding: var(--spacing-md) var(--spacing-lg);
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .section { padding: var(--spacing-2xl) 0; }
    .section-title { font-size: 2rem; }
    .page-title { font-size: 2.25rem; }

    .level-card { flex-direction: column; text-align: center; }

    .timeline::before { left: 30px; }
    .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; }
    .timeline-content { width: calc(100% - 60px); margin-left: 60px; }
    .timeline-dot { left: 30px; }

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

    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .hero-stat-number { font-size: 2rem; }
    .stat-number { font-size: 2.5rem; }

    .gallery-grid { grid-template-columns: 1fr; }

    .logo img {
        height: 35px;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .logo-text span {
        font-size: 0.6rem;
    }
}

/* Mobile Menu Open State */
.nav-open .nav-main {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.nav-open .nav-links {
    flex-direction: column;
    width: 100%;
}

.nav-open .nav-link {
    width: 100%;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
}

.nav-open .btn {
    width: 100%;
    margin-top: var(--spacing-md);
    text-align: center;
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-primary { background: var(--primary-blue); }
.bg-gold { background: var(--gold); }
.bg-white { background: var(--white); }
.bg-light { background: var(--off-white); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.py-1 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-2 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-3 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-4 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   UI Enhancements
   ============================================ */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 160, 23, 0.4);
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Level Cards Hover */
.level-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
}

/* House Cards Hover */
.house-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.house-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* WhatsApp Button Pulse */
.whatsapp-float {
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--accent-red));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Button Press Effect */
.btn:active {
    transform: scale(0.95);
}

/* Image Hover Zoom */
.card-img {
    transition: transform 0.5s ease;
    overflow: hidden;
}

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

/* Gallery Image Hover */
.gallery-item img {
    transition: transform 0.5s ease;
}

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

/* =====================================================
   FOUNDER POPUP / WELCOME MESSAGE
   ===================================================== */
.founder-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--spacing-md);
}

.founder-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.founder-popup {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.founder-popup-overlay.active .founder-popup {
    transform: translateY(0);
}

.founder-popup-header {
    background: var(--primary-blue);
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.founder-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    line-height: 1;
}

.founder-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.founder-popup-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    object-position: top center;
    margin: 0 auto var(--spacing-sm);
    display: block;
}

.founder-popup-header h3 {
    color: white;
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.founder-popup-header .founder-popup-title {
    color: var(--gold);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.founder-popup-header .founder-popup-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-sm);
}

.founder-popup-body {
    padding: var(--spacing-lg) var(--spacing-xl);
    overflow-y: auto;
    flex: 1;
    max-height: 60vh;
    line-height: 1.8;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.founder-popup-body p {
    margin-bottom: var(--spacing-md);
}

.founder-popup-body p:last-child {
    margin-bottom: 0;
}

.founder-popup-body .scripture {
    font-style: italic;
    color: var(--primary-blue);
    font-weight: 500;
    border-left: 3px solid var(--gold);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.founder-popup-footer {
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: center;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.founder-popup-footer .founder-popup-motto {
    color: var(--gold);
    font-weight: 600;
    font-style: italic;
    margin: 0;
    font-size: 0.9rem;
}

.founder-popup-footer .founder-popup-sign {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0 0 4px;
    font-size: 0.85rem;
}

/* School-type popup: logo instead of circular photo */
.school-popup-logo {
    width: 120px;
    height: auto;
    max-height: 120px;
    border-radius: var(--radius-md);
    border: none;
    object-fit: contain;
    margin: 0 auto var(--spacing-sm);
    display: block;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .founder-popup-overlay {
        padding: var(--spacing-sm);
    }

    .founder-popup-header {
        padding: var(--spacing-md);
    }

    .founder-popup-body {
        padding: var(--spacing-md);
        font-size: 0.9rem;
        max-height: 55vh;
    }

    .founder-popup-footer {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .founder-popup-photo {
        width: 80px;
        height: 80px;
    }

    .school-popup-logo {
        width: 80px;
        max-height: 80px;
    }
}
