/* =========================================
   ABOUT PAGE: HERO SECTION
   ========================================= */

.about-hero {
    /* Pushes the section down below your fixed header */
    margin-top: 115px; 
    
    /* Adds top and bottom padding, and ensures it's tall enough to show the image */
    padding: 100px 5%;
    min-height: 500px;
    display: flex;
    align-items: center;
    
    /* Background Image Settings */
    background-color: #F8F8FF; /* Fallback color */
    background-size: cover; 
    background-position: right center; /* Locks the students to the right edge */
    background-repeat: no-repeat;
}

.about-hero-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.about-hero-content {
    /* Restricts the text to a maximum width on the left so it doesn't run into the people */
    max-width: 500px; 
}

.about-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-desc {
    font-size: 1.15rem;
    color: var(--sub-text);
    line-height: 1.6;
    margin-bottom: 35px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.05rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.about-btn:hover {
    background-color: var(--body-text);
    transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .about-hero {
        background-position: 80% center; /* Adjusts image placement for tablets */
        padding: 60px 5%;
        min-height: 400px;
    }
    
    .about-hero-content {
        max-width: 100%;
        text-align: center;
        
        /* Adds a frosted glass effect behind the text on mobile so it remains readable */
        background-color: rgba(255, 255, 255, 0.85); 
        padding: 40px 30px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    
    .about-btn {
        justify-content: center;
    }
}
/* =========================================
   ABOUT PAGE: WHO WE ARE SECTION
   ========================================= */

.who-we-are-section {
    padding: 80px 5% 100px;
    background-color: #FFFFFF;
}

.who-we-are-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 70px;
    align-items: flex-start; /* FIX 1: Changed from center to flex-start so tops align perfectly */
}

/* --- Left Side: Image Wrapper --- */
.who-image-wrapper {
    position: relative;
    /* Adding some margin to account for the overlapping decorations */
    margin-left: 20px; 
    margin-bottom: 20px;
}

.who-main-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    position: relative;
    z-index: 2; /* Keeps image above the dots */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Decorative Dot Pattern (Using a repeating CSS gradient) */
.deco-dots {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    z-index: 1; /* Puts it behind the image */
    background-image: radial-gradient(#CBD5E1 2px, transparent 2px);
    background-size: 15px 15px; /* Spacing between dots */
}

/* Decorative Overlapping Purple Square */
.deco-purple-square {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #A855F7, #7E22CE);
    border-radius: 14px;
    z-index: 3; /* Puts it above the image */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(126, 34, 206, 0.3);
}

/* --- Right Side: Content --- */
.who-content {
    display: flex;
    flex-direction: column;
}

.who-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 10px; /* FIX 2: Reduced from 20px to pull the text up */
}

.who-desc {
    font-size: 1.05rem;
    color: var(--sub-text);
    line-height: 1.7;
    margin-bottom: 25px; /* FIX 3: Reduced from 40px to pull the feature grid up */
}

/* --- Features Grid --- */
.who-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.who-feature-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-icon-box {
    width: 45px;
    height: 45px;
    background-color: #F3E8FF; /* Light purple background */
    color: var(--brand-primary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--sub-text);
    line-height: 1.5;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1000px) {
    .who-we-are-container {
        grid-template-columns: 1fr; /* Stacks image on top of text */
        gap: 50px;
    }
    
    .who-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 650px) {
    .who-features-grid {
        grid-template-columns: 1fr; /* Stacks the three features vertically on small phones */
        gap: 30px;
    }
    
    .who-feature-item {
        flex-direction: row; /* Puts icon next to text instead of above it */
        align-items: flex-start;
    }
}
/* =========================================
   ABOUT PAGE: MISSION & VISION
   ========================================= */

.mission-vision-section {
    padding: 0 5% 80px;
    background-color: #FFFFFF;
}

.mv-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
}

.mv-card {
    background-color: #F8F8FF; /* Very soft purple/blue tint */
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    z-index: 2; /* Keeps cards above dots */
    border: 1px solid #F1F5F9;
}

.mv-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #A855F7, #7E22CE); /* Rich purple gradient */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(126, 34, 206, 0.25);
}

.mv-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 12px;
}

.mv-content p {
    font-size: 1rem;
    color: var(--sub-text);
    line-height: 1.7;
}

/* Decorative Dots Behind the Vision Card */
.mv-deco-dots {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 150px;
    height: 150px;
    z-index: 1;
    background-image: radial-gradient(#CBD5E1 2px, transparent 2px);
    background-size: 15px 15px;
}

/* =========================================
   ABOUT PAGE: WHY CHOOSE US
   ========================================= */

.why-choose-section {
    padding: 40px 5% 100px;
    background-color: #FFFFFF;
}

.why-choose-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 50px;
}

.brand-accent {
    color: var(--brand-primary);
}

.wc-grid {
    display: grid;
    /* Automatically creates 6 equal columns on large screens */
    grid-template-columns: repeat(6, 1fr); 
    gap: 20px;
}

.wc-card {
    background-color: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.wc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Gradient Icon Trick to match your 3D design */
.wc-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #A855F7, #7E22CE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.wc-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 12px;
}

.wc-card p {
    font-size: 0.85rem;
    color: var(--sub-text);
    line-height: 1.5;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 1100px) {
    .wc-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
    }
}

@media (max-width: 900px) {
    .mv-container {
        grid-template-columns: 1fr; /* Stacks Mission and Vision */
    }
    .mv-deco-dots {
        display: none; /* Hide dots on mobile to prevent scrolling issues */
    }
}

@media (max-width: 650px) {
    .wc-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small phones */
    }
    .mv-card {
        flex-direction: column; /* Stacks icon above text */
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 450px) {
    .wc-grid {
        grid-template-columns: 1fr; /* 1 column on tiny phones */
    }
}
/* =========================================
   ABOUT PAGE: MEET OUR TEAM
   ========================================= */

.team-section {
    padding: 20px 5% 80px;
    background-color: #FFFFFF;
}

.team-container {
    max-width: 1300px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.team-card {
    background-color: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Creates the space for the photos without drawing a CSS circle */
.team-img-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center; /* Centers the image perfectly */
    
    /* We removed the background-color and border-radius here */
    background-color: transparent; 
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    
    /* This zooms the image in slightly to cut out the extra blank space 
       around the outside of your 3D ring! */
    transform: scale(1.4); 
}

.team-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 5px;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--sub-text);
    margin-bottom: 20px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-socials a {
    color: var(--body-text);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.team-socials a:hover {
    color: var(--brand-primary);
}

/* =========================================
   ABOUT PAGE: STATS BANNER
   ========================================= */

.stats-section {
    padding: 0 5% 100px;
    background-color: #FFFFFF;
}

.stats-container {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #F8F4FF; /* Very light purple base */
    border-radius: 16px;
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* This creates the divider line between items */
    border-right: 1px solid #E2D4F5; 
}

/* Removes the divider line from the very last item */
.stat-item:last-child {
    border-right: none;
}

.stat-icon-box {
    width: 65px;
    height: 65px;
    background-color: #EFE6FD; /* Slightly darker purple for contrast */
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
}

.stat-text {
    text-align: left;
}

.stat-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 2px;
}

.stat-text p {
    font-size: 0.9rem;
    color: var(--sub-text);
    font-weight: 500;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 1000px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
    
    /* Adjusts the borders for a 2x2 grid */
    .stat-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 650px) {
    .team-grid {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        border-right: none;
        justify-content: flex-start; /* Aligns stats to the left on small screens */
        padding-left: 20%;
    }
}
/* =========================================
   ABOUT PAGE: TESTIMONIALS CAROUSEL
   ========================================= */

.testimonials-section {
    padding: 0 5% 100px;
    background-color: #FFFFFF;
}

.testimonials-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Hide overflowing cards so we can slide them */
.carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 15px 0; /* Prevents shadow clipping */
}

/* The sliding track */
.carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
}

.testi-card {
    /* 3 cards visible on desktop minus the gaps */
    flex: 0 0 calc(33.333% - 16.66px); 
    background-color: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.quote-icon {
    width: 45px;
    height: 45px;
    background-color: #F3E8FF; /* Light purple */
    color: var(--brand-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testi-text {
    font-size: 0.95rem;
    color: var(--sub-text);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes author info to the bottom */
}

.testi-stars {
    color: #F59E0B; /* Golden star color */
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Author block adjusted to look great without a profile picture */
.testi-author h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 4px;
}

.testi-author span {
    font-size: 0.85rem;
    color: var(--sub-text);
    font-weight: 500;
}

/* --- Carousel Dots --- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #E2D4F5; /* Inactive light purple */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--brand-primary); /* Active solid purple */
    transform: scale(1.3); /* Makes the active dot slightly larger */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1000px) {
    .testi-card {
        /* 2 cards visible on tablets */
        flex: 0 0 calc(50% - 12.5px); 
    }
}

@media (max-width: 650px) {
    .testi-card {
        /* 1 card visible on phones */
        flex: 0 0 100%; 
    }
}
/* =========================================
   ABOUT PAGE: CALL TO ACTION BANNER
   ========================================= */

.about-cta-section {
    padding: 0 5% 100px; /* Gives some breathing room before the footer */
    background-color: #FFFFFF;
}

.about-cta-container {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #F3E8FF; /* Soft lavender background */
    border-radius: 16px;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Constrains the size of your 3D icon */
.cta-icon-img {
    width: 110px; 
    height: auto;
    object-fit: contain;
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 1.05rem;
    color: var(--sub-text);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.05rem;
    white-space: nowrap; /* Prevents the button text from breaking into two lines */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.cta-btn:hover {
    background-color:#A855F7;
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* --- Fallback CTA Icon Styling --- */
.cta-fallback-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #A855F7, #7E22CE); /* Rich purple gradient */
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 3rem; /* Makes the icon nice and large */
    flex-shrink: 0; /* Stops the box from squishing */
    box-shadow: 0 10px 25px rgba(126, 34, 206, 0.3); /* Adds a 3D glow effect */
    transform: rotate(-5deg); /* Gives it a playful, dynamic tilt */
}
/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 900px) {
    .about-cta-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .cta-left {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-btn {
        margin-top: 15px;
    }
}