:root {
    --primary-blue: #0087cb;
    --dark-footer: #003d99; /* Deep blue from footer image */
    --text-main: #333;
    --bg-light: #f4f9ff;
}

body { font-family: 'Inter', sans-serif; margin: 0; color: var(--text-main); line-height: 1.6; }

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.25; /* Low opacity for subtle fade effect */
    z-index: -1;
    pointer-events: none; /* Ensure it doesn't interfere with interactions */
}

/* Navigation */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; border-bottom: 1px solid #eee; background: #fff; position: relative; z-index: 10; }
.nav-logo { height: 40px; }
.nav-menu, .nav-links { display: flex; align-items: center; gap: 20px; }
.nav-menu a, .nav-links a { text-decoration: none; color: #444; font-weight: 600; }
.nav-menu a.active, .nav-links a.active { color: var(--primary-blue); }
.btn-primary { background: var(--primary-blue); color: #fff; padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.btn-white { background: #fff; color: var(--dark-navy); padding: 12px 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.6); text-decoration: none; font-weight: 700; display: inline-block; }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* New Hero */
.new-hero { padding: 80px 5%; background: linear-gradient(to right, #ffffff, #eef6ff); }
.hero-container { display: flex; align-items: center; gap: 50px; max-width: 1200px; margin: 0 auto; }
.hero-content h1 { font-size: 3.5rem; color: #1a1a1a; line-height: 1.2; }
.hero-content h1 span { color: var(--primary-blue); }
.status-badge { color: var(--primary-blue); font-weight: bold; font-size: 0.9rem; }
.hero-btns { margin: 30px 0; display: flex; gap: 15px; }
.btn-blue { background: var(--primary-blue); color: #fff; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: bold; }
.btn-outline { border: 1px solid var(--primary-blue); color: var(--primary-blue); padding: 15px 30px; border-radius: 8px; text-decoration: none; }

.hero-image-wrapper { position: relative; flex: 1; }
.main-img { width: 100%; border-radius: 20px; }
.stat-card { position: absolute; background: #fff; padding: 10px 20px; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); font-weight: bold; }
.rating { top: 10%; right: -20px; }
.students { bottom: 10%; left: -20px; }

/* About Page Sections */
:root { --dark-navy: #112b4e; }
.levels-section { padding: 60px 5%; max-width: 1200px; margin: 0 auto; }
.section-header { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.badge { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; background: var(--primary-blue); color: #fff; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.sub-label { display: inline-block; margin-bottom: 12px; color: var(--primary-blue); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.subject-cta { margin: 20px 0; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.hero-text { flex: 1; }
.hero-text h2 { color: var(--dark-navy); font-size: 3rem; line-height: 1.2; margin-top: 20px; }
.hero-text p { color: var(--text-main); margin-top: 25px; max-width: 700px; line-height: 1.7; font-size: 1.05rem; }
.hero-text ul { list-style: none; padding: 0; margin-top: 30px; }
.hero-text ul li { margin-bottom: 15px; font-size: 1rem; line-height: 1.8; }
.hero-text ul li strong { color: var(--primary-blue); }
.hero-image-wrapper { flex: 1; }
.levels-section.cta-section { padding: 60px 5%; max-width: 1200px; margin: 0 auto; background: var(--dark-navy); color: #fff; text-align: center; border-radius: 24px; }
.levels-section.cta-section h3 { font-size: 2rem; margin-bottom: 15px; }
.levels-section.cta-section p { color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto 25px; }
.levels-section.cta-section .btn-white { background: #fff; color: var(--dark-navy); }

/* Subjects Grid */
.subjects-section { padding: 80px 5%; text-align: center; background: #fff; }
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.subject-card { background: #f9fbff; padding: 30px; border-radius: 15px; text-align: left; border: 1px solid #eef2f8; }
.s-icon { font-size: 2rem; margin-bottom: 15px; background: #fff; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* Revision Tools */
.revision-section { padding: 80px 5%; text-align: center; background: #fff; }
#search-container { margin: 40px auto; max-width: 600px; display: flex; gap: 10px; }
#search-input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
#search-btn { padding: 12px 20px; background: var(--primary-blue); color: #fff; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* How It Works */
.how-section { padding: 80px 5%; background: #f4f9ff; text-align: center; }
.steps-container { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; text-align: center; }
.step-num { width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #fff; font-weight: bold; font-size: 1.5rem; }
.blue-step { background: #4dabff; }
.teal-step { background: #38d39f; }
.yellow-step { background: #ffc107; }
.dark-step { background: #1a1a1a; }

/* Meet the Tutors */
.tutors-section { padding: 80px 5%; text-align: center; background: #fff; }
.tutors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.tutor-card { background: #f9fbff; padding: 30px; border-radius: 15px; text-align: center; border: 1px solid #eef2f8; }
.tutor-card img { width: 100px; height: 100px; border-radius: 50%; margin-bottom: 15px; object-fit: cover; }

/* Booking Form */
.form-section { padding: 80px 5%; text-align: center; background: #f4f9ff; }
.booking-form { max-width: 600px; margin: 40px auto 0; display: grid; gap: 20px; }
.form-group { text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--text-main); }
..form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary-blue); }

.btn-main { background: var(--primary-blue); color: #fff; padding: 15px 30px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; }
.form-note { font-size: 0.9rem; color: #666; text-align: center; margin-top: 10px; }

.lead-magnet-section { padding: 80px 5%; text-align: center; background: #eef6ff; }
.lead-magnet-section p { max-width: 720px; margin: 0 auto; }
.lead-magnet-content { margin-top: 30px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.contact-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 50px; padding: 60px 5%; max-width: 1200px; margin: 0 auto; }
.contact-hero .hero-text { flex: 1; }
.contact-hero .hero-text h2 { color: var(--dark-navy); margin-top: 0; }
.contact-hero .contact-info { margin-top: 30px; }
.contact-hero .contact-info div { margin-bottom: 20px; }
.contact-hero .contact-info strong { color: var(--primary-blue); display: block; margin-bottom: 8px; }
.contact-hero .lead-magnet { flex: 1.5; }
.contact-hero .booking-form { display: grid; gap: 20px; }
.contact-hero .booking-form .grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-hero .booking-form input, .contact-hero .booking-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.contact-hero .booking-form textarea { resize: vertical; }
.contact-hero .booking-form input:focus, .contact-hero .booking-form textarea:focus { outline: none; border-color: var(--primary-blue); }

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: #fff;
    font-weight: bold;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab-whatsapp {
    background: #25D366;
}

.fab-whatsapp:hover {
    background: #20ba5f;
}

.fab-book {
    background: var(--primary-blue);
}

.fab-book:hover {
    background: #006ba8;
}

.fab-label {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-right: 12px;
    font-weight: 600;
}

.fab:hover .fab-label {
    display: block;
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 15px;
    }

    .fab {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .fab-label {
        display: none;
    }
}

/* Footer */
.main-footer { background: var(--dark-footer); color: #fff; padding: 60px 5% 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.footer-logo { height: 40px; margin-bottom: 20px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ccc; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; font-size: 0.9rem; color: #ccc; }
.legal a { margin-left: 20px; color: #ccc; text-decoration: none; }

@media (max-width: 768px) {
    .hero-container, .footer-grid { flex-direction: column; text-align: center; }
    .hero-btns { justify-content: center; }
    .hamburger { display: block; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .nav-menu a { margin: 10px 0; margin-left: 0; }
    .hero-content h1 { font-size: 2.2rem; line-height: 1.3; }
    .hero-content p { font-size: 1rem; line-height: 1.7; }
    .stat-card { position: relative; top: auto; left: auto; right: auto; bottom: auto; margin: 10px auto; max-width: 200px; }
    .subjects-grid { grid-template-columns: 1fr; }
    .tutors-grid { grid-template-columns: 1fr; }
    .steps-container { flex-direction: column; }
    .btn-blue, .btn-outline { padding: 14px 28px; font-size: 1rem; min-height: 44px; min-width: 100px; }
    .btn-primary { padding: 14px 24px; min-height: 44px; }
    .booking-form { gap: 15px; }
    .form-group input, .form-group select { padding: 12px; font-size: 1rem; min-height: 44px; }
    #search-container { flex-direction: column; gap: 10px; }
    #search-input { min-height: 44px; padding: 12px; }
    #search-btn { min-height: 44px; }
    .main-footer { padding: 40px 5% 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 10px; }
    .legal { margin-left: 0; }
    .hero { flex-direction: column; align-items: flex-start; }
    .hero-text h2 { font-size: 1.8rem; line-height: 1.3; }
    .hero-text p { line-height: 1.7; font-size: 1rem; }
    .hero-text ul li { font-size: 0.95rem; line-height: 1.7; }
    .hero-text { width: 100%; }
    .hero-image-wrapper { width: 100%; }
    .hero-image-wrapper img { border-radius: 20px; }
    .section-header, .levels-section.cta-section { text-align: center; }
    .levels-section.cta-section { padding: 40px 5%; }
    .contact-hero { flex-direction: column; align-items: center; }
    .contact-hero .hero-text { width: 100%; text-align: center; }
    .contact-hero .lead-magnet { width: 100%; }
    .contact-hero .booking-form .grid-two { grid-template-columns: 1fr; }
    h2 { font-size: 1.8rem; line-height: 1.3; }
    h3 { font-size: 1.3rem; line-height: 1.4; }
    p { line-height: 1.7; font-size: 0.95rem; }
}
