.lang-switch {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: var(--primary-blue, #19C1B6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    transform: scale(1.1);
    background-color: var(--primary-pink);
}

.lang-switch span {
    user-select: none;
}


/* --- Variables and Global Reset --- */
:root {
    --primary-pink: #ff4d84; /* The bright pink color for the buttons and image background */
    --primary-blue: #007bff; /* Blue color for titles and stats */
    --footer-blue: #2c7ef7;
    --text-white: #ffffff;
    --text-dark: #333;
    --text-light-hero: #eeeeee; /* Lighter white for hero paragraph */
    --text-light-body: #6c757d; /* Gray for body paragraph/labels */
    --background-light: #f8f9fa; /* Light gray section background */
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --color-teal: #4ac9b5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark); /* Default body text color */
}

a {
    text-decoration: none;
    color: var(--text-white);
}

ul {
    list-style: none;
}

/* ---------------------------------- */
/* 1. HERO SECTION           */
/* ---------------------------------- */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* NOTE: Use your actual image path here */
    background: url('assets/hero.png') no-repeat center center/cover;
    overflow: hidden;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
}

/* Dark Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from solid dark (left) to semi-transparent dark (right) */
    background: linear-gradient(
            to right,
            rgba(30, 30, 30, 1) 0%,
            rgba(30, 30, 30, 0.54) 100%
    );
    z-index: 1;
}

/* Header/Navigation */
header {
    position: fixed;
    top: 15px; /* отделяем сверху */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;

    padding: 0.8rem 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-radius: 16px; /* закругления */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* тень */
    color: white;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6); /* затемнённый фон */
    backdrop-filter: blur(6px); /* красивый эффект blur */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

nav ul {
    display: flex;
    /* REDUCE GAP to fit all 7 links in the header for desktop */
    gap: 20px;
}

nav a {
    color: var(--text-light-hero);
    font-weight: 600;
    transition: color 0.3s;
    /* Optionally reduce font size for better fit */
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    color: var(--primary-pink);
}

.btn-explore-header {
    background-color: var(--primary-pink);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-explore-header:hover {
    background-color: #e04474;
}

/* Main Hero Content */
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 80px;
    max-width: 60%;
    z-index: 5;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light-hero);
    margin-bottom: 40px;
    max-width: 85%;
}

.btn-explore-main {
    align-self: flex-start;
    background-color: var(--primary-pink);
    color: var(--text-white);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-explore-main:hover {
    background-color: #e04474;
}

/* ---------------------------------- */
/* 2. WELCOME SECTION            */
/* ---------------------------------- */

/* --- Section Container --- */
.kindergarten-section {

    margin: 50px auto;
    padding: 20px;
}

/* --- Features Container (Top Icons) --- */
.features-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    text-align: center;
}

.feature-item {
    flex-basis: 20%; /* Controls the width of each feature item */
}

.icon-circle {
    width: 182px;
    height: 182px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Specific icon colors */
.red-pink { background-color: #E47D7D; }
.light-green { background-color: #AED260; }
.blue { background-color: #649ACC; }
.yellow { background-color: #EBCE66; }

.abc-text {
    font-family: sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.feature-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* --- Main Content Container (Image and Text) --- */
.content-container {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}

/* Image Wrapper with the oval-like shape */
.image-wrapper {
    flex: 1;
    position: relative;
    padding: 20px; /* Space for the background effect */
    border-radius: 50% / 60px; /* Base for the oval effect */
}

.image-wrapper img {
    display: block;
    height: auto;
    
    
    object-fit: cover;
    /* This makes the placeholder look more like the original. Replace 'placeholder-image.jpg' with the actual image path. */
    min-height: 400px; 
}

/* Text Wrapper */
.text-wrapper {
    flex: 1.2;
    padding-left: 20px;
}

.welcome-heading {
    font-family: 'Georgia', serif; /* Use a classic font for a softer look */
    font-size: 36px;
    font-weight: normal;
    color: #444;
    margin-bottom: 20px;
}

.description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.about-us-button {
    background-color: #FAA808; /* The warm orange/yellow button color */
    color: #444;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.about-us-button:hover {
    background-color: #E9B25A;
}


/* ---------------------------------- */
/* 3. SERVICES SECTION (NEW) */
/* ---------------------------------- */

.academy-services-section {
    padding: 80px 20px 100px; /* Generous bottom padding for the button */
    background-color: var(--text-white); /* White background */
    text-align: center;
}

.section-title-services {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 50px;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between cards */
    max-width: 1200px;
    margin: 0 auto 50px; /* Add margin bottom for button */
}

/* Service Card Styling */
.service-card {
    background-color: var(--text-white);
    border-radius: 20px;
    padding: 30px 25px;
    width: 100%; /* For flex-basis */
    max-width: 280px; /* Card max-width */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); /* Soft shadow */
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* Subtle lift effect on hover */
}

/* Icon Box Styling (The colored rounded-square) */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--text-white);
}

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

.pink-icon {
    background-color: var(--primary-pink);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    /* Correct "Profesional" to "Professional" - assuming a typo fix */
}

.card-text {
    font-size: 1rem;
    color: var(--text-light-body);
    line-height: 1.5;
}

/* Centralized Read More Button (Reusing .btn-read-more styles for appearance) */
.btn-read-more-center {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--primary-pink);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 20px; /* Space from the service cards */
}

.btn-read-more-center:hover {
    background-color: #e04474;
}

.green-icon img{
    width: 70px;
}

/* ---------------------------------- */
/* 4. Gallery */
/* ---------------------------------- */

.gallery-section {
  text-align: center;
  padding: 60px 20px;
  width: 100%;
}

.gallery-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 40px;
  font-family: "Pacifico", cursive;
}

/* Grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  gap: 20px;
  margin-bottom: 20px;
  grid-auto-flow: dense;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Make images different sizes for a dynamic layout */
.gallery-grid img:nth-child(1) {
  grid-row: 1;
  grid-column: 1;
  height: 400px;
  position: relative;
  bottom: -30px; /* move upward out of grid bounds */
}
.gallery-grid img:nth-child(2) {
  grid-row: 1;
  grid-column: 2;
  height: 520px;
}
.gallery-grid img:nth-child(3) {
  grid-row: span 1;
  height: 440px;
}
.gallery-grid img:nth-child(4) {
  grid-row: span 1;
  height: 480px;
  position: relative;
  top: -90px; /* move upward out of grid bounds */

}
.gallery-grid img:nth-child(5) {
  grid-row: span 1;
  height: 420px;
  grid-column: 2;
  grid-row: 2;
}
.gallery-grid img:nth-child(6) {
  grid-row: span 1;
  height: 400px;
  grid-column: 3;
  grid-row: 2;
  position: relative;
  top: -80px; /* move upward out of grid bounds */
}


/* Button styling */
.gallery-btn {
  background-color: #fcbf49;
  color: #fff;
  border: none;
  padding: 12px 35px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gallery-btn:hover {
  background-color: #f77f00;
}


/* ---------------------------------- */
/* 4. FEATURED COURSES SECTION (NEW) */
/* ---------------------------------- */

.featured-courses-section {
    padding: 100px 20px;
    background-color: var(--background-light); /* Light gray background */
    text-align: center;
}

.section-title-courses {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 50px;
}

.courses-grid {
    display: grid;
    /* 4 columns for large screens */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Image container with rounded corners */
.course-image-container {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    /* Set a fixed aspect ratio for uniformity */
    padding-top: 100%; /* Creates a square container */
    position: relative;
    transition: box-shadow 0.3s ease;
}

.course-image-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
    display: block;
    transition: transform 0.3s ease;
}

.course-image-container:hover .course-image {
    transform: scale(1.05); /* Slight zoom on hover */
}

.course-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ---------------------------------- */
/* 5. TESTIMONIALS SECTION (NEW) */
/* ---------------------------------- */

.testimonials-section {
    padding: 100px 0; /* Horizontal padding will be handled by carousel container */
    background-color: var(--background-light); /* Light gray background */
    text-align: center;
    overflow: hidden; /* Hide overflowing cards from the carousel */
    position: relative;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 50px;
}

/* Carousel Container - defines the visible window for testimonials */
.testimonials-carousel-container {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Crucial for hiding parts of the track */
    padding: 20px 0; /* Vertical padding to lift shadow off edges */
}

/* Testimonials Track - the element that will actually move */
.testimonials-track {
    display: flex;
    gap: 30px;
    width: fit-content;
    /* Key line for infinite movement */
    animation: scrollTestimonials 30s linear infinite;
    padding: 10px 0;
}

.testimonials-track:hover {
    animation-play-state: paused; /* Pause animation on hover */
}

/* Testimonial Card */
.testimonial-card {
    flex: 0 0 auto; /* Prevent cards from shrinking/growing */
    width: 380px; /* Fixed width for each card */
    background-color: var(--text-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent avatar from shrinking */
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-light-body);
    line-height: 1.5;
}

/* ---------------------------------- */
/* 6. ARTICLES AND INSIGHT SECTION (NEW) */
/* ---------------------------------- */

.articles-insight-section {
    padding: 80px 20px;
    background-color: var(--text-white); /* White background */
    text-align: center;
}

.articles-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    /* Three equal columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Article Card Styling */
.article-card {
    background-color: var(--text-white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Ensures image corners are rounded */
    text-align: center;
    transition: transform 0.3s ease;
    height: 622px;
}

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

.article-image-container {
    height: 200px; /* Fixed height for image area */
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 25px 67px 35px;
}

.article-heading {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 38px 0;
    width: 215px;
}

.article-text {
    font-size: 0.95rem;
    color: var(--text-light-body);
    line-height: 1.6;
    margin-bottom: 59px;
}

/* Reusable Pink Read More Button Style */
.btn-read-more-pink {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--primary-pink);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-read-more-pink:hover {
    background-color: #e04474;
}

/* ---------------------------------- */
/* 7. CTA BANNER SECTION */
/* ---------------------------------- */

.cta-banner-section {
    background-color: var(--primary-pink);
    padding: 80px 20px;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 30px;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 650px;
    margin: 0 auto;
}

.cta-input {
    flex-grow: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    max-width: 400px;
    outline: none;
    color: var(--text-dark);
}

.cta-input::placeholder {
    color: var(--text-light-body);
}

.btn-subscribe {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-subscribe:hover {
    background-color: #0069d9;
}

.icon-box img{
    width: 50px;
    height: 50px;
}


/* ---------------------------------- */
/* 8. FOOTER SECTION */
/* ---------------------------------- */

.main-footer {
    background-color: var(--footer-blue);
    color: var(--text-white);
    padding: 80px 50px;
}

.footer-grid {
    display: grid;
    /* Three columns: 2fr for the main info column, 1fr for the links columns */
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.95rem;
    color: var(--text-light-hero);
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Footer Links */
.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: var(--text-light-hero);
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-white);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-pink);
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This value moves the track left by the width of the first 6 cards + gaps: (380px + 30px) * 6 = 2460px */
        transform: translateX(calc(-1 * ( (380px + 30px) * 6 ) ));
    }
}

/* Tablet & Smaller Desktop (Max Width 1024px) */
@media (max-width: 1024px) {
    /* Reduce padding and font sizes slightly */
    header, .hero-content {
        padding-left: 40px;
        padding-right: 40px;
    }

    nav {
        display: block;
    }

    nav ul {
        gap: 15px;
    }

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

    .hero-content {
        max-width: 70%;
    }

    /* Welcome Section: Stack the side columns around the image */
    .content-wrapper {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 60px;
        text-align: center;
        max-width: 600px; /* Constrain width for better readability */
    }

    .col-left, .col-right {
        max-width: 100%;
        padding: 0;
        /* Center content horizontally */
        margin: 0 auto;
    }

    .col-left .btn-read-more {
        margin: 0 auto;
    }

    .welcome-title, .col-left p {
        text-align: center;
    }

    .col-center-image {
        /* Ensure the image remains centered in the single column */
        order: -1; /* Move image to the top for flow */
    }

    .stats-grid {
        justify-content: center;
        text-align: center;
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        flex-wrap: wrap; /* Allow cards to wrap */
        max-width: 600px; /* Two cards per row max */
    }
    .service-card {
        max-width: 45%; /* Make cards take up nearly half the width */
    }

    .courses-grid {
        /* Change to 2 columns on tablets */
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 700px;
    }

    .testimonials-track {
        gap: 20px; /* Smaller gap on smaller screens */
        animation: scrollTestimonialsTablet 30s linear infinite;
    }

    .testimonial-card {
        width: 320px; /* Slightly smaller cards */
        padding: 20px;
    }

    .articles-grid {
        /* Change to 2 columns on tablets */
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 700px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Two columns */
        gap: 40px;
    }

    .footer-col-info {
        grid-column: 1 / 3; /* Make the info column span both columns */
    }

    .features-container {
        /* Allow icons to wrap into a 2x2 grid */
        flex-wrap: wrap; 
        gap: 30px;
    }

    .feature-item {
        /* Each item takes up ~45% width to make a 2-column layout */
        flex-basis: 45%; 
        max-width: 200px; /* Ensure they don't get too big */
    }

    .icon-circle {
        /* Make icons slightly smaller */
        width: 150px; 
        height: 150px;
    }

    .content-container {
        /* Reduce the gap for tablets */
        gap: 30px;
    }

    .welcome-heading {
        font-size: 32px;
    }

    /* Adjust keyframes for tablet */
    @keyframes scrollTestimonialsTablet {
        0% {
            transform: translateX(0);
        }
        100% {
            /* (320px width + 20px gap) * 6 cards = 340px * 6 = 2040px */
            transform: translateX(calc(-1 * ( (320px + 20px) * 6 ) ));
        }
    }
}

@media (max-width: 900px) {
      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      
      /* RESET all the custom desktop styles.
        This makes all images flow naturally into the 2-column grid.
      */
      .gallery-grid img,
      .gallery-grid img:nth-child(1),
      .gallery-grid img:nth-child(2),
      .gallery-grid img:nth-child(3),
      .gallery-grid img:nth-child(4),
      .gallery-grid img:nth-child(5),
      .gallery-grid img:nth-child(6) {
        grid-column: unset; /* Let the grid place it automatically */
        grid-row: unset;    /* Let the grid place it automatically */
        height: auto;       /* Reset height to be natural */
        position: static;   /* Remove relative positioning */
      }
}


/* Mobile (Max Width 768px) */
@media (max-width: 768px) {

    /* Header: Stack logo/nav and hide secondary elements */

    header {
        padding: 15px 20px;
    }

    nav {
        /* Hide nav links on mobile to save space */
        display: none;
    }

    .btn-explore-header {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-section {
        height: 70vh; /* Shorter height on mobile */
    }

    .hero-content {
        padding-left: 20px;
        max-width: 100%;
        text-align: center;
        align-items: center; /* Center all items */
    }

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

    .hero-content p {
        font-size: 1rem;
        max-width: 90%;
        text-align: center;
    }

    .btn-explore-main {
        align-self: center; /* Center the button */
        padding: 12px 30px;
    }

    /* Welcome Section */
    .academy-welcome-section {
        padding: 40px 20px;
    }

    .image-container {
        /* Shrink image for mobile */
        width: 250px;
        height: 300px;
        border-top-left-radius: 125px;
        border-top-right-radius: 125px;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .mission-title {
        font-size: 1.3rem;
    }

    .academy-welcome-section {
        /* Increased mobile padding from 40px to 60px top/bottom */
        padding: 60px 20px;
    }

    .image-container {
        /* Adjusted mobile height to stay proportionate */
        width: 250px;
        height: 320px; /* Adjusted from 300px */
        border-top-left-radius: 125px;
        border-top-right-radius: 125px;
    }

    .academy-services-section {
        padding: 50px 20px 70px;
    }

    .section-title-services {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .services-grid {
        flex-direction: column; /* Stack cards vertically */
        align-items: center;
        gap: 20px;
    }

    .service-card {
        max-width: 100%; /* Full width on mobile */
        width: 100%;
    }

    .featured-courses-section {
        padding: 60px 20px;
    }

    .section-title-courses {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .courses-grid {
        /* Change to 1 column on mobile */
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 350px;
    }

    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .testimonials-track {
        gap: 15px; /* Even smaller gap on mobile */
        animation: scrollTestimonialsMobile 25s linear infinite; /* Faster scroll on mobile */
    }

    .testimonial-card {
        width: 280px; /* Even smaller cards for mobile */
        flex-direction: column; /* Stack avatar and content vertically */
        text-align: center;
    }

    .testimonial-avatar {
        margin-bottom: 10px;
    }

    .articles-insight-section {
        padding: 50px 20px;
    }

    .articles-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .articles-grid {
        /* Stack to 1 column on mobile */
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-image-container {
        height: 180px;
    }

    .article-content {
        padding: 20px;
    }

    .article-heading {
        font-size: 1.1rem;
    }

    .cta-banner-section {
        padding: 60px 20px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-form {
        flex-direction: column;
        gap: 10px;
    }

    .cta-input, .btn-subscribe {
        max-width: 100%;
        width: 100%;
    }

    /* Footer: Stack all columns vertically */
    .main-footer {
        padding: 50px 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 30px;
        text-align: center;
    }

    .footer-col-info {
        grid-column: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-heading {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .kindergarten-section {
        margin: 30px auto;
        padding: 10px;
    }

    /* --- Features (Icons) --- */
    .features-container {
        /* Stack icons vertically */
        flex-direction: column; 
        align-items: center;
        margin-bottom: 40px;
    }

    .feature-item {
        /* Make items stack nicely */
        flex-basis: auto; 
        width: 80%;
        max-width: 300px; /* Prevent icons from being 100% wide */
    }

    .icon-circle {
        /* Make icons smaller for mobile */
        width: 120px;
        height: 120px;
    }

    /* --- Main Content (Image/Text) --- */
    .content-container {
        /* Stack the image and text vertically */
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
    }

    .image-wrapper {
        /* Reset wrapper styles for a simple stack */
        padding: 0;
        border-radius: 0;
        width: 100%;
    }

    .image-wrapper img {
        /* Make image 100% wide and give it a simple border-radius */
        width: 100%;
        border-radius: 15px;
        min-height: auto; /* Allow image to scale naturally */
    }

    .text-wrapper {
        /* Center-align text for mobile */
        flex: 1; /* Reset flex-basis */
        padding-left: 0;
        text-align: center;
    }

    .welcome-heading {
        font-size: 28px;
    }

    .description {
        font-size: 14px;
    }

    /* Adjust keyframes for mobile */
    @keyframes scrollTestimonialsMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            /* (280px width + 15px gap) * 6 cards = 295px * 6 = 1770px */
            transform: translateX(calc(-1 * ( (280px + 15px) * 6 ) ));
        }
    }
}

@media (max-width: 600px) {
      .gallery-grid {
        grid-template-columns: 1fr;
      }
      /* All resets from the 900px breakpoint are inherited,
        so the 1-column layout stacks perfectly.
      */
    }

.session-banner {
    position: relative;
    background-color: var(--color-teal); /* запасной цвет, если картинка не загрузится */
    background-size: cover;
    background-position: center;
    padding: 6rem 1rem;
    text-align: center;
    color: var(--color-white);
    margin-top: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* чтобы before не выходил за границы */
}

.session-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/welcome.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom 40%;
    opacity: 0.3; /* лёгкая прозрачность, как у newsletter */
    z-index: 0;
}

.session-banner::after {
    /* добавим градиент поверх фото для контраста текста */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(74, 201, 181, 0.3); /* ещё меньше opacity */
    z-index: 0;
}

.session-banner * {
    position: relative;
    z-index: 1; /* чтобы текст был поверх фона */
    color: var(--text-white);
}


.session-banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(74, 201, 181, 0.8); /* Teal with opacity */
    opacity: 0.2%;

}

.session-banner-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.session-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.session-banner-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.session-banner-button {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 30px;
    background-color: #e68900;
    color: var(--text-white);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-banner-button:hover {
    background-color: #e68900;
    transform: translateY(-2px);
}