:root {
    --primary-color: #d5212d;
    /* Red */
    --secondary-color: #2996c7;
    /* Blue */
    --accent-color: #de7c09;
    /* Orange */
    --green-color: #6aaf24;
    /* Green */
    --text-color: #2D3436;
    --bg-color: #F7F9FC;
    --white: #FFFFFF;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--green-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(106, 175, 36, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 175, 36, 0.6);
}

.btn-secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(41, 150, 199, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(41, 150, 199, 0.6);
}

.btn-primary {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(213, 33, 45, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(213, 33, 45, 0.6);
}

.btn-accent {
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(222, 124, 9, 0.4);
}

.btn-accent:hover {
    box-shadow: 0 8px 25px rgba(222, 124, 9, 0.6);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-logo img {
    height: 52px;
    display: block;
}

.nav-brand-name {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.25rem;
    color: #94025f;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.hero-image {
    flex: 1;
    min-width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero-image img {
    width: 120%;
    max-width: 800px;
    border-radius: var(--radius);
    animation: floatBanner 6s ease-in-out infinite;
}

@keyframes floatBanner {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #636e72;
    max-width: 700px;
    margin: 0 0 40px;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

/* About layout with imagery */
.about-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 280px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content {
    flex: 1;
    min-width: 280px;
}

/* Section Styling */
section {
    padding: 100px 0;
}

/* Infrastructure background with fixed image */
.Featuredbg {
    color: #fff;
    background-image:
        linear-gradient(135deg, rgba(101, 4, 137, 0.9), rgba(192, 0, 68, 0.8)),
        url('../../kids.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.Featuredbg .section-title h2 {
    color: #fff;
}

.Featuredbg .section-title h2::after {
    background: #ffd54f;
}

.Featuredbg .card {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
}

.card.image-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.card.image-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card.image-card .card-body {
    padding: 24px 30px 30px;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* Generic media slot for cards where real images will be placed later */
.card-media-slot {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    margin-bottom: 20px;
    background-color: #f1f3f6;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-slider-container {
    overflow: hidden;
    border-radius: var(--radius);
}

.testimonials-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonials-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonials-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonials-slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(213, 33, 45, 0.3);
}

.testimonials-slider-btn:hover {
    background: #b01a25;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(213, 33, 45, 0.5);
}

.testimonials-slider-btn:active {
    transform: scale(0.95);
}

.testimonials-slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.testimonials-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonials-slider-dots .dot:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.testimonials-slider-dots .dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Features List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.feature-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Footer */
footer {
    background: #2d3436;
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #b2bec3;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #dfe6e9;
}

.footer-contact h4,
.footer-links h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #dfe6e9;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-layout {
        flex-direction: column;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-layout {
        flex-direction: column;
    }

    .testimonials-slider-controls {
        flex-wrap: wrap;
        gap: 15px;
    }

    .testimonials-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .testimonials-slider-dots {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    nav {
        position: relative;
        height: 80px;
        padding: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        padding: 12px 0;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-hidden {
    opacity: 0;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Floating Icons Background */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Subtle repeating learning pattern */
    background-image: url('../../bg-icons.svg');
    background-repeat: repeat;
    background-size: 260px;
    opacity: 0.12;
}

/* New floating design: soft colourful bubbles that drift behind content */
.floating-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 179, 186, 0.6) 0, transparent 55%),
        radial-gradient(circle at 80% 25%, rgba(186, 225, 255, 0.6) 0, transparent 55%),
        radial-gradient(circle at 30% 80%, rgba(255, 236, 179, 0.6) 0, transparent 55%);
    background-repeat: no-repeat;
    background-size: 260px, 280px, 260px;
    animation: floatBubbles 45s linear infinite;
}

@keyframes floatBubbles {
    from {
        background-position: 10% 20%, 80% 25%, 30% 80%;
    }

    to {
        background-position: 20% 30%, 70% 55%, 25% 90%;
    }
}

/* Section-level foreground floating learning icons */
.section-with-icons {
    position: relative;
    overflow: hidden;
}

.section-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.floating-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
}

/* Outline-style variant */
.floating-icon-outline {
    opacity: 0.45;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Hero section icons */
.icons-hero .icon-abc {
    top: 18%;
    left: 4%;
    background-image: url('https://img.icons8.com/color/96/000000/abc.png');
    animation: floatIcon1 12s ease-in-out infinite;
}

.icons-hero .icon-numbers {
    top: 30%;
    right: 6%;
    background-image: url('https://img.icons8.com/color/96/000000/123.png');
    animation: floatIcon2 14s ease-in-out infinite;
}

.icons-hero .icon-blocks {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('https://img.icons8.com/color/96/000000/blocks.png');
    animation: floatIcon3 16s ease-in-out infinite;
}

/* Hero outline icons */
.icons-hero .icon-abc-outline {
    top: 8%;
    right: 18%;
    background-image: url('https://img.icons8.com/ios/96/000000/abc.png');
    animation: floatIcon4 20s ease-in-out infinite;
}

.icons-hero .icon-star-outline {
    bottom: 4%;
    left: 12%;
    /* Colourful pencil icon instead of star */
    background-image: url('https://img.icons8.com/color/96/000000/pencil.png');
    animation: floatIcon5 18s ease-in-out infinite;
}

/* About section icons */
.icons-about .icon-books {
    top: 20%;
    left: 8%;
    background-image: url('https://img.icons8.com/color/96/000000/books.png');
    animation: floatIcon2 16s ease-in-out infinite;
}

.icons-about .icon-pencil {
    bottom: 12%;
    right: 12%;
    background-image: url('https://img.icons8.com/color/96/000000/pencil-tip.png');
    animation: floatIcon3 18s ease-in-out infinite;
}

/* About outline icons */
.icons-about .icon-user-outline {
    top: 10%;
    right: 18%;
    background-image: url('https://img.icons8.com/ios/96/000000/student-male.png');
    animation: floatIcon2 20s ease-in-out infinite;
}

/* Features / Advantage icons */
.icons-features .icon-puzzle {
    top: 18%;
    right: 10%;
    background-image: url('https://img.icons8.com/color/96/000000/puzzle.png');
    animation: floatIcon4 18s ease-in-out infinite;
}

.icons-features .icon-lightbulb {
    bottom: 16%;
    left: 10%;
    background-image: url('https://img.icons8.com/color/96/000000/idea.png');
    animation: floatIcon5 16s ease-in-out infinite;
}

/* Features outline icons */
.icons-features .icon-heart-outline {
    top: 12%;
    left: 16%;
    background-image: url('https://img.icons8.com/ios/96/000000/like--v1.png');
    animation: floatIcon1 20s ease-in-out infinite;
}

/* Programs section icons */
.icons-programs .icon-cubes {
    top: 22%;
    left: 6%;
    background-image: url('https://img.icons8.com/color/96/000000/toys.png');
    animation: floatIcon3 16s ease-in-out infinite;
}

.icons-programs .icon-globe {
    bottom: 10%;
    right: 10%;
    background-image: url('https://img.icons8.com/color/96/000000/globe-earth.png');
    animation: floatIcon2 18s ease-in-out infinite;
}

/* Programs outline icons */
.icons-programs .icon-calendar-outline {
    top: 8%;
    right: 20%;
    background-image: url('https://img.icons8.com/ios/96/000000/calendar--v1.png');
    animation: floatIcon4 22s ease-in-out infinite;
}

@keyframes floatIcon1 {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(10px, -18px, 0) rotate(3deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes floatIcon2 {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-14px, -22px, 0) rotate(-4deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes floatIcon3 {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(16px, 18px, 0) rotate(5deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes floatIcon4 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    25% { transform: translate3d(-8px, -16px, 0) rotate(-6deg); }
    50% { transform: translate3d(4px, -8px, 0) rotate(3deg); }
    75% { transform: translate3d(10px, 4px, 0) rotate(0deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes floatIcon5 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-10px, 14px, 0) rotate(6deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}