/*---------------------------------- ROOT VARIABLES ----------------------------------*/
    :root {
        --navy: rgb(21, 24, 87);
        --teal: rgb(82, 195, 196);
        --blue: rgb(58, 125, 178);
        --black: rgb(3, 0, 0);
        --dark-grey: rgb(109, 110, 113);
        --light-grey: rgb(188, 190, 192);
        --light-teal: rgba(82, 195, 196, 0.1);
    }

    :root {
        --font-heading: "Yanone Kaffeesatz", serif;
        --font-subheading: "Yanone Kaffeesatz", serif;
        --font-subheading2: "Freestyle Script", serif;
        --font-body: "Yanone Kaffeesatz", serif;
    }

    /*---------------------------------- TYPOGRAPHY ----------------------------------*/
    h1 {
        font-family: var(--font-subheading2);
        font-size: 3rem;
        transform: scaleX(1.1);
        font-weight: 560;
        letter-spacing: 1px;
        text-align: center;
        margin-bottom: 40px;
    }

    h2, h3 {
        font-family: var(--font-subheading);
        transform: scaleX(1.1);
        transform-origin: left center;
        font-weight: 700;
        letter-spacing: 0.8px;
    }

    body, p, a, input, textarea, button {
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.3px;
        line-height: 1.5;
    }

    /*---------------------------------- BASE ----------------------------------*/
    body {
        background-color: white;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
        font-family: var(--font-body);
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        text-align: center;
        margin-bottom: 60px;
    }

    .section-title h2 {
        color: var(--navy);
        font-size: 2.2rem;
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

    .section-title h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 2px;
        background-color: var(--teal);
    }

    .section-title p {
        max-width: 700px;
        margin: 20px auto 0;
        color: var(--dark-grey);
    }

/*---------------------------------- NAVIGATION BAR ----------------------------------*/
    header {
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
        margin: 0;
        background: white;
        width: 100%;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

    .nav-links {
        display: flex;
        list-style: none;
        gap: 30px;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--navy);
        font-weight: 800;
        transition: color 0.3s;
        position: relative;
        font-size: 1rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--teal);
    }

    .nav-links a.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--teal);
    }

    /* Default: hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--teal);
}

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }

    /*---------------------------------- MOBILE NAV ----------------------------------*/
    @media (max-width: 768px) {
        .navbar {
            padding: 15px;
        }

        .nav-links {
            display: none;
            position: absolute;
            top: 90px;
            left: 0;
            width: 100%;
            background: white;
            flex-direction: column;
            box-shadow: 0 5px 10px rgba(0,0,0,0.1);
            z-index: 1001;
        }

        .nav-links.open {
            display: flex;
        }

        .nav-links li {
            margin: 0;
            border-bottom: 1px solid #eee;
        }

        .nav-links a {
            display: block;
            padding: 15px;
        }

    .mobile-menu-btn {
        display: block !important;
    }
    }
    /*---------------------------------- HERO SECTION ----------------------------------*/
    .hero {
        position: relative;
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("pictures/HeroImage.png") no-repeat center center/cover;
        color: white;
        text-align: center;
        margin-top: 80px;
        width: 100%;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
    }

    .hero .container {
        position: relative;
        z-index: 1;
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 90px;
        color: white;
        font-weight: 400;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
    }

    .hero h2 {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto 1rem;
        color: white;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
        transform: scaleX(1.1);
        letter-spacing: 1.2px;
    }

    .btn {
        display: inline-block;
        background: var(--teal);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s;
        text-decoration: none;
        font-size: 0.8rem;
    }

    .btn:hover {
        background: var(--navy);
        transform: translateY(-2px);
    }

    .btn-outline {
        background: transparent;
        color: white;
        border: 2px solid white;
    }

    .btn-outline:hover {
        background: white;
        color: var(--teal);
    }

    /*---------------------------------- MOBILE FRIENDLY ----------------------------------*/
    @media (max-width: 1024px) {
        .hero h1 {
            font-size: 60px;
        }
        .hero h2 {
            font-size: 1.3rem;
            max-width: 600px;
        }
    }

    @media (max-width: 768px) {
        .hero {
            min-height: 70vh;
            padding: 100px 15px 60px;
        }
        .hero h1 {
            font-size: 30px;
        }
        .hero h2 {
            font-size: 1rem;
            max-width: 90%;
        }
        .btn {
            padding: 10px 25px;
            font-size: 0.8rem;
        }
    }

    @media (max-width: 480px) {
        .hero {
            min-height: 60vh;
            padding: 80px 10px 50px;
        }
        .hero h1 {
            font-size: 36px;
            line-height: 1.2;
        }
        .hero h2 {
            font-size: 1rem;
        }
        .btn {
            padding: 8px 20px;
            font-size: 1rem;
        }
    }

    /*---------------------------------- ABOUT SECTION ----------------------------------*/
    .about {
        background-color: white;
    }

    .about h1 {
        color: var(--blue);
    }

    .about-content {
        margin: 0 50px;
        color: var(--dark-grey);
        text-align: center;
        font-size: 20px;
    }

    .about-images {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 30px 0;
        flex-wrap: wrap;
    }

    .about-images img {
        width: 30%;
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    }

    .about-images img:hover {
        transform: scale(1.05);
        box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.5);
    }

    .btn {
        background: var(--blue);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 500;
        transition: background 0.3s;
        margin-top: 20px;
        font-size: 0.9rem;
    }

    .btn:hover {
        background: var(--dark-grey);
    }

    /*---------------------------------- MOBILE ABOUT ----------------------------------*/
    @media (max-width: 768px) {
        /* Base container for mobile */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}
        .about-content {
            margin: 0 20px;
            font-size: 16px;
        }

        .about-images {
            flex-direction: column;
            align-items: center;
        }

        .about-images img {
            width: 80%;
            margin-bottom: 20px;
        }
    }

    /*---------------------------------- PROGRAMS SECTION ----------------------------------*/
    .programs-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .program-card {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        padding: 30px;
        transition: all 0.3s ease;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .program-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .program-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-color: var(--teal);
    }

    .program-icon {
        width: 50px;
        height: 50px;
        background-color: var(--light-teal);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        color: var(--teal);
        font-size: 1.6rem;
    }

    .program-card h3 {
        color: var(--navy);
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .program-card p {
        color: var(--dark-grey);
        margin-bottom: 20px;
    }

    .program-card .btn {
        background: transparent;
        color: var(--teal);
        border: 2px solid var(--teal);
    }

    .program-card .btn:hover {
        background: var(--teal);
        color: white;
    }

    .programs-cta {
        text-align: center;
        margin-top: 50px;
    }

    /*---------------------------------- INITIATIVES SECTION ----------------------------------*/
#initiatives {
    background-color: #f0f7f7;
}

.initiatives-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.initiative-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center; /* Center all content in the card */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
}

.initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.initiative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--teal);
}

.initiative-card h3 {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Make heading take full width */
}

.initiative-card p {
    color: var(--dark-grey);
    line-height: 1.5;
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Make paragraph take full width */
}

/* Initiative Images - Centered for all devices */
.init-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.init-image img {
    width: 100%;
    max-width: 300px; /* Maximum width */
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto; /* Center the image */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Base container for mobile */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

    .initiatives-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .initiative-card {
        padding: 20px;
        text-align: center;
    }
    
    .init-image img {
        max-width: 100%; /* Allow image to be responsive on mobile */
        height: 180px;
        margin: 0 auto; /* Ensure centering on mobile */
    }
    
    .initiative-card h3 {
        font-size: 1rem;
    }
    
    .initiative-card p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .initiative-card {
        padding: 15px;
    }
    
    .init-image img {
        height: 160px; /* Slightly smaller height on very small screens */
    }
    
    .initiative-card h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .initiative-card p {
        font-size: 0.75rem;
    }
}

   /*---------------------------------- TESTIMONIALS ----------------------------------*/
.testimonials {
  background-color: white;
  text-align: center;
}

.testimonials h1 {
  color: var(--blue);
  margin-bottom: 40px;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  padding: 30px;
  transition: opacity 0.6s ease-in-out;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--dark-grey);
}

.testimonial-author {
  font-weight: 700;
  color: var(--navy);
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-grey);
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dot.active {
  background-color: var(--teal);
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
  z-index: 10;
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}


    /*---------------------------------- PARTNERSHIPS ----------------------------------*/
    .partnerships {
        background-color: #f9f9f9;
        text-align: center;
    }

    .partnerships h1 {
        color: var(--blue);
    }

    .partnership-benefits {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        margin: 40px 0;
    }

    .benefit-card {
        background: white;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s;
    }

    .benefit-card:hover {
        transform: translateY(-5px);
    }

    .benefit-card h3 {
        color: var(--teal);
        margin-bottom: 15px;
    }

    .benefit-card p {
        color: var(--dark-grey);
    }

/*--------------------------------------------ABOUT US----------------------------*/
/*---------------------------------- VISION MISSION OBJECTIVE SECTION ----------------------------------*/
    #visionmissionobjective {
        background-color: #f0f7f7;
        padding: 80px 0;
    }

    .vm-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 15px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .vm-card {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        padding: 40px 30px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .vm-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .vm-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-color: var(--teal);
    }

    .vm-icon {
        width: 60px;
        height: 60px;
        background-color: var(--light-teal);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 25px;
        color: var(--teal);
        font-size: 1.8rem;
    }

    .vm-card h1 {
        color: var(--navy);
        font-size: 1.8rem;
        margin-bottom: 20px;
        position: relative;
        display: inline-block;
    }

    .vm-card h1::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background-color: var(--teal);
    }

    .vm-card p {
        color: var(--dark-grey);
        line-height: 1.5;
        text-align: left;
        margin-bottom: 15px;
    }

    /*---------------------------------- MEET THE TEAM SECTION ----------------------------------*/
   #meettheteam {
    background-color: white;
    padding: 80px 0;
    text-align: center;
}

#meettheteam h2 {
    color: var(--navy);
    font-size: 3.3rem;
    margin-bottom: 40px;
}

/* Banner */
.aboutbanner {
    background-image: url("pictures/Collage 3.png");
    background-size: cover;
    background-position: center 10%;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}


.team-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.member {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.row-reverse {
    flex-direction: row-reverse;
}

.image-container {
    text-align: center;
    width: 30%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.image-container img {
    width: 100%;
    max-width: 250px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Ensure image is centered */
}

.image-container h4 {
    color: var(--navy);
    font-size: 1.1rem;
    margin: 15px 0 5px;
    width: 100%;
    display: block;
}

.image-container h4.role {
    color: var(--dark-grey);
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
    width: 100%;
    display: block;
    font-weight: normal;
}

.bio {
    width: 65%;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.7;
}

.bio p {
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    font-weight: bold;
    color: var(--navy) !important;
}


    /*---------------------------------- RESPONSIVE DESIGN ----------------------------------*/
    @media (max-width: 1024px) {
        .vm-container {
            grid-template-columns: 1fr;
            max-width: 800px;
        }
        
        .member {
            flex-direction: column;
            text-align: center;
        }
        
        .row-reverse {
            flex-direction: column;
        }
        
        .image-container, .bio {
            width: 100%;
        }
        
        .bio {
            text-align: center;
        }
    }

    @media (max-width: 768px) {
        #meettheteam h1 {
            font-size: 2.6rem;
        }
        
        .aboutbanner {
        background-size: contain; /* Changed from cover to contain */
        background-repeat: no-repeat;
        background-position: center center;
        height: 300px; /* Reduced height for mobile */
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
        
    /* Base container for mobile */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

        .vm-card {
            padding: 30px 20px;
        }
        
        .vm-card h1 {
            font-size: 1.6rem;
        }
        
        .footer-container {
            grid-template-columns: 1fr;
            text-align: center;
        }
        
        .social-icons {
            justify-content: center;
        }
    }

    /* Small mobile devices */
@media (max-width: 480px) {
    .aboutbanner {
        height: 250px; /* Further reduced height for very small screens */
    }
}


/*---------------------------------------------PROGRAMS PAGE-----------------------*/
/* Intro Section */
.intro-section {
    background-color: white;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    color: var(--dark-grey);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 40px;
    text-align: center;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    width: 100%;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.03);
}

/* Mission Section */
.mission-section {
    background-color: #f0f7f7;
}

.mission-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.mission-content p {
    color: var(--dark-grey);
    font-size: 1rem;
    line-height: 1.5;
}

/* Youth Interventions Section */
.youth-section {
    background-color: white;
}

.youth-content {
    max-width: 1000px;
    margin: 0 auto;
}

.youth-content h2 {
    text-align: center;
    color: var(--dark-grey);
    /*font-size: 1.5rem;*/
    margin-bottom: 40px;
    font-weight: 400;
}

.youth-content p {
    color: var(--dark-grey);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 40px;
    text-align: center;
}

/* Programs Section */
.programs-section {
    background-color: #f0f7f7;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.program-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--teal);
}

.program-card h3 {
    color: var(--blue);
    /*font-size: 1.8rem;*/
    margin-bottom: 20px;
}

.program-card p {
    color: var(--navy);
    line-height: 1.5;
    font-size: 1rem;
}

/* Certification Section */
.certification-section {
    background-color: white;
}

.certification-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.certification-content p {
    color: var(--dark-grey);
    font-size: 1rem;
    line-height: 1.5;
}

/* Careers Section */
.careers-section {
    background-color: #f0f7f7;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.career-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.career-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.career-box h3 {
    color: var(--blue);
    /*font-size: 1.5rem;*/
    margin-bottom: 20px;
}

.career-box img {
    height: 100px;
    margin-bottom: 20px;
    max-width: 100%;
}

.career-box p {
    color: var(--dark-grey);
    line-height: 1.5;
    font-size: 1rem;
}
/*---------------------------------- MOBILE RESPONSIVE ----------------------------------*/


/* Mobile margins - adjust for smaller screens */
@media (max-width: 768px) {
/* Base container for mobile */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

    .intro-section,
    .mission-section,
    .youth-section,
    .programs-section,
    .certification-section,
    .careers-section {
        margin: 0 20px;
    }
    
    .intro-content,
    .mission-content,
    .youth-content,
    .certification-content {
        padding: 0 5px;
    }

    
/* Base container for mobile */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Intro, Mission, Youth, Certification sections */
.intro-content,
.mission-content,
.youth-content,
.certification-content {
    padding: 0 10px;
    text-align: center;
}

/* Section Titles */
.section-title h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

/* H3 styling for proper wrapping */
.section-title h3 {
    font-size: 0.8rem;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 90%;
}

/* Image Galleries */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Programs & Careers Grids */
.programs-grid,
.careers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Cards */
.program-card,
.career-box {
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.program-card h3,
.career-box h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.program-card p,
.career-box p {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Adjust paragraphs for small screens */
.intro-content p,
.mission-content p,
.youth-content p,
.certification-content p {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
}

/* Optional: reduce header nav on small screens */
@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.2rem;
    }
    .section-title h3 {
        font-size: 0.75rem;
    }
    .program-card h3,
    .career-box h3 {
        font-size: 0.9rem;
    }
    .program-card p,
    .career-box p {
        font-size: 0.75rem;
    }
    .intro-content p,
    .mission-content p,
    .youth-content p,
    .certification-content p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    .image-gallery img {
        height: auto;
    }
    
    /* Adjust margins for very small screens if needed */
    .intro-section,
    .mission-section,
    .youth-section,
    .programs-section,
    .certification-section,
    .careers-section {
        margin: 0 15px;
    }
}

/*--------------------------------------------PARTNERS---------------------------*/
/* Content Sections */
        .content-section {
            display: flex;
            align-items: center;
            gap: 40px;
            margin-bottom: 60px;
            margin-left: 30px;
            margin-right: 30px;
        }

        .content-section.reverse {
            flex-direction: row-reverse;
        }

        .text-block {
            flex: 1;
        }

        .text-block h2 {
            color: var(--blue);
            font-size: 1.6rem;
            margin-bottom: 20px;
        }

        .text-block p {
            color: var(--dark-grey);
            line-height: 1.5;
            margin-bottom: 20px;
            font-size: 1rem;
        }

        .text-block1 {
            flex: 1;
        }

        .text-block1 h2 {
            color: var(--blue);
            font-size: 1.6rem;
            margin-bottom: 20px;
            text-align: right;
            margin-right: 90px;
        }

        .text-block1 p {
            color: var(--dark-grey);
            line-height: 1.5;
            margin-bottom: 20px;
            font-size: 1rem;
            text-align: right;
        }

        .text-icon {
            width: 100px;
            height: 100px;
            color: var(--blue);
            font-size: 1.8rem;
            margin-top: 120px;
        }
        /* Partnership Benefits */
        .benefits-section {
            background-color: #f0f7f7;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
        }

        .benefit-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            padding: 40px 30px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .benefit-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .benefit-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background-color: var(--teal);
        }

        .benefit-icon {
            width: 60px;
            height: 60px;
            background-color: var(--light-teal);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: var(--teal);
            font-size: 2rem;
        }

        .benefit-card h3 {
            color: var(--blue);
            font-size: 1.6rem;
            margin-bottom: 20px;
        }

        .benefit-card p {
            color: var(--dark-grey);
            line-height: 1.5;
        }
/*---------------------------------- RESPONSIVE DESIGN ----------------------------------*/

/* Tablets */
@media (max-width: 1024px) {
    
    .content-section {
        flex-direction: column;
        text-align: center;
        margin: 0 20px 50px 20px;
    }

    .content-section.reverse {
        flex-direction: column;
    }

    .text-block1 h2,
    .text-block1 p {
        text-align: center;
        margin-right: 0;
    }

    .text-icon {
        margin: 20px auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Base container for mobile */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

    .content-section {
        margin: 0 15px 40px 15px;
        gap: 20px;
    }

    .text-block h2,
    .text-block1 h2 {
        font-size: 1.3rem;
    }

    .text-block p,
    .text-block1 p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .text-icon {
        font-size: 1.6rem;
        width: 60px;
        height: 60px;
        margin-top: 0;
    }

    .benefits-section {
        padding: 40px 15px;
    }

    .benefit-card {
        padding: 25px 20px;
    }

    .benefit-card h3 {
        font-size: 1.2rem;
    }

    .benefit-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Very Small Phones */
@media (max-width: 480px) {
    .text-block h2,
    .text-block1 h2 {
        font-size: 1.1rem;
    }

    .text-block p,
    .text-block1 p {
        font-size: 0.75rem;
    }

    .benefit-card {
        padding: 20px;
    }

    .benefit-card h3 {
        font-size: 1rem;
    }

    .benefit-card p {
        font-size: 0.75rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}


/*---------------------------------------------CONTACT PAGE-----------------------*/
.contact {
    padding: 80px 5%;
    background: white; /* keep overall background white */
    margin-top: 10px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--navy);
}

.section-title h2 {
    font-size: 2.3rem;
    color: var(--navy);
    font-family: var(--font-body);
}

/* Main contact container */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    margin-top: -10px;
}

.wide-text {
    display: inline-block;
    transform: scaleX(1.2); /* 1 = normal, >1 = wider */
    transform-origin: left center; /* optional: stretch from left side */
}


/* LEFT SIDE (blue background) */
.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--blue);
    color: white;
    padding: 50px;
}

.contact-info h2 {
    margin-bottom: 30px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.contact-info a {
    color: #f0f0f0;
    text-decoration: none;
    transition: 0.3s;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details i {
    margin-right: 15px;
    font-size: x-large;
    margin-top: 0px;
}

.contact-info .map {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* RIGHT SIDE (white background with overlay + white text) */
.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-form * {
    position: relative;
    z-index: 1;
}

.contact-form h2 {
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--blue);
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-grey);
    font-size: large;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--navy);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: large;
    background: transparent;
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ccc;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.btn-contact {
    background: var(--blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-contact:hover {
    background: var(--dark-grey);
}

/* Responsive */
@media (max-width: 768px) {
    /* Base container for mobile */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

    .contact {
        margin-top: 80px;
    }
    .contact-container {
        flex-direction: column;
    }
    .contact-info, 
    .contact-form {
        width: 100%;
    }
}

/*---------------------------------- FOOTER ----------------------------------*/
footer {
    background-color: var(--blue);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
}

.footer-column {
    text-align: left;
}

.footer-column h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--teal);
}

/* Contact info with icons */
.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-item i {
    color: white;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-word;
    flex: 1;
}

.contact-item a:hover {
    color: var(--teal);
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.footer-column ul li a:hover {
    color: var(--teal);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-media a:hover {
    background-color: var(--teal);
    transform: translateY(-3px);
}

.divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0 20px;
    width: 100%;
}

.copyright {
    text-align: center;
    color: white;
    font-size: 0.7rem;
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Tablet */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        margin-left: 0;
        padding: 0 20px;
    }
}

/* Mobile - keep 3 columns but adjust layout */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-left: 0;
        padding: 0 10px;
    }

    .footer-column {
        text-align: left;
        padding: 0 5px;
    }

    .footer-column h3 {
        font-size: 0.8rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .footer-column h3::after {
        left: 0;
        transform: none;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 10px;
        gap: 8px;
    }

    .contact-item i {
        margin: 0 6px 0 0;
        font-size: 0.9rem;
    }

    .contact-item a {
        font-size: 0.6rem;
    }

    /* Specific email styling for mobile */
    .email-address {
        font-size: 0.55rem;
        line-height: 1.2;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }

    .footer-column ul li a {
        font-size: 0.65rem;
    }

    .social-media {
        gap: 10px;
        margin-top: 15px;
    }

    .social-media a {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .copyright {
        font-size: 0.6rem;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 5px;
    }

    .footer-column h3 {
        font-size: 0.7rem;
    }

    .contact-item a {
        font-size: 0.55rem;
    }

    .email-address {
        font-size: 0.5rem;
    }

    .footer-column ul li a {
        font-size: 0.6rem;
    }
}