/* --- CSS VARIABLES & THEME --- */
:root {
    /* Palette inspired by top preschool brands */
    --primary: #FF6B6B;
    /* Coral Red */
    --secondary: #4ECDC4;
    /* Turquoise Teal */
    --accent: #FFE66D;
    /* Sunshine Yellow */
    --dark: #292F36;
    --text-gray: #555;
    --bg-light: #F9FBFD;
    --white: #ffffff;

    --font-head: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --radius-sm: 12px;
    --radius-md: 25px;
    --radius-lg: 40px;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--dark);
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-family: var(--font-head);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #3dbdb4;
    transform: translateY(-2px);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}
/* --- HEADER --- */
header{
background:var(--white);
padding:15px 0;
box-shadow:0 4px 20px rgba(0,0,0,0.05);
position:sticky;
top:0;
z-index:1000;
}

.nav-wrapper{
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:1.8rem;
font-weight:800;
color:var(--secondary);
display:flex;
align-items:center;
gap:8px;
}

.logo span{color:var(--primary);}

.nav-links{
display:flex;
gap:30px;
align-items:center;
}

.nav-links a{
font-weight:700;
color:var(--dark);
text-decoration:none;
}

.mobile-toggle{
display:none;
font-size:1.5rem;
cursor:pointer;
}

/* ================= MOBILE NAV ================= */
@media(max-width:992px){

.mobile-toggle{
    display:block;
    
}

.nav-wrapper{
    position:relative;
    
}

.nav-links{
position:absolute;
top:100%;
left:0;
width:100%;
background:#fff;
flex-direction:column;
align-items:center;
gap:20px;
padding:20px 0;

max-height:0;
overflow:hidden;
transition:0.4s;
}

.nav-links.active{
max-height:500px;
}
}


/* --- HERO SECTION --- */
/* Hero section */
.hero {
    min-height: 100vh;
    position: relative;
    
}

/* Carousel slides */
.carousel-item {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Dark overlay */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Wrapper and text above overlay */
.hero-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;          /* extra spacing from edges */
}

/* Hero text box */
.hero-text {
    max-width: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08); /* frosted overlay */
    padding: 40px 30px;       /* balanced padding top/bottom + sides */
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

/* Badge */
.hero-badge {
    background: linear-gradient(45deg,#FFE66D,#FF9F1C);
    color: #000;
    padding: 10px 25px;  /* slightly bigger */
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 25px;  /* more spacing below badge */
    box-shadow: 0 5px 15px rgba(255,230,109,0.5);
    font-size: 1.1rem;
}

/* Heading */
.hero-text h1 {
    font-size: 3rem;       /* slightly smaller for better fit */
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #FFD93D;
}

/* Paragraph */
.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: #f1f1f1;
}

/* Buttons */
.hero-cta-group .btn {
    margin: 8px 12px;
    min-width: 130px;
}
.btn{
    transition: 0.3s;
}
.btn:hover{
    transform: translateY(-3px) scale(1.05);
}
.hero::before{
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: #FF6B6B;
    border-radius: 50%;
    top: 80px;
    right: 80px;
    opacity: 0.25;
    filter: blur(90px);
}

.hero::after{
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: #4ECDC4;
    border-radius: 50%;
    bottom: 60px;
    left: 60px;
    opacity: 0.25;
    filter: blur(90px);
}

/* --- PROGRAMS (Kidzee Style Cards) --- */

 .programs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            font-size: 10px;
        }

        #programs {
            background: linear-gradient(to bottom, #ebeae9, #fefefe);
            padding: 60px 0;
        }
        
    /*    :root {*/
    /*    --shadow: 0 10px 30px rgba(0,0,0,0.1);*/
    /*    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);*/
    /*    --primary: #ff6b6b;*/
    /*    --secondary: #4ecdc4;*/
    /*}*/

    /* ============================================
       UPDATED PROGRAM CARD
       ============================================ */
    .program-card {
        width: 320px;
        background: #f6f5f4e8;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: all 0.3s ease;
        border-bottom: 6px solid transparent;
        display: flex;
        flex-direction: column;
        padding: 0;
        position: relative;   
             /* ← Added for badge positioning */
    }

    .program-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
        border-bottom-color: var(--primary);
    }

    /* ============================================
       CARD HEADER WITH BACKGROUND IMAGE
       ============================================ */
    .card-header-custom {
        position: relative;
        width: 100%;
        height: 220px;                /* ← Fixed height for image */
        background-size: cover;        /* ← Image cover karega */
        background-position: center;   /* ← Center mein image */
        background-repeat: no-repeat;  /* ← Repeat nahi hogi */
        border-radius: 20px 20px 0 0;  /* ← Top corners rounded */
        overflow: hidden;
        
        /* Fallback gradient agar image load nahi hoti */
        background-color: linear-gradient(135deg, #667eea, #764ba2);
    }

    /* Overlay for better text visibility */
    .card-header-custom::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
        pointer-events: none;
    }

    /* ============================================
       AGE BADGE
       ============================================ */
    .age-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: linear-gradient(135deg, var(--primary), #ff8e53);
        color: white;
        padding: 8px 18px;
        border-radius: 25px;
        font-size: 0.85rem;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
        z-index: 10;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    /* ============================================
       CARD CONTENT
       ============================================ */
    .card-content {
        padding: 25px;                /* ← Padding yahan di hai */
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .card-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
        text-align: center;
    }

    .card-description {
        color: #666;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
        text-align: center;
    }
            /* ============================================
        SLIDER / CAROUSEL ARROWS
     /* Timeline Reveal Animation */
.reveal-item {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}
.feature-card {
    background: #fff;
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #ffeaea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 22px;
    color: var(--primary);
}

.timeline-item {
    background: #fff;
    transition: 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-8px);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: #fff3f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 22px;
    color: var(--primary);
}
    
.slider-arrow {
    position: absolute;       /* ← absolute fix kar raha hai parent ke relative me */
    top: 50%;                 /* vertically center */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.4);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.slider-arrow-left {
    left: -50px;  /* ← card/image ke bahar space me */
}

.slider-arrow-right {
    right: -50px; /* ← card/image ke bahar space me */
}

/* Parent container ko bhi relative karo */
.program-card {
    position: relative;      /* ← arrows ke liye reference */
    overflow: visible;       /* arrows cut na ho */
}
/* Reveal Animation */
.reveal-card {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.reveal-card-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.reveal-card.active,
.reveal-card-left.active {
  opacity: 1;
  transform: translateX(0);
}
    .features-list li i {
        color: var(--secondary);
        margin-right: 10px;
        font-size: 1.1rem;
    }

    /* Enroll Button */
    .enroll-btn {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, var(--primary), #ff8e53);
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: auto;             /* ← Button bottom pe rahega */
    }

    .enroll-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    }

    /* ============================================
       IMAGE ERROR FALLBACK
       ============================================ */
    .image-error {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

    .image-error i {
        font-size: 3rem;
        margin-bottom: 10px;
        opacity: 0.8;
    }
        /* ==================== WHY US SECTION ==================== */
        .why-us {
            background: linear-gradient(135deg, #fff5f0, #ffeaea); /* Light playful background */
            padding: 80px 0;
            position: relative;
            font-family: 'Poppins', sans-serif;
        }

        .why-us .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .method-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .method-content h2 {
            font-size: 2.8rem;
            margin-bottom: 25px;
            color: #333;
            line-height: 1.2;
        }

        .method-content p {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 40px;
        }

        /* Feature List Cards */
        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .feature-list .f-item {
            display: flex;
            gap: 20px;
            padding: 20px 25px;
            background: #ffffff;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(203, 5, 5, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            align-items: center;
        }

        .feature-list .f-item:hover {
            transform: translateX(10px);
            box-shadow: 0 15px 25px rgba(223, 200, 49, 0.1);
        }

        /* Feature Icons */
        .f-icon {
            width: 50px;
            height: 50px;
            background: #ffd6d6; /* soft pink */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: #ff6f61;
            flex-shrink: 0;
        }
        .highlight-text 
        {
            padding: 10px 20px;
            border-radius: 14px;
            font-weight: 700;
            color: #f13873;
            text-align: center;
            display: inline-block;
        }


        /* Method Image */
        .method-img {
            text-align: center;
        }

    .method-img img {
        max-width: 100%;
        border-radius: 25px 0 25px 25px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        transform: rotate(-2deg);
        transition: transform 0.3s;
    }

    .method-img img:hover {
        transform: rotate(0deg) scale(1.05);
    }
/* ===== FORCE FLEX (override everything) ===== */


/* ===== FORCE 4 PER ROW ===== */
.fac-item {
  flex: 0 0 calc((100% - 90px) / 4); /* 4 per row */
  max-width: calc((100% - 90px) / 4);
  box-sizing: border-box;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .fac-item {
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
  }
}

@media (max-width: 768px) {
  .fac-item {
    flex: 0 0 calc((100% - 30px) / 2);
    max-width: calc((100% - 30px) / 2);
  }
}

@media (max-width: 480px) {
  .fac-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.gallery-img {
    border-radius: 15px;
    transition: 0.3s;
    height: 250px;
    object-fit: cover;
    width: 100%;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}


/* Tablet */
@media (max-width: 992px) {
   

    /* gallery responsive */
    .gallery-img {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    /* gallery mobile */
    .gallery-img {
        height: 200px;
        border-radius: 12px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 75%;
    }

    .close {
        font-size: 32px;
        top: 15px;
        right: 20px;
    }
}
}@media (max-width: 992px) {
    .gallery-img {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .gallery-img {
        height: 200px;
        border-radius: 12px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 75%;
    }

    .close {
        font-size: 32px;
        top: 15px;
        right: 20px;
    }
}
/* --- FOOTER --- */
        .main-footer
        {
            background: linear-gradient(135deg, #f6feda, #a3b4d1);
            color: #1b1a1a;
            padding-top: 60px;
            font-family: 'Poppins', sans-serif;
        }

        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            width: 90%;
            margin: auto;
            padding-bottom: 40px;
        }

        .footer-box h2,
        .footer-box h3 {
            margin-bottom: 20px;
        }

        .footer-logo {
            /* font-size: 28px; */
            color: #4ECDC4;
            font-weight: 600;
        }

        .footer-box p {
            line-height: 1.6;
            font-size: 14px;
        }

        .footer-box ul {
            list-style: none;
            padding: 0;
        }

        .footer-box ul li {
            margin-bottom: 12px;
        }

        .footer-box ul li a {
            color: #0c0c0c;
            text-decoration: none;
            transition: 0.3s;
        }

        .footer-box ul li a:hover {
            color: #63ebe0;
            padding-left: 10px;
        }

        .footer-box i {
            margin-right: -10px;
            color: #1585e6;
        }

        .footer-social {
            margin-top: 20px;
        }

        .footer-social a {
            display: inline-block;
            margin-right: 10px;
            width: 40px;
            height: 35px;
            line-height: 35px;
            text-align: center;
            background: #ffffff20;
            border-radius: 50%;
            color: #fff;
            transition: 0.3s;
        }

        .footer-social a:hover {
            background: #eada2d;
            color: #000;
        }

        .footer-bottom {
            text-align: center;
            padding: 15px 0;
            background: #00000030;
            font-size: 14px;
        }
        
            
        .timeline-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-icon {
  font-size: 2rem;
  color: #ff4757;
  margin-bottom: 0.5rem;
}

.timeline-item h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}
/* MOBILE RESPONSIVE FIX */

.logo{
    display:flex;
    align-items:center;
}

.logo-img{
    width:180px;
    height:auto;
}

@media(max-width:768px){

.logo{
    justify-content:center;
}

.logo-img{
    width:140px;
}

.hero-card,
.banner-content,
.slider-content{
    width:100%!important;
    max-width:100%!important;
    padding:20px!important;
}

.hero-section .btn{
    width:100%;
    margin-bottom:10px;
}
}

img{
    max-width:100%;
    height:auto;
}
/* ===== LOGO SIZE FIX ===== */
.logo-img{
    height:60px !important;
    width:auto !important;
}

/* MOBILE LOGO */
@media (max-width:768px){
    .logo-img{
        height:45px !important;
    }
}
/* ===== MOBILE RESPONSIVE FIX ===== */
body{
    overflow-x:hidden;
}

.container{
    width:95%;
    max-width:1200px;
    margin:auto;
}

@media(max-width:768px){

.hero{
    padding:40px 15px !important;
}

.hero h1{
    font-size:28px !important;
    line-height:1.3;
}

.hero p{
    font-size:16px !important;
}

.btn{
    display:block;
    width:100%;
    margin-bottom:10px;
}
}
/* ===== LOGO FIX FINAL ===== */

header{
    position:relative;
    z-index:1000;
    background:white;
}

.logo-img{
    position:relative !important;
    height:60px !important;
    width:auto !important;
}

.hero{
    padding-top:120px !important;
}

@media(max-width:768px){
.hero{
    padding-top:100px !important;
}
}
/* ===== FINAL HEADER + LOGO FIX ===== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    z-index:9999;
}

/* header height control */
.nav-wrapper{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:80px;
}

/* logo size control */
.logo-img{
    height:55px !important;
    width:auto !important;
}

/* hero ko header ke niche push karo */
.hero{
    margin-top:80px !important;
    padding-top:0 !important;
}

/* MOBILE FIX */
@media(max-width:768px){

.nav-wrapper{
    height:70px;
}

.logo-img{
    height:45px !important;
}

.hero{
    margin-top:70px !important;
}
}
/* ===== HEADER / NAVBAR FIX ===== */

.nav-wrapper{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* Logo size fix */
.logo-img{
    height:50px;
    width:auto;
}

/* Navbar links styling */
.nav-links a{
    margin:0 12px;
    text-decoration:none;
    color:#333;
    font-weight:600;
    font-size:16px;
}

.nav-links a:hover{
    color:#ff6b00;
}

/* Enroll button fix */
.btn-primary{
    padding:8px 16px;
    border-radius:6px;
    background:#ff6b00;
    border:none;
}

.btn-primary:hover{
    background:#e55d00;
}