/* HERO SECTION */
.hero {
    position: relative;
    background: url('/images/kids.jpg') center center / cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* prevents overlay spill */
}

/* OVERLAY — perfectly fits hero */
.hero-overlay {
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background: rgba(54, 76, 132, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
}

/* HERO CONTENT */
.hero-content {
    position: relative; /* keeps text above overlay */
    text-align: center;
    color: #fff;
    max-width: 750px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}


/* BUTTONS */
.btn-primary,
.btn-secondary {
    background: #364C84;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
}

.btn-hero {
    border: 2px solid #facc15;
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: #facc15;
    color: #1f2937;
    transform: translateY(-2px);
}



@media (max-width: 384px) {
    .btn-hero {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 14px;
    }
}



.hero-subtext {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #ffffff;
    min-height: 28px; /* prevents layout jump */
}

#typewriter::after {
    content: "|";
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}



/* SECTIONS */
section {
    padding: 4rem 1rem;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* CARDS */
.card,
.service-card,
.tutor-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
}

/* ONBOARDING */
.onboarding-step {
    margin-bottom: 2rem;
}

/* FAQ SECTION */
.faq {
    padding: 5rem 1rem;
    background: #FFFDF5;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #364C84;
    margin-bottom: 3rem;
}

.faq-item {
    max-width: 1000px;
    margin: 0 auto 1rem auto;
}

.faq-question {
    width: 100%;
    background: #f3f4f6;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e5e7eb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
    border-radius: 0 0 8px 8px;
}

.faq-answer p {
    padding: 1rem 0;
    color: #4b5563;
    line-height: 1.7;
}

/* ACTIVE STATE */
.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 0.3s ease;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #364C84;
}

/* ONBOARDING */

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.onboarding-card {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.onboarding-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: #364C84;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* GRID RESPONSIVE */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* SERVICE & TUTOR CARDS */
.service-card,
.tutor-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover,
.tutor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* UNIFORM IMAGE SIZE */
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tutor-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 25%;
    margin: 1.5rem auto 1rem;
}

/* CARD CONTENT SPACING */
.service-card h3,
.tutor-card h3 {
    margin: 1rem 1rem 0.5rem;
}

.service-card p,
.tutor-card p {
    margin: 0 1rem 1rem;
    flex-grow: 1;
}

.price {
    font-weight: bold;
    color: #364C84;
}

.service-card .btn-secondary {
    margin: 1rem;
}

/* TABLET */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .onboarding-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .onboarding-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        padding: 5rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card,
.tutor-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover,
.tutor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: opacity .4s ease;
}

.image-wrapper:hover img {
    transform: scale(1.08);
}


.popular-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f59e0b;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    z-index: 5;
}

.description {
    color: #6b7280;
    font-size: 14px;
    margin: 10px 0 15px;
}

.price {
    font-weight: 700;
    margin-bottom: 15px;
    color: #111827;
}

.specialty {
    color: #6b7280;
    margin-top: 6px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state img {
    width: 120px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.fixed_whatsapp{
  position: fixed;
  right: 10px;
  bottom: 15px;
  z-index: 19;
  display:flex;
  justify-content: end;
}

.logo1{
  width: 70px;
  height: 70px;
}

/* ================= SUCCESS ALERT ================= */

.plan-success-alert {
    background: #e6f4ea;
    color: #166534;
    border-left: 6px solid #22c55e;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    animation: fadeInAlert 0.4s ease;
    text-align: center;
}

@keyframes fadeInAlert {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-out-alert {
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.5s ease;
}

/* ================= TESTIMONIALS ================= */

.testimonials {
    padding: 80px 20px;
    text-align: center;
}

.testimonial-carousel {
    position: relative;
    max-width: 750px;
    margin: auto;
    min-height: 180px;
    padding: 0 10px;
}

.testimonial {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial p {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
}

.testimonial h4 {
    color: #364C84;
    margin-bottom: 5px;
    font-size: 18px;
}

.testimonial span {
    color: #facc15;
    font-weight: 600;
    font-size: 14px;
}

/* Dots */
.testimonial-dots {
    margin-top: 25px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #364C84;
}

@media (max-width: 865px) {

    .testimonial {
        position: relative;   /* stack naturally */
        transform: none;      /* remove slide offset */
    }

    .testimonial:not(.active) {
        display: none;        /* hide non-active slides cleanly */
    }

    .testimonial.active {
        opacity: 1;
        display: block;
    }

    .testimonial-carousel {
        min-height: auto;     /* height grows with content */
    }
}


@media (max-width: 480px) {

    .testimonial-carousel {
        min-height: 260px;
    }

    .testimonial p {
        font-size: 14px;
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}



/* FAQ Section */
.faq {
    background: #f9fafc;
    padding: 80px 20px;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #364C84; /* Brand color */
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #364C84;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin: 10px 0 15px;
    color: #4b5563;
    line-height: 1.7;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
}

/* Active State */
.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-item.active .faq-question {
    color: #364C84;
}

/* Chevron animation */
.chevron {
    transition: transform 0.3s ease;
    color: #364C84;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

