:root {
    --primary-color: #18ADA4;
    /* Slightly adjusted to match the "Education" and "Contact Us" more purple tone in image */
    /* Wait, user user specified #2E3AAE. I should use that or close to it. 
       The image shows a violet/purple-ish blue. Let's use the USER provided hex #2E3AAE.
    */
    --primary-blue: #18ADA4;
    --accent-yellow: #F28C28;
    /* User provided hex */
    --text-dark: #1F1F3D;
    --text-gray: #6B6B84;
    --bg-white: #FFFFFF;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-yellow);
}

.btn-contact {
    background-color: var(--text-dark);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-contact:hover {
    background-color: var(--accent-yellow);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 85vh;
    /* Ensure full viewport height */
    position: relative;
}

.hero-content {
    flex: 0 0 45%;
    /* slightly less than 50 to allow gap */
    width: 45%;
    max-width: none;
    z-index: 2;
    padding-right: 2rem;
}

.page-hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    background-color: #f9f9fb;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.page-hero .hero-content {
    width: 100%;
    padding-right: 0;
}

.subtitle {
    display: block;
    font-size: 2rem;
    color: var(--text-dark);
    /* Actually in the image it looks like the same dark blue/purple or light gray? 
                              "E-learning" is smaller but same font family. 
                              Wait, looking at image: "E-learning" is smaller, arguably dark blue. */
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

h1,
h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h1 span {
    color: var(--primary-blue);
    /* "in Your City" part looks purple/blue in the image? 
                                   Actually "Education Platform" is dark, "in Your City" is Purple. */
}

/* Let's double check the image. 
   "E-learning" is regular weight, maybe 24px.
   "Education Platform" is Bold Dark.
   "in Your City" is Bold Purple (#2E3AAE).
*/
.hero-content h1 {
    color: #0d1b3e;
    /* Very dark blue/black */
}

/* We need to wrap "in Your City" in a span if we want to color it differently. 
   I didn't specific span in HTML. I will target the last line or just update HTML.
   Wait, the user text is "Education Platform in Your City". 
   In the image: "E-learning" (Line 1, thin)
                 "Education Platform" (Line 2, Bold)
                 "in Your City" (Line 3, Bold Purple)
*/

.hero-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

@keyframes alarm-shake {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(3deg);
    }

    20% {
        transform: rotate(-3deg);
    }

    30% {
        transform: rotate(3deg);
    }

    40% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(1deg);
    }

    60% {
        transform: rotate(-1deg);
    }

    70% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.btn-primary,
.btn-join {
    animation: alarm-shake 2.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
    transform-origin: center;
}

.btn-primary:hover,
.btn-join:hover {
    animation-play-state: paused;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(242, 140, 40, 0.3);
    transition: transform 0.2s, background-color 0.3s;
    display: inline-block;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--primary-blue);
    /* In image it looks like a blue border */
    transition: background-color 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
}

.btn-secondary:hover {
    background-color: rgba(24, 173, 164, 0.05);
}

/* Hero Image & Decorations */
.hero-image-container {
    flex: 0 0 55%;
    top: -50px;
    /* Give image slightly more space if needed, or balanced */
    width: 55%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 700px;
    /* Adjust height */
}

.yellow-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background-color: var(--accent-yellow);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    z-index: 1;
    top: 60%;
    left: 60%;
    transform: translate(-50%, -50%) rotate(-10deg);
}

.student-img {
    position: relative;
    z-index: 2;
    top: -110px;
    left: 70px;
    max-width: 120%;
    height: auto;
    object-fit: cover;
    max-height: 850px;
    /* Masking the bottom to create the 'coming from shape' effect. 
       We curve the bottom corners to blend with the organic shape behind it. */
    border-radius: 0 0 200px 200px;
    margin-bottom: -50px;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}



/* Decorations */
.decoration-wave-top {
    position: absolute;
    top: 5%;
    left: 10%;
    /* Adjust based on layout */
    z-index: 3;
    /* Animation handled by GSAP */
}

.decoration-dots {
    position: absolute;
    bottom: 20%;
    right: 5%;
    z-index: 0;
}

.dot-grid {
    width: 60px;
    height: 100px;
    background-image: radial-gradient(var(--primary-blue) 15%, transparent 16%);
    background-size: 10px 10px;
    opacity: 0.5;
}

.decoration-circle-outline {
    position: absolute;
    top: 30%;
    right: 10%;
    width: 50px;
    /* Increased size */
    height: 50px;
    border: 5px solid white;
    /* Thicker border */
    border-radius: 50%;
    z-index: 3;
    opacity: 0.8;
}

.decoration-circle-solid {
    position: absolute;
    bottom: 15%;
    left: 20%;
    width: 40px;
    /* Increased size */
    height: 40px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    border: 6px solid white;
    /* Thicker border */
    z-index: 3;
}

.decoration-wave-bottom {
    margin-top: 3rem;
    opacity: 0.5;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column-reverse;
        /* Image on top on mobile? Or standard stack */
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-top: 2rem;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-image-container {
        min-height: 400px;
    }

    .yellow-blob {
        width: 350px;
        height: 350px;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Orbit Circle */
.orbit-circle {
    position: absolute;
    top: 55%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    border: 2px dashed rgba(242, 140, 40, 0.4);
    /* Orange dashed stroke */
    border-radius: 50%;
    z-index: 1;
    /* Behind student (z=2) but above blob (z=1)? Blob is z=1. Let's make this z=1 too, or 0? 
                   Actually icons need to be visible. 
                   Student is z=2. If circle is z=1, icons (children) are z=1. 
                   They might be behind student.
                   User wants "around the boy".
                   Let's try z-index 3 to be on top, or depends on layering.
                   Student masks bottom.
                   Let's use z-index 3 for now so they float ON TOP of the student.
                */
    z-index: 0;
    pointer-events: none;
    animation: orbit-spin 40s linear infinite;
}

/* Holder to position elements on the circle */
.icon-holder {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 
       1. Rotate to the angle (i * 90)
       2. Translate to radius (325px)
       3. Rotate BACK by same angle (-i * 90) so the local coordinate system is 0deg relative to parent 
    */
    transform: rotate(calc(var(--i) * 90deg)) translate(325px) rotate(calc(var(--i) * -90deg));

    transform-origin: 0 0;
    width: 0;
    height: 0;
}

.floating-icon {
    /* Center the icon on the holder point */
    position: absolute;
    top: -40px;
    left: -40px;

    width: 80px;
    height: 80px;
    background-color: var(--accent-yellow);
    /* Organic blob shape */
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(242, 140, 40, 0.3);

    /* Counter rotation to keep icon upright */
    animation: orbit-counter-spin 40s linear infinite;
}

/* Individual customizations if needed (colors) */
.icon-camping {
    background-color: #FF7B54;
    border-radius: 52% 48% 30% 70% / 55% 45% 55% 45%;
}

.icon-speech {
    border-radius: 63% 37% 39% 61% / 48% 66% 34% 52%;
}

.icon-education {
    border-radius: 41% 59% 31% 69% / 68% 44% 56% 32%;
}

.icon-travel {
    border-radius: 35% 65% 60% 40% / 37% 33% 67% 63%;
}

@keyframes orbit-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbit-counter-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Features Section */
.features-section {
    position: relative;
    background-color: var(--primary-blue);
    padding: 6rem 5% 6rem;
    margin-top: 5rem;
    margin-bottom: 95px;
    /* Account for the scalloped divider height */
    text-align: center;
}

/* Scalloped Divider */
.scalloped-divider {
    position: absolute;
    top: -95px;
    /* Matches height roughly */
    left: 0;
    width: 100%;
    height: 100px;
    background-color: transparent;

    /* Convex Scallops pointing UP */
    /* Circle centered at the bottom of the pattern box */
    /* Pattern size = 120px width. Radius ~60px. */
    background-image: radial-gradient(circle at 50% 100%, var(--primary-blue) 65%, transparent 66%);
    background-size: 140px 100px;
    background-repeat: repeat-x;

    /* Remove mask properties from previous attempt */
    mask-image: none;
    -webkit-mask-image: none;
}

.section-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.cards-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-card {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-card:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Scalloped Divider Bottom */
.scalloped-divider-bottom {
    position: absolute;
    bottom: -95px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: transparent;
    /* Convex Scallops pointing DOWN */
    /* To point down, we can FLIP the top divider, or use radial gradient on top. */
    /* Circle centered at the TOP of the pattern box */
    background-image: radial-gradient(circle at 50% 0%, var(--primary-blue) 65%, transparent 66%);
    background-size: 140px 100px;
    background-repeat: repeat-x;
    transform: rotate(180deg);
    /* Simplest way to flip the top one if we reused class, but here we made a new one. 
                                  If we use same gradient as top (pointing UP), rotating 180 makes it point DOWN.
                                  Gradient above is "circle at 50% 100%" (bottom).
                                  If we use "circle at 50% 0%" (top), it points down.
                               */
    background-image: radial-gradient(circle at 50% 100%, var(--primary-blue) 65%, transparent 66%);
    transform: rotate(180deg);
    top: auto;
    /* reset top */
    bottom: -95px;
    z-index: 1;
    /* relative to features section? */
}

/* About Section */
.about-section {
    padding: 8rem 5% 4rem;
    /* Extra top padding to clear the wave */
    max-width: 1400px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content .subtitle {
    color: var(--accent-yellow);
    font-weight: 600;
    /* Making it pop a bit more if it's a label */
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.about-list li i {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    z-index: 2;
    position: relative;

}

.about-image-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background-color: var(--accent-yellow);
    /* Orange blob bg */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    top: -5%;
    left: -5%;
    /* Position it to spill out slightly but not cover text */
    z-index: 0;
    /* Ensure it is behind the image (which is z-index 2) */
    opacity: 1;
}

.about-mascot {
    position: absolute !important;
    bottom: -300px;
    left: 50px;
    height: 90px;
    width: auto;
    z-index: 10 !important;
    pointer-events: none;
    filter: none !important;
    box-shadow: none !important;
    animation: floating 4s ease-in-out infinite;
}

@media (max-width: 768px) {
    .about-mascot {
        height: 60px;
        left: -30px;
        bottom: -50px;
    }
}

/* Responsive updates for new sections */
@media (max-width: 768px) {

    .scalloped-divider,
    .scalloped-divider-bottom {
        background-size: 80px 60px;
        /* Smaller waves on mobile */
        height: 60px;
        top: -55px;
    }

    .scalloped-divider-bottom {
        bottom: -55px;
        top: auto;
    }

    .features-section {
        padding: 4rem 5% 4rem;
    }

    .about-container {
        flex-direction: column;
        /* Image top on mobile (Natural flow now that Image is first in HTML) */
    }

    .feature-card {
        width: 100%;
    }
}

/* Reviews Section */
.reviews-section {
    position: relative;
    background-color: var(--accent-yellow);
    padding: 6rem 5% 6rem;
    text-align: center;
    overflow: hidden;
}

/* Wave Divider Top */
.wave-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider-top .shape-fill {
    fill: #FFFFFF;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Carousel */
.reviews-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--accent-yellow);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.carousel-btn:hover {
    transform: scale(1.1);
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    overflow-x: scroll;
    scroll-behavior: smooth;
    position: relative;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: white;
    min-width: 300px;
    max-width: 300px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    flex-shrink: 0;

    /* Blob shape for the card */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Varying blob shapes for visual interest if we had nth-child, but let's stick to one consistent nice blob or slightly random */
.review-card:nth-child(2) {
    border-radius: 63% 37% 39% 61% / 48% 66% 34% 52%;
}

.review-card:nth-child(3) {
    border-radius: 41% 59% 31% 69% / 68% 44% 56% 32%;
}

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

.review-img-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    position: relative;
}

.review-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
}

.stars {
    color: #FFC107;
    /* Star yellow */
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.review-card p {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-card h4 {
    color: var(--text-dark);
    font-weight: 600;
}

/* Scalloped Divider Orange Bottom */
.scalloped-divider-orange-bottom {
    position: absolute;
    bottom: -95px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: transparent;
    /* Convex Scallops pointing DOWN */
    background-image: radial-gradient(circle at 50% 100%, var(--accent-yellow) 65%, transparent 66%);
    background-size: 140px 100px;
    background-repeat: repeat-x;
    transform: rotate(180deg);
    z-index: 1;
}

/* Experts Section */
.experts-section {
    padding: 8rem 5% 6rem;
    background-color: white;
    text-align: center;
}

.experts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.experts-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.experts-header p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.experts-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.expert-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-10px);
}

.recruitment-card-mascot {
    position: absolute;
    top: -100px;
    right: -40px;
    height: 290px;
    width: auto;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .recruitment-card-mascot {
        height: 80px;
        top: -30px;
        right: -20px;
    }
}

.expert-card h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.expert-role {
    color: #1a237e;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expert-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.expert-location img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0 !important;
}

.expert-bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.expert-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.expert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.expert-card .expert-rating {
    display: none;
}

/* Experts Grid Adjustments */
.experts-grid {
    gap: 3rem;
}


.expert-card.highlight-card .expert-img-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expert-card.highlight-card .expert-img {
    width: 200px;
    height: 200px;
    margin: 0;
    z-index: 2;
    border: none;
    border-radius: 56% 44% 47% 53% / 48% 54% 46% 52%;
}

/* The purple ring with text */
.badge-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    /* border-radius: 50%; -> changing to matches blob or slightly larger blob */
    border-radius: 54% 46% 45% 55% / 46% 52% 48% 54%;
    background: linear-gradient(135deg, #6200ea 0%, #aa00ff 100%);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-text {
    position: absolute;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-text.top {
    top: 10px;
}

.badge-text.bottom {
    bottom: 10px;
}

/* Arrow button on the ring */
.arrow-btn {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6200ea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
    cursor: pointer;
    transition: all 0.2s;
}

.arrow-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: #f0f0f0;
}

/* Responsive Experts */
@media (max-width: 768px) {
    .experts-grid {
        flex-direction: column;
        align-items: center;
    }

    .expert-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Join Section */
.join-section {
    background-color: var(--accent-yellow);
    padding: 6rem 5%;
    text-align: center;
}

.join-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.join-card {
    background-color: white;
    padding: 4rem 3rem;
    border-radius: 45px 15px 48px 20px / 20px 42px 12px 38px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.join-mascot {
    position: absolute;
    bottom: -60px;
    right: -100px;
    height: 350px;
    width: auto;
    z-index: 10;
    pointer-events: none;
    animation: floating 4s ease-in-out infinite;
}

@media (max-width: 992px) {
    .join-mascot {
        right: -30px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .join-mascot {
        display: none;
    }
}

.join-card h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.join-card p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-join {
    background-color: var(--accent-yellow);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 140, 40, 0.3);
}

.btn-join:hover {
    background-color: #159a92;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 173, 164, 0.4);
}

/* Responsive Join Section */
@media (max-width: 768px) {
    .join-card {
        padding: 3rem 2rem;
    }

    .join-card h2 {
        font-size: 2rem;
    }

    .join-card p {
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 6rem 5% 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--primary-blue);
    margin-top: 0.2rem;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 5% 1.5rem;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.feature-card.animate-on-scroll {
    transition-delay: calc(var(--card-index, 0) * 0.1s);
}

.expert-card.animate-on-scroll {
    transition-delay: calc(var(--card-index, 0) * 0.15s);
}

.review-card.animate-on-scroll {
    transition-delay: calc(var(--card-index, 0) * 0.1s);
}

/* About Page Specific Styles */
.offerings-section {
    background-color: white;
}

.offerings-section .cards-grid {
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* HundrED Card */
.hundred-card {
    grid-column: span 2;
    background-color: var(--accent-yellow) !important;
    border-top: none !important;
    color: white !important;
    padding: 3rem !important;
}

.hundred-card h3 {
    color: white !important;
    border-left: none !important;
    padding-left: 0 !important;
}

.hundred-card p {
    color: white !important;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .hundred-card {
        grid-column: span 1;
    }
}

.pillars-section .feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pillars-section .feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-yellow);
}

.cta-section-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

.cta-mascot {
    position: absolute;
    right: -150px;
    bottom: -200px;
    height: 700px;
    width: auto;
    z-index: 10;
    pointer-events: none;
    filter: none !important;
    box-shadow: none !important;
    animation: floating 3s ease-in-out infinite;
}

.cta-banner {
    border-radius: 40px;
    margin: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), #128c84);
    box-shadow: 0 20px 50px rgba(24, 173, 164, 0.3);
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 3rem;
}

.cta-banner .btn-primary:hover {
    background-color: var(--accent-yellow) !important;
    color: white !important;
}

@media (max-width: 768px) {
    .offerings-section .cards-grid {
        margin-top: 0;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }

    .cta-mascot {
        height: 200px;
        left: -10px;
        bottom: -10px;
    }

    .about-container {
        flex-direction: column-reverse;
    }
}

/* --- Mobile Navigation --- */
.nav-extra {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s;
}

@media (max-width: 992px) {
    .navbar {
        padding: 1rem 1.5rem;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .logo {
        flex: 0 1 auto;
    }

    .nav-extra {
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
        /* Ensure it's flex */
        position: relative;
        /* Keep it in flow */
        margin-left: 1rem;
        /* Space from contact btn if visible, or just margin */
        align-items: center;
        justify-content: center;
        z-index: 1100;
        width: 40px;
        height: 40px;
        border: 2px solid var(--accent-yellow);
        border-radius: 8px;
        color: var(--text-dark);
        font-size: 1.2rem;
        background: white;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top, not center */
        align-items: flex-start;
        padding: 120px 10% 0;
        /* Add top padding to push links down below X button area */
        gap: 1.5rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        margin: 0;
        list-style: none;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        font-size: 1.2rem;
        /* Balanced font size */
        color: var(--text-dark);
        display: block;
        padding: 0.5rem 0;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        /* Subtle divider */
    }

    /* Adjust underline for mobile */
    .nav-links li a::after {
        height: 2px;
        bottom: -2px;
    }

    .nav-links.active {
        right: 0;
    }



    /* Hero Responsive */
    /* Hero Responsive */
    .hero {
        flex-direction: column;
        /* Text first, then image */
        padding-top: 2rem;
        min-height: auto;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-top: 1rem;
    }

    .hero-image-container {
        width: 100%;
        max-width: 320px;
        /* Smaller container */
        margin: 0 auto;
        position: relative;
        left: 0;
        transform: none;
        /* Reset inherited transforms */
    }

    .orbit-circle {
        display: none;
    }

    .student-img {
        max-width: 100%;
        height: auto;
        position: relative;
        z-index: 2;
        left: 0;
        top: 0;
        transform: scale(1.35) translateX(-5px) translateY(-10px);
        /* Make student bigger to fill blob */
    }

    .yellow-blob {
        width: 100%;
        height: 100%;
        top: 20px;
        left: 0;
        transform: scale(1.1) translateX(10px);
        /* Center blob behind student */
    }

    /* Features Responsive */
    .features-container h2 {
        font-size: 2.5rem;
    }

    /* About Responsive */
    .about-section {
        padding-top: 1rem !important;
        /* Reduce top space further as requested */
    }

    .about-container {
        flex-direction: column-reverse;
        gap: 2rem;
        /* Use gap efficiently */
    }

    .about-image {
        margin-top: 6rem;
        /* Explicit extra space between button and image */
    }

    .review-card {
        width: 250px;
        min-width: 250px;
        /* Override desktop min-width */
        max-width: 250px;
        height: 300px;
        /* Increase height slightly for content if needed, or keep aspect */
        padding: 1.5rem;
    }

    .review-card p {
        font-size: 0.9rem;
    }

    .about-content h2 {
        font-size: 2.5rem;
    }

    /* Join Section */
    .join-mascot {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        width: 100%;
    }

    .btn-contact {
        display: none;
        /* Hide in header on small mobile if needed, or keep */
    }

    .hero h1 {
        font-size: 3rem !important;
    }

    .hero-image-container {
        transform: scale(0.9);
    }

    .experts-section h2 {
        font-size: 2.8rem !important;
    }
}