/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-orange: #F48C06;
    --primary-blue: #252641;
    /* Deep Navy */
    --accent-purple: #5B72EE;
    --accent-cyan: #29B9E7;
    --text-grey: #696984;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --radius-btn: 50px;
    --radius-card: 20px;
}

body {
    color: var(--primary-blue);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- UPDATED: CONTAINER SIZE --- */
/* Increased to 1440px to fit modern screens better */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

/* Animation Classes */
.anim-down {
    animation: fadeInDown 0.8s ease-out forwards;
    opacity: 0;
}

.anim-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.anim-zoom {
    animation: zoomIn 1s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* --- DECORATIVE BACKGROUND SHAPES --- */
.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

/* Triangle Shapes */
.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid;
}

.triangle-1 {
    top: 15%;
    right: 12%;
    border-bottom-color: #ff6b6b;
    animation-delay: 0s;
}

.triangle-2 {
    bottom: 25%;
    left: 8%;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
    animation-delay: 1.5s;
}

.triangle-3 {
    top: 45%;
    left: 5%;
    border-bottom-color: #ffd93d;
    animation-delay: 3s;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom-width: 50px;
}

/* Circle Shapes */
.circle {
    border-radius: 50%;
}

.circle-1 {
    top: 20%;
    left: 15%;
    width: 80px;
    height: 80px;
    border: 4px solid #4ecdc4;
    background: transparent;
    animation-delay: 2s;
}

.circle-2 {
    bottom: 15%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    animation-delay: 0.5s;
}

.circle-3 {
    top: 60%;
    right: 8%;
    width: 50px;
    height: 50px;
    border: 3px solid #95e1d3;
    background: transparent;
    animation-delay: 2.5s;
}

/* Square/Rectangle Shapes */
.square {
    border-radius: 5px;
}

.square-1 {
    top: 35%;
    right: 25%;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 107, 0.4);
    transform: rotate(15deg);
    animation-delay: 1s;
}

.square-2 {
    bottom: 35%;
    left: 18%;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(-20deg);
    animation-delay: 2.8s;
}

/* Ribbon Shapes */
.ribbon {
    width: 120px;
    height: 25px;
    position: relative;
    animation-delay: 1.2s;
}

.ribbon::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 12px solid inherit;
    left: -15px;
    top: 0;
}

.ribbon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 12px solid inherit;
    right: -15px;
    top: 0;
}

.ribbon-1 {
    top: 25%;
    left: 5%;
    background: #ffd93d;
    animation-delay: 0.8s;
}

.ribbon-2 {
    bottom: 20%;
    right: 15%;
    background: rgba(78, 205, 196, 0.6);
    animation-delay: 2.2s;
}

@keyframes float {

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

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

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 140, 6, 0.3);
}

.btn-outline {
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
}

/* Helper Text Colors */
.text-orange {
    color: var(--primary-orange);
}

.text-blue {
    color: var(--primary-blue);
}

/* --- HEADER (FIXED / FROZEN) --- */
header {
    background-color: white;
    /* FIXED POSITIONING TO FREEZE NAVBAR */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* High z-index ensures it stays on top of hero image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Added min-height to ensure consistent sizing */
    min-height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.logo-icon {
    display: relative;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 100px;
    font-size: 1.2rem;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: rgb(251, 130, 0);
    transition: width 0.3s;
}

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

/* --- DROPDOWN NAV --- */
.nav-links li {
    position: relative;
}

.nav-links .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 1rem;
}

.nav-links .dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    display: none;
    z-index: 2000;
}

.nav-links .dropdown li {
    padding: 0;
}

.nav-links .dropdown a {
    display: block;
    padding: 10px 18px;
    color: var(--primary-blue);
    font-weight: 500;
}

.nav-links .dropdown a:hover {
    background: rgba(244, 140, 6, 0.06);
    color: var(--primary-orange);
}

/* Desktop Hover Behavior */
@media (min-width: 901px) {
    .nav-links li:hover>.dropdown {
        display: block;
    }
}

/* --- MENU TOGGLE (Mobile) --- */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 200px;
    /* Space for the bottom curve */
    color: var(--white);
    overflow: hidden;
    min-height: 100vh;
    /* Ensures it covers full screen on load */
    display: flex;
    align-items: center;
    /* Vertically centers content */

    background-image: url('../images/pre_school.png');
    /* Replace with your large hero image */
    background-size: cover;
    background-position: center right;
    /* Adjust focus */
    background-repeat: no-repeat;
}

.hero-container {
    max-width: 1440px;
    margin: 150px auto;
    padding: 0 20px;
}

/* --- COLORED OVERLAY WITH DIAGONAL --- */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, var(--primary-orange) 0%, var(--primary-orange) 42%, transparent 42%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    /* CHANGED: Adjusted columns to 4fr 6fr (40% - 60%) to keep text inside the orange part */
    grid-template-columns: 4fr 6fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-text {
    animation: slideInLeft 1s ease-out forwards;

    /* --- KEY FIXES FOR LEFT ALIGNMENT --- */
    text-align: left;
    /* Aligns text content to the left */
    display: flex;
    /* Use flexbox for better control */
    flex-direction: column;
    /* Stack elements vertically */
    align-items: flex-start;
    /* Aligns the button to the left */
    padding-right: 10px;
    /* Adds breathing room from the diagonal edge */
}

.hero-text h1 {
    font-size: 3.0rem;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: var(--primary-blue);
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 90%;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.95;
}

/* Hero Image Container (Hidden as image is in background) */

/* Curve Bottom - Ensure it's on top */
.curve-bottom {
    z-index: 3;
}

@keyframes floatImage {
    0% {
        transform: rotate(-3deg) translateY(0px);
    }

    50% {
        transform: rotate(-3deg) translateY(-15px);
    }

    100% {
        transform: rotate(-3deg) translateY(0px);
    }
}

/* Curve Container */
.curve-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
    /* Allows clicks to pass through if needed */
}

/* Curve SVG */
.curve-bottom svg {
    display: block;
    width: 100%;
    height: 180px;
    /* Increased height for a more dramatic curve */
}

.curve-bottom path {
    fill: #ffffff;
}

/* --- STAY UPDATED / SOFTWARE SECTION --- */
/* --- STAY UPDATED SECTION --- */
.software-section {
    padding: 0px 0;
    text-align: center;
    background-color: var(--white);
}

.soft-subtitle {
    color: var(--text-grey);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.soft-title {
    font-size: 2.4rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 25px;
}

.soft-title span {
    color: var(--primary-orange);
}

.soft-desc {
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto 80px;
    /* Extra space for floating icons */
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Cards Layout */
.cards-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Individual Card Container */
.info-card {
    flex: 1;
    min-width: 320px;
    max-width: 380px;
    height: 500px;
    /* Fixed height to force scrolling */
    border-radius: 30px;
    position: relative;
    /* For icon positioning */
    padding: 60px 25px 30px;
    /* Top padding clears the icon */
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    /* Space for the icon popping out */
}

/* Card Background Colors */
.card-purple {
    background-color: #5B72EE;
}

.card-orange {
    background-color: #F48C06;
}

.card-cyan {
    background-color: #29B9E7;
}

/* Floating Icon - Vertical Oval */
.card-icon-circle {
    width: 80px;
    /* Narrow width */
    height: 100px;
    /* Tall height creates the vertical oval */
    border-radius: 50%;
    /* Creates the ellipse shape */

    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;

    /* Position needs to be half of the height to sit evenly on the line */
    /* 140px height / 2 = 70px */
    top: -50px;

    left: 50%;
    transform: translateX(-50%);

    /* Visual Styles */
    border: 5px solid white;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Slightly stronger shadow for the tall shape */
    z-index: 2;
}

/* Ensure icons remain readable */
.card-icon-circle i {
    font-size: 2.2rem;
}

/* Keep existing colors */
.card-purple .card-icon-circle {
    background-color: #5B72EE;
}

.card-orange .card-icon-circle {
    background-color: #F48C06;
}

.card-cyan .card-icon-circle {
    background-color: #29B9E7;
}

/* Card Title */
.info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

/* --- SCROLLABLE LIST AREA --- */
.card-list {
    width: 100%;
    flex-grow: 1;
    /* Fills remaining height */
    overflow-y: auto;
    /* Enables Scrollbar */
    padding-right: 5px;
    /* Space for scrollbar */
    text-align: left;
}

/* Custom Scrollbar Styling */
.card-list::-webkit-scrollbar {
    width: 6px;
}

.card-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.card-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.card-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* List Item Blocks (Cards inside Cards) */
.card-list-item {
    background: rgba(255, 255, 255, 0.9);
    /* Whitish block */
    color: #252641;
    /* Dark text for readability */
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-list-item:last-child {
    margin-bottom: 0;
}

.card-list-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #252641;
}

.card-list-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #5F5F7E;
    margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    .cards-row {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 90%;
        max-width: 450px;
        margin-bottom: 50px;
    }
}

/* --- UNIFIED ABOUT SECTION --- */
.about-section-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0px 20px;
    position: relative;
    overflow: hidden;
}

/* 1. Header & Description */
.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.about-title {
    font-size: 2.4rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 20px;
}

.about-title span {
    color: var(--primary-orange);
}

.about-desc {
    color: var(--text-grey);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
}

/* --- KEY ACHIEVEMENTS SECTION --- */
.achievements-wrapper {
    background: #F9FAFB;
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 80px;
    /* Spacing between stats and the choice cards */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.section-title span {
    color: var(--primary-orange);
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    /* Space between numbers */
    margin-top: 40px;
}

.stat-item {
    min-width: 150px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-orange);
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-item p {
    color: #696984;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- UPDATED CHOICE CARDS (Text at Bottom) --- */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 120px;
}

.choice-card {
    position: relative;
    height: 400px;
    /* Increased height slightly for better proportions */
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* --- KEY CHANGE HERE --- */
    justify-content: flex-end;
    /* Pushes content to the bottom */
    align-items: center;
    /* Centers content horizontally */
    padding-bottom: 50px;
    /* Adds space from the bottom edge */
    /* --------------------- */

    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.choice-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.choice-card:hover .choice-bg {
    transform: scale(1.1);
}

/* Updated Overlay to ensure text readability at the bottom */
.choice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient gets darker at the bottom */
    background: linear-gradient(to bottom, rgba(37, 38, 65, 0), rgba(37, 38, 65, 0.9));
    z-index: 2;
}

.choice-content {
    position: relative;
    z-index: 3;
    color: white;
    width: 90%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .stats-grid {
        gap: 40px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }
}

/* Gradient Overlay */
.choice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(37, 38, 65, 0.5), rgba(37, 38, 65, 0.85));
    z-index: 2;
}

.choice-content {
    position: relative;
    z-index: 3;
    color: white;
}

.choice-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-choice {
    padding: 5px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-instructor {
    background: transparent;
    border: 1px solid white;
    color: white;
}

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

.btn-student {
    background: #23BDEE;
    /* Cyan Blue */
    color: white;
}

.btn-student:hover {
    background: #1aa6d3;
}

/* 3. Physical Classroom Feature Split */
.classroom-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

.classroom-text h2 {
    font-size: 2.6rem;
    line-height: 1.4;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 30px;
}

/* Specific highlighting of text in sentence */
.highlight-orange {
    color: var(--primary-orange);
}

.classroom-text p {
    color: var(--text-grey);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.learn-more {
    color: var(--text-grey);
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-grey);
}

.classroom-visual {
    position: relative;
}

/* Decor dots */
.classroom-visual::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    width: 80px;
    height: 80px;
    background: #23BDEE;
    border-radius: 50%;
    z-index: -1;
}

.classroom-visual::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: #F48C06;
    border-radius: 50%;
    z-index: -1;
}

.classroom-visual img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 950px) {

    .choice-grid,
    .classroom-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .classroom-visual {
        order: -1;
        margin-bottom: 50px;
    }
}

/* --- FEATURE BLOCKS --- */
/* --- OUR FEATURES SECTION --- */
.features-section {
    padding: 100px 0;
    overflow: hidden;
}

/* Header */
.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-title {
    font-size: 2.2rem;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 15px;
}

.features-title span {
    color: var(--primary-blue);
}

.features-subtitle {
    color: var(--text-grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Rows Wrapper */
.features-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* Large gap between features */
}

/* Individual Feature Row */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

/* Alternate Layout (Image Right, Text Left) */
.feature-row.reverse {
    direction: rtl;
    /* Easy way to flip grid order visually */
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

/* Reset text direction */
.feature-row.reverse .feature-visual {
    direction: ltr;
}

/* Text Styling */
.feature-content h2 {
    font-size: 2.4rem;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
}

.feature-content h2 span {
    color: var(--primary-orange);
}

.feature-content p {
    color: var(--text-grey);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Feature List (Specific to Feature 1) */
.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.f-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.text-blue {
    color: #252641;
}

.text-orange {
    color: #F48C06;
}

/* Visual Side Utilities */
.feature-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- MOCKUP 1: CLASSROOM GRID --- */
.classroom-mock {
    background: white;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 80%;
    position: relative;
}

/* Decorative blobs for Feature 1 */
.classroom-mock::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: #29B9E7;
    border-radius: 50%;
    z-index: -1;
}

/* Container Card (White Box with Shadow) */
.classroom-mock {
    background: white;
    padding: 15px;
    /* Creates the white frame around the image */
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    width: 80%;
    /* Controls overall size */
    position: relative;
    display: block;
    /* Removed 'grid' */
}

/* Decorative Blue Blob (Kept from previous design) */
.classroom-mock::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: #29B9E7;
    border-radius: 50%;
    z-index: -1;
}

/* Image Wrapper */
.mock-cam.large {
    width: 100%;
    height: auto;
    /* Important: Allows height to grow with image */
    border-radius: 15px;
    /* Rounds the image corners */
    overflow: hidden;
    line-height: 0;
    /* Removes any tiny gap below image */
}

/* The Image Itself */
.mock-cam img {
    width: 100%;
    height: auto;
    /* Maintains aspect ratio */
    object-fit: contain;
    display: block;
}

/* --- MOCKUP 2: IMAGE DECOR (Tools) --- */
.img-decor-wrapper {
    position: relative;
    width: 80%;
}

.img-decor-wrapper img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.img-decor-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: #F48C06;
    /* Orange shadow/blob */
    border-radius: 50% 50% 50% 0;
    /* Abstract shape */
    z-index: 1;
    opacity: 0.15;
}

/* --- MOCKUP 3: QUIZ CARD --- */
.quiz-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    width: 75%;
    position: relative;
}

.q-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.q-tag {
    background: #E8F0FF;
    color: #5B72EE;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.q-img {
    height: 240px;
    background: url('https://images.unsplash.com/photo-1520175480921-4edfa2983e0f?auto=format&fit=crop&w=500&q=80') center/cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.q-toast {
    position: absolute;
    bottom: -20px;
    right: -30px;
    background: white;
    padding: 12px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #2ECC71;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- MOCKUP 4: GRADEBOOK --- */
.gb-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    width: 85%;
    overflow: hidden;
    padding-bottom: 20px;
}

.gb-head {
    background: #4FB3F6;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

.gb-list {
    padding: 20px;
}

.gb-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.gb-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.gb-track {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    position: relative;
}

.gb-fill {
    height: 100%;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
}

.gb-score {
    position: absolute;
    right: -10px;
    top: -25px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
}

/* Responsive */
@media (max-width: 950px) {

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        direction: ltr;
        /* Reset visual reverse on mobile */
    }

    .feature-list-item {
        justify-content: center;
        text-align: left;
    }

    .feature-visual {
        margin-bottom: 40px;
        order: -1;
    }
}

/* --- SINGLE FEATURE IMAGE STYLING --- */
.feature-single-image {
    width: 85%;
    /* Matches the width of other feature visuals like the quiz card */
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    /* Consistent shadow style */
}

.feature-single-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Removes bottom space/gap */
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Optional: Add a subtle hover effect */
.feature-single-image:hover img {
    transform: scale(1.03);
}

/* Responsive Adjustment */
@media (max-width: 950px) {
    .feature-single-image {
        width: 95%;
        /* Wider on mobile */
        margin: 0 auto;
    }
}

/* --- MOCK UI ELEMENTS --- */
.mock-ui-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Classroom Grid */
.classroom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.mock-user {
    border-radius: 12px;
    overflow: hidden;
    height: 130px;
    position: relative;
    background: #eee;
}

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

.mock-user span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.teacher-spot {
    grid-column: 1 / -1;
    height: 180px;
}

/* Quiz Card */
.quiz-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    width: 85%;
    position: relative;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.tag {
    background: #E8F0FF;
    color: var(--accent-purple);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.quiz-img {
    height: 150px;
    background: url('https://images.unsplash.com/photo-1520175480921-4edfa2983e0f?auto=format&fit=crop&w=600&q=80') center/cover;
    border-radius: 15px;
    margin: 20px 0;
}

.success-toast {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: white;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
    color: #2ecc71;
    font-weight: 600;
    z-index: 2;
}

/* Gradebook */
.gradebook-ui {
    background: white;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    width: 90%;
}

.gb-header {
    background: #4FB3F6;
    height: 60px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.gb-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.gb-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gb-bar {
    height: 10px;
    flex-grow: 1;
    border-radius: 5px;
    background: #f0f0f0;
    position: relative;
}

.score-bubble {
    position: absolute;
    right: -12px;
    top: -32px;
    color: white;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- INTEGRATIONS SECTION --- */
.integrations {
    padding: 60px 0;
    background-color: var(--white);
    /* White background per reference */
    position: relative;
    overflow: hidden;
}

.integrations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Split layout 50/50 */
    align-items: center;
    gap: 80px;
}

/* Left: Single Image Wrapper */
.collage-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.collage-single-img {
    width: 100%;
    max-width: 600px;
    /* Prevents it from getting too large */
    height: auto;
    object-fit: contain;
    display: block;
}

/* Right: Text Content */
.integrations-text {
    text-align: left;
}

/* Label with horizontal line */
.label-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.line-deco {
    width: 50px;
    height: 1px;
    background-color: #525596;
    /* Dark purple/blue tone */
}

.integrations-text h4 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #525596;
    font-weight: 500;
    margin: 0;
}

.integrations-text h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
}

.integrations-text h2 span {
    color: var(--primary-orange);
}

.integrations-text p {
    color: var(--text-grey);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Button Style */
.btn-outline {
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .integrations-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .label-container {
        justify-content: center;
    }

    /* Order image first on mobile if desired, or keep as is */
    .collage-wrapper {
        margin-bottom: 40px;
    }
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 100px 0;
    overflow: visible;
    /* Allows the card to overlap if needed */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* Text side slightly smaller */
    gap: 80px;
    align-items: center;
}

/* Left Side: Text */
.test-subtitle {
    color: var(--primary-orange);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

.test-title {
    font-size: 2.6rem;
    color: #252641;
    font-weight: 700;
    margin-bottom: 25px;
}

.test-desc {
    color: #696984;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 90%;
}

.btn-test {
    padding: 15px 35px;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-test:hover {
    background: var(--primary-orange);
    color: white;
}

/* Right Side: Image & Card */
.test-visual-wrapper {
    position: relative;
    padding-right: 20px;
    /* Space for shadow/offset */
}

.test-main-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Floating Quote Card */
.test-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    /* Overlaps to the right */
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-left: 10px solid #F48C06;
    /* Orange Left Border */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Vertical line separation content if needed, but per image it's just padding */
.test-card p {
    color: #5F5F7E;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    border-left: 1px solid #eee;
    /* Subtle internal line */
    padding-left: 20px;
    font-style: italic;
    /* Matches typical testimonial style */
}

.test-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
}

.test-author {
    font-weight: 700;
    color: #252641;
    font-size: 1.1rem;
}

.test-rating {
    display: flex;
    gap: 5px;
    align-items: center;
}

.test-rating span {
    font-size: 0.8rem;
    color: #696984;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.star-icon {
    color: #FBA333;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .test-desc {
        margin: 0 auto 30px;
    }

    .test-visual-wrapper {
        width: 90%;
        margin: 0 auto;
    }

    .test-card {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: -40px;
        border-radius: 15px;
    }
}

/* --- NEWS & RESOURCES SECTION --- */
.news-section {
    padding: 120px 0;
    font-family: 'Poppins', sans-serif;
}

/* Header */
.news-header {
    text-align: center;
    margin-bottom: 80px;
}

.news-title {
    font-size: 2.2rem;
    color: #252641;
    font-weight: 700;
    margin-bottom: 15px;
}

.news-subtitle {
    color: #696984;
    font-size: 1.1rem;
}

/* Grid Layout - Fixed Ratio */
.news-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Left side slightly larger */
    gap: 60px;
    align-items: flex-start;
}

/* --- LEFT COLUMN: MAIN NEWS --- */
.news-main-card img {
    width: 100%;
    /* Fixed: Fills the container */
    border-radius: 20px;
    margin-bottom: 25px;
    display: block;
    object-fit: cover;
    height: 350px;
    /* Consistent height for main image */
}

.news-badge {
    display: inline-block;
    background-color: #F4C467;
    color: #252641;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-main-title {
    font-size: 1.6rem;
    color: #252641;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-desc {
    color: #696984;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.read-more-link {
    color: #696984;
    text-decoration: underline;
    font-size: 1rem;
    transition: 0.3s;
}

.read-more-link:hover {
    color: #F48C06;
}

/* --- RIGHT COLUMN: NEWS LIST --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Fixed thumbnail size for alignment */
.news-thumb-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    height: 120px;
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.news-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Small Badge styling */
.list-badge {
    display: inline-block;
    background-color: #F4C467;
    color: #252641;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    width: fit-content;
}

.news-item-title {
    font-size: 1.05rem;
    color: #252641;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.news-item-desc {
    font-size: 0.85rem;
    color: #696984;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-thumb-wrapper {
        width: 140px;
        height: 100px;
    }
}

/* Footer */
footer {
    background-color: #252641;
    color: #B2B3CF;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: white;
    padding-left: 15px;
    border-left: 1px solid #626381;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

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

/* add missing css here */ 

/* --- TESTIMONIAL CARD MOBILE FIX --- */
@media (max-width: 600px) {
    .test-card-footer {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        gap: 4px;
        text-align: center;
    }
    .test-author {
        display: block;
        font-size: 1.05rem;
        margin-bottom: 2px;
    }
    .test-rating-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .test-rating {
        justify-content: center;
        margin: 0 auto;
        font-size: 1rem;
    }
    .test-card {
        padding: 18px 8px;
    }
}
/* --- LATEST NEWS SECTION MOBILE FIXES --- */
@media (max-width: 600px) {
    .latest-news-section.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #latest-news-grid.blog-listing-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 0 8px;
    }
    #latest-news-grid .news-card, #latest-news-grid > div {
        border-radius: 18px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.08);
        background: #fff;
        padding: 18px 12px;
        margin: 0;
        font-size: 1rem;
        text-align: left;
    }
    #latest-news-grid img {
        border-radius: 12px 12px 0 0;
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }
    #latest-news-grid h4, #latest-news-grid h5 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    #latest-news-grid p {
        font-size: 0.98rem;
        margin-bottom: 8px;
    }
    .section-header h2 {
        font-size: 1.4rem !important;
    }
    .section-header p {
        font-size: 1rem !important;
    }
}
/* --- RESPONSIVE MEDIA QUERIES (UPDATED FOR MOBILE MENU) --- */
@media (max-width: 900px) {

    /* General Responsive Fixes */
    .hero {
        padding-top: 120px;
        /* Reduced padding on mobile */
        padding-bottom: 100px;
    }

    .hero-content,
    .choice-grid,
    .feature-block,
    .integrations-grid,
    .testimonial-grid,
    .news-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Center Hero Text */
    .hero-text {
        align-items: center;
        text-align: center;
        padding-right: 0;
        /* Added padding to prevent text hitting sides */
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    /* Ensure container has padding */
    .container {
        padding: 0 20px !important;
    }

    /* Full Width Cards & Images - CHANGED TO 92% TO PREVENT TOUCHING SIDES */
    .info-card,
    .classroom-mock,
    .img-decor-wrapper,
    .quiz-card,
    .gb-card,
    .feature-single-image {
        width: 92% !important;
        /* Reduced from 100% */
        min-width: unset !important;
        /* Remove min-width */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }

    /* About Section Width Fix */
    .about-section-container {
        max-width: 100%;
        padding: 0 20px;
    }

    /* Reset Direction for Reversed Feature Rows */
    .feature-row.reverse {
        direction: ltr;
    }

    .feature-list-item {
        justify-content: center;
        text-align: left;
    }

    /* Testimonial Fixes */
    .test-card {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 92%;
        /* Prevent touching sides */
        max-width: 100%;
        margin: 20px auto 0 auto;
    }

    .test-visual-wrapper {
        padding-right: 0;
        padding: 0 20px;
    }

    /* News Items Alignment */
    .news-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .news-item-content {
        align-items: center;
    }

    .news-thumb-wrapper {
        width: 100%;
        height: 200px;
    }

    /* Larger thumbs on mobile */

    .sub-form {
        flex-direction: column;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* --- MOBILE MENU & NAV --- */
    /* Show toggle button */
    .menu-toggle {
        display: block;
    }

    /* Slide-out Menu Style */
    .nav-links {
        position: fixed;
        top: 90px;
        /* Below the fixed header */
        right: -100%;
        /* Hidden off-screen by default */
        width: 100%;
        /* Full width */
        height: calc(100vh - 90px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: right 0.4s ease-in-out;
        /* Smooth slide */
        display: flex;
        /* Override display:none */
        gap: 25px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    /* Class to trigger slide-in */
    .nav-links.active {
        right: 0;
    }

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

    /* Fix dropdown on mobile to be static and toggleable */
    .nav-links .dropdown {
        position: static;
        min-width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        /* Hidden by default */
        padding: 10px 0;
        animation: none;
        /* Disable hover animation */
    }

    /* Class to show dropdown via JS */
    .nav-links .dropdown.show {
        display: block;
    }

    /* Disable hover effect on mobile */
    .nav-links li:hover>.dropdown {
        display: none;
        /* Only show via .show class */
    }

    /* Ensure the opened dropdown follows .show rule */
    .nav-links li:hover>.dropdown.show {
        display: block;
    }
}
