/* CSS Reset & Variables */
:root {
    --pink: #E91E8C;
    --pink-light: #FF69B4;
    --pink-dark: #C41574;
    --pink-bg: #FCE4EC;
    --pink-soft: #F8BBD9;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f8f8f8;
    --gray: #666666;

    --font-main: 'Montserrat', sans-serif;
    --font-script: 'Caveat', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--pink-bg);
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Base Headings & Text */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--black);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 0.95rem;
}



/* Section Box Styles (Common) */
.section-wrapper {
    padding: 50px 0;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 3;
    margin-top: -30px;
    scroll-margin-top: 30px;
}

.section-wrapper.pink-bg {
    background: linear-gradient(180deg, var(--pink-bg) 0%, var(--white) 100%);
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
}

/* About Section */
.about-card {
    background: var(--white);
    border: 2px solid var(--pink-soft);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(233, 30, 140, 0.1);
    position: relative;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 15px;
}

.about-text strong {
    color: var(--black);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 480px) {
    .services-grid {
        gap: 15px;
    }
}

.service-card {
    background: var(--white);
    padding: 15px 10px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(233, 30, 140, 0.1);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 30, 140, 0.15);
    border-color: var(--pink-light);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.service-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.service-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--black);
    line-height: 1.2;
}

.service-card p {
    color: var(--gray);
    font-size: 0.7rem;
    line-height: 1.3;
}

@media (min-width: 480px) {
    .service-card {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Lessons Media Universal Component */
.lessons-media-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--pink-soft);
    margin-bottom: 25px;
    aspect-ratio: 16/9;
    background: var(--gray-light);
}

.lessons-media-wrapper img,
.lessons-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lessons-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 140, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.lessons-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.lessons-text-card {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(233, 30, 140, 0.1);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.lessons-icon {
    background: var(--pink-bg);
    color: var(--pink);
    padding: 10px;
    border-radius: 12px;
}

/* Platform Mockup */
.platform-mockup {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px 0;
}

.platform-header {
    background: var(--gray-light);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eaeaea;
}

.mac-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mac-dot.red {
    background: #ff5f56;
}

.mac-dot.yellow {
    background: #ffbd2e;
}

.mac-dot.green {
    background: #27c93f;
}

.platform-body {
    padding: 20px;
}

.platform-student-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.platform-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.platform-stat-box {
    background: var(--pink-bg);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.platform-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pink);
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.pricing-card {
    flex: 1 1 280px;
    max-width: 350px;
    background: var(--white);
    border-radius: 24px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(233, 30, 140, 0.08);
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid rgba(233, 30, 140, 0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--pink);
    background: linear-gradient(135deg, var(--white) 0%, var(--pink-bg) 100%);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
    white-space: nowrap;
    z-index: 5;
}

.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 15px 0 8px;
    color: var(--black);
}

.price-main {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pink);
    margin: 15px 0;
}

.price-currency {
    font-size: 1.2rem;
}

.pricing-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.pricing-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
}

/* Reviews Carousel */
.reviews-wrapper {
    position: relative;
    padding-bottom: 40px;
}

.reviews-carousel {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    background: var(--white);
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-slide {
    min-width: 100%;
    padding: 10px;
}

.review-slide img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    max-height: 500px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pink-soft);
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dot.active {
    background: var(--pink);
    width: 25px;
    border-radius: 5px;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.faq-question {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--pink-bg);
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: var(--pink-soft);
    color: var(--pink-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--pink);
    color: var(--white);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Contacts Link */
.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 18px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(233, 30, 140, 0.2);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.1);
    margin-bottom: 15px;
    font-family: var(--font-main);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 140, 0.2);
}

/* Navigation */
.nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    padding: 12px 25px;
    border-radius: 40px;
    display: flex;
    gap: 20px;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--pink-light);
    transform: translateY(-2px);
}

.nav-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 20px 120px;
    text-align: center;
}

/* =========================================
   RESPONSIVE DESIGN (Tablet & Desktop) 
   ========================================= */

.desktop-two-cols {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }



    .section-title {
        font-size: 2.4rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }



    /* Use flex/grid for about & lessons strictly for desktop spacing */
    .desktop-two-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }

    .nav {
        gap: 35px;
        padding: 15px 40px;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }


}

/* --- Certificates Grid --- */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .certificates-grid {
        gap: 30px;
        margin-top: 40px;
    }
}

.cert-card {
    text-align: center;
    width: 100%;
}

.cert-image-wrapper {
    background: var(--white);
    border-radius: 8px;
    /* rounder curve for smaller screens */
    padding: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: calc(100% - 30px);
    cursor: pointer;
}

@media (min-width: 768px) {
    .cert-image-wrapper {
        padding: 12px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
        height: calc(100% - 40px);
    }
}

.cert-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(233, 30, 140, 0.15);
}

.cert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    /* inner frame corner */
    display: block;
}

.cert-title {
    font-size: 0.75rem;
    /* tiny for 3 cols mobile */
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
    margin: 0;
}

@media (min-width: 768px) {
    .cert-title {
        font-size: 1.15rem;
    }
}

/* --- Image Modal --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s ease;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: var(--pink);
    text-decoration: none;
    cursor: pointer;
}

.image-modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(65, 65, 65, 0.437);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    user-select: none;
    transition: color 0.2s ease;
}

.image-modal-btn:hover {
    color: var(--pink);
}

.image-modal-prev {
    left: 10px;
}

.image-modal-next {
    right: 10px;
}