<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Online Coding Classes for Kids | ABCCoders Programming Courses Age 6-20</title>
    <meta name="description"
        content="ABCCoders offers interactive live 1-on-1 and small-group online coding classes for kids aged 6-20. Learn Scratch, Python, JavaScript, AI &amp; Machine Learning with certified instructors. Rated 4.9/5 by 200+ parents. Serving India, UAE &amp; Canada. Book a free demo class today!">
    <meta name="keywords"
        content="online coding classes for kids, programming courses for children, kids coding classes, learn coding online kids, children programming education">
    <meta name="author" content="Muhammed Ameen, Founder & CEO ABCCoders">
    <meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1">
    <meta property="og:title" content="Online Coding Classes for Kids | ABCCoders Programming Courses Age 6-20">
    <meta property="og:description"
        content="ABCCoders offers interactive live 1-on-1 and small-group online coding classes for kids aged 6-20. Learn Scratch, Python, JavaScript, AI &amp; Machine Learning with certified instructors. Rated 4.9/5 by 200+ parents.">
    <meta property="og:image" content="https://abccoders.com/images/abccoders-social-share.jpg">
    <meta property="og:url" content="https://abccoders.com/">
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="ABCCoders">
    <meta property="og:locale" content="en_US">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Online Coding Classes for Kids | ABCCoders Programming Courses">
    <meta name="twitter:description"
        content="Online coding classes for kids age 6-20. Learn programming the fun way with certified teachers!">
    <meta name="twitter:image" content="https://abccoders.com/images/abccoders-social-share.jpg">
    <meta name="geo.region" content="IN-KL">
    <meta name="geo.placename" content="Kochi, Kerala, India">
    <meta name="geo.position" content="10.0261;76.3125">
    <meta name="ICBM" content="10.0261, 76.3125">
    <link rel="canonical" href="https://abccoders.com/">
    <link rel="preload" as="image" href="images/hero-scratch-kid.png" fetchpriority="high">
    <link rel="alternate" hreflang="en" href="https://abccoders.com/">
    <link rel="alternate" hreflang="en-IN" href="https://abccoders.com/">
    <link rel="alternate" hreflang="en-CA" href="https://abccoders.com/">
    <link rel="shortcut icon" href="images/favicon.png" type="image/png">

    <!-- Early Auth Check: Automatically redirect logged-in STUDENTS straight to student portal -->
    <script>
        (function() {
            try {
                var role = localStorage.getItem('abc_user_role') || sessionStorage.getItem('abc_user_role');
                var student = localStorage.getItem('abc_active_student');

                if (role === 'student' || (student && role !== 'tutor' && role !== 'sales' && role !== 'admin' && role !== 'superadmin')) {
                    window.location.replace('student-portal.html');
                }
            } catch (e) {}
        })();
    </script>

    <!-- Content Security Policy for better security -->
    <meta http-equiv="Content-Security-Policy"
        content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://www.gstatic.com https://www.google.com https://apis.google.com https://firebase.googleapis.com https://checkout.razorpay.com https://cdn.razorpay.com https://browser.sentry-cdn.com https://accounts.google.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com https://cdnjs.cloudflare.com data:; img-src 'self' data: https:; connect-src 'self' https://firebase.googleapis.com https://www.googleapis.com https://firestore.googleapis.com https://api.razorpay.com https://identitytoolkit.googleapis.com https://lumberjack.razorpay.com https://securetoken.googleapis.com https://accounts.google.com https://api.ipgeolocation.io https://ipapi.co https://api.country.is https://api.exchangerate-api.com; frame-src 'self' https://www.google.com https://razorpay.com https://abccoders-5dfc2.firebaseapp.com https://accounts.google.com;">
    <meta http-equiv="Cross-Origin-Opener-Policy" content="unsafe-none">
    <meta http-equiv="Cross-Origin-Embedder-Policy" content="unsafe-none">

    <!-- DNS Prefetch for better performance -->
    <link rel="dns-prefetch" href="//firebase.googleapis.com">
    <link rel="dns-prefetch" href="//www.gstatic.com">
    <link rel="dns-prefetch" href="//firestore.googleapis.com">

    <!-- Preconnect for better performance -->
    <link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
    <link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
    <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" media="all">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" media="all">
    <!-- Google Fonts with font-display: swap -->
    <link
        href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap"
        rel="stylesheet" media="all">

    <link rel="stylesheet" href="css/home.css">
    <link rel="stylesheet" href="css/navigation.css">
    <link rel="stylesheet" href="css/home-refresh.css">
    <style>
        /* Hero Dynamic Text Reserved Frame (Prevents Layout Shifts & Size Changes) */
        .hero-text-frame {
            min-height: 240px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            margin-bottom: 1.8rem;
        }

        @media (max-width: 992px) {
            .hero-text-frame {
                min-height: 260px;
            }
        }

        @media (max-width: 576px) {
            .hero-text-frame {
                min-height: 310px;
            }
        }

        /* Hero 3D Image Stack & Hover Loop Swap */
        .hero-image-stack {
            position: relative;
            width: 100%;
            max-width: 460px;
            height: 340px;
            margin: 0 auto;
            perspective: 1000px;
            cursor: pointer;
            padding: 10px;
            box-sizing: border-box;
        }

        .hero-img-card {
            position: absolute;
            width: 82%;
            height: 280px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 16px 40px rgba(79, 70, 229, 0.18);
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: 3px solid #ffffff;
            background: #1e1b4b;
        }

        .hero-img-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Default stack state: card-front in foreground, card-back behind */
        .hero-img-card.card-front {
            top: 0;
            left: 0;
            z-index: 3;
            transform: rotate(-2deg) translateY(0);
            animation: heroStackFloat 5s ease-in-out infinite;
        }

        .hero-img-card.card-back {
            top: 25px;
            left: 25px;
            z-index: 1;
            transform: rotate(4deg) scale(0.94);
            opacity: 0.9;
            filter: brightness(0.92);
            animation: heroBackPulse 5s ease-in-out infinite;
        }

        /* Hover effect: Smoothly swap depth & rotation between front and back cards */
        .hero-image-stack:hover .card-front,
        .hero-image-stack.swapped .card-front {
            top: 25px;
            left: 25px;
            z-index: 1;
            transform: rotate(4deg) scale(0.94);
            opacity: 0.9;
            filter: brightness(0.92);
        }

        .hero-image-stack:hover .card-back,
        .hero-image-stack.swapped .card-back {
            top: 0;
            left: 0;
            z-index: 3;
            transform: rotate(-2deg) scale(1) translateY(-4px);
            opacity: 1;
            filter: brightness(1);
            box-shadow: 0 20px 50px rgba(79, 70, 229, 0.3);
        }

        /* Float & pulse keyframe loops */
        @keyframes heroStackFloat {
            0%, 100% { transform: rotate(-2deg) translateY(0); }
            50% { transform: rotate(-1deg) translateY(-8px); }
        }

        @keyframes heroBackPulse {
            0%, 100% { transform: rotate(4deg) scale(0.94); }
            50% { transform: rotate(2deg) scale(0.96); }
        }

        .badge-overlay-label {
            position: absolute;
            bottom: 12px;
            left: 12px;
            background: rgba(15, 23, 42, 0.85);
            color: #ffffff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 5px 12px;
            border-radius: 20px;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            z-index: 4;
        }

        .hero-floating-badge {
            position: absolute;
            background: white;
            border-radius: 12px;
            padding: 8px 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            font-size: 0.8rem;
            font-weight: 700;
            color: #111;
            border: 1px solid #E5E7EB;
            transition: all 0.3s ease;
            white-space: nowrap;
            z-index: 5;
        }
        .hero-floating-badge.badge-top-right {
            top: 0;
            right: 0;
        }
        .hero-floating-badge.badge-bottom-left {
            bottom: 10px;
            left: -10px;
        }
        .hero-floating-badge.badge-bottom-right {
            bottom: 10px;
            right: -10px;
            background: #4F46E5;
            color: white;
            border-color: #4F46E5;
            box-shadow: 0 8px 24px rgba(79,70,229,0.25);
        }

        @media (max-width: 991px) {
            .hero-image-stack {
                height: 290px;
                max-width: 360px;
                margin: 20px auto 0;
            }
            .hero-img-card {
                width: 82%;
                height: 230px;
                border-radius: 16px;
            }
            .hero-img-card.card-back,
            .hero-image-stack:hover .card-front,
            .hero-image-stack.swapped .card-front {
                top: 18px;
                left: 18px;
            }
            .hero-floating-badge {
                font-size: 0.72rem;
                padding: 5px 10px;
                border-radius: 8px;
            }
            .hero-floating-badge.badge-top-right {
                top: -5px;
                right: -5px;
            }
            .hero-floating-badge.badge-bottom-left {
                bottom: 0;
                left: -5px;
            }
            .hero-floating-badge.badge-bottom-right {
                bottom: 0;
                right: -5px;
            }
        }

        /* Course Finder Quiz Styling */
        .quiz-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 2.2rem;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            text-align: left;
            position: relative;
            overflow: hidden;
            z-index: 10;
        }
        .quiz-card::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 60%);
            pointer-events: none;
            z-index: 0;
        }
        .quiz-step {
            display: none;
            position: relative;
            z-index: 1;
        }
        .quiz-step.active {
            display: block;
            animation: fadeIn 0.4s ease-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .quiz-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: white;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            line-height: 1.3;
        }
        .quiz-progress {
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            margin-bottom: 1.8rem;
            overflow: hidden;
        }
        .quiz-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #818cf8 0%, #c084fc 100%);
            width: 33.33%;
            transition: width 0.3s ease;
        }
        .quiz-options {
            display: grid;
            gap: 0.8rem;
        }
        .quiz-btn {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.9);
            padding: 1.1rem 1.2rem;
            border-radius: 12px;
            text-align: left;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            cursor: pointer;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .quiz-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: #818cf8;
            color: white;
            transform: translateX(4px);
        }
        .quiz-btn i {
            opacity: 0.5;
            transition: transform 0.2s ease;
        }
        .quiz-btn:hover i {
            opacity: 1;
            transform: translateX(2px);
        }
        .quiz-result-card {
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.25);
            border-radius: 14px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }
        .quiz-result-title {
            color: #10b981;
            font-size: 1.4rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }
        .quiz-result-desc {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
        }
        .quiz-back-btn {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            padding: 0.5rem 0;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: color 0.2s;
        }
        .quiz-back-btn:hover {
            color: white;
        }
    </style>
</head>

<body class="home-refresh" itemscope itemtype="https://schema.org/WebPage">
        <!-- Promotional Coupon Banner -->
    <div id="promoBanner"
        style="background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 100%); color: white; padding: 10px 0; text-align: center; position: relative; z-index: 10000; box-shadow: 0 2px 10px rgba(0,0,0,0.2);">
        <div class="container d-flex justify-content-center align-items-center flex-wrap gap-3">
            <span style="font-weight: 700; font-size: 1.05rem; letter-spacing: 0.5px;">
                <i class="fas fa-check-circle text-success me-1"></i> <span style="background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 4px;">LIMITED OFFER</span>
                Use code <span style="font-weight: 800; background: rgba(255,255,255,0.25); padding: 2px 10px; border-radius: 4px; letter-spacing: 1px;">WELCOME10</span> for <span style="font-weight: 800; text-decoration: underline;">10% OFF</span> your first course!
            </span>
            <a href="https://wa.me/916238568207?text=Hi%20ABCCoders%21%20I%27m%20interested%20in%20enrolling%20for%20a%20coding%20course.%20Please%20share%20the%20available%20courses%20and%20pricing%21" target="_blank" rel="noopener noreferrer" class="btn btn-light btn-sm rounded-pill px-4 fw-bold"
                style="color: #4F46E5; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s;"
                onmouseover="this.style.transform='scale(1.05)'" onmouseout="this.style.transform='scale(1)'">
                ENROLL NOW <i class="fas fa-arrow-right ms-1"></i>
            </a>
        </div>
    </div>

    <!-- Success Notification Banner -->
    <div id="successNotification" class="success-notification" style="display: none;">
        <div class="success-content">
            <i class="fas fa-check-circle"></i>
            <div class="success-text">
                <div class="success-title" id="successTitle">Demo Request Sent!</div>
                <div class="success-message" id="successMessage">We'll contact you soon to schedule your free coding
                    class.</div>
            </div>
            <button class="success-close" onclick="closeSuccessNotification()">&times;</button>
        </div>
    </div>

    <!-- Header Top -->
    <header class="header-top" role="banner">
        <div class="container" itemscope itemtype="https://schema.org/Organization">
            <div class="contact-info" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
                <div class="icon"><i class="fas fa-map-marker-alt"></i></div>
                <span itemprop="streetAddress">#FUTURE SCHOOL, Peringala, <span itemprop="addressLocality">Kochi</span>
                    - <span itemprop="postalCode">683565</span></span>
            </div>
            <div class="contact-info">
                <div class="icon"><i class="fas fa-envelope"></i></div>
                <span itemprop="email">sales@abccoders.com</span>
            </div>
            <div class="contact-info">
                <div class="icon"><i class="fas fa-phone"></i></div>
                <span itemprop="telephone">+91 62385 68207</span>
            </div>
        </div>
    </header>

    <!-- Navigation -->
    <nav class="navbar" role="navigation" aria-label="Main navigation">
        <div class="container">
            <a class='navbar-brand' href='/' itemprop='url'>
                <img src="images/favicon.png" alt="ABCCoders Logo" class="logo-image" itemprop="logo">
                <span itemprop="name">ABCCoders</span>
            </a>

            <!-- Mobile menu button -->
            <button class="mobile-menu-btn" aria-label="Toggle navigation menu" aria-expanded="false">
                <span></span>
                <span></span>
                <span></span>
            </button>

            <ul class="navbar-nav" id="navbarNav" role="menubar">
                <li role="none"><a class='nav-link active' href='/' role='menuitem'>Home</a></li>
                <li role="none"><a class='nav-link' href='/about' role='menuitem'>About</a></li>
                
                <!-- Programs Dropdown -->
                <li role="none" class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="programsDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                        Programs
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="programsDropdown">
                        <li><a class='dropdown-item' href='/coding-classes-for-kids'>Coding Classes</a></li>
                        <li><a class='dropdown-item' href='/courses'>All Courses</a></li>
                        <li><a class='dropdown-item' href='/coding-camps'>Coding Camps</a></li>
                    </ul>
                </li>
                
                <li role="none"><a class='nav-link' href='/schools' role='menuitem'>Schools</a></li>
                
                <!-- Resources Dropdown -->
                <li role="none" class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="resourcesDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                        Resources
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="resourcesDropdown">
                        <li><a class='dropdown-item' href='/resources'>Free Resources</a></li>
                        <li><a class='dropdown-item' href='/quizzes'>Quizzes</a></li>
                        <li><a class='dropdown-item' href='/projects'>Student Projects</a></li>
                    </ul>
                </li>
                
                <li role="none"><a class='nav-link' href='/blogs' role='menuitem'>Blogs</a></li>
                <li role="none"><a class='nav-link' href='/contact' role='menuitem'>Contact</a></li>
                <li role="none" id="dashboardNavItem" style="display: none !important;"><a class='nav-link' href='/student-portal' role='menuitem'><i class="fas fa-tachometer-alt"></i> Dashboard</a></li>
                <li role="none" id="authButton"><a href="auth/signin.html" class="btn btn-secondary" role="menuitem"><i class="fas fa-user"></i> Login</a></li>
                <li role="none"><a href="https://wa.me/916238568207?text=Hi%20ABCCoders%21%20I%27m%20interested%20in%20enrolling%20for%20a%20coding%20course.%20Please%20share%20the%20available%20courses%20and%20pricing%21" target="_blank" rel="noopener noreferrer" class="btn btn-primary" role="menuitem"><i class="fas fa-shopping-cart"></i> Enroll</a></li>
            </ul>
        </div>
    </nav>

    <main role="main">
        <!-- ═══ HERO ═══ -->
        <section class="hr-hero" itemscope itemtype="https://schema.org/EducationalOrganization">
            <div class="hr-wrap hr-hero__grid">
                <div class="hr-hero__copy">
                    <div class="hr-eyebrow">
                        <span class="hr-live-dot" aria-hidden="true"></span>
                        Live online classes · Ages 6–20
                    </div>

                    <h1 itemprop="name">Online coding classes that turn <span class="hr-underline">curiosity into real projects.</span></h1>

                    <p itemprop="description">Live 1:1 and small-group lessons for ages 6–20. Your child learns Scratch, Python, web development and AI by building games, apps and websites they are proud to share.</p>

                    <div class="hr-hero__actions">
                        <a class='hr-btn hr-btn--primary' href='/demo-request-form'>
                            Book a free demo <i class="fas fa-arrow-right" aria-hidden="true"></i>
                        </a>
                        <a href="#courses" class="hr-btn hr-btn--ghost">
                            See courses
                        </a>
                    </div>

                    <div class="hr-trust">
                        <div class="hr-avatars" aria-hidden="true">
                            <span class="hr-avatar">RM</span>
                            <span class="hr-avatar">FA</span>
                            <span class="hr-avatar">AN</span>
                        </div>
                        <div class="hr-trust__copy">
                            <strong>4.9/5 from 200+ parents</strong><br>
                            India · UAE · Canada
                        </div>
                        <span class="hr-trust__item"><i class="fas fa-check-circle" aria-hidden="true"></i> No card needed</span>
                        <a class="hr-trust__item" href="https://wa.me/916238568207?text=Hi%20ABCCoders%21%20I%27d%20like%20to%20book%20a%20free%20demo%20class." target="_blank" rel="noopener noreferrer" style="color:#0b9b72;text-decoration:none;">
                            <i class="fab fa-whatsapp" aria-hidden="true"></i> Chat on WhatsApp
                        </a>
                    </div>

                    <meta itemprop="teaches" content="Python Programming">
                    <meta itemprop="teaches" content="Scratch">
                    <meta itemprop="teaches" content="Artificial Intelligence">
                    <meta itemprop="teaches" content="Web Development">
                    <meta itemprop="courseMode" content="Online">
                    <meta itemprop="educationalLevel" content="K-12">
                    <meta itemprop="areaServed" content="India">
                    <meta itemprop="areaServed" content="UAE">
                    <meta itemprop="areaServed" content="Canada">
                </div>

                <div class="hr-hero__visual" aria-label="Student learning to code in a live online class">
                    <span class="hr-blob hr-blob--peach" aria-hidden="true"></span>
                    <span class="hr-blob hr-blob--indigo" aria-hidden="true"></span>

                    <div class="hr-photo">
                        <img src="images/hero-scratch-kid.png" alt="Child coding on a laptop in a live ABCCoders class" fetchpriority="high" width="840" height="980">
                        <div class="hr-photo__tag"><i class="fas fa-circle" aria-hidden="true"></i> Live 1:1 class</div>
                    </div>

                    <div class="hr-float hr-float--project">
                        <span class="hr-float__icon"><i class="fas fa-gamepad" aria-hidden="true"></i></span>
                        <span><small>Student project</small><strong>Dodge the Asteroids</strong></span>
                    </div>

                    <div class="hr-float hr-float--rating">
                        <span class="hr-float__icon"><i class="fas fa-star" aria-hidden="true"></i></span>
                        <span><small>Parent rating</small><strong>4.9 / 5 · 200+ reviews</strong></span>
                    </div>

                    <div class="hr-float hr-float--teacher">
                        <span class="hr-float__icon"><i class="fas fa-chalkboard-teacher" aria-hidden="true"></i></span>
                        <span><small>Matched to your child</small><strong>Certified live teacher</strong></span>
                    </div>
                </div>
            </div>
        </section>

        <!-- ═══ PROOF BAR ═══ -->
        <section class="hr-proof" aria-label="ABCCoders by the numbers">
            <div class="hr-wrap hr-proof__grid">
                <div class="hr-proof__intro">
                    <i class="fas fa-globe" aria-hidden="true"></i>
                    <span><strong>Learning without borders</strong>Families join from 12+ countries.</span>
                </div>
                <div class="hr-stat">
                    <strong>3,000+</strong>
                    <span>Students taught</span>
                </div>
                <div class="hr-stat">
                    <strong>4,500+</strong>
                    <span>Live class hours</span>
                </div>
                <div class="hr-stat">
                    <strong>4.9/5</strong>
                    <span>Parent rating</span>
                </div>
                <div class="hr-stat">
                    <strong>12+</strong>
                    <span>Countries</span>
                </div>
            </div>
        </section>

        <!-- ═══ COURSES ═══ -->
        <section class="hr-section hr-section--white" id="courses">
            <div class="hr-wrap">
                <div class="hr-head">
                    <div>
                        <span class="hr-kicker">Live, project-based courses</span>
                        <h2 class="hr-title">Courses they'll actually look forward to.</h2>
                    </div>
                    <div>
                        <p class="hr-lead">Every course is taught live by a certified teacher. Students build something real from the very first lesson.</p>
                        <a class='hr-textlink' href='/courses' style='margin-top:18px;'>See all courses <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    </div>
                </div>

                <div class="hr-courses">
                    <article class="hr-course">
                        <div class="hr-course__media">
                            <img src="images/course-scratch.png" alt="Colourful Scratch coding blocks for kids" loading="lazy" width="720" height="460">
                            <span class="hr-course__level">Beginner · Ages 6–9</span>
                        </div>
                        <div class="hr-course__body">
                            <h3>Scratch Coding</h3>
                            <p>Build animated stories, games and interactive art with visual blocks. The perfect first coding language.</p>
                            <ul class="hr-course__outcomes">
                                <li><i class="fas fa-check" aria-hidden="true"></i> Create your own game</li>
                                <li><i class="fas fa-check" aria-hidden="true"></i> Animate characters and stories</li>
                            </ul>
                            <div class="hr-course__foot">
                                <a class='hr-textlink' href='/scratch-coding-classes-for-kids'>Course details <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                            </div>
                            <form class="payment-button hr-pay">
                                <script src="https://cdn.razorpay.com/static/widget/payment-button.js" data-payment_button_id="pl_FRQCdRcq7huotK"></script>
                            </form>
                        </div>
                    </article>

                    <article class="hr-course">
                        <div class="hr-course__media">
                            <img src="images/course-python.png" alt="Python programming for kids" loading="lazy" width="720" height="460">
                            <span class="hr-course__level">Beginner · Ages 9–14</span>
                        </div>
                        <div class="hr-course__body">
                            <h3>Python Programming</h3>
                            <p>Learn the world's most popular coding language by building mini-games, calculators and automation scripts.</p>
                            <ul class="hr-course__outcomes">
                                <li><i class="fas fa-check" aria-hidden="true"></i> Write real Python programs</li>
                                <li><i class="fas fa-check" aria-hidden="true"></i> Build logic and problem-solving skills</li>
                            </ul>
                            <div class="hr-course__foot">
                                <a class='hr-textlink' href='/python-coding-classes-for-kids'>Course details <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                            </div>
                            <form class="payment-button hr-pay">
                                <script src="https://cdn.razorpay.com/static/widget/payment-button.js" data-payment_button_id="pl_FRQCdRcq7huotK"></script>
                            </form>
                        </div>
                    </article>

                    <article class="hr-course">
                        <div class="hr-course__media">
                            <img src="images/course-webdev.png" alt="Web development for kids" loading="lazy" width="720" height="460">
                            <span class="hr-course__level">Intermediate · Ages 11–16</span>
                        </div>
                        <div class="hr-course__body">
                            <h3>Web Development</h3>
                            <p>Build real websites with HTML, CSS and JavaScript. Go from a blank page to a fully live personal site.</p>
                            <ul class="hr-course__outcomes">
                                <li><i class="fas fa-check" aria-hidden="true"></i> Build your own website</li>
                                <li><i class="fas fa-check" aria-hidden="true"></i> Add interactive JavaScript</li>
                            </ul>
                            <div class="hr-course__foot">
                                <a class='hr-textlink' href='/web-development-classes-for-kids'>Course details <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                            </div>
                            <form class="payment-button hr-pay">
                                <script src="https://cdn.razorpay.com/static/widget/payment-button.js" data-payment_button_id="pl_FRQferE481Yv80"></script>
                            </form>
                        </div>
                    </article>

                    <article class="hr-course">
                        <div class="hr-course__media">
                            <img src="images/course-ai.png" alt="AI and machine learning for teens" loading="lazy" width="720" height="460">
                            <span class="hr-course__level">Advanced · Ages 13–18</span>
                        </div>
                        <div class="hr-course__body">
                            <h3>AI &amp; Machine Learning</h3>
                            <p>Build AI-powered apps, train machine-learning models and explore the future of technology hands-on.</p>
                            <ul class="hr-course__outcomes">
                                <li><i class="fas fa-check" aria-hidden="true"></i> Train your own AI model</li>
                                <li><i class="fas fa-check" aria-hidden="true"></i> Build real AI applications</li>
                            </ul>
                            <div class="hr-course__foot">
                                <a class='hr-textlink' href='/ai-ml-coding-classes-for-kids'>Course details <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                            </div>
                            <form class="payment-button hr-pay">
                                <script src="https://cdn.razorpay.com/static/widget/payment-button.js" data-payment_button_id="pl_FRQQbytrwCdItw"></script>
                            </form>
                        </div>
                    </article>
                </div>

                <p class="hr-course__note">Not sure where to start? Book a free demo and we'll recommend the right course for your child.</p>
            </div>
        </section>

        <!-- ═══ AGE PATHWAYS ═══ -->
        <section class="hr-section" id="pathways">
            <div class="hr-wrap">
                <div class="hr-head">
                    <div>
                        <span class="hr-kicker">Find their starting point</span>
                        <h2 class="hr-title">A clear path, from first block to real code.</h2>
                    </div>
                    <p class="hr-lead">Start where they are. Every pathway builds logic, confidence and a portfolio your child can show off.</p>
                </div>

                <div class="hr-paths">
                    <article class="hr-path hr-path--peach">
                        <div class="hr-path__icon"><i class="fas fa-puzzle-piece" aria-hidden="true"></i></div>
                        <div class="hr-path__age">Ages 6–9 · Foundation</div>
                        <h3>Playful first steps</h3>
                        <p>Drag-and-drop Scratch projects teach sequencing, loops and cause-and-effect before typing gets in the way.</p>
                        <div class="hr-tags">
                            <span class="hr-tag">Games</span>
                            <span class="hr-tag">Animation</span>
                            <span class="hr-tag">Logic</span>
                        </div>
                        <a class='hr-textlink' href='/scratch-coding-classes-for-kids'>Explore the Scratch path <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    </article>

                    <article class="hr-path hr-path--mint">
                        <div class="hr-path__icon"><i class="fas fa-laptop-code" aria-hidden="true"></i></div>
                        <div class="hr-path__age">Ages 10–13 · Builder</div>
                        <h3>From blocks to real code</h3>
                        <p>Students move into Python and web development, building games, tools and their first live website.</p>
                        <div class="hr-tags">
                            <span class="hr-tag">Python</span>
                            <span class="hr-tag">Websites</span>
                            <span class="hr-tag">Projects</span>
                        </div>
                        <a class='hr-textlink' href='/python-coding-classes-for-kids'>Explore the Python path <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    </article>

                    <article class="hr-path hr-path--lilac">
                        <div class="hr-path__icon"><i class="fas fa-brain" aria-hidden="true"></i></div>
                        <div class="hr-path__age">Ages 14–18 · Creator</div>
                        <h3>AI and full-stack projects</h3>
                        <p>Teens build apps, train machine-learning models and leave with portfolio work for school and college.</p>
                        <div class="hr-tags">
                            <span class="hr-tag">AI / ML</span>
                            <span class="hr-tag">Full-stack</span>
                            <span class="hr-tag">Portfolio</span>
                        </div>
                        <a class='hr-textlink' href='/ai-ml-coding-classes-for-kids'>Explore the AI path <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    </article>
                </div>
            </div>
        </section>

        <!-- ═══ HOW IT WORKS ═══ -->
        <section class="hr-section hr-section--cream" id="how-it-works">
            <div class="hr-wrap">
                <div class="hr-head">
                    <div>
                        <span class="hr-kicker">How it works</span>
                        <h2 class="hr-title">Three small steps. One confident start.</h2>
                    </div>
                    <p class="hr-lead">No long application, no payment upfront. Start with a real lesson and see how your child responds.</p>
                </div>

                <div class="hr-steps">
                    <div class="hr-step">
                        <div class="hr-step__num">01</div>
                        <h3>Tell us about your child</h3>
                        <p>Share their age, interests and experience. We'll suggest the right starting point.</p>
                    </div>
                    <div class="hr-step">
                        <div class="hr-step__num">02</div>
                        <h3>Meet a teacher, free</h3>
                        <p>Book a live 45-minute demo. No card, no commitment — just a real lesson.</p>
                    </div>
                    <div class="hr-step">
                        <div class="hr-step__num">03</div>
                        <h3>Start building</h3>
                        <p>Choose a time that works. Their first project starts in the very first session.</p>
                    </div>
                </div>

                <div class="hr-steps__cta">
                    <a class='hr-btn hr-btn--primary' href='/demo-request-form'>Book the free demo <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    <span><i class="fas fa-shield-alt" style="color:#0b9b72;" aria-hidden="true"></i> No credit card required · Confirmed within 2 hours</span>
                </div>
            </div>
        </section>

        <!-- ═══ WHY FAMILIES STAY ═══ -->
        <section class="hr-section hr-diff">
            <div class="hr-wrap hr-diff__grid">
                <div>
                    <span class="hr-kicker hr-kicker--light">Why families stay</span>
                    <h2 class="hr-title hr-title--light">The difference is in the room.</h2>
                    <p class="hr-lead hr-lead--light">Small groups, real teachers, and work your child can point to with pride.</p>

                    <div class="hr-diff__list">
                        <div class="hr-diff__item">
                            <i class="fas fa-user-graduate" aria-hidden="true"></i>
                            <h3>A teacher in their corner</h3>
                            <p>1:1 attention or a group of no more than four. Nobody gets lost at the back.</p>
                        </div>
                        <div class="hr-diff__item">
                            <i class="fas fa-code-branch" aria-hidden="true"></i>
                            <h3>Projects from lesson one</h3>
                            <p>Students learn by making games, apps and websites — not by copying theory.</p>
                        </div>
                        <div class="hr-diff__item">
                            <i class="fas fa-route" aria-hidden="true"></i>
                            <h3>A path that grows with them</h3>
                            <p>From Scratch to Python, web development and AI, the next step is always clear.</p>
                        </div>
                        <div class="hr-diff__item">
                            <i class="fas fa-clock" aria-hidden="true"></i>
                            <h3>Times that fit real life</h3>
                            <p>Evenings, weekends and late-night slots for families across time zones.</p>
                        </div>
                    </div>
                </div>

                <figure class="hr-quote">
                    <div class="hr-stars" aria-label="Five out of five stars">
                        <i class="fas fa-star" aria-hidden="true"></i>
                        <i class="fas fa-star" aria-hidden="true"></i>
                        <i class="fas fa-star" aria-hidden="true"></i>
                        <i class="fas fa-star" aria-hidden="true"></i>
                        <i class="fas fa-star" aria-hidden="true"></i>
                    </div>
                    <blockquote style="margin:0;padding:0;border:0;">
                        <p>“My son started with zero coding experience at age 8. Within 3 months he built his own Scratch game and showed it at his school science fair. The teacher was incredibly patient and made every class so fun.”</p>
                    </blockquote>
                    <figcaption class="hr-review__by">
                        <span class="hr-review__avatar">RM</span>
                        <span><strong>Reena Mathew</strong><span>Parent · Kochi, India</span></span>
                    </figcaption>
                </figure>
            </div>
        </section>

        <!-- ═══ PRICING ═══ -->
        <section class="hr-section" id="pricing">
            <div class="hr-wrap">
                <div class="hr-head--center">
                    <span class="hr-kicker">Transparent pricing</span>
                    <h2 class="hr-title">Simple, honest hourly rates.</h2>
                    <p class="hr-lead">Pay for the attention your child needs. Choose private, semi-private or small-group lessons.</p>
                </div>

                <div class="hr-toggle-wrap">
                    <div class="hr-toggle" role="group" aria-label="Class time">
                        <button id="btnDay" class="is-active" onclick="switchRate('day')" type="button">☀️ Day classes</button>
                        <button id="btnNight" onclick="switchRate('night')" type="button">🌙 Night classes <span style="font-size:10px;opacity:.7;">(10pm–4am)</span></button>
                    </div>
                    <p id="nightNote" class="hr-night-note">Night rate applies to 1:1 classes only. Group rates stay the same.</p>
                </div>

                <div class="hr-prices">
                    <article class="hr-price">
                        <div class="hr-price__top">
                            <span class="hr-price__icon"><i class="fas fa-user" aria-hidden="true"></i></span>
                            <div>
                                <h3>1:1 Private</h3>
                                <p>You and your teacher, only</p>
                            </div>
                        </div>
                        <div class="hr-price__amount">
                            <span class="hr-currency">₹</span>
                            <strong id="price11">700</strong>
                            <span>/ hour</span>
                        </div>
                        <div id="nightBadge" class="hr-night-badge">🌙 Night rate: ₹800/hr</div>
                        <div class="hr-price__meta">Per session, any duration</div>
                        <ul class="hr-price__features">
                            <li><i class="fas fa-check" aria-hidden="true"></i> 100% personalised attention</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Customised pace and curriculum</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Flexible scheduling</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Night slots available (10pm–4am)</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Progress reports every 6 sessions</li>
                        </ul>
                        <a href="https://wa.me/916238568207?text=Hi%20ABCCoders%21%20I%27m%20interested%20in%201%3A1%20coding%20classes.%20Please%20share%20availability%20and%20pricing." target="_blank" rel="noopener noreferrer" class="hr-btn hr-btn--ghost">Book 1:1 classes <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    </article>

                    <article class="hr-price hr-price--featured">
                        <span class="hr-price__badge">Most popular</span>
                        <div class="hr-price__top">
                            <span class="hr-price__icon"><i class="fas fa-user-friends" aria-hidden="true"></i></span>
                            <div>
                                <h3>1:2 Semi-private</h3>
                                <p>Your child plus one buddy</p>
                            </div>
                        </div>
                        <div class="hr-price__amount">
                            <span class="hr-currency">₹</span>
                            <strong>560</strong>
                            <span>/ hour</span>
                        </div>
                        <span class="hr-save">Save 20% per student</span>
                        <div class="hr-price__meta">Per student, per hour</div>
                        <ul class="hr-price__features">
                            <li><i class="fas fa-check" aria-hidden="true"></i> Learn with a peer — more fun</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> 20% savings per student</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Healthy peer competition</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Same certified teacher</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Pair with a sibling or friend</li>
                        </ul>
                        <a href="https://wa.me/916238568207?text=Hi%20ABCCoders%21%20I%27m%20interested%20in%201%3A2%20semi-private%20coding%20classes.%20Please%20share%20availability%20and%20pricing." target="_blank" rel="noopener noreferrer" class="hr-btn hr-btn--primary">Book 1:2 classes <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    </article>

                    <article class="hr-price">
                        <div class="hr-price__top">
                            <span class="hr-price__icon"><i class="fas fa-users" aria-hidden="true"></i></span>
                            <div>
                                <h3>1:4 Group</h3>
                                <p>Small group, big savings</p>
                            </div>
                        </div>
                        <div class="hr-price__amount">
                            <span class="hr-currency">₹</span>
                            <strong>420</strong>
                            <span>/ hour</span>
                        </div>
                        <span class="hr-save">Save 40% per student</span>
                        <div class="hr-price__meta">Per student, per hour</div>
                        <ul class="hr-price__features">
                            <li><i class="fas fa-check" aria-hidden="true"></i> Maximum 4 students per class</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Best value — 40% savings</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Collaborative projects</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Fixed weekly schedule</li>
                            <li><i class="fas fa-check" aria-hidden="true"></i> Same certified teachers</li>
                        </ul>
                        <a href="https://wa.me/916238568207?text=Hi%20ABCCoders%21%20I%27m%20interested%20in%20small-group%20coding%20classes.%20Please%20share%20availability%20and%20pricing." target="_blank" rel="noopener noreferrer" class="hr-btn hr-btn--ghost">Book group classes <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    </article>
                </div>

                <p class="hr-price-foot">Every format includes a free demo, progress updates and our <a href='/refund-policy'>money-back guarantee</a>.</p>

                <details class="hr-compare">
                    <summary>Compare class formats</summary>
                    <div class="hr-compare__scroll">
                        <table>
                            <thead>
                                <tr>
                                    <th>Feature</th>
                                    <th>1:1 Private</th>
                                    <th>1:2 Semi-private</th>
                                    <th>1:4 Group</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>Hourly rate (per student)</td>
                                    <td>₹700</td>
                                    <td>₹560</td>
                                    <td>₹420</td>
                                </tr>
                                <tr>
                                    <td>Night rate (10pm–4am)</td>
                                    <td>₹800/hr</td>
                                    <td>Same rate</td>
                                    <td>Same rate</td>
                                </tr>
                                <tr>
                                    <td>You save</td>
                                    <td>—</td>
                                    <td>₹140/hr</td>
                                    <td>₹280/hr</td>
                                </tr>
                                <tr>
                                    <td>Students per session</td>
                                    <td>1</td>
                                    <td>2</td>
                                    <td>Up to 4</td>
                                </tr>
                                <tr>
                                    <td>Customised pace</td>
                                    <td>Yes</td>
                                    <td>Yes</td>
                                    <td>Shared pace</td>
                                </tr>
                                <tr>
                                    <td>Free demo class</td>
                                    <td>Yes</td>
                                    <td>Yes</td>
                                    <td>Yes</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </details>
            </div>
        </section>

        <!-- ═══ REVIEWS ═══ -->
        <section class="hr-section hr-section--white" id="reviews">
            <div class="hr-wrap">
                <div class="hr-head">
                    <div>
                        <span class="hr-kicker">Parent stories</span>
                        <h2 class="hr-title">Parents see the change.</h2>
                    </div>
                    <div>
                        <p class="hr-lead">Real feedback from families who started with a free demo and stayed for the projects.</p>
                        <a href="https://share.google/aqtztK9xcQowgAtg8" target="_blank" rel="noopener noreferrer" class="hr-google" style="margin-top:16px;">
                            <img src="https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png" alt="" width="13" height="13"> Read our Google reviews <i class="fas fa-arrow-up-right-from-square" aria-hidden="true"></i>
                        </a>
                    </div>
                </div>

                <div class="hr-reviews">
                    <article class="hr-review hr-review--lilac">
                        <div class="hr-stars" aria-label="Five out of five stars">
                            <i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i>
                        </div>
                        <p>“My son started with zero coding experience at age 8. Within 3 months he built his own Scratch game and showed it at his school science fair. The teacher was incredibly patient and made every class so fun.”</p>
                        <div class="hr-review__by">
                            <span class="hr-review__avatar">R</span>
                            <span><strong>Reena Mathew</strong><span>Parent · Kochi, India</span></span>
                        </div>
                    </article>

                    <article class="hr-review hr-review--mint">
                        <div class="hr-stars" aria-label="Five out of five stars">
                            <i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i>
                        </div>
                        <p>“We tried two other platforms before ABCCoders. The difference is night and day. The 1:1 format means my daughter gets full attention, not lost in a classroom of 20 kids. She now codes every day by herself.”</p>
                        <div class="hr-review__by">
                            <span class="hr-review__avatar" style="background:linear-gradient(135deg,#10b981,#047857);">F</span>
                            <span><strong>Fatima Al Mansoori</strong><span>Parent · Dubai, UAE</span></span>
                        </div>
                    </article>

                    <article class="hr-review hr-review--peach">
                        <div class="hr-stars" aria-label="Five out of five stars">
                            <i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i><i class="fas fa-star" aria-hidden="true"></i>
                        </div>
                        <p>“Booked the free demo, was impressed and enrolled the same day. My 14-year-old is now halfway through the Python course and already talking about app ideas he wants to build. Best investment we made this year.”</p>
                        <div class="hr-review__by">
                            <span class="hr-review__avatar" style="background:linear-gradient(135deg,#f97316,#dc2626);">A</span>
                            <span><strong>Arjun Nair</strong><span>Parent · Abu Dhabi, UAE</span></span>
                        </div>
                    </article>
                </div>
            </div>
        </section>

        <!-- ═══ FAQ ═══ -->
        <section class="hr-section homepage-faq" id="faq">
            <div class="hr-wrap hr-faq">
                <div class="hr-faq__aside">
                    <span class="hr-kicker">Before you book</span>
                    <h2 class="hr-title">Questions parents ask.</h2>
                    <p class="hr-lead">Still unsure? Message us on WhatsApp and we'll help you choose the right starting point.</p>
                    <a href="https://wa.me/916238568207?text=Hi%20ABCCoders%21%20I%20have%20a%20question%20about%20your%20coding%20classes." target="_blank" rel="noopener noreferrer" class="hr-btn hr-btn--ghost"><i class="fab fa-whatsapp" aria-hidden="true"></i> Ask us on WhatsApp</a>
                </div>

                <div class="hr-faq__list" id="homepageFAQAccordion">
                    <div class="faq-item">
                        <button class="faq-question" onclick="toggleFAQ(this)" type="button">
                            What age groups do you teach coding for?
                            <i class="fas fa-chevron-down" aria-hidden="true"></i>
                        </button>
                        <div class="faq-answer" style="display:none;">
                            ABCCoders teaches children aged 6–20. Students are grouped by age and skill level, from visual block coding for younger children to Python, full-stack development and AI for teens.
                        </div>
                    </div>

                    <div class="faq-item">
                        <button class="faq-question" onclick="toggleFAQ(this)" type="button">
                            How do the live online classes work?
                            <i class="fas fa-chevron-down" aria-hidden="true"></i>
                        </button>
                        <div class="faq-answer" style="display:none;">
                            Every class is taught live through video. Choose 1:1 coaching, a 1:2 semi-private lesson, or a small group of no more than four students. Sessions are interactive, project-based and led by a certified instructor step by step.
                        </div>
                    </div>

                    <div class="faq-item">
                        <button class="faq-question" onclick="toggleFAQ(this)" type="button">
                            What will my child learn?
                            <i class="fas fa-chevron-down" aria-hidden="true"></i>
                        </button>
                        <div class="faq-answer" style="display:none;">
                            Depending on age and experience, students can learn Scratch, Python, HTML/CSS/JavaScript, data science and AI/ML. Each course is built around projects your child can run, share and keep improving.
                        </div>
                    </div>

                    <div class="faq-item">
                        <button class="faq-question" onclick="toggleFAQ(this)" type="button">
                            Does my child need prior programming experience?
                            <i class="fas fa-chevron-down" aria-hidden="true"></i>
                        </button>
                        <div class="faq-answer" style="display:none;">
                            No. Most students start as absolute beginners. We begin with block-based coding to build logical thinking, then move smoothly into text-based languages when your child is ready.
                        </div>
                    </div>

                    <div class="faq-item">
                        <button class="faq-question" onclick="toggleFAQ(this)" type="button">
                            How do I book a free demo class?
                            <i class="fas fa-chevron-down" aria-hidden="true"></i>
                        </button>
                        <div class="faq-answer" style="display:none;">
                            Use the “Book a free demo” button, complete the short request form or message us on WhatsApp at +91 62385 68207. We'll confirm a convenient time for your child's first live class.
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- ═══ WHY CODING / SEO TOPICS ═══ -->
        <section class="hr-section hr-section--white" id="why-coding">
            <div class="hr-wrap hr-seo">
                <div class="hr-seo__copy">
                    <span class="hr-kicker">Why coding for kids?</span>
                    <h2 class="hr-title">Why choose online coding classes for kids?</h2>
                    <h3>The importance of early programming education</h3>
                    <p>Learning to code is not just about syntax. It is about computational thinking: breaking a big problem into smaller steps, testing ideas and improving them. Those skills carry into maths, science and creative work.</p>
                    <p>Our <strong>online coding classes for kids</strong> are designed to spark interest and keep children engaged. Students move smoothly from drag-and-drop block coding like Scratch to text-based languages such as Python, JavaScript, and HTML/CSS.</p>
                    <ul class="hr-seo__points">
                        <li><i class="fas fa-check-circle" aria-hidden="true"></i><span><strong>Live 1:1 and small-group classes:</strong> Personal mentorship from certified computer science teachers.</span></li>
                        <li><i class="fas fa-check-circle" aria-hidden="true"></i><span><strong>Project-based curriculum:</strong> Build interactive games, animated stories and websites from the very first lesson.</span></li>
                        <li><i class="fas fa-check-circle" aria-hidden="true"></i><span><strong>Computer science education:</strong> Courses aligned with national and international coding education standards.</span></li>
                    </ul>
                </div>

                <div>
                    <h3 style="margin:0 0 18px;color:var(--hr-ink);font-family:'Poppins',sans-serif;font-size:19px;font-weight:750;letter-spacing:-.02em;">Explore kids programming courses by topic</h3>
                    <div class="hr-topics">
                        <a class='hr-topic' href='/scratch-coding-classes-for-kids'><i class="fas fa-gamepad" aria-hidden="true"></i> Scratch Coding</a>
                        <a class='hr-topic' href='/python-coding-classes-for-kids'><i class="fab fa-python" aria-hidden="true"></i> Python for Kids</a>
                        <a class='hr-topic' href='/javascript-coding-classes-for-kids'><i class="fas fa-bolt" aria-hidden="true"></i> JavaScript Classes</a>
                        <a class='hr-topic' href='/web-development-classes-for-kids'><i class="fas fa-laptop-code" aria-hidden="true"></i> Web Development</a>
                        <a class='hr-topic' href='/ai-ml-coding-classes-for-kids'><i class="fas fa-robot" aria-hidden="true"></i> AI &amp; ML Courses</a>
                        <a class='hr-topic' href='/data-science-classes-for-kids'><i class="fas fa-chart-bar" aria-hidden="true"></i> Data Science</a>
                    </div>
                    <div class="hr-topics__cta">
                        <a class='hr-textlink' href='/coding-classes-for-kids'>See the full programme <i class="fas fa-arrow-right" aria-hidden="true"></i></a>
                    </div>
                </div>
            </div>
        </section>

        <!-- ═══ FINAL CTA ═══ -->
        <section class="hr-cta" id="book-demo">
            <div class="hr-wrap hr-cta__grid">
                <div class="hr-cta__copy">
                    <span class="hr-kicker hr-kicker--light">Free 45-minute demo</span>
                    <h2>Their first project is closer than you think.</h2>
                    <p>Tell us a little about your child. We'll match them with the right teacher and starting point, then confirm a time that works for your family.</p>
                    <div class="hr-cta__points">
                        <span><i class="fas fa-check-circle" aria-hidden="true"></i> No credit card needed</span>
                        <span><i class="fas fa-clock" aria-hidden="true"></i> Confirmed within 2 hours</span>
                        <span><i class="fas fa-shield-alt" aria-hidden="true"></i> 100% money-back guarantee</span>
                    </div>
                </div>

                <div class="hr-form">
                    <div class="hr-form__head">
                        <strong>Book a free demo class</strong>
                        <span>We'll continue the conversation on WhatsApp.</span>
                    </div>
                    <input class="hr-form__name" type="text" id="ctaName" placeholder="Your name" autocomplete="name">
                    <div class="hr-form__row">
                        <select id="ctaCode" aria-label="Country code">
                            <option value="+91">🇮🇳 +91</option>
                            <option value="+971">🇦🇪 +971</option>
                            <option value="+1">🇺🇸 +1</option>
                            <option value="+44">🇬🇧 +44</option>
                            <option value="+61">🇦🇺 +61</option>
                            <option value="+65">🇸🇬 +65</option>
                        </select>
                        <input type="tel" id="ctaPhone" placeholder="WhatsApp number" autocomplete="tel">
                    </div>
                    <button onclick="submitCtaForm()" type="button">
                        <i class="fab fa-whatsapp" aria-hidden="true"></i> Get my free demo class
                    </button>
                    <p class="hr-form__note">By continuing, you agree to be contacted about your demo request.</p>
                    <div id="ctaSuccess" class="hr-form__success">✅ Opening WhatsApp… We'll confirm your slot within 2 hours.</div>
                </div>
            </div>
        </section>

        <script>
            function switchRate(mode) {
                const price = document.getElementById('price11');
                const nightBadge = document.getElementById('nightBadge');
                const nightNote = document.getElementById('nightNote');
                const btnDay = document.getElementById('btnDay');
                const btnNight = document.getElementById('btnNight');
                const isNight = mode === 'night';

                if (price) price.textContent = isNight ? '800' : '700';
                if (nightBadge) nightBadge.style.display = isNight ? 'inline-block' : 'none';
                if (nightNote) nightNote.style.display = isNight ? 'block' : 'none';
                if (btnDay) btnDay.classList.toggle('is-active', !isNight);
                if (btnNight) btnNight.classList.toggle('is-active', isNight);
            }

            function submitCtaForm() {
                const name = document.getElementById('ctaName').value.trim();
                const code = document.getElementById('ctaCode').value;
                const phone = document.getElementById('ctaPhone').value.trim();

                if (!name || !phone) {
                    alert('Please enter your name and WhatsApp number.');
                    return;
                }

                const msg = encodeURIComponent('Hi ABCCoders! My name is ' + name + ' (' + code + ' ' + phone + '). I want to book a free demo class for my child.');
                const success = document.getElementById('ctaSuccess');
                if (success) success.style.display = 'block';
                setTimeout(function () {
                    window.open('https://wa.me/916238568207?text=' + msg, '_blank');
                }, 600);
            }
        </script>
    </main>

    <!-- Footer -->
    <footer class="footer" role="contentinfo" itemscope itemtype="https://schema.org/Organization">
        <div class="container">
            <div class="row">
                <div class="col-md-4 mb-4">
                    <h5 itemprop="name"><i class="fas fa-code me-2 text-primary"></i>ABCCoders</h5>
                    <p itemprop="description">Making coding education fun and accessible for every child. Start your
                        coding journey today!</p>
                </div>

                <aside class="col-md-4 mb-4">
                    <h5>Quick Links</h5>
                    <nav>
                        <ul class="list-unstyled">
                            <li><a href='/about'>About Us</a></li>
                            <li><a href='/courses'>Courses</a></li>
                            <li><a href="https://blogs.abccoders.com">Blog</a></li>
                            <li><a href='/contact'>Contact</a></li>
                        </ul>
                    </nav>
                </aside>

                <aside class="col-md-4 mb-4" itemprop="contactPoint" itemscope
                    itemtype="https://schema.org/ContactPoint">
                    <h5>Contact Info</h5>
                    <address itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
                        <p><i class="fas fa-map-marker-alt"></i> <span itemprop="streetAddress">#FUTURE SCHOOL,
                                Peringala</span>, <span itemprop="addressLocality">Kochi</span> - <span
                                itemprop="postalCode">683565</span></p>
                    </address>
                    <p><i class="fas fa-envelope"></i> <span itemprop="email">sales@abccoders.com</span></p>
                    <p><i class="fas fa-phone"></i> <span itemprop="telephone">+91 62385 68207</span></p>
                </aside>
            </div>

            <hr style="border-color: #555;">
            <div class="text-center">
                <p>&copy; <time datetime="2026" itemprop="copyrightYear">2026</time> <span
                        itemprop="copyrightHolder">ABCCoders</span>. All rights reserved. Made with <i class="fas fa-heart text-danger"></i> for young coders!
                    <a class='ms-3 text-decoration-none text-info small fw-bold' href='/hiring-tutors'><i class="fas fa-briefcase me-1"></i> Teach With Us (Careers)</a>
                </p>
            </div>
        
            <div class="row mt-4 mb-2">
                <div class="col-12 text-center text-muted small">
                    <strong style="color: rgba(255,255,255,0.8);">Our Locations:</strong><br class="d-md-none">
                    <a class='mx-2 text-decoration-none' href='/online-coding-classes-uae' style='color: rgba(255,255,255,0.6);'>United Arab Emirates</a> |
                    <a class='mx-2 text-decoration-none' href='/online-coding-classes-dubai' style='color: rgba(255,255,255,0.6);'>Dubai</a> |
                    <a class='mx-2 text-decoration-none' href='/online-coding-classes-abu-dhabi' style='color: rgba(255,255,255,0.6);'>Abu Dhabi</a> |
                    <a class='mx-2 text-decoration-none' href='/online-coding-classes-sharjah' style='color: rgba(255,255,255,0.6);'>Sharjah</a> |
                    <a class='mx-2 text-decoration-none' href='/online-coding-classes-al-ain' style='color: rgba(255,255,255,0.6);'>Al Ain</a> |
                    <a class='mx-2 text-decoration-none' href='/online-coding-classes-ras-al-khaimah' style='color: rgba(255,255,255,0.6);'>Ras Al Khaimah</a> |
                    <a class='mx-2 text-decoration-none' href='/online-coding-classes-kochi' style='color: rgba(255,255,255,0.6);'>Kochi (India)</a>
                </div>
            </div>
        </div>
    </footer>
    <!-- Scroll to Top Button -->
    <button class="scroll-to-top" id="scrollToTop" onclick="scrollToTop()" aria-label="Scroll to top of page">
        <i class="fas fa-chevron-up" aria-hidden="true"></i>
    </button>

    <!-- Quick Actions for Mobile -->
    <aside class="quick-actions d-lg-none" role="complementary" aria-label="Quick contact options">
        <a href="https://wa.me/916238568207" target="_blank" rel="noopener noreferrer" class="quick-action-btn whatsapp"
            data-tooltip="WhatsApp Us" aria-label="Contact us on WhatsApp">
            <i class="fab fa-whatsapp" aria-hidden="true"></i>
        </a>
        <a href="tel:+916238568207" class="quick-action-btn phone" data-tooltip="Call Us" aria-label="Call us directly">
            <i class="fas fa-phone" aria-hidden="true"></i>
        </a>
    </aside>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <!-- Auth Utils -->
    <script src="js/auth-utils.js"></script>

    <!-- Firebase v8 for compatibility -->
    <script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"></script>
    <script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-firestore.js"></script>
    <script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-auth.js"></script>

    <!-- Firebase Configuration -->
    <script src="js/firebase-config.js"></script>
    <script>
        // Initialize Firebase immediately for visitor tracking
        try {
            if (window.firebaseConfig && !window.firebase.apps?.length) {
                window.firebase.initializeApp(window.firebaseConfig);
                console.log('🔥 Firebase initialized for visitor tracking');
            }
        } catch (error) {
            console.warn('Firebase initialization warning:', error);
        }
    </script>

    <!-- Visitor Analytics Tracking -->
    <script src="/js/visitor-tracker.js" defer></script>

    <!-- Profile Manager -->
    <script src="js/profile-manager-v2.js?v=2"></script>

    <!-- Advanced Schema Markup -->
    <script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://abccoders.com/#organization",
      "name": "ABCCoders",
      "alternateName": "ABC Coders",
      "url": "https://abccoders.com",
      "description": "ABCCoders is a premium online coding school offering personalized 1:1 and small-group live programming classes for children and teens ages 6 to 20. We specialize in interactive curriculum covering Python, JavaScript, AI, and Machine Learning with a focus on project-based learning. Founded by a self-taught programmer, our mission is to make advanced technology education accessible and fun.",
      "logo": {
        "@type": "ImageObject",
        "@id": "https://abccoders.com/#logo",
        "url": "https://abccoders.com/images/favicon.png",
        "width": 512,
        "height": 512,
        "caption": "ABCCoders Logo"
      },
      "contactPoint": [
        {
          "@type": "ContactPoint",
          "telephone": "+91-62385-68207",
          "contactType": "customer service",
          "areaServed": "IN",
          "availableLanguage": "English"
        },
        {
          "@type": "ContactPoint",
          "telephone": "+1-780-504-4353",
          "contactType": "customer service",
          "areaServed": "CA",
          "availableLanguage": "English"
        }
      ],
      "address": [
        {
          "@type": "PostalAddress",
          "streetAddress": "#FUTURE SCHOOL, Peringala",
          "addressLocality": "Kochi",
          "addressRegion": "Kerala",
          "postalCode": "683565",
          "addressCountry": "IN"
        },
        {
          "@type": "PostalAddress",
          "streetAddress": "2-9151 SHAW WAY SW",
          "addressLocality": "Edmonton",
          "addressRegion": "Alberta",
          "postalCode": "T6X1W7",
          "addressCountry": "CA"
        }
      ],
      "founder": {
        "@id": "https://abccoders.com/#founder"
      },
      "foundingDate": "2020",
      "numberOfEmployees": "10-50",
      "slogan": "Learn Coding the Fun Way",
      "knowsAbout": [
        "Online coding classes for kids",
        "Programming education for children",
        "Python programming for kids",
        "JavaScript for kids",
        "AI and Machine Learning education",
        "Kids programming courses"
      ],
      "areaServed": [
        "India",
        "Canada",
        "UAE",
        "UK",
        "North America"
      ],
      "serviceType": "Educational Services",
      "sameAs": [
        "https://www.linkedin.com/company/abccoders",
        "https://www.instagram.com/abccoders",
        "https://www.facebook.com/abccoders",
        "https://www.youtube.com/@abccoders",
        "https://twitter.com/abccoders"
      ],
      "award": "Project-Based Learning",
      "priceRange": "$$",
      "hasOfferCatalog": {
        "@type": "OfferCatalog",
        "name": "Coding Courses",
        "itemListElement": [
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "Scratch Programming (ages 6-9)"
            }
          },
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "Python Programming (ages 10-16)"
            }
          },
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "Web Development HTML/CSS/JS (ages 10-16)"
            }
          },
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "JavaScript Game Development (ages 12-18)"
            }
          },
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "AI & Machine Learning (ages 14-20)"
            }
          },
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "Data Science (ages 14-20)"
            }
          }
        ]
      }
    },
    {
      "@type": "Person",
      "@id": "https://abccoders.com/#founder",
      "name": "Muhammed Ameen",
      "jobTitle": "Founder & CEO",
      "worksFor": {
        "@id": "https://abccoders.com/#organization"
      },
      "description": "Self-taught programmer who started coding at age 8, passionate about teaching kids the fundamentals of computer science.",
      "knowsAbout": [
        "Programming Education",
        "Kids Coding",
        "Educational Technology",
        "Python",
        "JavaScript",
        "AI",
        "Machine Learning"
      ]
    },
    {
      "@type": "Course",
      "@id": "https://abccoders.com/#course-scratch",
      "name": "Scratch Programming",
      "description": "Learn visual block-based coding to build logical thinking and fun projects. For ages 6-9.",
      "provider": {
        "@id": "https://abccoders.com/#organization"
      },
      "courseMode": "Online",
      "educationalLevel": "Beginner",
      "teaches": "Block-based Coding, Logic, Game Design",
      "timeRequired": "PT24H",
      "offers": {
        "@type": "Offer",
        "price": "4999",
        "priceCurrency": "INR"
      }
    },
    {
      "@type": "Course",
      "@id": "https://abccoders.com/#course-python",
      "name": "Python Programming",
      "description": "Master the fundamentals of Python programming language. For ages 10-16.",
      "provider": {
        "@id": "https://abccoders.com/#organization"
      },
      "courseMode": "Online",
      "educationalLevel": "Intermediate",
      "teaches": "Python Syntax, Logic, Algorithms",
      "timeRequired": "PT48H",
      "offers": {
        "@type": "Offer",
        "price": "4999",
        "priceCurrency": "INR"
      }
    },
    {
      "@type": "Course",
      "@id": "https://abccoders.com/#course-webdev",
      "name": "Web Development HTML/CSS/JS",
      "description": "Build interactive websites using HTML, CSS, and JavaScript. For ages 10-16.",
      "provider": {
        "@id": "https://abccoders.com/#organization"
      },
      "courseMode": "Online",
      "educationalLevel": "Intermediate",
      "teaches": "HTML, CSS, JavaScript, Web Design",
      "timeRequired": "PT48H",
      "offers": {
        "@type": "Offer",
        "price": "4999",
        "priceCurrency": "INR"
      }
    },
    {
      "@type": "Course",
      "@id": "https://abccoders.com/#course-jsgames",
      "name": "JavaScript Game Development",
      "description": "Create exciting web-based games using advanced JavaScript concepts. For ages 12-18.",
      "provider": {
        "@id": "https://abccoders.com/#organization"
      },
      "courseMode": "Online",
      "educationalLevel": "Advanced",
      "teaches": "JavaScript, Game Logic, Physics",
      "timeRequired": "PT48H",
      "offers": {
        "@type": "Offer",
        "price": "4999",
        "priceCurrency": "INR"
      }
    },
    {
      "@type": "Course",
      "@id": "https://abccoders.com/#course-aiml",
      "name": "AI & Machine Learning",
      "description": "Learn artificial intelligence and machine learning using Python and TensorFlow. For ages 14-20.",
      "provider": {
        "@id": "https://abccoders.com/#organization"
      },
      "courseMode": "Online",
      "educationalLevel": "Advanced",
      "teaches": "Artificial Intelligence, Machine Learning, TensorFlow",
      "timeRequired": "PT72H",
      "offers": {
        "@type": "Offer",
        "price": "4999",
        "priceCurrency": "INR"
      }
    },
    {
      "@type": "Course",
      "@id": "https://abccoders.com/#course-datascience",
      "name": "Data Science",
      "description": "Analyze and visualize data using advanced Python tools. For ages 14-20.",
      "provider": {
        "@id": "https://abccoders.com/#organization"
      },
      "courseMode": "Online",
      "educationalLevel": "Advanced",
      "teaches": "Data Analysis, Pandas, Matplotlib",
      "timeRequired": "PT72H",
      "offers": {
        "@type": "Offer",
        "price": "4999",
        "priceCurrency": "INR"
      }
    },
    {
      "@type": "WebSite",
      "@id": "https://abccoders.com/#website",
      "url": "https://abccoders.com",
      "name": "ABCCoders - Online Coding Classes for Kids",
      "description": "Online coding classes for kids age 6-20. Learn programming the fun way with certified teachers!",
      "publisher": {
        "@id": "https://abccoders.com/#organization"
      },
      "potentialAction": [
        {
          "@type": "SearchAction",
          "target": {
            "@type": "EntryPoint",
            "urlTemplate": "https://abccoders.com/search?q={search_term_string}"
          },
          "query-input": "required name=search_term_string"
        }
      ],
      "inLanguage": "en-US"
    },
    {
      "@type": "WebPage",
      "@id": "https://abccoders.com/#webpage",
      "url": "https://abccoders.com",
      "name": "Online Coding Classes for Kids | ABCCoders Programming Courses Age 6-20",
      "isPartOf": {
        "@id": "https://abccoders.com/#website"
      },
      "about": {
        "@id": "https://abccoders.com/#organization"
      },
      "primaryImageOfPage": {
        "@id": "https://abccoders.com/#primaryimage"
      },
      "description": "Online coding classes for kids age 6-20. Learn programming the fun way with certified teachers! 1:1 and small-group live classes, Python, JavaScript, AI courses.",
      "breadcrumb": {
        "@id": "https://abccoders.com/#breadcrumb"
      },
      "inLanguage": "en-US"
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://abccoders.com/#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://abccoders.com"
        }
      ]
    },
    {
      "@type": "EducationalOrganization",
      "@id": "https://abccoders.com/#educationalorganization",
      "name": "ABCCoders",
      "alternateName": "ABC Coders Online Coding School",
      "url": "https://abccoders.com",
      "logo": {
        "@id": "https://abccoders.com/#logo"
      },
      "educationalCredentialAwarded": "Programming Course Certificates",
      "alumniOf": "Tech Industry Professionals",
      "courseMode": "Online",
      "educationalLevel": "K-12, Beginner to Advanced",
      "teaches": [
        "Python Programming",
        "JavaScript Development",
        "Artificial Intelligence",
        "Machine Learning",
        "Data Science",
        "Web Development",
        "Internet of Things"
      ],
      "audience": {
        "@type": "EducationalAudience",
        "audienceType": "Children and Teenagers",
        "educationalRole": "Student",
        "educationalUse": "Programming Education"
      }
    },
    {
      "@type": "FAQPage",
      "@id": "https://abccoders.com/#faq",
      "isPartOf": {
        "@id": "https://abccoders.com/#website"
      },
      "mainEntity": [
        {
          "@type": "Question",
          "name": "What age groups do you teach coding for?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "ABCCoders offers online coding classes for kids aged 6-20. We group our students by age and skill level to ensure they are learning in the most optimal environment, from visual coding for younger children to complex text-based languages like Python and AI/ML for teens."
          }
        },
        {
          "@type": "Question",
          "name": "How do the live online classes work?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Our classes are taught 100% online through live video interaction. We offer both 1:1 personalized coaching and highly collaborative small-group classes. Every session is interactive, project-based, and led by a certified instructor who guides your child step-by-step."
          }
        },
        {
          "@type": "Question",
          "name": "What programming languages and technologies will my child learn?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Depending on your child's age and experience, they can learn visual block coding (Scratch), Website Development (HTML/CSS/JavaScript), Python Programming, Data Science, and even advanced subjects like Artificial Intelligence, Machine Learning, and the Internet of Things (IoT)."
          }
        },
        {
          "@type": "Question",
          "name": "Does my child need prior programming experience?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No prior coding experience is required! Most of our students start as absolute beginners. We begin with block-based coding to build logical thinking and then transition smoothly into syntax-based text languages."
          }
        },
        {
          "@type": "Question",
          "name": "How can I book a free demo coding class?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "You can easily book a free demo session by clicking the \"Request Free Demo\" button, entering your phone number, or contacting our team directly on WhatsApp at +91 62385 68207. We will schedule a convenient time for your child's first live 1-on-1 coding class!"
          }
        },
        {
          "@type": "Question",
          "name": "How much do ABCCoders coding classes cost?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Plans starting from ₹4,999/month in India, with flexible 1:1 and small-group class options."
          }
        },
        {
          "@type": "Question",
          "name": "What is the difference between ABCCoders and Codingal?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "ABCCoders offers personalized 1-on-1 live classes at more affordable prices, while Codingal focuses on group classes. ABCCoders provides direct WhatsApp communication with instructors."
          }
        },
        {
          "@type": "Question",
          "name": "Can my child learn AI and Machine Learning at ABCCoders?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes! ABCCoders offers dedicated AI/ML courses for ages 14+ using Python, TensorFlow, and real-world projects."
          }
        },
        {
          "@type": "Question",
          "name": "Do you offer coding classes in the UAE and Canada?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes, ABCCoders serves students globally with offices in India (Kochi) and Canada (Edmonton), and many students from UAE, UK, and North America."
          }
        },
        {
          "@type": "Question",
          "name": "What makes ABCCoders different from other coding schools?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "ABCCoders offers truly personalized 1:1 live classes, certified instructors, project-based curriculum, Project-Based Learning, and a money-back guarantee."
          }
        }
      ]
    }
  ]
}
</script>

    <!-- Simple animations -->
    <script src="js/navigation.js"></script>
    <script>
        // Scroll to Top Function
        function scrollToTop() {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        }
        // Button Loading State Function
        function addButtonLoading(button) {
            button.classList.add('loading');
            setTimeout(() => {
                button.classList.remove('loading');
            }, 1000);
        }
        // Show/Hide Scroll to Top Button
        function toggleScrollButton() {
            const scrollBtn = document.getElementById('scrollToTop');
            if (window.pageYOffset > 300) {
                scrollBtn.classList.add('visible');
            } else {
                scrollBtn.classList.remove('visible');
            }
        }
        // Throttle function for scroll events
        function throttle(func, wait) {
            let timeout;
            return function executedFunction(...args) {
                const later = () => {
                    clearTimeout(timeout);
                    func(...args);
                };
                clearTimeout(timeout);
                timeout = setTimeout(later, wait);
            };
        }
        // Add scroll event listener
        window.addEventListener('scroll', throttle(toggleScrollButton, 100));
        document.addEventListener('DOMContentLoaded', function () {
            // Close menu when clicking on a nav link
            const navLinks = document.querySelectorAll('.nav-link:not(.dropdown-toggle)');
            const navbarNav = document.getElementById('navbarNav');
            navLinks.forEach(link => {
                link.addEventListener('click', function () {
                    if (navbarNav) {
                        navbarNav.classList.remove('active');
                    }
                });
            });
            // Add enhanced hover effects to cards
            document.querySelectorAll('.feature-card, .class-card').forEach(card => {
                card.addEventListener('mouseenter', function () {
                    this.style.transform = 'translateY(-5px)';
                });
                card.addEventListener('mouseleave', function () {
                    this.style.transform = 'translateY(0)';
                });
            });
            // Add click feedback to buttons
            document.querySelectorAll('.btn').forEach(button => {
                button.addEventListener('click', function (e) {
                    // Add ripple effect
                    const ripple = this.querySelector('::after');
                    if (ripple) {
                        ripple.style.animation = 'none';
                        ripple.offsetHeight; // Trigger reflow
                        ripple.style.animation = null;
                    }
                });
            });
            // Lazy loading for images (if any)
            if ('IntersectionObserver' in window) {
                const imageObserver = new IntersectionObserver((entries) => {
                    entries.forEach(entry => {
                        if (entry.isIntersecting) {
                            const img = entry.target;
                            img.src = img.dataset.src;
                            img.classList.remove('lazy');
                            imageObserver.unobserve(img);
                        }
                    });
                });
                document.querySelectorAll('img[data-src]').forEach(img => {
                    imageObserver.observe(img);
                });
            }
            // Quick action analytics (for tracking)
            document.querySelectorAll('.quick-action-btn').forEach(btn => {
                btn.addEventListener('click', function () {
                    const action = this.classList.contains('whatsapp') ? 'WhatsApp' : 'Phone';
                    console.log(`Quick action clicked: ${action}`);
                    // Add analytics tracking here if needed
                });
            });
            // Smooth scroll for internal links
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function (e) {
                    e.preventDefault();
                    const target = document.querySelector(this.getAttribute('href'));
                    if (target) {
                        target.scrollIntoView({
                            behavior: 'smooth',
                            block: 'start'
                        });
                    }
                });
            });
        });
        // Simple Demo Form Handler - New Demo Request Flow
        function submitSimpleDemo(event) {
            event.preventDefault();
            const form = event.target;
            const phoneInput = form.querySelector('.phone-input');
            const countrySelect = form.querySelector('.country-select');
            const submitBtn = form.querySelector('.demo-btn');
            // Get phone number and country code
            const phoneNumber = phoneInput.value.trim();
            const countryCode = countrySelect.value;
            // Basic validation
            if (!phoneNumber) {
                alert('Please enter your mobile number');
                return;
            }
            // Simple phone validation (6-15 digits)
            const phoneRegex = /^[0-9]{6,15}$/;
            const cleanPhone = phoneNumber.replace(/[\s\-\(\)+]/g, '');
            if (!phoneRegex.test(cleanPhone)) {
                alert('Please enter a valid mobile number (6-15 digits)');
                return;
            }
            // Update button to show loading
            submitBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Redirecting...';
            submitBtn.disabled = true;
            // Store lead data for tracking
            const leadData = {
                phone: countryCode + cleanPhone,
                source: 'hero_demo_request',
                timestamp: new Date().toISOString()
            };
            let leads = JSON.parse(localStorage.getItem('demo_leads') || '[]');
            leads.push(leadData);
            localStorage.setItem('demo_leads', JSON.stringify(leads));
            // Redirect to demo mobile verification page
            const fullPhone = countryCode + cleanPhone;
            const redirectUrl = `auth/demo-mobile-verify.html?phone=${encodeURIComponent(fullPhone)}`;
            window.location.href = redirectUrl;
        }
        // Send OTP directly from homepage
        async function sendOtpDirectly(phoneNumber, submitBtn, originalHTML) {
            try {
                // Initialize Firebase if not already done
                if (!window.firebaseHero) {
                    await initializeFirebaseForHomepage();
                }
                // Initialize reCAPTCHA if not already done
                if (!window.recaptchaVerifier) {
                    await initializeRecaptchaForHomepage();
                }
                console.log('Sending OTP to:', phoneNumber);
                const { auth, signInWithPhoneNumber } = window.firebaseHero;
                // Normalize phone number
                const normalizedPhone = phoneNumber.replace(/[\s\-\(\)]/g, '');
                // Send OTP
                const confirmationResult = await signInWithPhoneNumber(auth, normalizedPhone, window.recaptchaVerifier);
                // Store confirmation result
                localStorage.setItem('phoneVerificationId', confirmationResult.verificationId);
                // Save demo request to Firebase
                await saveDemoRequestToFirebase(normalizedPhone, 'otp_sent');
                // Success - update button
                submitBtn.innerHTML = '<i class="fas fa-check"></i> OTP Sent!';
                submitBtn.style.background = 'var(--success-green)';
                // Show success message and redirect to mobile signup with pre-filled number
                alert('<i class="fas fa-check-circle text-success me-1"></i> OTP sent successfully! Redirecting to complete your signup...');
                // Store the phone number and country code for pre-filling
                const countryCode = countrySelect.value;
                localStorage.setItem('prefill_phone', phoneNumber);
                localStorage.setItem('prefill_country', countryCode);
                localStorage.setItem('demo_request_mode', 'true');
                setTimeout(() => {
                    window.location.href = 'auth/signup-step1.html?source=demo';
                }, 1500);
            } catch (error) {
                console.error('Error sending OTP from homepage:', error);
                let errorMessage = 'Failed to send OTP. Please try again.';
                let fallbackToDemo = false;
                if (error.code === 'auth/billing-not-enabled') {
                    errorMessage = 'Demo mode activated! Redirecting to verification...';
                    fallbackToDemo = true;
                } else if (error.code === 'auth/invalid-phone-number') {
                    errorMessage = 'Invalid phone number format. Please check and try again.';
                } else if (error.code === 'auth/too-many-requests') {
                    errorMessage = 'Too many requests. Please try again later.';
                }
                if (fallbackToDemo) {
                    // Save demo request even in demo mode
                    await saveDemoRequestToFirebase(phoneNumber, 'demo_mode');
                    submitBtn.innerHTML = '<i class="fas fa-check"></i> Demo Mode!';
                    submitBtn.style.background = 'var(--success-green)';
                    alert('📱 Demo Mode: Enter any 6-digit code on the next page to continue!');
                    setTimeout(() => {
                        window.location.href = 'auth/verify-otp.html';
                    }, 2000);
                } else {
                    alert(errorMessage);
                    // Reset button
                    submitBtn.disabled = false;
                    submitBtn.innerHTML = originalHTML;
                    submitBtn.style.background = '';
                }
            }
        }
        // Initialize Firebase for homepage
        async function initializeFirebaseForHomepage() {
            const { initializeApp } = await import("https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js");
            const { getAuth, RecaptchaVerifier, signInWithPhoneNumber } = await import("https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js");
            const { getFirestore, collection, addDoc, serverTimestamp } = await import("https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js");
            // Use hardcoded Firebase config for Netlify compatibility
            try {
                const firebaseConfig = {
                    apiKey: "AIzaSyBulNWtZgqBkJmDi3N4ED4SuGmIkrT7jVc",
                    authDomain: "abccoders-5dfc2.firebaseapp.com",
                    projectId: "abccoders-5dfc2",
                    storageBucket: "abccoders-5dfc2.firebasestorage.app",
                    messagingSenderId: "742528718950",
                    appId: "1:742528718950:web:39683159b8eebf6b8b75a7",
                    measurementId: "G-VW2MWWSKWG"
                };
                const app = initializeApp(firebaseConfig);
                const auth = getAuth(app);
                const db = getFirestore(app);
                window.firebaseHero = { auth, db, RecaptchaVerifier, signInWithPhoneNumber, collection, addDoc, serverTimestamp };
            } catch (error) {
                console.error('Error initializing Firebase:', error);
                throw error;
            }
        }
        // Initialize reCAPTCHA for homepage
        async function initializeRecaptchaForHomepage() {
            const { auth, RecaptchaVerifier } = window.firebaseHero;
            // Create a hidden div for reCAPTCHA
            let recaptchaContainer = document.getElementById('recaptcha-container-homepage');
            if (!recaptchaContainer) {
                recaptchaContainer = document.createElement('div');
                recaptchaContainer.id = 'recaptcha-container-homepage';
                recaptchaContainer.style.display = 'none';
                document.body.appendChild(recaptchaContainer);
            }
            window.recaptchaVerifier = new RecaptchaVerifier(auth, 'recaptcha-container-homepage', {
                'size': 'invisible',
                'callback': (response) => {
                    console.log('reCAPTCHA solved');
                },
                'expired-callback': () => {
                    console.log('reCAPTCHA expired');
                }
            });
            await window.recaptchaVerifier.render();
        }
        // Save demo request to Firebase with enhanced debugging
        async function saveDemoRequestToFirebase(phoneNumber, status) {
            try {
                console.log('🔥 Starting to save demo request to Firebase...');
                console.log('Phone:', phoneNumber, 'Status:', status);
                // Check if Firebase is initialized
                if (!window.firebaseHero) {
                    console.error('❌ Firebase not initialized on window object');
                    return;
                }
                const { db, collection, addDoc, serverTimestamp } = window.firebaseHero;
                if (!db) {
                    console.error('❌ Firebase db not available');
                    return;
                }
                console.log('🔥 Firebase db available, creating demo request...');
                const demoRequest = {
                    phoneNumber: phoneNumber,
                    status: status,
                    source: 'homepage_hero',
                    requestedAt: serverTimestamp(),
                    userAgent: navigator.userAgent,
                    referrer: document.referrer || 'direct',
                    verified: false,
                    completedProfile: false,
                    debugTimestamp: new Date().toISOString() // Add debug timestamp
                };
                console.log('🔥 Demo request object created:', demoRequest);
                console.log('🔥 Firebase DB object:', db);
                console.log('🔥 Collection reference:', collection(db, 'demoRequests'));
                const docRef = await addDoc(collection(db, 'demoRequests'), demoRequest);
                console.log('✅ Demo request saved successfully!');
                console.log('<i class="fas fa-file-alt me-1"></i> Document ID:', docRef.id);
                console.log('<i class="fas fa-file-alt me-1"></i> Document path:', docRef.path);
                console.log('🔥 Firebase project:', db.app.options.projectId);
                console.log('🌐 Firestore URL:', `https://console.firebase.google.com/project/${db.app.options.projectId}/firestore/data/~2FdemoRequests~2F${docRef.id}`);
                // Store the doc ID for later updates
                localStorage.setItem('demoRequestId', docRef.id);
                // Show enhanced success message
                alert(`Demo request saved successfully!\nDocument ID: ${docRef.id}\nProject: ${db.app.options.projectId}\nCheck: https://console.firebase.google.com/project/${db.app.options.projectId}/firestore/data`);
            } catch (error) {
                console.error('❌ Error saving demo request to Firebase:', error);
                console.error('Error details:', error.message, error.code);
                alert('Failed to save demo request: ' + error.message);
            }
        }

        // Course Finder Quiz State Management
        let quizAnswers = { age: '', interest: '', exp: '' };
        
        function selectQuizOption(key, value) {
            quizAnswers[key] = value;
            if (key === 'age') {
                showQuizStep('stepInterest');
            } else if (key === 'interest') {
                showQuizStep('stepExperience');
            } else if (key === 'exp') {
                calculateQuizResult();
                showQuizStep('stepResult');
            }
        }
        
        function prevQuizStep() {
            const activeStep = document.querySelector('.quiz-step.active');
            if (activeStep.id === 'stepInterest') {
                showQuizStep('stepAge');
            } else if (activeStep.id === 'stepExperience') {
                showQuizStep('stepInterest');
            } else if (activeStep.id === 'stepResult') {
                showQuizStep('stepExperience');
            }
        }
        
        function showQuizStep(stepId) {
            document.querySelectorAll('.quiz-step').forEach(step => {
                step.classList.remove('active');
            });
            document.getElementById(stepId).classList.add('active');
        }
        
        function resetQuiz() {
            quizAnswers = { age: '', interest: '', exp: '' };
            showQuizStep('stepAge');
        }
        
        function calculateQuizResult() {
            let recTitle = '';
            let recDesc = '';
            let slug = '';
            
            const age = quizAnswers.age;
            const interest = quizAnswers.interest;
            const exp = quizAnswers.exp;
            
            if (age === '6-9') {
                recTitle = 'Scratch Block Coding';
                recDesc = 'Perfect for ages 6-9. Kids build games, animations, and solve logical puzzles using MIT\'s visual block-based interface, bypassing typing obstacles entirely.';
                slug = 'scratch-coding-classes-for-kids.html';
            } else if (age === '10-13') {
                if (interest === 'games') {
                    recTitle = 'Scratch/Python Game Developer';
                    recDesc = 'Designed for kids who love gaming. They will transition from block coding to writing text syntax, creating customized interactive 2D arcade games.';
                    slug = 'scratch-coding-classes-for-kids.html';
                } else if (interest === 'web') {
                    recTitle = 'Website Development (HTML & CSS)';
                    recDesc = 'Excellent for creative minds. Kids learn structural markup language (HTML5) and responsive style sheets (CSS3) to code and host their first websites.';
                    slug = 'web-development-classes-for-kids.html';
                } else { // AI
                    recTitle = 'Python Programming';
                    recDesc = 'Python is the world\'s most popular language. Perfect for learning core algorithmic logic, loops, dictionaries, and simple database tracking.';
                    slug = 'python-coding-classes-for-kids.html';
                }
            } else { // age 14-20
                if (interest === 'ai' && exp === 'text') {
                    recTitle = 'AI & Machine Learning Specialty';
                    recDesc = 'Advanced track for teens. Learn computational regression models, computer vision models, and build neural network architectures with Python libraries.';
                    slug = 'ai-ml-coding-classes-for-kids.html';
                } else if (interest === 'web') {
                    recTitle = 'Full-Stack JavaScript Web Dev';
                    recDesc = 'Teens code dynamic applications, connect databases, manipulate the browser DOM, and deploy fully functional web apps online.';
                    slug = 'javascript-coding-classes-for-kids.html';
                } else {
                    recTitle = 'Advanced Python & Data Science';
                    recDesc = 'Teens learn data analytics pipelines, draw statistical charts, clean database streams, and master professional text syntax.';
                    slug = 'python-coding-classes-for-kids.html';
                }
            }
            
            document.getElementById('quizRecommendationTitle').textContent = recTitle;
            document.getElementById('quizRecommendationDesc').textContent = recDesc;
            document.getElementById('quizCTA').href = `booknow.html?course=${encodeURIComponent(recTitle)}`;
        }
    </script>

    <!-- Mobile Menu Handler - Disabled to prevent conflicts -->
    <!-- The mobile menu is now handled by the single script block above -->

    <!-- Additional JavaScript modules -->
    <!-- Note: profile-manager-v2.js?v=2 already loaded above, no need to duplicate -->

    <!-- FRONT DASHBOARD ANALYTICS -->
    <script>
        // Initialize educational metrics for front dashboard
        function initializeFrontMetrics() {
            // Static educational metrics - no need to fetch revenue data
            const educationalMetrics = {
                total_students: 3000,
                total_teaching_hours: 4500,
                success_rate: 98,
                total_courses: 50
            };
            updateFrontMetrics(educationalMetrics);
        }
        function updateFrontMetrics(data) {
            // Update front dashboard analytics with educational metrics
            const elStudents = document.getElementById('frontStudents');
            if (elStudents) elStudents.textContent = `${(data.total_students || 3000)}+`;
            const elTeachingHours = document.getElementById('frontTeachingHours');
            if (elTeachingHours) elTeachingHours.textContent = `${Math.round(data.total_teaching_hours || 4500)}+`;
            const elSuccessRate = document.getElementById('frontSuccessRate');
            if (elSuccessRate) elSuccessRate.textContent = `${(data.success_rate || 98)}%`;
            const elCourses = document.getElementById('frontCourses');
            if (elCourses) elCourses.textContent = `${(data.total_courses || 50)}+`;
            // Update visitor stats if available
            if (data.total_visitors) {
                document.getElementById('frontVisitors').textContent = data.total_visitors.toLocaleString();
            }
            if (data.daily_visitors) {
                document.getElementById('frontDailyVisitors').textContent = `${data.daily_visitors} today`;
            }
        }
        // Load visitor analytics from Firebase
        async function loadFrontVisitorAnalytics() {
            try {
                if (window.firebase && window.firebaseConfig && window.firebase.apps?.length > 0) {
                    const db = window.firebase.firestore();
                    const visitorDoc = await db.collection('analytics').doc('visitors').get();
                    if (visitorDoc.exists) {
                        const data = visitorDoc.data();
                        const today = new Date().toISOString().split('T')[0];
                        console.log('📊 Raw Firebase visitor data:', data);
                        console.log('📊 Today date:', today);
                        console.log('📊 Daily visitors object:', data.dailyVisitors);
                        // Parse numbers safely
                        const totalVisitors = parseInt(data.totalVisitors) || 0;
                        const dailyVisitors = parseInt(data.dailyVisitors?.[today]) || 0;
                        console.log('📊 Parsed values:', { totalVisitors, dailyVisitors });
                        // Update UI directly with proper validation
                        const frontVisitorsEl = document.getElementById('frontVisitors');
                        const frontDailyVisitorsEl = document.getElementById('frontDailyVisitors');
                        if (frontVisitorsEl) {
                            frontVisitorsEl.textContent = totalVisitors > 0 ? totalVisitors.toLocaleString() : '2,500+';
                        }
                        if (frontDailyVisitorsEl) {
                            frontDailyVisitorsEl.textContent = dailyVisitors > 0 ? `${dailyVisitors} today` : '50+ today';
                        }
                        console.log('📊 Front page visitor stats updated successfully');
                    } else {
                        console.log('📊 No visitor document found in Firebase');
                        // Set fallback values
                        const frontVisitorsEl = document.getElementById('frontVisitors');
                        const frontDailyVisitorsEl = document.getElementById('frontDailyVisitors');
                        if (frontVisitorsEl) frontVisitorsEl.textContent = '2,500+';
                        if (frontDailyVisitorsEl) frontDailyVisitorsEl.textContent = '50+ today';
                    }
                } else {
                    console.log('📊 Firebase not available for visitor stats');
                    // Fallback values if Firebase not available
                    const frontVisitorsEl = document.getElementById('frontVisitors');
                    const frontDailyVisitorsEl = document.getElementById('frontDailyVisitors');
                    if (frontVisitorsEl) frontVisitorsEl.textContent = '2,500+';
                    if (frontDailyVisitorsEl) frontDailyVisitorsEl.textContent = '50+ today';
                }
            } catch (error) {
                console.warn('Error loading visitor analytics for front page:', error);
                // Set fallback values
                const frontVisitorsEl = document.getElementById('frontVisitors');
                const frontDailyVisitorsEl = document.getElementById('frontDailyVisitors');
                if (frontVisitorsEl) frontVisitorsEl.textContent = '2,500+';
                if (frontDailyVisitorsEl) frontDailyVisitorsEl.textContent = '50+ today';
            }
        }
        // Initialize metrics when page loads
        document.addEventListener('DOMContentLoaded', function () {
            initializeFrontMetrics();
            // Wait a bit for visitor tracker to initialize, then load visitor stats
            setTimeout(loadFrontVisitorAnalytics, 2000);
        });
    </script>

    <!-- User Authentication Check handled by navigation.js -->
    <script>
        // Success Notification Functions
        function showSuccessNotification() {
            const successData = localStorage.getItem('demoRequestSuccess');
            if (successData) {
                try {
                    const data = JSON.parse(successData);
                    const now = Date.now();
                    // Show notification if it's recent (within 5 minutes)
                    if (now - data.timestamp < 5 * 60 * 1000) {
                        const notification = document.getElementById('successNotification');
                        const title = document.getElementById('successTitle');
                        const message = document.getElementById('successMessage');
                        if (data.studentName) {
                            title.textContent = `Demo Request Sent for ${data.studentName}!`;
                        }
                        if (data.message) {
                            message.textContent = data.message;
                        }
                        notification.style.display = 'block';
                        // Auto-hide after 10 seconds
                        setTimeout(() => {
                            closeSuccessNotification();
                        }, 10000);
                    }
                    // Clear the localStorage data after showing or if too old
                    localStorage.removeItem('demoRequestSuccess');
                } catch (error) {
                    console.error('Error parsing success notification data:', error);
                    localStorage.removeItem('demoRequestSuccess');
                }
            }
        }
        function closeSuccessNotification() {
            const notification = document.getElementById('successNotification');
            notification.style.animation = 'slideUp 0.4s ease-out';
            setTimeout(() => {
                notification.style.display = 'none';
                notification.style.animation = 'slideDown 0.4s ease-out';
            }, 400);
        }
        // Initialize success notification check when page loads
        document.addEventListener('DOMContentLoaded', function () {
            // Check for demo request success notification
            setTimeout(showSuccessNotification, 1000); // Delay to ensure page is fully loaded
        });
        // FAQ Toggle function for Homepage
        window.toggleFAQ = function(button) {
            const answer = button.nextElementSibling;
            const icon = button.querySelector('i');
            // Toggle current FAQ display
            if (answer.style.display === 'block') {
                answer.style.display = 'none';
                icon.classList.remove('fa-chevron-up');
                icon.classList.add('fa-chevron-down');
            } else {
                // Close all other FAQs first
                document.querySelectorAll('.homepage-faq .faq-answer').forEach(item => {
                    item.style.display = 'none';
                });
                document.querySelectorAll('.homepage-faq .faq-question i').forEach(item => {
                    item.classList.remove('fa-chevron-up');
                    item.classList.add('fa-chevron-down');
                });
                answer.style.display = 'block';
                icon.classList.remove('fa-chevron-down');
                icon.classList.add('fa-chevron-up');
            }
        };
    </script>

    <!-- Universal Authentication Script -->
    <script src="js/universal-auth.js"></script>

    <!-- Country-Based Pricing System -->
    <script src="js/country-pricing.js"></script>
</body>

</html>
