/* assets/css/style.css */
:root {
    --primary: #ff6a00;
    --primary-light: #ff8533;
    --secondary: #ff3366;
    --blue: #2575fc;
    --cyan: #00c6ff;
    --yellow: #feca57;
    --green: #10ac84;
    --dark: #222f3e;
    --light-bg: #fffbf5;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', cursive;
    color: #1e272e;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Topbar */
.top-bar {
    background: #1e272e;
    color: #d2dae2;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-info span {
    margin-right: 15px;
}
.top-info i {
    color: var(--yellow);
    margin-right: 4px;
}
.top-social a {
    color: #fff;
    margin-left: 10px;
}
.top-social a:hover {
    color: var(--primary);
}

.main-header {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-badge {
    background: linear-gradient(135deg, #ff3366, #ff6a00);
    color: #fff;
    font-family: 'Fredoka', cursive;
    font-weight: 700;
    font-size: 1.6rem;
    padding: 4px 14px;
    border-radius: 12px;
    letter-spacing: 1px;
}
.logo-text strong {
    display: block;
    color: #1e272e;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.logo-text small {
    display: block;
    color: #ff3366;
    font-size: 0.7rem;
    font-weight: 800;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}
.nav-item a {
    font-weight: 700;
    font-size: 0.95rem;
    color: #485460;
    padding: 6px 10px;
    border-radius: 10px;
}
.nav-item:hover > a, .nav-item.active > a {
    color: var(--primary);
    background: #fff4ec;
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-radius: 14px;
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    z-index: 999;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 0.9rem;
}
.dropdown-menu li a:hover {
    background: #fff0f5;
    color: var(--secondary);
}

.btn-inquiry {
    background: linear-gradient(135deg, #10ac84, #1dd1a1);
    color: #fff;
    padding: 10px 22px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(16, 172, 132, 0.35);
}
.pulse-button {
    animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* Page Hero Banner */
.page-banner {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('https://images.unsplash.com/photo-1588072432836-e10032774350?w=1400') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 50px;
}
.page-banner h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 10px;
}
.page-banner p {
    font-size: 1.1rem;
    color: var(--yellow);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 45px;
}
.section-title span {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}
.section-title h2 {
    font-size: 2.3rem;
    margin-top: 5px;
}

/* 1. Hero Carousel */
.hero-slider-wrap {
    position: relative;
    overflow: hidden;
    height: 640px;
    background: #000;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 650px;
    padding: 0 40px;
}
.hero-content span {
    background: var(--yellow);
    color: #1e272e;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
}
.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin: 15px 0;
    line-height: 1.2;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
}
.slider-btn:hover { background: #fff; color: var(--primary); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* 2. Exclusive Launch Offer Card */
.launch-offer-badge-box {
    background: linear-gradient(135deg, #ff3366, #ff9f43);
    border-radius: 22px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 51, 102, 0.3);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}
.launch-offer-badge-box::after {
    content: "FREE ADMISSION";
    position: absolute;
    right: -30px;
    bottom: -15px;
    font-size: 3.5rem;
    font-family: 'Fredoka', cursive;
    color: rgba(255,255,255,0.12);
    font-weight: 800;
    user-select: none;
}
.spot-counter {
    display: inline-block;
    background: #fff;
    color: #ff3366;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1rem;
    margin: 10px 0;
}

/* Grid & Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card-custom {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid #f1f2f6;
}
.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.core-val-card {
    text-align: center;
}
.core-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

/* Counters */
.counter-box {
    background: linear-gradient(135deg, #1e272e, #2f3640);
    border-radius: var(--radius);
    padding: 50px 30px;
    color: #fff;
    text-align: center;
}
.counter-number {
    font-family: 'Fredoka', cursive;
    font-size: 3rem;
    color: var(--yellow);
    font-weight: 700;
}

/* Programs Card */
.program-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}
.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.program-card-body {
    padding: 20px;
}
.program-age {
    background: #ffeaa7;
    color: #d63031;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Carousel Section Styles (Native Carousels) */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}
.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}
.carousel-item {
    flex: 0 0 calc(33.333% - 14px);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Testimonial & Teachers */
.teacher-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.desk-photo {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 5px solid #fff;
}

/* Forms */
.inquiry-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #edeff2;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}
.btn-submit {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    font-weight: 800;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

/* Footer */
.main-footer {
    background: #1e272e;
    color: #fff;
    position: relative;
    padding-top: 40px;
}
.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
    fill: #1e272e;
    margin-top: -60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: var(--yellow);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}
.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2f3640;
    color: #fff;
    margin-right: 8px;
    margin-top: 15px;
}
.footer-social-icons a:hover {
    background: var(--primary);
}
.footer-bottom {
    background: #141a20;
    padding: 18px 0;
    font-size: 0.85rem;
    color: #a4b0be;
    border-top: 1px solid #2f3640;
}

/* Floating WhatsApp */
.float-wa-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
}

/* Automatic WhatsApp Bot Widget */
.bot-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}
.bot-launcher {
    background: linear-gradient(135deg, #25d366, #128c7e);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.45);
    position: relative;
}
.bot-badge-ping {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #ff3366;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: ping 1.5s infinite;
}
@keyframes ping {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(0.9); opacity: 1; }
}

.bot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: #eef2f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    flex-direction: column;
}
.bot-window.open {
    display: flex;
}
.bot-header {
    background: #075e54;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.bot-avatar {
    position: relative;
}
.bot-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.bot-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4cd137;
    border: 2px solid #fff;
    border-radius: 50%;
}
.bot-details h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
}
.bot-details p {
    font-size: 0.75rem;
    color: #c8d6e5;
    margin: 0;
}
.bot-close-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}
.bot-body {
    padding: 15px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #efeae2;
}
.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    max-width: 85%;
    line-height: 1.4;
    position: relative;
}
.bot-msg {
    background: #fff;
    color: #1e272e;
    align-self: flex-start;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.user-msg {
    background: #dcf8c6;
    color: #1e272e;
    align-self: flex-end;
    border-top-right-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.chat-time {
    display: block;
    font-size: 0.65rem;
    color: #888;
    text-align: right;
    margin-top: 4px;
}
.bot-options {
    padding: 10px 12px;
    background: #f7f9fa;
    max-height: 170px;
    overflow-y: auto;
    border-top: 1px solid #e1e8ed;
}
.bot-opt-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dcdde1;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2f3640;
    cursor: pointer;
    transition: 0.2s;
}
.bot-opt-btn:hover {
    background: #dcf8c6;
    border-color: #25d366;
}
.bot-footer {
    padding: 10px;
    background: #fff;
    text-align: center;
    border-top: 1px solid #eee;
}
.bot-direct-wa {
    display: inline-block;
    background: #25d366;
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
}

/* Responsiveness */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .carousel-item { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.open { display: flex; }
    .nav-list { flex-direction: column; width: 100%; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .carousel-item { flex: 0 0 100%; }
    .hero-slider-wrap { height: 420px; }
    .hero-content h1 { font-size: 2rem; }
}

/* ========================================================
   FIX: 2-Row Top Bar for Mobile & Tablet (5px Edge Margins)
   ======================================================== */
@media (max-width: 992px) {
    .top-bar {
        padding: 8px 0;
    }

    /* Container for 2-row layout */
    .top-bar-content {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        row-gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Allows child spans to position directly in the grid */
    .top-info {
        display: contents;
    }

    /* Hide Email completely */
    .top-info span:has(a[href^="mailto"]),
    .top-info span:last-child {
        display: none !important;
    }

    /* Row 1: Centered Full-Width Address */
    .top-info span:first-child {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        display: block;
        font-size: 0.82rem;
        margin: 0;
    }

    /* Row 2 (Left): Contact Number with 5px Left Margin */
    .top-info span:nth-child(2) {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 0.88rem;
        font-weight: 700;
        margin: 0 0 0 10px; /* 5px margin from left corner */
    }

    /* Row 2 (Right): Social Icons with 5px Right Margin */
    .top-social {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        margin: 0 10px 0 0; /* 5px margin from right corner */
    }

    .top-social a {
        margin: 0;
        font-size: 1.05rem;
    }
}