/* Edubase International Schools - Main Stylesheet */
:root {
    /* Edubase Brand Colors */
    --edubase-blue: #1E4DA1;
    --edubase-blue-light: #4A90D9;
    --edubase-blue-dark: #0D2B5E;
    --edubase-blue-pale: #E8F1FA;
    --edubase-blue-soft: #C5DDF5;
    --edubase-red: #E31E24;
    --edubase-red-light: #FDE8E8;
    --edubase-red-soft: #F5A5A8;
    --edubase-white: #FFFFFF;
    --edubase-cream: #F8FAFC;
    --edubase-gray: #64748B;
    --edubase-dark: #1E293B;
    --edubase-gold: #D4AF37;
    --edubase-gold-light: #FDF6E3;

    /* Design tokens */
    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --shadow-sm: 0 2px 12px rgba(30, 77, 161, 0.08);
    --shadow: 0 8px 32px rgba(30, 77, 161, 0.12);
    --shadow-lg: 0 20px 60px rgba(30, 77, 161, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
}
body {
    font-family: 'Nunito', sans-serif;
    color: var(--edubase-dark);
    background: var(--edubase-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, var(--edubase-blue-dark) 0%, var(--edubase-blue) 100%);
    padding: 10px 0;
    color: white;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}
.top-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}
.top-bar a { color: white; text-decoration: none; margin-left: 1.5rem; transition: opacity 0.3s; font-weight: 600; }
.top-bar a:hover { opacity: 0.8; }
.top-bar i { margin-right: 6px; }

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--edubase-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--edubase-blue-pale);
}
.navbar { position: relative; }
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid var(--edubase-white);
    box-shadow: 0 4px 15px rgba(30, 77, 161, 0.2);
    transition: var(--transition);
}
.logo:hover .logo-icon { transform: scale(1.05) rotate(-3deg); }
.logo-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--edubase-blue-dark);
    letter-spacing: -0.5px;
}
.logo-text span { color: var(--edubase-red); font-weight: 700; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}
.nav-links a {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--edubase-gray);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover {
    color: var(--edubase-blue);
    background: var(--edubase-blue-pale);
}
.nav-links a.active {
    color: var(--edubase-blue);
    background: var(--edubase-blue-pale);
}
.nav-cta {
    background: linear-gradient(135deg, var(--edubase-red), #F04A4F) !important;
    color: white !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
    font-weight: 700 !important;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
    background: linear-gradient(135deg, #D41A20, var(--edubase-red)) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--edubase-blue);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, var(--edubase-blue-dark) 0%, var(--edubase-blue) 50%, var(--edubase-blue-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}
.hero-badge i { color: var(--edubase-gold); }

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 0.6s ease 0.1s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.hero h1 .highlight {
    color: var(--edubase-gold);
    position: relative;
}
.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    height: 8px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--edubase-red), #F04A4F);
    color: white;
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(227, 30, 36, 0.45);
}
.btn-outline {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-image-main {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255,255,255,0.2);
}
.hero-float-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: floatCard 3s ease-in-out infinite;
}
.hero-float-card.card-1 {
    top: 10%; right: -10px;
    animation-delay: 0s;
}
.hero-float-card.card-2 {
    bottom: 15%; left: -20px;
    animation-delay: 1.5s;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.float-icon {
    width: 45px; height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.float-icon.gold { background: var(--edubase-gold-light); }
.float-icon.blue { background: var(--edubase-blue-pale); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MARQUEE ===== */
.marquee-section {
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 3px solid var(--edubase-red);
    border-bottom: 3px solid var(--edubase-red);
}
.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    margin-right: 3rem;
    font-size: 0.95rem;
}
.marquee-item i { color: var(--edubase-gold); }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== SECTIONS COMMON ===== */
.section {
    padding: 100px 0;
    position: relative;
}
.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--edubase-blue-pale);
    color: var(--edubase-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--edubase-blue-dark);
}
.section-desc {
    color: var(--edubase-gray);
    font-size: 1.1rem;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--edubase-white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--edubase-blue-pale);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--edubase-blue), var(--edubase-red));
    transform: scaleX(0);
    transition: var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--edubase-blue-soft);
}
.feature-icon {
    width: 70px; height: 70px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }
.feature-icon.blue { background: var(--edubase-blue-pale); }
.feature-icon.red { background: var(--edubase-red-light); }
.feature-icon.gold { background: var(--edubase-gold-light); }
.feature-icon.teal { background: #E0F7F5; }
.feature-icon.purple { background: #F3E8FF; }
.feature-icon.green { background: #DCFCE7; }
.feature-icon.orange { background: #FFF7ED; }
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--edubase-blue-dark);
}
.feature-card p {
    color: var(--edubase-gray);
    font-size: 0.95rem;
}

/* ===== PROGRAMS SECTION ===== */
.programs-section {
    background: linear-gradient(180deg, var(--edubase-cream) 0%, var(--edubase-white) 100%);
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.program-card {
    background: var(--edubase-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--edubase-blue-pale);
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--edubase-blue-soft);
}
.program-image {
    height: 220px;
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}
.program-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--edubase-white));
}
.program-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--edubase-red);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.program-content {
    padding: 1.5rem 2rem 2rem;
}
.program-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--edubase-blue-dark);
}
.program-content p {
    color: var(--edubase-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.program-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--edubase-gray);
    font-weight: 600;
}
.program-meta span { display: flex; align-items: center; gap: 6px; }
.program-meta i { color: var(--edubase-blue); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.testimonial-card {
    background: var(--edubase-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--edubase-blue-pale);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--edubase-blue-soft);
}
.testimonial-quote {
    font-size: 3rem;
    color: var(--edubase-blue);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}
.testimonial-text {
    color: var(--edubase-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid var(--edubase-blue-pale);
}
.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--edubase-blue-dark);
}
.testimonial-info p {
    font-size: 0.85rem;
    color: var(--edubase-gray);
}
.testimonial-rating {
    color: var(--edubase-gold);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--edubase-blue-dark) 0%, var(--edubase-blue) 50%, var(--edubase-blue-light) 100%);
    border-radius: var(--radius-xl);
    margin: 0 2rem;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--edubase-gold);
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s linear infinite;
}
.cta-section * { position: relative; z-index: 2; }
.cta-section h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1rem;
}
.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}
.cta-btn {
    background: linear-gradient(135deg, var(--edubase-red), #F04A4F);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.35);
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(227, 30, 36, 0.45);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--edubase-blue-dark) 0%, var(--edubase-blue) 100%);
    color: white;
    padding: 80px 0 30px;
    margin-top: 100px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}
.footer-brand .logo-text { color: white; margin-bottom: 1rem; display: block; font-size: 1.8rem; }
.footer-brand .logo-text span { color: var(--edubase-red); }
.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
}
.social-links a:hover {
    background: var(--edubase-red);
    transform: translateY(-3px);
    border-color: var(--edubase-red);
}
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-family: 'Fredoka', sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col a:hover {
    color: var(--edubase-gold);
    transform: translateX(5px);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}
.footer-contact-item i {
    color: var(--edubase-gold);
    margin-top: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* ===== PAGE HEADER (Inner Pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--edubase-blue-dark) 0%, var(--edubase-blue) 50%, var(--edubase-blue-light) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 {
    font-size: 3rem;
    color: white;
    position: relative;
    z-index: 2;
}
.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

/* ===== CONTENT PAGES ===== */
.content-section {
    padding: 80px 0;
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.content-text h2 {
    font-size: 2.2rem;
    color: var(--edubase-blue-dark);
    margin-bottom: 1rem;
}
.content-text p {
    color: var(--edubase-gray);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.content-text ul {
    list-style: none;
    padding: 0;
}
.content-text ul li {
    padding: 0.5rem 0;
    color: var(--edubase-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-text ul li i {
    color: var(--edubase-red);
}
.content-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--edubase-blue), var(--edubase-blue-light));
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--edubase-red);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--edubase-blue-pale);
}
.timeline-item h3 {
    color: var(--edubase-blue-dark);
    font-size: 1.3rem;
}
.timeline-item p {
    color: var(--edubase-gray);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info-card {
    background: var(--edubase-white);
    border-radius: var(--radius);
    padding: 2rem;
    border: 2px solid var(--edubase-blue-pale);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.contact-info-card i {
    width: 50px; height: 50px;
    background: var(--edubase-blue-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--edubase-blue);
    margin-bottom: 1rem;
}
.contact-info-card h3 {
    color: var(--edubase-blue-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.contact-info-card p {
    color: var(--edubase-gray);
    font-size: 0.95rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--edubase-blue-dark);
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--edubase-blue-pale);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--edubase-white);
}
.form-control:focus {
    outline: none;
    border-color: var(--edubase-blue);
    box-shadow: 0 0 0 4px var(--edubase-blue-pale);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.alert-success { background: #DCFCE7; color: #166534; }
.alert-error { background: var(--edubase-red-light); color: var(--edubase-red); }
.alert-info { background: var(--edubase-blue-pale); color: var(--edubase-blue-dark); }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(13,43,94,0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 {
    color: white;
    font-size: 1rem;
}

/* ===== CURRICULUM TABLE ===== */
.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--edubase-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--edubase-blue-pale);
}
.curriculum-table th {
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    color: white;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
}
.curriculum-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--edubase-blue-pale);
    color: var(--edubase-dark);
}
.curriculum-table tr:hover { background: var(--edubase-cream); }

/* ===== ADMIN STYLES ===== */
.admin-body {
    background: var(--edubase-cream);
    font-family: 'Nunito', sans-serif;
}
.admin-sidebar {
    width: 280px;
    background: var(--edubase-white);
    min-height: 100vh;
    position: fixed;
    left: 0; top: 0;
    padding: 2rem 0;
    z-index: 1000;
    border-right: 3px solid var(--edubase-blue-pale);
    display: flex;
    flex-direction: column;
}
.admin-sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 2px solid var(--edubase-blue-pale);
    text-align: center;
}
.admin-sidebar-header .logo-icon {
    margin: 0 auto 1rem;
    width: 55px; height: 55px;
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    border: 3px solid var(--edubase-white);
    box-shadow: 0 4px 15px rgba(30, 77, 161, 0.2);
}
.admin-sidebar-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    color: var(--edubase-blue-dark);
}
.admin-sidebar-header h2 span { color: var(--edubase-red); }
.admin-sidebar-header p {
    color: var(--edubase-gray);
    font-size: 0.85rem;
    margin-top: 4px;
}
.admin-nav {
    list-style: none;
    padding: 1.5rem 1rem;
    flex: 1;
}
.admin-nav li { margin-bottom: 4px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--edubase-gray);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}
.admin-nav a:hover {
    background: var(--edubase-blue-pale);
    color: var(--edubase-blue);
}
.admin-nav a.active {
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    color: white;
    box-shadow: 0 4px 15px rgba(30, 77, 161, 0.3);
}
.admin-main {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: var(--edubase-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--edubase-blue-pale);
}
.admin-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: var(--edubase-blue-dark);
}
.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--edubase-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid var(--edubase-blue-pale);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--edubase-blue-soft);
}
.stat-icon {
    width: 55px; height: 55px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-info h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: var(--edubase-blue-dark);
}
.stat-info p {
    color: var(--edubase-gray);
    font-size: 0.9rem;
    font-weight: 600;
}
.table-container {
    background: var(--edubase-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 2px solid var(--edubase-blue-pale);
    margin-bottom: 2rem;
}
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--edubase-blue-pale);
}
.table-header h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    color: var(--edubase-blue-dark);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    background: var(--edubase-blue-pale);
    padding: 1rem 2rem;
    text-align: left;
    font-weight: 700;
    color: var(--edubase-blue-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--edubase-blue-pale);
    color: var(--edubase-dark);
}
.data-table tr:hover { background: var(--edubase-cream); }
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}
.status-active { background: #DCFCE7; color: #166534; }
.status-inactive { background: var(--edubase-red-light); color: var(--edubase-red); }
.status-graduated { background: var(--edubase-gold-light); color: #92400E; }
.status-suspended { background: #F3E8FF; color: #7C3AED; }
.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}
.btn-secondary {
    background: linear-gradient(135deg, var(--edubase-blue), var(--edubase-blue-light));
    color: white;
    box-shadow: 0 4px 15px rgba(30, 77, 161, 0.25);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 77, 161, 0.35);
}
.btn-danger {
    background: linear-gradient(135deg, #DC2626, var(--edubase-red));
    color: white;
}
.btn-danger:hover {
    transform: translateY(-2px);
}
.btn-success {
    background: linear-gradient(135deg, #16A34A, #22C55E);
    color: white;
}
.btn-success:hover {
    transform: translateY(-2px);
}

.form-container {
    background: var(--edubase-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--edubase-blue-pale);
    max-width: 900px;
}

/* Login Page */
.login-body {
    background: linear-gradient(135deg, var(--edubase-blue-dark) 0%, var(--edubase-blue) 50%, var(--edubase-blue-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.login-card {
    background: var(--edubase-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.login-card .logo-icon {
    margin: 0 auto 1.5rem;
    width: 70px; height: 70px;
    font-size: 2rem;
}
.login-card h1 {
    font-family: 'Fredoka', sans-serif;
    color: var(--edubase-blue-dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.login-card h1 span { color: var(--edubase-red); }
.login-card p {
    color: var(--edubase-gray);
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    /* Header fixes for tablet */
    .logo-text { font-size: 1.2rem; }
    .logo-icon { width: 40px; height: 40px; }
    .nav-links a { padding: 8px 14px; font-size: 0.9rem; }
    .nav-links a.nav-cta { padding: 10px 18px !important; }
    .nav-inner { padding: 0 1rem; }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body { overflow-x: hidden; max-width: 100vw; }

    /* Hero: single column, everything centered */
    .hero-inner { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding: 0 1rem;
        gap: 2rem;
        width: 100%;
    }
    .hero-content { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        width: 100%;
        max-width: 100%;
    }
    .hero h1 { 
        font-size: 1.7rem; 
        line-height: 1.15; 
        text-align: center; 
        width: 100%;
        word-break: break-word;
    }
    .hero-desc { 
        margin: 0 auto 1.5rem; 
        font-size: 1rem; 
        max-width: 100%; 
        text-align: center; 
    }
    .hero-buttons { 
        display: flex !important;
        justify-content: center; 
        flex-direction: column; 
        align-items: center; 
        gap: 0.75rem; 
        width: 100%;
    }
    .btn { 
        width: 100%; 
        max-width: 280px; 
        justify-content: center; 
    }
    .hero-stats { 
        display: flex;
        justify-content: center; 
        gap: 0.5rem; 
        margin-top: 1.5rem; 
        width: 100%;
        flex-wrap: nowrap;
    }
    .hero-stat { 
        padding: 0.6rem 0.4rem; 
        flex: 1 1 0; 
        min-width: 0;
        max-width: none;
    }
    .hero-stat-number { font-size: 1.2rem; }
    .hero-stat-label { font-size: 0.7rem; }
    .hero-image { display: none; }

    /* Grids collapse to single column */
    .features-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    /* Mobile nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--edubase-white);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 3px solid var(--edubase-blue-pale);
        border-bottom: 3px solid var(--edubase-blue);
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--edubase-blue-pale);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links a {
        display: block;
        padding: 14px 0;
        border-radius: 0;
        width: 100%;
    }
    .nav-links a.active {
        background: none;
        color: var(--edubase-blue);
    }
    .nav-links a.nav-cta {
        margin-top: 0.5rem;
        text-align: center;
        justify-content: center;
    }
    .mobile-toggle {
        display: block;
        width: 45px;
        height: 45px;
        border-radius: var(--radius-sm);
        background: var(--edubase-blue-pale);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    .mobile-toggle:hover {
        background: var(--edubase-blue-soft);
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* CTA section */
    .cta-section { padding: 40px 1rem; margin: 0 0.5rem; }
    .cta-section h2 { font-size: 1.6rem; }
    .cta-btn { 
        padding: 14px 24px; 
        font-size: 1rem; 
        width: 100%; 
        max-width: 260px; 
        justify-content: center; 
    }

    .admin-sidebar { transform: translateX(-100%); position: fixed; }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .section-inner { padding: 0 1rem; }
    .section-title { font-size: 1.8rem; }
    .section-desc { font-size: 1rem; }
    .page-header { padding: 100px 0 60px; }
    .page-header h1 { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: 1fr; }

    /* Mobile-responsive curriculum tables */
    .curriculum-table,
    .curriculum-table thead,
    .curriculum-table tbody,
    .curriculum-table th,
    .curriculum-table td,
    .curriculum-table tr {
        display: block;
    }
    .curriculum-table thead tr {
        display: none;
    }
    .curriculum-table tr {
        margin-bottom: 1rem;
        border: 2px solid var(--edubase-blue-pale);
        border-radius: var(--radius-sm);
        overflow: hidden;
        background: var(--edubase-white);
    }
    .curriculum-table td {
        border: none;
        border-bottom: 1px solid var(--edubase-blue-pale);
        position: relative;
        padding: 10px 16px 10px 10px;
        text-align: left;
        min-height: auto;
        line-height: 1.5;
    }
    .curriculum-table td:last-child {
        border-bottom: none;
    }
    .curriculum-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        top: 10px;
        width: 90px;
        font-weight: 700;
        color: var(--edubase-blue-dark);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        line-height: 1.5;
    }
    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
    }
    .data-table thead tr {
        display: none;
    }
    .data-table tr {
        margin-bottom: 1rem;
        border: 2px solid var(--edubase-blue-pale);
        border-radius: var(--radius-sm);
        overflow: hidden;
        background: var(--edubase-white);
    }
    .data-table td {
        border: none;
        border-bottom: 1px solid var(--edubase-blue-pale);
        position: relative;
        padding: 10px 16px 10px 110px;
        text-align: left;
        min-height: auto;
        line-height: 1.5;
    }
    .data-table td:last-child {
        border-bottom: none;
    }
    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        top: 10px;
        width: 90px;
        font-weight: 700;
        color: var(--edubase-blue-dark);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        line-height: 1.5;
    }
    .table-container {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    /* Additional mobile fixes */
    .top-bar-inner { flex-direction: column; gap: 4px; padding: 8px 1rem; text-align: center; }
    .top-bar a { margin-left: 0; }
    .feature-card { padding: 1.5rem; }
    .program-content { padding: 1.25rem 1.5rem 1.5rem; }
    .testimonial-card { padding: 1.5rem; }
    .footer { padding: 60px 0 20px; margin-top: 60px; }
    .footer-grid { gap: 2rem; }
    h1, h2, h3 { word-break: break-word; overflow-wrap: break-word; hyphens: auto; }
}