/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --font-primary: 'Inter', sans-serif;
    --color-purple: #6d28d9;
    --color-purple-dark: #4c0563;
    --color-yellow: #facc15;
    --color-pink: #fce7f3;
    --color-red: #ef4444;
    --color-white: #ffffff;
    --color-text-dark: #1f2937;
    --color-text-light: #f3f4f6;
    --primary-color: #ff6b00;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-light: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevents horizontal scrollbar */
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Image Reset - Critical for Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 60px 20px;
}

.container {
    max-width: 1400px;
    /* Standardized width */
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
a {
    color: inherit;
    text-decoration: none;
}

main {
    padding-top: 80px;
    /* Offset for fixed header */
}

.main-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    background-color: #fff9f9;
    color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

.logo img {
    height: 50px;
    content: url('../img/logo.png');
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin: 0 20px;
    position: relative;
}

.main-nav ul li a {
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    transform: none;
    background-color: var(--color-purple);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-nav ul li a:hover {
    color: #c445dd;
    /* Light purple */
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.programslist .programslist1 {
    display: none;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    opacity: 0;
    color: #000000;
    visibility: hidden;
    transition: top 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.programslist:hover .programslist1 {
    display: block;
    top: 100%;
    opacity: 1;
    visibility: visible;
}

.programslist1 ul {
    flex-direction: column;
}

.programslist1 ul li {
    margin: 0;
    width: 100%;
}

.programslist1 ul li a {
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
}

.programslist1 ul li a:hover {
    background-color: #f3e8ff;
    /* Light purple */
    color: var(--color-purple-dark);
}

.programslist1 ul li a i {
    margin-left: 8px;
}

.others .other-main {
    display: none;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: rgb(6, 6, 6);
    min-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: top 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.others:hover .other-main {
    display: block;
    top: 100%;
    opacity: 1;
    visibility: visible;
}

.other-main ul {
    display: flex;
    flex-direction: column;
}

.other-main ul li {
    margin: 0;
    width: 100%;
}

.other-main ul li a {
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
}

.other-main ul li a:hover {
    background-color: #f3e8ff;
    /* Light purple */
    color: var(--color-purple-dark);
}

.other-main ul li a i {
    margin-left: 8px;
}

/* Mobile Hamburger & Side Menu */
.menu-toggle {
    display: none;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.4s ease-in-out;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--color-purple);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 100px;
    overflow-y: auto;
}

.side-menu nav ul {
    display: flex;
    flex-direction: column;
}

.side-menu nav a {
    display: block;
    padding: 15px 30px;
    font-size: 1.2em;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Interaction */
#menu-toggle:checked~.side-menu {
    transform: translateX(0);
}

#menu-toggle:checked~.hamburger-menu .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

#menu-toggle:checked~.hamburger-menu .bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked~.hamburger-menu .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive Nav Breakpoint */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

/* =========================================
   3. HERO SECTION (Fixed Height)
   ========================================= */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    /* padding: 20px; */
    padding-top: 700px;
    text-align: left;
}

#hero .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.651);
    z-index: -1;
}

#hero .container {
    max-width: 1200px;
    position: absolute;
    left: 0;
    bottom: 40px;
}

#hero h1 {
    font-size: 8em;
    font-weight: 900;
    /* text-transform: uppercase; */
}

#hero .highlight {
    color: #c084fc;
    /* light purple */
}

#hero p {
    max-width: 600px;
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 700;
}

/* Hero Form */
.newsletter {
    margin-top: 2rem;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 4px;
    backdrop-filter: blur(5px);
    max-width: 450px;
    flex-wrap: wrap;
    /* Allows wrap on tiny screens */
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    outline: none;
    min-width: 200px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* LOWER SECTION: News Highlight */
.highlight-section {
    padding: 80px 10%;
    background-color: var(--section-bg);
}

.section-label {
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.highlight-container {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    min-height: 450px;
}

.highlight-image {
    flex: 1;
    background: url('../img/8506668.webp');
    /* Placeholder image */
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.highlight-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date {
    color: #888;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.highlight-title {
    font-size: 2.2rem;
    color: #9f57e7;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: fit-content;
    cursor: pointer;
}

h1::after,
h2::after,
h3::after,
h4::after,
h5::after,
h6::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background-color: #a33aff;
    /* Light Deep Purple */
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

h1:hover::after,
h2:hover::after,
h3:hover::after,
h4:hover::after,
h5:hover::after,
h6:hover::after {
    width: 100%;
}

.cta-button {
    display: inline-block;
    background-color: #000000;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    align-self: flex-start;
    transition: transform 0.3s, background 0.3s;
}

.cta-button:hover {
    background-color: #c084fc;
    transform: scale(1.05);
}

/* =========================================
   4. IMPACT SECTION (Responsive Grid)
   ========================================= */
#impact {
    background: linear-gradient(rgba(163, 58, 255, 0.521), rgba(163, 58, 255, 0.521)), url('../img/annie-spratt-feU8G7E5ODI-unsplash.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Fixed attachment can be buggy on mobile */
}

.impact-grid {
    display: grid;
    gap: 30px;
    max-width: 2009px;
    margin: 0 auto;
}

.impact-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.impact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.impact-card .count {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-purple);
    margin-top: 1rem;
}

/* =========================================
   5. SUMMER CAMP SECTION
   ========================================= */
#summercamp .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    #summercamp .container {
        grid-template-columns: 1fr 1fr;
    }
}

.text-content h2 {
    color: var(--color-red);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.register-btn {
    background-color: var(--color-purple);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-grid img {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* =========================================
   6. YOUTUBE SCROLLER
   ========================================= */
#youtube {
    background-color: #fce7f3;
    /* Light pink background */
}

#youtube h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
}

.youtube-scroller {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.youtube-scroller::-webkit-scrollbar {
    display: none;
}

.video-card {
    flex: 0 0 300px;
    /* Fixed width for scroller */
    padding: 15px;
    border-radius: 8px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card img {
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Background Utility Classes */
.bg-blue {
    background-color: #007BFF;
}

.bg-green {
    background-color: #28a745;
}

.bg-yellow {
    background-color: #ffc107;
    color: #000;
}

.bg-red {
    background-color: #dc3545;
}

.bg-indigo {
    background-color: #6610f2;
}

.bg-pink {
    background-color: #e300e7;
}

.bg-indigo1 {
    background-color: white;
    border: 2px solid #6610f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-indigo1 a {
    color: #6610f2;
    font-weight: bold;
}

/* =========================================
   7. INFINITE SCROLL
   ========================================= */

/* 1. The Container: Hides the mess and lines up the two lists */

.scroller {

    max-width: 100%;
    /* Adjust this width as needed */

    margin: 0 auto;
    /* Centers the box */

    overflow: hidden;
    /* Hides the scrollbar and extra content */

    display: flex;
    /* Forces the two lists to sit side-by-side */

    gap: 4rem;

    /* Optional: Adds a fade effect on the edges */

    mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);

    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);

}



/* 2. The Inner Lists: Holds the images and moves them */

.scroller__inner {

    display: flex;

    gap: 4rem;
    /* Space between images */

    padding-right: 1rem;
    /* CRITICAL: Adds space between List 1 and List 2 */



    /* The Animation */

    animation: scroll 10s linear infinite;

    /* 'linear' is important so it doesn't speed up or slow down */

}



/* Optional: Resize images so they fit nicely */

.scroller__inner img {

    max-width: 100px;

}



/* 3. The Animation Logic */

@keyframes scroll {

    to {

        /* Move the list to the left by 100% of its own width */

        transform: translateX(-100%);

    }

}

/* =========================================
   8. FOOTER
   ========================================= */
/* --- ORIGINAL FOOTER STYLES --- */
.footer {
    padding: 5vh 0 10vh 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1a1024;
    color: white;
}

.footer1 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 2px solid white;
    padding-bottom: 40px;
    width: 86%;
}

.logo1 {
    display: flex;
    align-items: flex-start;
}

.logo1 img {
    height: 80px;
    width: auto;
    /* Ensure aspect ratio */
}

.logo1 h4 {
    font-size: 6.5em;
    font-weight: 700;
    margin-left: 20px;
    line-height: 1;
    /* Fixes spacing */
}

.contact-bthn {
    width: 80%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 50px 0 80px 0;
}

.btn33,
.btn34 {
    height: 80px;
    width: 100%;
    max-width: 260px;
    background: transparent;
    color: white;
    border: 1px solid white;
    font-weight: 500;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    /* Centering text inside button */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn33 a,
.btn34 a {
    color: white;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn33:hover,
.btn34:hover {
    background-color: white;
    color: black;
}

.btn33:hover a,
.btn34:hover a {
    color: black;
}

.credentials {
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credentials p {
    font-size: 1em;
    font-weight: 400;
}

.links2 ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.links2 .wow {
    border-right: 1px solid blueviolet;
    padding-right: 20px;
}

.wow a {
    color: blueviolet;
}

.links2 ul li a {
    font-size: 1.1em;
    font-weight: 500;
    transition: .3s;
    color: white;
    /* Ensure visible on black */
}

.links2 ul li a:hover {
    color: blueviolet;
}

/* --- FOOTER RESPONSIVENESS (From Original) --- */
@media (max-width: 992px) {
    .logo1 h4 {
        font-size: 4em;
    }

    .contact-bthn {
        flex-direction: column;
        width: 90%;
        padding: 40px 0;
    }

    .btn33,
    .btn34 {
        font-size: 1em;
        height: 70px;
        max-width: 100%;
    }

    .credentials {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        text-align: center;
    }

    .links2 ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .logo1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo1 h4 {
        font-size: 3em;
        margin-left: 0;
        margin-top: 10px;
    }

    .footer1 {
        width: 90%;
        padding-bottom: 20px;
        justify-content: center;
        /* Center logo on mobile */
    }

    .links2 .wow {
        display: list-item;
        border-right: 1px solid blueviolet;
        padding-right: 20px;
    }
}

@media (min-width: 768px) {
    .credentials {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =========================================
   MOBILE CONTENT RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    #hero {
        height: 100vh;
        min-height: 540px;
        padding-top: 0;
    }

    #hero .container {
        width: 100%;
        max-width: 100%;
    }

    #hero h1 {
        font-size: 2.6rem;
    }

    #hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    .highlight-section {
        padding: 60px 6%;
    }

    .highlight-container {
        flex-direction: column;
        min-height: 0;
    }

    .highlight-image {
        min-height: 220px;
    }

    .highlight-content {
        padding: 30px 24px;
    }

    .highlight-title {
        font-size: 1.7rem;
    }

    .impact-card {
        padding: 30px 24px;
    }
}

@media (max-width: 420px) {
    #hero h1 {
        font-size: 2.1rem;
    }

    #hero p {
        font-size: 0.95rem;
    }
}