/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    background: #f5f7fb;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== ANIMATIONS (Desktop only) ===== */
@media (min-width: 992px) {
    .animate { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
    .animate.show { opacity: 1; transform: translateY(0); }
    .animate-left { transform: translateX(-60px); }
    .animate-right { transform: translateX(60px); }
    .animate-zoom { transform: scale(0.8); margin-top: 100px; }
    .animate.show.animate-left,
    .animate.show.animate-right { transform: translateX(0); }
    .animate.show.animate-zoom { transform: scale(1); }
}
@media (max-width: 991px) {
    .animate, .animate-left, .animate-right, .animate-zoom {
        opacity: 1 !important; transform: none !important; transition: none !important;
    }
    .animate-zoom { margin-top: 0 !important; }
}

/* ===== BANNER ===== */
.banner-img {
    width: 100%;
    /* margin-top: 100px; */
    text-align: center;
    /* background: #0f1f3d; */
}
.banner-img img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ===== HERO ===== */
.hero { padding: 50px 15px; }
.hero-title {
    font-family: Cambria, Georgia, serif;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-text {
    font-family: 'Times New Roman', serif;
    font-size: clamp(16px, 1.8vw, 20px);
    color: #222;
    line-height: 1.8;
}
.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    object-fit: cover;
}
.blue { color: #2a7de1;
    font-family: Cambria, Georgia, serif;}

/* ===== SECTION COMMON ===== */
.section { text-align: center; padding: 10px 10px 25px; }

.section h1 {
    font-size: clamp(28px, 4vw, 46px);
    color: #2c4c8c;
    margin-bottom: 14px;
    font-weight: 800;
    line-height: 1.3;
    animation: headingPop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section p {
    color: #6b7280;
    font-size: clamp(15px, 1.6vw, 17px);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.75;
    animation: fadeSlideUp 0.9s ease 0.25s both;
}

.top-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #2a7de1;
    padding: 10px 26px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(42,125,225,0.18);
    animation: badgeBounce 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both,
               badgePulse 2.8s ease-in-out 1s infinite;
}

/* === Section Animations === */
@keyframes headingPop {
    0%   { opacity: 0; transform: scale(0.88) translateY(22px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes badgeBounce {
    0%   { opacity: 0; transform: translateY(-20px) scale(0.9); }
    60%  { transform: translateY(5px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes badgePulse {
    0%   { transform: scale(1);    box-shadow: 0 4px 16px rgba(42,125,225,0.18); }
    50%  { transform: scale(1.06); box-shadow: 0 6px 24px rgba(42,125,225,0.38); }
    100% { transform: scale(1);    box-shadow: 0 4px 16px rgba(42,125,225,0.18); }
}

@keyframes fadeSlideUp {
    0%   { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== STUDENT CAROUSEL ===== */
.students-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 60px 44px;
    background: linear-gradient(135deg, #dbe5f8, #c1cae8);
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 auto 20px;
}
.students-viewport {
    overflow: hidden;
    flex: 1;
}
.students-section {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}
.student-card {
    flex-shrink: 0;
    width: 220px;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background: #fff;
}
.student-card:hover { transform: translateY(-6px); }
.student-card img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e3e8f5;
    background: #fff;
    color: #2a7de1;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    z-index: 2;
}
.carousel-arrow:hover { background: #2a7de1; color: #2a7de1; transform: scale(1.08); border-color: #2a7de1; }
.carousel-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.carousel-arrow:disabled:hover { background: #2a7de1; color: #2a7de1; transform: none; border-color: #e3e8f5; }

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #c2cae3;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: #2a7de1; transform: scale(1.25); }

/* ===== COURSE CARDS ===== */
.cards { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 10px 10px 30px; }
.card {
    width: 300px;
    min-width: 260px;
    padding: 28px 22px 24px;
    border-radius: 24px;
    color: white;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,0.2); }
.card .icon { font-size: 36px; margin-bottom: 10px; }
.card h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.card h3 { font-size: 26px; font-weight: 800; margin-bottom: 2px; }
.card h4 { font-size: 14px; opacity: 0.85; margin-bottom: 10px; }
.card span { font-size: 12px; opacity: 0.8; display: block; margin-bottom: 4px; }
.tag {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 8px 0 12px;
}
.card ul { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.card ul li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.card ul li::before { content: "✓ "; font-weight: bold; opacity: 0.9; }
.illustration { width: 90px; margin: 10px auto 16px; display: block; }
.enroll-btn {
    display: block;
    text-align: center;
    background: white;
    color: #333;
    padding: 12px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    margin-top: auto;
}
.enroll-btn:hover { background: #f0f0f0; transform: scale(1.03); color: #111; }
.red    { background: linear-gradient(135deg, #ff5f6d, #ff2d55); }
.green  { background: linear-gradient(135deg, #00c9a7, #00b894); }
.purple { background: linear-gradient(135deg, #6a11cb, #2575fc); }

/* ===== FEATURES ===== */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 10px auto 0;
    padding: 10px 10px 20px;
}
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.feature-content h3 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.feature-content p { font-size: 13px; color: #6b7280; margin: 0; }

/* ===== WHATSAPP ===== */
.whatsapp-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
}
.whatsapp-text {
    background: #25D366;
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    animation: slideText 2s infinite;
}
.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    animation: zoomEffect 1.5s infinite;
    flex-shrink: 0;
}
.whatsapp-icon svg { width: 34px; height: 34px; }
@keyframes zoomEffect {
    0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); }
}
@keyframes slideText {
    0% { transform: translateX(0); } 50% { transform: translateX(-8px); } 100% { transform: translateX(0); }
}

/* ===== FOOTER ===== */
.footer {
    background-image: url('image/footer_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8edf6;
    color: rgb(17, 3, 60);
    padding: 50px 20px 20px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}
.footer-box h3 { font-size: 15px; margin-bottom: 14px; font-weight: 700; color: #1a1a4e; letter-spacing: 0.5px; }
.footer-box p { font-size: 14px; line-height: 1.7; color: #444; }
.footer-box ul { list-style: none; padding: 0; }
.footer-box ul li { margin-bottom: 10px; }
.footer-box ul li a { text-decoration: none; color: #2e2c2c; font-size: 14px; transition: color 0.2s; }
.footer-box ul li a:hover { color: #2d5cff; }
.footer-logo { width: 180px; height: auto; margin-bottom: 14px; }
.footer-bottom { text-align: center; margin-top: 30px; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 22px; }
.footer-bottom h2 { font-size: 16px; letter-spacing: 2px; color: #2d5cff; margin-bottom: 8px; }
.footer-bottom p { font-size: 13px; color: #4d4b4b; }

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.social-icons a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.social-icons a svg { display: block; border-radius: 6px; }

/* ===== MOBILE (≤767px) ===== */
@media (max-width: 767px) {

    /* Navbar */
    .navbar { padding: 8px 14px; }
    .logo { height: 44px !important; }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 10px 14px 16px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.12);
        border-radius: 0 0 14px 14px;
    }
    .navbar-nav { align-items: stretch !important; gap: 0; }
    .nav-item { border-bottom: 1px solid #f1f1f1; }
    .nav-item:last-child { border-bottom: none; }
    .nav-link { padding: 12px 8px !important; font-size: 15px; margin: 0; }

    /* Mobile dropdown via Bootstrap toggle */
    .nav-item.dropdown:hover .dropdown-menu { display: none; }
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        background: #f4f8ff;
        border-radius: 10px;
        margin: 4px 0 8px;
        padding: 6px;
        border: none;
        width: 100%;
    }
    .dropdown-menu a { padding: 10px 14px; font-size: 14px; }

    .nav-item.ms-3 { margin-left: 0 !important; margin-top: 10px; border-bottom: none; }
    .free-class-btn {
        display: block !important;
        width: 100%;
        text-align: center;
        padding: 13px 14px !important;
        font-size: 13px;
        border-radius: 20px;
    }

    /* Banner — full image, no crop */
    .banner-img { margin-top: 62px; }
    .banner-img img {
        max-height: none !important;
        height: auto !important;
        object-fit: contain !important;
        width: 100%;
    }

    /* Hero */
    .hero { padding: 30px 16px 40px; margin-top: 0 !important; }
    .hero .row { flex-direction: column !important; gap: 24px; }
    .hero .col-md-6 {
        width: 100% !important; max-width: 100% !important;
        flex: 0 0 100% !important; padding: 0 !important;
    }
    .hero-title { font-size: 24px !important; text-align: center; line-height: 1.35 !important; }
    .hero-text { font-size: 15px !important; line-height: 1.8 !important; }
    /* Hero image — full, not cropped */
    .hero-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 12px;
    }

    /* Section */
    .section { padding: 36px 16px 24px; }
    .section h1 { font-size: clamp(24px, 6vw, 34px); }
    .section p { font-size: 14px; }
    .top-badge { font-size: 13px; padding: 9px 20px; }

    /* Student cards */
    .student-card { width: 150px; height: 185px; }
    .students-wrapper { padding: 16px 8px 40px; gap: 6px; border-radius: 18px; }
    .carousel-arrow { width: 34px; height: 34px; font-size: 13px; }
    .carousel-dots { bottom: 14px; }

    /* Course cards */
    .cards { flex-direction: column; align-items: center; gap: 20px; padding: 0 14px 24px; }
    .card { width: 100%; max-width: 400px; min-width: unset; padding: 24px 20px; }

    /* Features */
    .features-container { grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 14px; }
    .feature-card { padding: 14px 12px; flex-direction: column; text-align: center; gap: 8px; }
    .feature-card img { width: 36px; height: 36px; }
    .feature-content h3 { font-size: 13px; }
    .feature-content p { font-size: 12px; }

    /* WhatsApp */
    .whatsapp-text { display: none; }
    .whatsapp-wrapper { right: 14px; bottom: 14px; }
    .whatsapp-icon { width: 52px; height: 52px; }
    .whatsapp-icon svg { width: 20px; height: 20px; }

    /* Footer */
    .footer { padding: 36px 16px 20px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-logo { width: 130px; }
    .footer-bottom h2 { font-size: 12px; letter-spacing: 1px; }
}

/* ===== SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {
    .logo { height: 40px !important; }
    .hero-title { font-size: 21px !important; }
    .card { max-width: 100%; }
    .features-container { grid-template-columns: 1fr; }
    .feature-card { flex-direction: row; text-align: left; gap: 14px; }
    .footer-container { grid-template-columns: 1fr; gap: 18px; }
    .footer-logo { width: 110px; }
    .student-card { width: 135px; height: 165px; }
}

/* ===== EXTRA SMALL (≤360px) ===== */
@media (max-width: 360px) {
    .hero-title { font-size: 19px !important; }
    .card { padding: 20px 16px; }
    .free-class-btn { font-size: 12px !important; }
}