* {
    box-sizing: border-box;
}

/* Fonts are loaded in HTML */

:root {
    --primary-color: #4a90e2;
    --text-color: #333;
    --background-color: #ffffff;
    --button-gradient: linear-gradient(135deg, #6e8efb, #a777e3);
}

html {
    scroll-behavior: smooth;
    /* Makes the transition between sections feel like silk */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

button,
input,
textarea,
select {
    font-family: 'DM Sans', sans-serif;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smart state when scrolling down */
nav.scrolled {
    padding: 0.8rem 5%;
    /* Slightly slimmer when scrolling */
    /* background: rgba(255, 255, 255, 0.8); */
    background: #fcf3e0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav.scrolled .nav-links li a {
    color: #212374;
    /* Flips to navy blue for readability on scroll */
}

.nav-links li a.active {
    font-weight: 700;
    position: relative;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.nav-links li a:hover {
    color: #212374;
}

nav.scrolled .nav-links li a:hover {
    color: var(--primary-color);
}

.register-btn {
    background: #212374;
    color: white !important;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
}

/* Ensure it only shows on mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav.scrolled .menu-toggle span {
    background-color: #212374;
}

.menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1500;
}

.dm-sans-regular {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
}

.white {
    color: white;
}

.media,
.logo-container,
.media-carousell {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo-container img {
    height: 70px;
    width: auto;
}

.logo-container div {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    transition: color 0.3s ease;
}

nav.scrolled .logo-container div {
    color: #212374;
    /* Navy for readability on scroll */
}

.vertical-left {
    padding-left: 120px;
    padding-right: 60px;
}

.mission-statement {
    font-size: 4rem;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.dm-sans-thin {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
}

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

.dm-sans-display {
    font-family: 'DM Sans', sans-serif;
    color: #212374;
    font-size: 2.2rem;
    font-weight: 700;
}

.section-padding {
    padding: 40px 5%;
}

#methodology-section,
#locations-section,
#about-purpose,
#about-trust {
    padding: 3rem 5% 6rem 5%;
    /* Extra bottom padding for the cuties */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fcf3e0;
    text-align: center;
    position: relative;
    /* Base for absolute positioning */
    overflow: hidden;
    /* Prevents cuties from causing scrollbars */
}

#methodology-section h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #212374;
    margin-bottom: 1rem;
}

#methodology-section h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    max-width: 800px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 4rem;
}

#view-curriculum-btn {
    background: #212374 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #212374;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- ABOUT US SECTIONS --- */
#about-hero {
    height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

#about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Soft overlay for text readability */
}

#about-hero .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    padding: 0 5%;
    text-align: start;
}

#about-hero h1 {
    font-size: 3rem;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Purpose & Vision Blobs */
#about-purpose {
    background-color: #fcf3e0;
    padding: 60px 5%;
    position: relative;
    overflow: hidden;
}

#about-purpose h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: #212374;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.2;
    font-family: 'DM Sans', sans-serif;
}

.blob-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.blob-container img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* .purpose-blob and .vision-blob styles removed */
/* .purpose-blob and .vision-blob specific styles removed */
/* Cleaned */

/* Why Trust Section */
#about-trust {
    padding: 40px 5%;
    background-color: white;
}

#about-trust h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212374;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
}

#about-trust p.intro-text {
    text-align: center;
    font-size: 1.4rem;
    color: #212374;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.8;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-card.navy,
.trust-card.teal {
    grid-row: span 2;
    height: 100%;
}

.trust-card.navy img,
.trust-card.teal img {
    height: 50% !important;
    /* Forces 50/50 split for tall cards */
    min-height: unset;
}

.trust-card.navy .card-body,
.trust-card.teal .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Aligns headlines to same starting height */
    padding-top: 4rem;
    /* Balanced spacing from top of text area */
}

.trust-card {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.trust-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.trust-card .card-body {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: white;
    flex-grow: 1;
}

.trust-card.navy .card-body {
    background-color: #212374;
}

.trust-card.teal .card-body {
    background-color: #72C3C3;
}

.trust-card.red .card-body {
    background-color: #d1432f;
}

.trust-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.trust-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.trust-large-img {
    border-radius: 40px;
    overflow: hidden;
    flex-grow: 1;
    /* Stretches to match column height */
    min-height: 300px;
}

.trust-large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Director's Message */
#about-message {
    padding: 30px 5%;
    text-align: center;
    background-color: #fcf3e0;
}

.message-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

#about-message h2 {
    font-family: 'DM Sans', sans-serif;
    color: #212374;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.quote-mark {
    font-size: 5rem;
    color: #72C3C3;
    font-family: 'DM Sans', sans-serif;
    line-height: 0;
    display: block;
    margin-bottom: 20px;
}

#about-message p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #212374;
    font-style: italic;
    margin-bottom: 30px;
}

.director-info {
    font-family: 'DM Sans', sans-serif;
}

.director-info .name {
    font-weight: 700;
    font-size: 1.3rem;
    display: block;
}

.director-info .role {
    opacity: 0.7;
    font-size: 1.1rem;
}

#testimonials-section {
    padding: 30px 0 20px 0;
    /* Reduced bottom padding */
    background-image: url('assets/counter_cover.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

#testimonials-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212374;
    margin-bottom: 70px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

#contact-section {
    background-image: url('assets/counter_cover.png');
    background-size: cover;
    background-position: center;
    padding: 25px 5% !important;
}

#contact-section h3 {
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Rigid Container */
.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1080px;
    /* (320px * 3) + (40px * 2) + extra breathing room */
    margin: 0 auto;
}

/* Viewport with padding for shadows */
.testimonial-viewport {
    width: 100%;
    overflow: hidden;
    padding: 20px 0 100px 0;
    transition: height 0.3s ease;
    /* For adaptive height */
    /* Tightened shadow space */
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.testimonial-item {
    flex: 0 0 500px !important;
    width: 500px !important;
    margin-right: 60px !important;
    /* Spacious gap from reference */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0 !important;
}

/* The Card itself */
/* The Card itself - Testimonials (Restored) */
.test-card {
    width: 100%;
    min-height: 300px;
    height: 100%;
    padding: 2.5rem 2rem;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: white;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
}

/* The Card itself - Curriculum (New) */
.curriculum-card {
    width: 100%;
    height: 600px;
    padding: 0;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    color: white;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.curriculum-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
}

.curriculum-card-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}



.test-green {
    background-color: #10B981 !important;
}

.test-blue {
    background-color: #3B82F6 !important;
}

.test-teal {
    background-color: #93C5FD !important;
}

.test-card h3,
.curriculum-card h3 {
    font-size: 1.85rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.test-card h3 span,
.curriculum-card h3 span {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 10px;
}

.test-card p,
.curriculum-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Elegant Deep Shadow */
.card-shadow {
    width: 85%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    position: absolute;
    bottom: -80px;
    border-radius: 50%;
    z-index: 1;
}

/* Navigation Buttons - Absolute Positioned */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    background-color: #72C3C3 !important;
    border: 5px solid #ffffff !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.carousel-control.prev {
    left: -100px;
}

.carousel-control.next {
    right: -100px;
}

.carousel-control:hover {
    transform: translateY(-50%) scale(1.1);
    filter: brightness(1.1);
}

.carousel-control svg {
    width: 32px;
    height: 32px;
}

.carousel-control svg path {
    fill: white !important;
}

/* Responsive logic */
@media (max-width: 1300px) {
    .carousel-control.prev {
        left: -30px;
    }

    .carousel-control.next {
        right: -30px;
    }
}

@media (max-width: 1100px) {
    .testimonial-track {
        gap: 40px !important;
    }

    .testimonial-item {
        flex: 0 0 calc(50% - 20px) !important;
        width: auto !important;
        margin-right: 0 !important;
    }

    .carousel-control {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonial-viewport {
        overflow: hidden !important;
        padding-bottom: 20px;
    }

    .testimonial-track {
        flex-direction: row;
        gap: 20px;
        /* Use flex gap for spacing on mobile */
    }

    .testimonial-item {
        flex: 0 0 100% !important;
        margin-right: 0 !important;
        width: 100% !important;
        margin-bottom: 0;
        padding: 0;
        /* Remove padding to simplify width calc */
    }

    /* Allow cards to fit content naturally on mobile */
    .test-card {
        height: auto !important;
        min-height: unset !important;
        padding: 2rem;
    }

    .curriculum-card {
        height: auto !important;
        padding-bottom: 2rem;
    }

    /* Force button visibility on mobile */
    .carousel-control {
        display: flex !important;
        width: 45px;
        height: 45px;
        background-color: rgba(114, 195, 195, 0.9) !important;
    }

    .carousel-control.prev {
        left: 0;
    }

    .carousel-control.next {
        right: 0;
    }
}

.methodology-bottom-container {
    width: 100%;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.methodology-container {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    align-items: stretch;
    /* Ensures all cards are same height */
}

.card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card.reverse {
    flex-direction: column-reverse;
}

.card-image {
    height: 280px;
    /* Fixed height for consistency */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-text {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Aligns titles to the same top starting point */
}

.card-text h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.card-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-teal {
    background-color: #5fb4b4;
    color: white;
}

.card-blue {
    background-color: #b4d4f2;
    color: #212374;
}

.card-red {
    background-color: #d1432f;
    color: white;
}

#locations-section {
    padding: 2rem 5%;
}

.locations-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.locations-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    .locations-link-container {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .google-map-icon {
        width: 20px;
        height: auto;
    }

    justify-content: center;
    text-align: center;
    padding: 1rem;

}

#vertical-split {
    display: grid;
    grid-template-columns: 60% 40%;
    height: 100vh;
    padding-top: 80px;
    /* Pushes text below fixed transparent nav */
    box-sizing: border-box;
}

#innovative,
#thinkers {
    color: #212374;
}

#thinkers {
    position: relative;
    width: fit-content;
}

.sparkle-icon {
    position: absolute;
    right: -130px;
    top: 5px;
    width: 110px;
    height: auto;
    pointer-events: none;
    transform: rotate(0deg);
}

#nav-wrapper {
    background-image: url("assets/cover_page1.png");
    background-size: cover;
}

#footer-wrapper {
    background-color: #212374;
    padding: 2rem;
    position: relative;
    /* Required for pinning elements inside */
    min-height: 150px;
    /* Ensures there is enough space for the cuties */
}

#footer-cuties {
    position: absolute;
    bottom: 0;
    right: 0;
    line-height: 0;
    /* Removes any space below the image */
}

#footer-cuties img {
    height: 100px;
    /* Adjust size as needed */
    display: block;
    /* Removes default bottom margin/gap */
}

#counter-section {
    background-image: url("assets/counter_cover.png");
    background-size: cover;
}

#methodology-bottom-left {
    position: absolute;
    bottom: -40px;
    /* Flush with section bottom */
    left: 20px;
    line-height: 0;
    z-index: 1;
}

#about-us-bottom-left {
    position: absolute;
    bottom: -100px;
    left: -50px;
    line-height: 0;
    z-index: 1;
}

#methodology-bottom-right {
    position: absolute;
    bottom: -40px;
    /* Flush with section bottom */
    right: 20px;
    line-height: 0;
    z-index: 1;
}

#about-us-bottom-right {
    position: absolute;
    bottom: -50px;
    right: -30px;
    line-height: 0;
    z-index: 1;
}

#methodology-bottom-left img,
#methodology-bottom-right img {
    height: 250px;
    /* Sized similarly to footer cuties */
    display: block;
}

.footer-text {
    color: #ffffff;
}

.footer-icon {
    height: 50px;
}

/* --- CAROUSEL STYLES --- */
.marquee-section {
    background: #f9f9f9;
    /* Light grey background */
    overflow: hidden;
    /* Critical: Hides logos that move off-screen */
}

.marquee-section h3 {
    text-align: center;
    color: #1e1e50;
    /* Navy Blue */
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.marquee-track {
    display: flex;
    /* Aligns images in a row */
    width: max-content;
    /* Ensures the row is as wide as needed */
    animation: scroll 180s linear infinite;
    /* The moving engine */
    margin-bottom: 30px;
}

.marquee-logo {
    height: 40px;
    /* Uniform height */
    width: 140px;
    /* Uniform bounding box width */
    object-fit: contain;
    /* Ensures the logo fits without distortion */
    margin: 0 80px;
    /* Spacing between logos */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {

    /* Navigation */
    .menu-toggle {
        display: flex;
        /* Show hamburger */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        color: var(--text-color);
        padding: 0;
    }

    .nav-links li a {
        color: #212374;
        font-size: 1.5rem;
    }

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

    .menu-backdrop.active {
        display: block;
    }

    /* Hamburger Animation to X */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Section */
    #vertical-split {
        grid-template-columns: 100%;
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
    }

    .vertical-left {
        padding: 2rem 5%;
        text-align: center;
    }

    .mission-statement {
        font-size: 3rem;
    }

    #thinkers {
        margin: 0 auto;
    }

    .sparkle-icon {
        width: 60px;
        right: -70px;
        /* Moved further right */
        top: 0;
    }

    /* Marquee */
    .marquee-section h3 {
        font-size: 1.2rem;
        padding: 0 5%;
    }

    /* Counters */
    .counter-container {
        flex-direction: column;
        gap: 30px;
    }


    /* Methodology */

    /* Methodology */
    .methodology-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 100%;
        min-width: unset;
    }

    .card.reverse {
        flex-direction: column;
        /* Match standard mobile flow */
    }

    #methodology-section h1 {
        font-size: 2.2rem;
        padding: 0 5%;
    }



    /* Footer */
    #footer-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    #footer-cuties {
        position: static;
        margin-top: 2rem;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

#counter-section {
    padding: 100px 5%;
    background-image: url("assets/counter_cover.png");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.counter-item {
    width: 320px;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: scale(1.05);
}

/* Organic "Blob" Shapes */
.counter-red {
    background-color: #d1432f;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
}

.counter-teal {
    background-color: #78b9b1;
    border-radius: 50% 50% 33% 67% / 55% 55% 45% 45%;
}

.counter-blue {
    background-color: #b4d4f2;
    border-radius: 45% 55% 50% 50% / 50% 50% 50% 50%;
}

/* Typography */
.counter-content .number {
    font-family: 'DM Sans', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    display: block;
}

.counter-content .label {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 5px;
}

/* Flower Decoration for the middle counter */
.flower-decoration {
    position: absolute;
    top: -20px;
    right: 20px;
    z-index: 2;
}

.flower-img {
    height: 80px;
    width: auto;
}

/* Curriculum Section Styles */
#curriculum-section {
    padding: 0;
    overflow: hidden;
}

#curriculum-cover {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0 5%;
}

#curriculum-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s ease;
}

#curriculum-learnings h1,
#curriculum-learnings h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212374;
    font-size: 2.2rem;
    font-weight: 700;
}

#curriculum-cover:hover img {
    transform: scale(1.05);
}

#curriculum-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

#curriculum-cover h2 {
    position: relative;
    left: 100px;
    z-index: 3;
    color: white;
    font-size: 2.2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

#curriculum-content {
    padding: 80px 5%;
    text-align: center;
    background-image: url("assets/counter_cover.png")
}

#curriculum-learnings {
    background-color: #fcf3e0;
    padding-top: 30px;
}

#curriculum-content p {
    font-size: 1.8rem;
    color: #212374;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 500;
}

#curriculum-carousell {
    background-image: url("assets/counter_cover.png");
}

#curriculum-carousell h1 {
    display: flex;
    justify-content: center;
    color: #212374;
    font-size: 2.2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    #curriculum-cover {
        padding-top: 80px;
    }

    #curriculum-cover h2 {
        font-size: 2.5rem;
        left: 0;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }

    #curriculum-content p {
        font-size: 1.4rem;
    }
}

/* --- RESPONSIVE VISIBILITY UTILITIES --- */
/* Default to Desktop View */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

/* Mobile View Improvements */
@media (max-width: 768px) {

    /* Toggle Visibility */
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* --- about.html Mobile Styles --- */

    /* Purpose & Vision Blobs */
    #about-purpose {
        padding: 40px 5% 0 5%;
        overflow: visible;
        /* Prevent clipping */
    }

    #about-trust {
        padding-top: 30px;
    }

    #about-trust h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    #about-trust p.intro-text {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    #about-purpose h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .blob-container.mobile-only {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        margin-top: 10px;
        overflow: visible;
    }

    .blob-container.mobile-only img {
        border-radius: 0;
        margin-bottom: 20px;
        box-shadow: none;
    }

    .purpose-blob,
    .vision-blob {
        padding: 1.5rem;
        /* Reduced padding */
        border-radius: 20px;
        color: white;
        text-align: center;
        width: 100%;
    }

    /* Mobile blob specific styles removed */

    /* Trust Section Grid */
    .trust-grid.mobile-only {
        display: flex !important;
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .trust-card {
        border-radius: 20px;
        overflow: hidden;
        text-align: center;
        color: white;
    }

    .trust-card.navy {
        background-color: #212374;
    }

    .trust-card.teal {
        background-color: #40B4A4;
    }

    .trust-card .card-body {
        padding: 2rem;
    }

    .trust-card h3 {
        font-family: 'DM Sans', sans-serif;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .trust-card p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* Ensure images inside cards scaled nicely */
    .trust-large-img img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        display: block;
    }

    /* Fix Footer Cuties Alignment */
    #footer-cuties {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        position: relative;
        /* Restore relative positioning or just let it flow */
        bottom: 0;
        width: 100%;
    }

    #footer-cuties img {
        max-width: 80%;
        height: auto;
        display: block;
        margin-bottom: 0;
    }

    /* Ensure wrapper doesn't have excess padding at bottom if we want image flush */
    #footer-wrapper {
        padding-bottom: 0 !important;
        gap: 1rem;
        /* Reduce gap */
    }
}

/* Fix for Curriculum Carousel skew on larger screens */
#curriculum-carousell .testimonial-item {
    flex: 0 0 calc(50% - 30px) !important;
    width: calc(50% - 30px) !important;
    margin-right: 60px !important;
}

@media (max-width: 1100px) {
    #curriculum-carousell .testimonial-item {
        flex: 0 0 calc(50% - 20px) !important;
        width: auto !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    #curriculum-carousell .testimonial-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/* Learning Grid Section */
#learnings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

#learnings img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

#learnings img:hover {
    transform: translateY(-10px);
}

@media (max-width: 900px) {
    #learnings {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 5%;
    }
}

@media (max-width: 600px) {
    #learnings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    #about-us-bottom-left,
    #about-us-bottom-right,
    #methodology-bottom-right,
    #methodology-bottom-left {
        display: none !important;
    }
}

/* WhatsApp Floating Bubble */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20bd5a;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    color: white;
}

/* WhatsApp Modal */
.wa-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.wa-modal.active {
    display: flex;
}

.wa-modal-content {
    background-color: #fcf3e0;
    margin: auto;
    padding: 30px;
    border: 2px solid #212374;
    border-radius: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
}

.wa-modal-header {
    font-family: 'DM Sans', sans-serif;
    color: #212374;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.wa-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.wa-close:hover,
.wa-close:focus {
    color: #212374;
    text-decoration: none;
    cursor: pointer;
}

.wa-option-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background-color: white;
    color: #212374;
    border: 2px solid #212374;
    border-radius: 15px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wa-option-btn:hover {
    background-color: #212374;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared Social Dropdown Menu */
.social-wrapper {
    position: relative;
    display: inline-block;
}

.social-menu {
    display: none;
    position: absolute;
    top: 50%;
    /* Center vertically relative to icon */
    left: 100%;
    /* Position to the right of the icon */
    transform: translateY(-50%);
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    margin-left: 15px;
    /* Space between menu and icon */
    text-align: left;
}

/* Arrow pointer (Pointing Left) */
.social-menu::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    /* Position on left edge of menu */
    margin-top: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.social-menu a {
    display: block;
    padding: 12px 20px;
    color: #212374;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s;
    border-bottom: 1px solid #eee;
}

.social-menu a:last-child {
    border-bottom: none;
}

.social-menu a:hover {
    background-color: #f0f7ff;
    color: #4a90e2;
}

/* Show menu on hover or when active class is added via JS */
.social-wrapper:hover .social-menu,
.social-wrapper.active .social-menu {
    display: block;
    animation: dropdownFade 0.2s ease-out;
}

/* Specific styling for WhatsApp Float Wrapper to open LEFT instead of RIGHT */
/* Since it's fixed bottom-right, menus should open to the LEFT/TOP */
.whatsapp-float-wrapper {
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    z-index: 10000 !important;
    width: 60px;
    height: 60px;
}

/* Reset the inner bubble when wrapped */
.whatsapp-float-wrapper .whatsapp-float {
    position: static !important;
    margin: 0 !important;
    box-shadow: none !important;
    /* Wrapper can handle shadow or keep it on element */
}

.whatsapp-float-wrapper .social-menu {
    left: auto;
    right: 100%;
    /* Open to Left */
    margin-left: 0;
    margin-right: 15px;
}

.whatsapp-float-wrapper .social-menu::after {
    left: 100%;
    /* Arrow on Right side */
    right: auto;
    border-color: transparent transparent transparent white;
    /* Point Right */
}

/* Animate Leftwards for WhatsApp Float */
.whatsapp-float-wrapper:hover .social-menu,
.whatsapp-float-wrapper.active .social-menu {
    animation: dropdownFadeLeft 0.2s ease-out;
}

@keyframes dropdownFadeLeft {
    from {
        opacity: 0;
        margin-right: 5px;
    }

    to {
        opacity: 1;
        margin-right: 15px;
    }
}


@keyframes dropdownFade {
    from {
        opacity: 0;
        margin-left: 5px;
        /* Subtle slide effect using margin instead of transform */
    }

    to {
        opacity: 1;
        margin-left: 15px;
        /* Match the final margin-left */
    }
}

/* Mobile: Position Below/Above to prevent overflow */
@media (max-width: 768px) {
    .social-menu {
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-top: 15px;
        /* Space below icon */
    }

    /* Arrow Pointing Up */
    .social-menu::after {
        top: auto;
        bottom: 100%;
        right: auto;
        left: 50%;
        margin-left: -8px;
        margin-top: 0;
        border-color: transparent transparent white transparent;
    }

    /* Override animation for mobile to slide down */
    .social-wrapper:hover .social-menu,
    .social-wrapper.active .social-menu {
        animation: dropdownFadeMobile 0.2s ease-out;
    }

    /* Logic for floating button on mobile - Open UPWARDS */
    .whatsapp-float-wrapper .social-menu {
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 15px;
        /* Space above icon */
        right: 0;
        left: auto;
        transform: none;
    }

    .whatsapp-float-wrapper .social-menu::after {
        top: 100%;
        bottom: auto;
        left: auto;
        right: 20px;
        /* Align arrow near right edge */
        border-color: white transparent transparent transparent;
        /* Point Down */
    }

    .whatsapp-float-wrapper:hover .social-menu,
    .whatsapp-float-wrapper.active .social-menu {
        animation: dropdownFadeUp 0.2s ease-out;
    }
}

@keyframes dropdownFadeMobile {
    from {
        opacity: 0;
        margin-top: 5px;
    }

    to {
        opacity: 1;
        margin-top: 15px;
    }
}

@keyframes dropdownFadeUp {
    from {
        opacity: 0;
        margin-bottom: 5px;
    }

    to {
        opacity: 1;
        margin-bottom: 15px;
    }
}

/* Correctly placed mobile overrides for counters */
@media (max-width: 768px) {
    .counter-item {
        width: 200px;
        height: 200px;
    }

    .counter-content .number {
        font-size: 2.5rem;
    }
}

/* Make locations vertical on mobile */
@media (max-width: 768px) {
    .locations-container {
        flex-direction: column;
        gap: 30px;
        /* Add some spacing between vertically stacked location cards */
    }
}

/* Limit image width on locations for mobile */
@media (max-width: 768px) {
    .locations-card .card-image {
        max-width: 300px;
        width: 100%;
        height: auto;
    }
}

/* Condense methodology spacing on mobile since cuties are gone */
@media (max-width: 768px) {
    #methodology-section {
        padding-bottom: 3rem !important;
        /* Reduce from 10rem */
    }

    /* --- MOBILE CAROUSEL & LAYOUT FIXES (Consolidated) --- */
    @media (max-width: 768px) {

        /* 1. Methodology Spacing */
        .methodology-bottom-container {
            margin-top: 2rem;
        }

        #about-purpose .methodology-bottom-container {
            display: none !important;
        }
    }

    /* 2. Remove Massive Gaps in Testimonials */
    #testimonials-section {
        padding-bottom: 30px !important;
        min-height: auto !important;
    }

    .testimonial-viewport {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        height: auto;
        /* Let JS adaptive height work, or auto fallback */
    }

    .carousel-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 3. Disable Desktop Shadows/Padding on Mobile Cards */
    .card-shadow {
        display: none !important;
    }

    /* Prevent Flex Stretch on Track */
    .testimonial-track {
        align-items: flex-start !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .testimonial-item {
        height: auto !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-right: 0 !important;
    }

    /* VITAL: Allow cards to shrink to content */
    .test-card {
        min-height: 0 !important;
        height: auto !important;
        padding: 2rem 1.5rem !important;
    }

    /* 4. Controls Layout (Static Flow) */
    .carousel-navigation {
        display: flex;
        justify-content: center;
        gap: 20px;
        width: 100%;
        margin-top: 20px;
        /* Space between card and buttons */
        position: static !important;
    }

    .carousel-control {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 50px;
        height: 50px;
        margin: 0 !important;
    }
}