body, html {
    overflow-x: hidden;
}

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Fonts --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

@font-face {
    font-family: "Glacial";
    src: url("fonts/glacial-indifference.regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Glacial";
    src: url("fonts/glacial-indifference.bold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("fonts/poppins.regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("fonts/poppins.bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("fonts/poppins.semibold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Aileron";
    src: url("fonts/aileron.regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Aileron";
    src: url("fonts/aileron.bold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Aileron";
    src: url("fonts/aileron.semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Navbar --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/


body {
    background-color: white;
}

/* Navbar links */
.navbar-nav .nav-link {
    font-family: "Glacial", sans-serif !important;
    color: rgb(22, 112, 183);
    font-weight: bold;
    position: relative;   /* needed for the underline pseudo-element */
    margin-left: 1.2rem;    /* space between links */
    padding-bottom: 3px;  /* space for the underline */
    font-size: 17px;
}

/* Remove margin for first link */
.navbar-nav .nav-item:first-child .nav-link {
    margin-left: 0;
}

/* Hover underline using pseudo-element */
.navbar-nav .nav-link::after, 
.navbar-nav .dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;               /* thickness of the underline */
    background-color: rgb(117, 175, 219);
    transition: width 0.3s;
    display: block; 
    overflow: hidden;
}

/* Expand the line on hover */
.navbar-nav .nav-link:hover::after, 
.navbar-nav .dropdown-toggle:hover::after {
    width: 100%;               /* matches the text width */
}

.navbar {
    transition: all 0.3s; /* smooth animation for any change */
    position: fixed;       /* stays on top while scrolling */
    width: 100%;
    top: 0;                /* always visible */
    z-index: 1030;         /* on top of content */
    background-color: rgba(255,255,255,1); /* fully opaque initially */
}

/* Optional: add effect when scrolling, e.g., shadow or background change */
.navbar.scrolled {
    background-color: rgba(255,255,255,0.9) !important;  /* semi-transparent on scroll */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;  /* optional shrink */
}

.navbar .container-fluid {
    padding-left: 4rem;   /* increase as needed */
    padding-right: 5rem;  /* optional, adds right spacing */
}

@media (max-width: 768px) {  /* mobile */
    .navbar .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Ensure dropdown shows on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Dropdown menu styling */
.navbar-nav .dropdown-menu {
    background-color: rgb(22, 112, 183, .92);
    font-family: 'Glacial', sans-serif;
    padding: 0;
    border: none;
    min-width: 200px; /* optional */
    border-radius: 0;
    position: relative;       /* needed for pseudo-element */
    z-index: 1040;
    letter-spacing: 1px;
}

/* Dropdown items with separators */
.navbar-nav .dropdown-menu .dropdown-item {
    color: white;
    padding: 0.75rem 1.5rem;
    position: relative;       /* needed for pseudo-element */
    z-index: 1041;
}

/* Add pseudo-element as separator */
.navbar-nav .dropdown-menu .dropdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.5rem;             /* same as horizontal padding */
    right: 1.5rem;
    bottom: 0;
    height: 1px;              /* thickness */
    background-color: white;   /* visible white line */
    z-index: 1042;
}

/* Hover effect */
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.03);
    text-decoration: none;
    z-index: 1042;
}

.navbar-nav .dropdown-toggle::after {
    display: none;
}



/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Banner --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

.homepage-banner {
    width: 100%;
    height: 100vh; /* full viewport height */
    background-image: url('images/banner.jpg');
    background-size: cover;       /* fills container, crops excess */
    background-position: center;  /* centers image */
    position: relative;           /* for overlay text */
}

/* Optional dark overlay */
.homepage-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4); /* adjust darkness */
}

.homepage-banner .banner-text {
    position: absolute;
    bottom: 20px; 
    left: 20px;                /* align the box from the left */
    width: 70vw;               /* box takes 70% of viewport width */
    max-width: 1200px;         /* prevent it from being too wide on large screens */
    padding: 1rem 2rem;        /* space inside the box */
    color: white;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    border-radius: 10px;       /* rounded corners */
    text-align: left;          /* left-align text */
}

@media (max-width: 500px) {
    .homepage-banner .banner-text {
        font-size: clamp(1.8rem, 4vw, 2.5rem); /* smaller on mobile */
        padding: 0.8rem 1rem;                  /* reduce padding */
        width: 90vw;                           /* take more width if needed */
        left: 5%;                              /* slightly inset from edge */
        bottom: 10px;                          /* adjust vertical position */
    }
}

@media (max-width: 500px) {
    .impact-heading {
        width: 90%;
        margin: auto;
    }
}

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Impact --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

/* Impact Section */
.impact-section {
    margin-top: 3rem;
}

.impact-heading {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    color: rgb(0, 50, 125);
    text-align: center;
}

/* Image container */
.impact-images {
    display: flex;
    width: 100%;
    height: 70vh;
}

/* Each image wrapper */
.impact-item {
    position: relative;
    width: 33.33%;
    display: block;
    overflow: hidden;
    cursor: pointer;
}

/* Image style */
.impact-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s;
}

/* Dark overlay on hover */
.impact-item:hover img {
    filter: brightness(70%);
    transform: scale(1.02); /* subtle zoom */
}

/* Text overlay */
.impact-text {
    position: absolute;
    bottom: 10; /* align at bottom third */
    left: 0;
    width: 100%;
    padding: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    font-size: 3rem;
    line-height: 1.1;      /* decrease line spacing */
    text-align: left;      /* left-align text */
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

/* Show text on hover */
.impact-item:hover .impact-text {
    opacity: 1;
}

/* MOBILE: stack vertically */
@media (max-width: 768px) {
    .impact-images {
        flex-direction: column;
        height: auto;
    }

    .impact-item {
        width: 100%;
        height: 50vh;
    }

    .impact-item img {
        height: 100%;
    }

    .impact-text {
        font-size: 2rem;
    }

    .impact-heading {
    font-size: 2rem;
}

.impact-item .impact-text {
    opacity: 1;
}

}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Vision/Mission --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/


/* Base two-column layout */
.two-col-section {
    display: flex;
    width: 100%;
    padding: 4rem 8%;
    align-items: center;
}

/* Backgrounds */
.section-blue {
    display: flex;
    justify-content: space-between; /* pushes left + right columns apart */
    align-items: center;
    background-color: rgb(24, 109, 175);
    color: white;
}

.section-white {
    background-color: white;
}

/* Columns */
.two-col {
    width: 50%;
    padding: 2rem;
}

/* Headings (Poppins) */
.section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.section-blue .right {
    display: flex;
    justify-content: flex-end; /* positions the heading on the right */
}

.section-blue .right .section-heading {
    text-align: center;
    padding-right: 8rem;   /* adjust as needed */
}

.section-white .left {
    display: flex;
    flex: 0 0 45%;     /* heading column gets 30% width */
    justify-content: flex-start; /* positions heading on left */
}

.section-white .right {
    flex: 0 0 55%;     /* text column gets 70% width */
}

.section-white .left .section-heading {
    color: rgb(0, 50, 125);
    text-align: center;
    padding-left: 3rem;   /* adjust as needed */
}

/* Paragraph text (Aileron) */
.section-text {
    font-family: 'Aileron', sans-serif;
    font-size: 1.3rem;
    line-height: 1.5;
}


/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .two-col-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
    }

    .two-col {
        width: 100%;
        padding: 1.5rem 0;
        flex: 1 1 100%;     /* allow column to take full width */

        /* Fix for center alignment */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; 
    }

        /* Force headings/text back to centered alignment */
    .section-blue .right,
    .section-blue .left,
    .section-white .left,
    .section-white .right {
        flex: 1 1 100% !important;   /* full width */
        justify-content: center !important;  /* horizontal centering */
        align-items: center !important;      /* vertical stacking centered */
        text-align: center !important;
    }

    .section-blue .right .section-heading,
    .section-white .left .section-heading {
    padding-right: 0;   /* adjust as needed */
    padding-left: 0;
}

    .section-heading {
        font-size: 2.2rem;
        padding: 0;
        text-align: center !important;
    }

    .section-text {
        font-size: 1.1rem;
        text-align: center !important;
    }
}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Our Programs --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

/* Add padding to page edges */
.our-programs {
    padding: 0 2rem; /* 2rem left/right padding */
    text-align: center;
}

/* Grid layout */
.programs-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;   /* optional: limit content width */
    margin: 0 auto;      /* center grid in page */
}

/* Columns: equal width except first column can accommodate stacked cards */
.program-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;         /* all columns flexible, equal width */
    min-width: 200px;
}

/* Individual card styling */
.program-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    width: 100%;
    margin-bottom: 1rem; /* spacing between stacked cards */
}

.program-card:hover {
    transform: scale(1.03);
    filter: brightness(0.85);
}

/* Image styling */
.program-card img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}

.program-title {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    color: rgb(120, 48, 53);
}

/* Mobile styles: screens smaller than 768px */
@media (max-width: 768px) {
    .our-programs {
        padding-left: 2rem;   /* padding from left edge */
        padding-right: 2rem;  /* padding from right edge */
    }

    .programs-grid {
        flex-direction: column;  /* stack columns vertically */
        gap: 1.5rem;             /* gap between columns */
        align-items: center;     /* center columns horizontally */
    }

    .program-column {
        width: 100%;             /* make each column full width */
        min-width: auto;         /* reset min-width if previously set */
        max-width: 85%;         /* ensure no column exceeds screen width */
    }

    .program-card {
        width: 100%;             /* ensure card takes full column width */
        margin-bottom: 1rem;     /* gap between stacked cards */
    }

    .program-title {
        font-size: 1.2rem;       /* slightly smaller for mobile */
    }


}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Testimonials --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

.testimonials {
    padding: 4rem 2rem;
    font-family: 'Poppins', sans-serif;
    margin-top: 4rem; 
}

.container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left column */
.testimonials-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.testimonials-left h2 {
    color: rgb(0, 50, 125);
    font-weight: bold;
    text-align: left;
    font-size: 3.5rem;
    line-height: 1; /* decrease line spacing */
}

/* Right column */
.testimonials-right {
    flex: 2;
    position: relative;
}

/* Each testimonial */
.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Show active testimonial */
.testimonial.active {
    opacity: 1;
    position: relative;
}

/* Quote images */
.quote-start img {
    width: 60px;
    display: block;
    margin-bottom: 0.5rem;
    margin-left: 3rem;    /* push rightwards from left edge */
}

.quote-end {
    display: flex;
    justify-content: flex-end;  /* push image to the right */
}

.quote-end img {
    width: 60px;
    display: block;
    margin-top: 0.5rem;
    margin-right: 3rem;    /* push rightwards from left edge */
}

/* Testimonial text */
.testimonial-text {
    color: rgb(144, 156, 47);
    font-family: 'Poppins', sans-serif;
    font-weight: bold; 
    font-size: 1.7rem;
    margin: 0.5rem auto;       /* vertical 0.5rem, horizontal auto */
    padding-left: 1rem;   /* left padding */
    padding-right: 1rem;  /* right padding */
    width: 70%;               /* 70% of the parent container */
    text-align: center;         /* optional: align text to left */
    line-height: 1.2; /* decrease line spacing */
}

/* Name */
.testimonial-name {
    text-align: center;                /* center text inside the box */
    font-family: 'Poppins', sans-serif; 
    font-weight: bold;                 
    font-style: italic;                
    color: rgb(24, 109, 175);         
    margin: 1rem auto 0 auto;          /* 1rem top padding, auto horizontal to center box */
    display: block;                     /* ensure margins work correctly */
    font-size: 1.2rem;
    width: 100%;
}

/* Photo */
.testimonial-photo img {
    display: block;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0.5rem auto;       /* vertical 0.5rem, horizontal auto */
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;   /* stack left and right columns vertically */
        gap: 2rem;                /* keep some space between them */
    }

    .testimonials-left,
    .testimonials-right {
        display: flex;     /* enable flex for alignment */
        flex-direction: column;
        align-items: center;   /* center all child content horizontally */
        text-align: center; 
    }

    .testimonials-left h2 {
        font-size: 2.5rem;        /* scale heading for smaller screens */
        text-align: center;
    }

    .testimonial-text {
        width: 90%;               /* make testimonial text wider on small screens */
    }
}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Events & Engagements --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

.events-section {
    background-color: rgb(248, 247, 242);
    padding: 4rem 2rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.events-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    width: 30%;
    text-align: left;
}

.event-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card img:hover {
    transform: scale(1.03);  /* subtle zoom */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-date {
    color: rgb(80, 80, 80);
    margin-top: 0.7rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.event-title {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin-top: 0.3rem;
    font-size: 1.5rem;
}

.event-link {
    color: rgb(120, 48, 53);
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin-top: 0.3rem;
    display: inline-block;
    transition: transform 0.25s ease;
}

.event-link:hover {
    transform: scale(1.03);
    text-decoration: underline;
}

.events-button-wrapper {
    margin-top: 2.5rem;
}

.events-learn-more {
    display: inline-block;
    text-decoration: none;   /* remove underline */
    background-color: rgb(0, 53, 122);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.events-learn-more:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .events-container {
        flex-direction: column;
        align-items: center;  /* center cards horizontally */
        gap: 2rem;            /* space between stacked cards */
    }

    .event-card {
        width: 90%;           /* make each card almost full width */
        text-align: left;     /* keep text left-aligned inside card */
    }

    .event-card img {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }
}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Footer --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

/* Footer styles */
.site-footer {
    background-color: rgb(22, 112, 183);
    color: white;
    padding: 4rem 2rem 4rem 2rem; /* more padding on right */
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    font-family: 'Aileron', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 220px; /* responsive minimum width */
}

/* Column 1: Logo + Button stacked vertically */
.footer-column:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center items horizontally */
    text-align: center;    /* center text inside */
}

/* Column 4: Socials stacked vertically */
.footer-column:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* icons stacked under heading */
}

.footer-logo {
    width: 240px;
    margin-bottom: 1rem;
}

.footer-button {
    display: inline-block;
    background-color: white;
    color: black;
    padding: 0.7rem 3rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.25s ease, text-decoration 0.25s ease;
    margin-bottom: 1rem;
    border: none;
}

.footer-button:hover {
    transform: scale(1.05);
    text-decoration: underline;
}

.footer-column h4 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.footer-links li {
    margin-bottom: 0.3rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: text-decoration 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
    text-decoration: underline;
    transform: scale(1.02);
}

/* Contact paragraph */
.footer-column p {
    margin: 0.5rem 0 1rem 0;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    margin-top: 0.5rem;
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 35px;
    height: 35px;
    transition: transform 0.25s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

footer h4 {
    font-size: 1.3rem; /* decrease as needed */
    margin-bottom: 1.3rem !important;
}

.site-footer,
.site-footer a,
.site-footer p,
.site-footer li {
    text-align: left; /* or whatever alignment you want */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .footer-column {
        width: 100%;
        flex: 1 1 10px; /* responsive minimum width */
    }

    .footer-logo {
        margin-bottom: 1rem;
    }

    .footer-button {
        margin-bottom: 2rem;
    }
    .site-footer {
    padding: 4rem 5rem 4rem 4rem; /* more padding on right */
    }
}

.popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    max-width: 600px;
    min-width: 280px;
    background-color: rgba(24, 109, 175, 0.95);
    border-radius: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Glacial', sans-serif;
    color: #fff;
    padding: 1.5rem;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.popup-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.popup-form h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.popup-form label {
    margin: 0.5rem 0 0.2rem;
    font-size: 0.95rem;
}

.popup-form input,
.popup-form textarea {
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    width: 100%;
}

.popup-form textarea {
    resize: vertical;
}

.popup-form button {
    padding: 0.7rem;
    border-radius: 10rem;
    border: none;
    background-color: #fff;
    color: rgb(24, 109, 175);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    width: 50%;
    margin: 0 auto;
}

.popup-form button:hover {
    background-color: #ccc;
}
