/* Color Palette: cheerful kid-friendly colors — pink, blue, white, green */
:root {
    --pink: #FF69B4; /* Deep Pink */
    --light-pink: #FFC0CB; /* Light Pink */
    --blue: #4682B4; /* Steel Blue */
    --light-blue: #ADD8E6; /* Light Blue */
    --white: #FFFFFF;
    --green: #32CD32; /* Lime Green */
    --light-green: #90EE90; /* Light Green */
    --dark-text: #333;
    --light-text: #666;
    --border-color: #ddd;
}

/* Font: Friendly rounded headers + clean body text */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--dark-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    color: var(--blue);
    font-weight: 700;
}

/* General Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 60px 0;
    text-align: center;
}

section:nth-of-type(odd) { /* Adjusted for new sections */
    background-color: var(--white);
}

section:nth-of-type(even) { /* Adjusted for new sections */
    background-color: var(--light-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1em;
}

.primary-btn {
    background-color: var(--pink);
    color: var(--white);
}

.primary-btn:hover {
    background-color: #d85499; /* Slightly darker pink */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.secondary-btn {
    background-color: var(--green);
    color: var(--white);
    margin-left: 15px;
}

.secondary-btn:hover {
    background-color: #28a745; /* Slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Header and Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo img {
    height: 60px; /* Adjust logo size */
    animation: fadeIn 1s ease-out;
}

.navbar .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 30px;
}

.navbar .nav-links a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--pink);
}

/* Dropdown for Programs */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--dark-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    font-size: 0.95em;
}

.dropdown-content a:hover {
    background-color: var(--light-blue);
    color: var(--blue);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hamburger, .close-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 22px;
}

/* Hero Section */
.hero-section {
    background: url('./images/bg.jpg') no-repeat center center/cover;
    color: var(--white);
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: slideInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* Modal (Popup Form) */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.modal-content h2 {
    color: var(--pink);
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--blue);
}

.modal-content input,
.modal-content select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 5px rgba(255,105,180,0.5);
}

.modal-content .btn {
    margin-top: 20px;
    width: 100%;
}

.close-button {
    color: var(--light-text);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
}

.close-button i {
    font-size: 28px;
}

/* About Section */
.about-section p {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.1em;
    color: var(--light-text);
}

/* Session Sections (Online/Offline) */
.session-section {
    background-color: var(--white); /* Default white for odd sections */
    padding: 60px 0;
}

#offline-sessions {
    background-color: var(--light-blue); /* Light blue for even sections */
}

.session-section p {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.1em;
    color: var(--light-text);
}

.session-slide {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.session-slide img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.session-info h3 {
    color: var(--pink);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.session-info p {
    font-size: 1em;
    color: var(--light-text);
    margin-top: 0;
}

/* Impact Section */
.impact-section {
    background-color: var(--light-green);
    padding: 80px 0;
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 30px;
}

.stat-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    flex: 1 1 280px; /* Allows items to grow/shrink and wrap */
    max-width: 350px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-item i {
    font-size: 3.5em;
    color: var(--pink);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.2em;
    color: var(--blue);
    margin: 10px 0 5px;
}

.stat-item h3 .count-up {
    font-weight: bold;
    color: var(--pink); /* Make numbers stand out */
}


/* Programs Section */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Added style for images within program cards */
.program-card img {
    width: 100%; /* Make image fill the card width */
    height: 180px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 8px; /* Slightly rounded corners for images */
    margin-bottom: 15px; /* Space between image and text */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow for images */
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.program-card h3 {
    color: var(--pink);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.program-card p {
    color: var(--light-text);
    font-size: 0.95em;
    flex-grow: 1; /* Allows paragraph to take up available space */
    margin-bottom: 20px;
}

.program-card .register-btn {
    font-size: 0.9em;
    padding: 10px 20px;
    align-self: center;
}

/* Gallery Section */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* Team Section */
.team-section {
    background-color: var(--light-green);
    color: var(--dark-text);
}

/* Testimonials Section */
.testimonials-section p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.testimonials-section .btn {
    margin-top: 20px;
}

/* Collaborations Section */
.collaboration-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.collaboration-logos img {
    max-height: 80px;
    width: auto;
    filter: grayscale(80%); /* Optional: make logos look uniform */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.collaboration-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Footer / Contact Section */
.footer-section {
    background-color: var(--blue);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-section h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.footer-section .contact-info p {
    margin: 10px 0;
    font-size: 1.1em;
}

.footer-section .contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section .contact-info a:hover {
    color: var(--light-pink);
}

.footer-section .social-media {
    margin-top: 30px;
    margin-bottom: 30px;
}

.footer-section .social-media a {
    color: var(--white);
    font-size: 2.2em;
    margin: 0 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-section .social-media a:hover {
    transform: translateY(-5px);
    color: var(--light-pink);
}

.footer-section .google-map {
    margin-top: 40px;
}

.footer-section .google-map h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* WhatsApp Green */
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 2.5em;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Slider Specific Styles (General) --- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for the slider */
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background-color: var(--white);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%; /* Each slide takes full width of container */
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Team Slider Specifics */
.team-slide img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Circular images for team members */
    object-fit: cover;
    border: 5px solid var(--pink);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-slide h3 {
    color: var(--blue);
    margin-bottom: 5px;
    font-size: 1.8em;
}

.team-slide p {
    color: var(--light-text);
    font-size: 1.1em;
    margin-top: 0;
}

/* Testimonial Slider Specifics */
.testimonial-slide {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: none; /* Remove redundant shadow from container */
}

.testimonial-slide img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--green);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-slide p {
    font-size: 1.2em;
    color: var(--dark-text);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-slide h4 {
    color: var(--pink);
    font-size: 1.1em;
    margin-top: 0;
}

/* Slider Navigation Buttons (Arrows) */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background-color: rgba(0,0,0,0.7);
}

/* Individual slider navs for clarity */
.prev-team, .prev-testimonial, .online-prev, .offline-prev {
    left: 10px;
}

.next-team, .next-testimonial, .online-next, .offline-next {
    right: 10px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-bottom: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--pink);
    transform: scale(1.2);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 90px; /* Adjust based on logo height */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 20px 0;
        animation: fadeIn 0.3s ease-in-out;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .navbar .hamburger {
        display: block;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        background-color: var(--light-blue);
        border-radius: 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        margin: 10px 0;
        width: 80%;
    }

    .program-card {
        margin-bottom: 20px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .collaboration-logos {
        gap: 20px;
    }

    .collaboration-logos img {
        max-height: 60px;
    }

    /* Slider adjustments for mobile */
    .slider-nav {
        font-size: 1.2em;
        padding: 8px 12px;
    }

    .team-slide img {
        width: 150px;
        height: 150px;
    }

    .testimonial-slide img {
        width: 80px;
        height: 80px;
    }

    .testimonial-slide p {
        font-size: 1em;
    }

    /* Impact section mobile */
    .impact-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-item {
        max-width: 100%;
    }

    .program-card img {
        height: 150px; /* Adjust height for smaller screens */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar .logo img {
        height: 50px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .modal-content {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .stat-item h3 {
        font-size: 1.8em;
    }
    .stat-item i {
        font-size: 2.5em;
    }
}

/* Events Section */
.events-section {
    padding: 60px 0;
    background: var(--light-pink);
    text-align: center;
}

.events-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.event-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px;
    max-width: 320px;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-card img {
    width: 100%;
    max-width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.event-card h3 {
    margin: 12px 0 8px 0;
    color: var(--blue);
}

.event-card p {
    color: var(--light-text);
    font-size: 1em;
}

@media (max-width: 800px) {
    .events-grid {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .event-card {
        max-width: 90vw;
    }
}



.team-slide img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%; /* Makes the image circular */
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-bottom: 12px;
    background: #fff;
}