@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Freckle+Face&display=swap');
:root {
    --grey: #515151;
    --second-grey: #555B55;

    --light-blue: #F4F7FE;
    --light-lavender: #f977d6;
    --lavender: #be469e;
    --light-green: #E6F6E6;

    --blue: #4A5F91;
    --blue10percent: #ffffffb3;
    --green: #C7EFCF;
    --light-brown: #F6F4E6;

    --screen-heigth: 100vh;

    --big-heading: 45px;
    --medium-heading: 25px;
    --small-heading: 16px;
}

/* Main section */
#hero-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    padding: 0 2.5rem;
    height: var(--screen-heigth);
    position: relative;
    z-index: 1; /* Keep hero below subsequent sections */
}
.texts{
    display: flex;
    flex-direction: column;
    grid-row-start: 2;
    margin-left: 10%;
}
.texts h1 {
    margin: 0;
    font-size: 48px;
    opacity: .9;
}
.texts p {
    margin: 0;
    padding-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    color: var(--grey);
}
.heroimage-container {
    grid-column-start: 2;
    grid-row: 1/3;
    margin: 0 0 0 auto;
    overflow: hidden;
}
.heroimage-container img {
    height: 850px;
    transform: translateY(150px) scaleX(-1);
}
.pbtn {
    background-color: var(--blue);
    color: var(--light-blue);
    width: 25%;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: 20px 10px;
    border-radius: 15px;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.pbtn:hover {
    background-color: var(--light-blue);
    color: var(--blue);
}
/* ------------------- Reviews ------------------------ */
/* --- Modernized Reviews Section --- */
#reviews {
    padding: 120px 5%;
    background-color: var(--grey); /* This hides the hero image overlap */
    position: relative;
    z-index: 3; /* Ensures it covers the hero image */
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.subtitle {
    font-size: 2rem;
    color: var(--light-blue); /* Light text for dark background */
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 800;
}

/* Review Cards: Opaque and Clean */
.cards-container {
    position: relative;
    background: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, var(--light-blue) 100%);
    padding: 40px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
    min-height: 320px;
}

/* Profile Picture at the Top */
/* Assuming your JS injects an img with a class like 'review-img' or similar */
.student-card img, .teacher-card img, .review-author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--light-blue);
    display: block; /* Ensures it stays at the top */
}

/* Big Quote Watermark */
.cards-container::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 30px; /* Moved to the right to avoid profile picture */
    font-size: 8rem;
    font-family: serif;
    color: var(--blue);
    opacity: 0.08;
    pointer-events: none;
}

.student-card, .teacher-card {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--second-grey);
    font-style: normal;
    margin-bottom: auto;
    z-index: 1;
}
.review-texts h4 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--blue);
    font-weight: 700;
}
.slide-btns {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    z-index: 2;
}
.arrow-btn {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: var(--grey);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    background: var(--lavender);
    border-color: var(--lavender);
    transform: scale(1.05);
}
/* ---------------------------- */


/* --- Professional "Step" Section with Depth --- */
#signup-section {
    padding: 120px 5%;
    background-color: #ffffff; /* Solid background to hide any overlap */
    background: linear-gradient(180deg, #ffffff 0%, var(--light-blue) 100%);
    text-align: center;
    position: relative;
    z-index: 3;
}

#signup-section h1 {
    font-size: 2.8rem;
    color: var(--blue);
    margin-bottom: 50px;
    font-weight: 800;
}

#signup-content {
    display: flex;
    justify-content: center;
    gap: 25px; /* Slight gap looks better with shadows */
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    padding: 60px 45px;
    background: #ffffff; /* Crisp white against the light blue section */
    border-radius: 30px;
    border: 1px solid rgba(74, 95, 145, 0.08); /* Very soft border */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 10px 30px rgba(74, 95, 145, 0.05); /* Soft baseline shadow */
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(74, 95, 145, 0.12);
    border-color: var(--lavender);
}

/* Subtle background numbers */
.step-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    /* This makes the number look like a watermark */
    color: var(--blue);
    opacity: 0.04; 
    position: absolute;
    top: 10px;
    right: 30px;
    user-select: none;
}

.step-card i {
    font-size: 2.2rem;
    background: var(--lavender);
    background: linear-gradient(135deg, var(--lavender), var(--light-lavender));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.step-card h2 {
    font-size: 1.7rem;
    color: var(--blue);
    margin-bottom: 15px;
}

.step-card p {
    font-size: 1.05rem;
    color: var(--second-grey);
    line-height: 1.7;
    margin-bottom: 35px;
}

/* The "App-Style" Link */
.step-link {
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    padding: 8px 20px;
    background: var(--light-blue);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}
.step-link i {
    font-size: 1.2rem;
}

.step-link:hover {
    background: var(--blue);
    color: white;
}

.step-link:hover i {
    transform: translateX(3px);
    background: var(--light-lavender);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BENEFITS Section*/
/* --- Modernized Benefits Section --- */
#benefits-section {
    background-color: var(--grey); /* Your requested background */
    padding: 120px 5%;
    text-align: center;
}

.benefits-header h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 800;
}

.benefits-header p {
    color: var(--blue10percent);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.03); /* Subtle "Glass" effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: white;
}
.step-card, .benefit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Icon Container with specific sizing */
.benefit-icon {
    width: 120px; /* Base size */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-blue);
    border-radius: 50%;
    margin-bottom: 25px;
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.benefit-icon img {
    width: 75%; /* Spans the 200px container */
    height: auto;
    object-fit: contain;

}

.benefit-card h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.learn-more-btn {
    margin-top: 65px;
    display: inline-block;
    padding: 15px 50px;
    background: var(--light-blue);
    color: var(--blue);
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.learn-more-btn:hover {
    background: var(--blue);
    color: white;
}


/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        /* transform: translateY(10px); */
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Section Styling */
.container{
    width: min(100%, 900px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    background-color: var(--grey);
    /* opacity: .95; */
    box-shadow: 0px 0px 5px 1px grey;
    padding: 15px 20px;
    border-radius: 25px;
    box-sizing: border-box;
    transition: transform .2s, box-shadow .2s;
}
.container h2 {
    color: white;
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    opacity: .9;
    margin-top: 20px;
}
.container p {
    color: white;
    font-size: 18px;
    margin: 0;
    padding: 20px 0px;
}

.faq-section {
    padding: 100px 5%;
    background-color: #ffffff;
}

.faq-section .section-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.faq-section .section-subtitle {
    text-align: center;
    color: var(--light-blue);
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 2px solid rgba(74, 95, 145, 0.1);
    border-radius: 20px; /* Matching the "Step Card" vibe */
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--lavender);
    box-shadow: 0 5px 15px rgba(74, 95, 145, 0.05);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
    text-align: left;
    transition: color 0.3s ease;
}
.faq-question:hover {
    color: var(--lavender);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--lavender);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--light-blue); /* Subtle contrast when open */
}

.answer-content {
    padding: 25px 30px 25px 30px;
    color: var(--second-grey);
    line-height: 1.7;
    font-size: 1rem;
}

/* Rotate icon when active (Managed by your JS) */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust based on content */
}



/* Responsive adjustment */
@media (max-width: 850px) {
    .pbtn {
        width: 50%;
        padding: 15px 10px;
    }

    .reviews-grid { grid-template-columns: 1fr; }
    .subtitle:nth-child(2) { display: none; } /* On mobile, labels sit above cards */

    #signup-content { flex-direction: column; padding: 0 20px; }

    /* Benefits sect */
    .benefit-card {
        min-width: 85%;
    }
    .benefit-icon {
        width: 150px;
        height: 150px;
    }
    /* FAQ */
    .section-subtitle {display: none;}
    .section-title {margin-bottom: 20px;}

    #hero-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        padding: 40px 40px;
    }
    .heroimage-container {
        display: flex;
        grid-column-start: 1;
        grid-row-start: 1;
        width: 35%;
        margin: 75px auto 0px auto;
    }
    .heroimage-container img {
        height: auto;
        max-width: 100%;
        transform: scaleX(-1);
    }
    .texts {
        grid-row-start: 3;
        margin: 0;
        align-items: center;
        text-align: center;
    }
    .texts h1 {
        font-size: 32px;
    }
}
