﻿/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    badding-bottom: 20px;
}

body {
    font-family: Metropolis Medium, sans-serif;
}

/* Header Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Logo */
.logo img {
    height: 80px;
}

/* Navbar */
#navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    #navbar ul {
        display: flex;
        list-style: none;
        margin-top: 33px;
    }



        #navbar ul li {
            margin: 0;
        }

    #navbar a {
        font-weight: 500;
        font-size: large;
        color: #b22b2f;
        text-decoration: none;
        padding: 10px 9px;
    }

        #navbar a:hover {
            background-color: #f0f0f0;
        }

        #navbar a.active {
            border-bottom: 2px solid #b22b2f;
        }

@media (max-width: 1024px) {
    #navbar a {
        font-size: 15px;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

section.section.section-what-do {
    background-color: #e18f8f1f;
}

.hamburger div {
    width: 32px;
    height: 5px;
    background: #333;
}

/* Mobile View (≤1020px) */
@media (max-width: 1020px) {
    #navbar {
        display: none;
        position: absolute;
        top: 64px;
        right: 0px;
        background-color: #ffffffcc;
        width: 289px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

        #navbar.show {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        #navbar ul {
            flex-direction: column;
            width: 100%;
        }

            #navbar ul li {
                width: 100%;
            }

    .hamburger {
        display: flex;
    }

    #navbar a {
        padding: 0px 20px;
        text-align: left;
        width: 100%;
    }
}

/* Desktop View (≥1026px) */
@media (min-width: 1026px) {
    .hamburger {
        display: none;
    }
}

/* Font size adjustments at different breakpoints */
/* Ordered from largest to smallest for proper cascading */

@media (max-width: 768px) {
    #navbar a {
        font-size: 20px;
    }
}

@media (max-width: 425px) {
    #navbar a {
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    #navbar a {
        font-size: 18px;
    }
}


section {
    scroll-margin-top: 80px; /* to match or exceed your header height */
}
/* ======================================================================
  Home Section CSS
==========================================================================*/
.home-section {
    height: auto;
    padding-bottom: 20px;
}
/* Unique custom button styles */
/* Base style (default) */
.custom-btn {
    background-color: #b1282e;
    color: #fff;
    padding: 4px 6px;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 10px;
    width: 240px;
    text-align: center;
}

/* For screens up to 768px */
@media (max-width: 768px) {
    .custom-btn {
        font-size: 1.1rem;
        width: 180px;
    }
}

/* For screens up to 425px */
@media (max-width: 425px) {
    .custom-btn {
        font-size: 0.9rem;
        width: 147px;
    }
}

/* For screens up to 375px */
@media (max-width: 375px) {
    .custom-btn {
        font-size: 0.8rem;
        width: 133px;
    }
}

/* For screens up to 320px */
@media (max-width: 320px) {
    .custom-btn {
        font-size: 0.6rem;
        width: 110px;
    }
}



.custom-btn:hover {
    background-color: #8e1f26;
    transform: scale(1.05);
    cursor: pointer;
}

/* Carousel height and image responsiveness */
.carousel-inner img {
    max-height: 850px;
    object-fit: cover;
}

/* Centering button container */
.carousel-buttons {
    text-align: center;
    margin-top: 20px;
}


/* =========================================================================================================
  About Us Section
====================================================================================================*/
/* SECTION WRAPPER */
.about-section {
    padding: 1px 10px;
    background-color: #f0f4f8;
}

/* HEADER */
.about-header {
    font-size: 2.5rem;
    color: #b1282e;
    margin: 2rem auto 1.25rem auto;
    font-weight: 700;
    text-align: justify;
    position: relative;
    padding-bottom: 5px;
    max-width: 1200px;
    padding-top: 0px;
}

    .about-header::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 178px;
        border-bottom: 3px solid #d1a550;
    }

/* HEADER RESPONSIVE */
@media (max-width: 768px) {
    .about-header {
        font-size: 2rem;
    }

        .about-header::after {
            width: 140px;
        }
}

@media (max-width: 425px) {
    .about-header {
        font-size: 1.8rem;
    }

        .about-header::after {
            width: 130px;
        }
}

@media (max-width: 375px) {
    .about-header {
        font-size: 1.6rem;
    }

        .about-header::after {
            width: 110px;
        }
}

@media (max-width: 320px) {
    .about-header {
        font-size: 1.4rem;
    }

        .about-header::after {
            width: 100px;
        }
}

/* CONTAINER */
.about-container {
    max-width: 1200px;
    margin: auto;
}

/* FLEX SECTION: video left, cards right */
.about-section-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* VIDEO */
.about-video-container {
    flex: 2; /* previously 1 */
    max-width: 800px; /* was 502px */
    text-align: center;
}

.about-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 769px) and (max-width: 1100px) {
    .about-section-flex {
        flex-direction: column !important;
        align-items: center !important;
    }

    .about-video {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    .about-video-container {
        width: 100% !important;
        max-width: 800px !important;
    }

    .about-cards-column {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 900px !important;
        margin-top: 20px !important;
        flex-wrap: nowrap !important;
    }

    .about-card {
        flex: 0 0 45% !important;
        max-width: 400px !important;
        width: auto !important;
    }

    .icon-left {
        width: 60px !important;
        height: 60px !important;
    }

    .about-text h3 {
        font-size: 1.1rem !important;
    }

    .about-text p {
        font-size: 0.95rem !important;
    }
}


/* CARD COLUMN */
.about-cards-column {
    flex: 1; /* smaller column */
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 250px; /* reduce slightly */
}

/* INDIVIDUAL CARD */
.about-card {
    display: flex;
    padding: 10px;
    border-radius: 10px;
    background-color: #FFF;
    /*background-color: #b1282e;*/
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: justify;
}

/* CARD INNER: icon left, text right */
.about-card-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.icon-left {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
}

.about-text {
    flex: 1;
}

    .about-text h3 {
        font-size: 1.5rem;
        color: #000;
        margin: 0 0 10px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        color: #000;
    }

/* ========== RESPONSIVE STYLES ========== */

@media(max-width:1024px) {
    .about-video {
        width: 100%;
        height: auto;
        box-shadow: none;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .about-section-flex {
        flex-direction: column;
        align-items: center;
    }

    .about-video-container,
    .about-cards-column {
        width: 100%;
        max-width: 100%;
    }

    .about-video {
        height: auto;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .about-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .icon-left {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }
}


/* ========================================================================================
  What We Do Section
=============================================================================================*/
.what-we-do-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    color: #a93341;
    font-size: 2rem;
    margin-bottom: -20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.foundation-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
    padding: 0 15px;
}

.foundation-name {
    color: #4d5c6f;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    align-items: center;
    background: linear-gradient(62deg, rgb(136 36 39) 45% 45%, rgb(173 13 13 / 90%) 68%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 15px; /* consistent gap between logo and content */
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.service-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

    .service-logo img {
        width: 65px;
        height: 65px;
        object-fit: contain;
        border-radius: 4px;
        display: block;
    }

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-description {
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .foundation-intro {
        font-size: 1rem;
    }

    .service-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .service-logo {
        margin-bottom: 0;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }
}

/* Small tablet/large phone - 425px and below */
@media (max-width: 425px) {
    .section-title {
        font-size: 1.6rem;
    }

    .foundation-intro {
        font-size: 0.95rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .service-card {
        padding: 7px;
    }
}

/* Phone - 375px and below */
@media (max-width: 375px) {
    .section-title {
        font-size: 1.4rem;
    }

    .foundation-intro {
        font-size: 0.9rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .service-card {
        padding: 5px;
    }
}

/* Small phone - 320px and below */
@media (max-width: 320px) {
    .section-title {
        font-size: 1.2rem;
    }

    .foundation-intro {
        font-size: 0.85rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .service-card {
        padding: 3px;
    }
}

/*============================================================================
    SECOND WHAT WE DO SECTION 
    =============================================================================
*/
.wwd-section-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wwd-left-image {
    flex: 1;
    min-width: 300px;
    height: 460px;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    margin: 16px;
    border-radius: 10px;
}

.wwd-right-accordion {
    flex: 1;
    padding: 15px;
}

.wwd-accordion-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media(max-width:340px) {
    .wwd-accordion-item {
        width: 240px;
    }
}


.wwd-accordion-header {
    background: #b1282e;
    color: #ffffff;
    padding: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

    .wwd-accordion-header::after {
        content: "▼";
        font-size: 0.8rem;
        position: absolute;
        right: 20px;
    }

.wwd-accordion-item.active .wwd-accordion-header::after {
    content: "▲";
}

.wwd-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .wwd-header-content img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

.wwd-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #b1282e;
    padding: 0 20px;
}

    .wwd-accordion-content p {
        padding: 15px 0;
        margin: 0;
        color: #ffffff;
    }

.wwd-accordion-item.active .wwd-accordion-content {
    max-height: 200px;
}

@media (max-width: 768px) {
    .wwd-section-container {
        flex-direction: column;
    }

    .wwd-left-image {
        height: 300px;
    }
}




/*= ===========================================================================
our incubatees section

============================================================================*/
#incubatees-2 {
    padding: 0px 25px 0px 25px;
}

@media(max-width:768px) {
    #incubatees-2 {
        padding: 0;
    }
}

.incubatees-heading {
    font-size: 2.5rem;
    color: #b1282e;
    margin: 2rem auto 1.25rem auto;
    font-weight: 700;
    .incubatees-heading text-align: justify;
    position: relative;
    padding-bottom: 0px;
    max-width: 1200px;
    padding-top: 24px;
}

@media(max-width:768px) {
    .incubatees-heading {
        padding-top: 0px
    }
}

.incubatees-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 280px;
    border-bottom: 3px solid #d1a550;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .incubatees-heading {
        font-size: 2rem;
    }

        .incubatees-heading::after {
            width: 230px;
        }
}

@media (max-width: 425px) {
    .incubatees-heading {
        font-size: 1.8rem;
    }

        .incubatees-heading::after {
            width: 200px;
        }
}

@media (max-width: 375px) {
    .incubatees-heading {
        font-size: 1.6rem;
    }

        .incubatees-heading::after {
            width: 177px;
        }
}

@media (max-width: 320px) {
    .incubatees-heading {
        font-size: 1.4rem;
    }

        .incubatees-heading::after {
            width: 160px;
        }
}

/* Custom class to override Bootstrap */
.custom-img-border {
    border: 3px solid #aeaeae;
    border-radius: 14px;
    box-sizing: border-box;
}



/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .incubatees-heading {
        padding-left: 20px;
    }

        .incubatees-heading::after {
            left: 25px;
        }
}

/* Small tablet (max-width: 768px) */
@media (max-width: 768px) {
    .incubatees-heading {
        padding-left: 20px;
    }

        .incubatees-heading::after {
            left: 25px;
        }
}


/* 425px and below */
@media (max-width: 425px) {
    .incubatees-heading {
        padding-left: 20px;
    }

        .incubatees-heading::after {
            left: 25px;
        }
}

/* 375px and below */
@media (max-width: 375px) {
    .incubatees-heading {
        padding-left: 20px;
    }

        .incubatees-heading::after {
            left: 25px;
        }
}

/* 320px and below */
@media (max-width: 320px) {
    .incubatees-heading {
        padding-left: 20px;
    }

        .incubatees-heading::after {
            left: 25px;
        }
}

/*= ===========================================================================
Incubation offering section

============================================================================*/
.Incubation-Offerings-section {
    background-color: #f0f4f8;
    padding-bottom: 45px;
}

.incubation-offering-custom {
    font-size: 2rem;
    color: #b1282e;
    margin-bottom: 20px;
    font-weight: 700;
    margin-top: 2rem;
    text-align: justify;
    position: relative;
    padding-bottom: 10px; /* Space for the pseudo border */
    max-width: 1200px;
    background-color: #f0f4f8;
    padding-top: 40px;
}

.amenities-subheading-custom {
    margin-top: 25px;
    font-size: 1.3rem;
}

@media(max-width:768px) {
    .incubation-offering-custom {
        margin-top: 0px;
        padding-top: 20px;
    }
}

.incubation-offering-custom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 310px;
    border-bottom: 3px solid #d1a550;
    max-width: 1200px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .incubation-offering-custom {
        font-size: 1.8rem;
    }

        .incubation-offering-custom::after {
            width: 270px;
        }

    .amenities-subheading-custom {
        font-size: 1.2rem;
    }
}

@media (max-width: 425px) {
    .amenities-subheading-custom {
        font-size: 1rem;
    }

    .incubation-offering-custom {
        font-size: 1.6rem;
    }

        .incubation-offering-custom::after {
            width: 250px;
        }

    .incubation-offering-subheading {
        font-size: 20px;
    }
}

@media (max-width: 375px) {
    .incubation-offering-custom {
        font-size: 1.5rem;
    }

        .incubation-offering-custom::after {
            width: 234px;
        }
}

@media (max-width: 320px) {
    .incubation-offering-custom {
        font-size: 1.4rem;
    }

        .incubation-offering-custom::after {
            width: 220px;
        }
}


/* Container for horizontal layout with wrapping */
.horizontal-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* spacing between items */
    justify-content: flex-start;
}

/* Each program item: 6 per row */
.program-item {
    flex: 0 0 calc((100% / 6) - 16px);
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #b3b3b3;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    .program-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .program-item i {
        color: #000;
        font-size: 2rem;
        transition: color 0.3s ease;
    }

    .program-item:hover i {
        color: #b1282e;
    }

    .program-item p {
        margin: 0;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

/* Each amenity item: 6 per row */
.amenity-item-custom {
    flex: 0 0 calc((100% / 6) - 16px);
    box-sizing: border-box;
    padding: 10px;
    background-color: #fff !important;
    border-radius: 10px;
    border: 1px solid #b3b3b3;
    margin: 0; /* margin handled by gap */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    .amenity-item-custom:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        color: #b1282e;
    }

    .amenity-item-custom i {
        font-size: 2rem;
        margin-bottom: 10px;
        transition: transform 0.3s ease, color 0.3s ease;
        color: #000;
    }

    .amenity-item-custom:hover i {
        transform: scale(1.1);
        color: #b1282e;
    }

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
    .program-item,
    .amenity-item-custom {
        flex: 1 0 29%;
    }
}




/*=================================================-==========================
======================Success Stories=======================================*/
.incubation-testimonials {
    background-color: #f0f4f8;
    padding: 60px 20px;
}

.incubation-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.incubation-section-title {
    font-size: 2rem;
    color: #b1282e;
    font-weight: 700;
    margin-bottom: 10px;
}

.incubation-section-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
}

.incubation-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.incubation-video {
    width: 100%;
    max-width: 500px;
}

    .incubation-video iframe {
        width: 100%;
        height: 200px;
        border: none;
        border-radius: 8px;
    }

.incubation-video-caption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #333;
}

/* =================================================================================
team section
===================================================================================*/

.team-section-custom {
    padding: 0px 40px 40px 40px;
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    row-gap: 20px;
    max-width: 1300px;
    margin: auto;
}

.team-section-bg {
    background-image: url('../../images/bg-effect.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

@media (max-width: 768px) {
    .team-section-bg {
        background-image: url('../../images/bg-effect-mobile.png'); /* Replace with your mobile image path */
    }
}

.team-heading-custom {
    font-size: 2rem;
    color: #b1282e;
    margin-bottom: 20px;
    font-weight: 700;
    margin-top: 2rem;
    text-align: justify;
    position: relative;
    padding-bottom: 10px;
    max-width: 1300px;
}

    .team-heading-custom::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 500px;
        border-bottom: 3px solid #d1a550;
    }

@media (max-width: 768px) {
    .team-heading-custom {
        font-size: 1.6rem;
    }

        .team-heading-custom::after {
            width: 400px;
        }
}

@media (max-width: 425px) {
    .team-section-custom {
        padding: 0px 15px 15px 15px;
    }

    .team-heading-custom {
        font-size: 1.34rem;
    }

        .team-heading-custom::after {
            width: 336px;
        }
}

@media (max-width: 375px) {
    .team-section-custom {
        padding: 0px 12px 12px 12px;
    }

    .team-heading-custom {
        font-size: 1.16rem;
    }

        .team-heading-custom::after {
            width: 291px;
        }
}

@media (max-width: 320px) {
    .team-section-custom {
        padding: 0px 10px 10px 10p;
    }

    .team-heading-custom {
        font-size: 0.95rem;
    }

        .team-heading-custom::after {
            width: 238px;
        }
}


.team-subheading-custom {
    text-align: center;
    font-size: 1.75rem;
    color: #b1282e;
}

/* Tablet */
@media (max-width: 768px) {
    .team-subheading-custom {
        font-size: 1.5rem;
    }
}

/* Mobile Large */
@media (max-width: 425px) {
    .team-subheading-custom {
        font-size: 1.25rem;
    }
}

/* Mobile Medium */
@media (max-width: 375px) {
    .team-subheading-custom {
        font-size: 1.1rem;
    }
}

/* Mobile Small */
@media (max-width: 320px) {
    .team-subheading-custom {
        font-size: 1rem;
    }
}

/* Leadership layout with 100px gap between image cards */

/*================NEW LEADERSHIP===================*/
.leader-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

    .leader-section.reverse {
        flex-direction: row-reverse;
    }

.leader-text {
    flex: 1;
    min-width: 280px;
}

    .leader-text h2 {
        color: #b22b2f;
        margin-bottom: 5px;
        font-size: 22px;
        font-weight: 550;
    }

    .leader-text h4 {
        color: #b22b2f;
        margin-bottom: 15px;
        font-size: 19px
    }

    .leader-text p {
        line-height: 1.6;
        margin-bottom: 10px;
    }

.read-more {
    background-color: #c62828;
    color: #fff;
    padding: 8px 16px;
    display: inline-block;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}



.leader-image img {
    width: 100%;
    max-width: 310px;
    border-radius: 15px;
    border: 10px solid #ebe7e0eb;
}

/* Responsive layout */
@media (max-width: 768px) {
    .leader-section,
    .leader-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .leader-text {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .leader-section,
    .leader-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .leader-text {
        margin-top: 20px;
        order: 2;
    }

    .leader-image {
        order: 1;
    }
}

/*================NEW LEADERSHIP END===================*/



.leadership-grid-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 60px; /* reduced gap for two cards per row */
    justify-content: center;
    margin-bottom: 30px;
}

    .leadership-grid-custom a {
        text-decoration: none;
    }

@media(max-width:355px) {
    .leadership-grid-custom {
        gap: 26px;
    }
}

/* Individual team cards */
.team-card-custom {
    background-color: #ffffff;
    box-shadow: 0 13px 20px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    width: 250px;
    text-align: start;
    transition: transform 0.2s;
    overflow: hidden;
    text-decoration: none;
}

    .team-card-custom div {
        padding-left: 12px;
    }

    .team-card-custom p {
        color: #333;
        margin-right: 2px;
    }

    .team-card-custom:hover {
        transform: translateY(-5px);
    }

    /* Image with padding */
    .team-card-custom img {
        width: 224px; /* subtract padding (0.5rem on each side) */
        height: 225px;
        object-fit: cover;
        margin: 0.7rem;
        border-radius: 18px; /* rounded corners inside card */
    }

    .team-card-custom h4 {
        margin: 0.5rem 0 0rem;
        font-size: 1.1rem;
        color: #333;
    }



.stacked-cards {
    display: flex;
    align-items: center;
    gap: 100px;
    justify-content: center;
}



    .stacked-cards a {
        text-decoration: none;
        color: inherit;
    }

@media (max-width: 768px) {
    .stacked-cards {
        flex-direction: column;
        gap: 20px;
    }
}


/*===================================================
=====================================================*/

.mentor-slider-container {
    overflow: hidden;
    padding: 30px;
}

.mentor-slider {
    display: flex;
    gap: 1rem;
    will-change: transform;
}

.mentor-card-link {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.mentor-card {
    background-color: #fff;
    box-shadow: 0 13px 20px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    width: 250px;
    transition: transform 0.2s;
    overflow: hidden;
}

    .mentor-card:hover {
        transform: translateY(-5px);
    }

    .mentor-card img {
        display: block;
        margin: 0.7rem auto; /* center the image horizontally */
        border-radius: 18px;
        width: 170px;
        height: 190px;
        object-fit: cover;
    }

@media(max-width:425px) {
    .mentor-card {
        width: 150px
    }

        .mentor-card img {
            width: 100px;
            height: 120px;
        }
}



.mentor-card h4 {
    margin: 0.5rem 0 0 12px; /* align text to the left */
    font-size: 1.1rem;
    color: #333;
    text-align: left; /* ensure left alignment */
}

/* Show 2 lines of text by default and reveal all on hover */
.mentor-card p {
    color: #333;
    padding-left: 0px;
    margin: 0.4rem 0.5rem 1rem 0.5rem;
    overflow: hidden;
    max-height: 48px; /* approx. 2 lines */
    transition: max-height 0.3s ease;
    text-align: left; /* ensure left alignment */
}

.mentor-card:hover p {
    max-height: 500px; /* expand enough to show full text */
}

/* Show All button */
.show-all-btn {
    display: block;
    margin: 1rem auto;
    padding: 0.6rem 1.2rem;
    background-color: #b1282e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

    .show-all-btn:hover {
        background-color: #8a1e24;
    }

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.popup-content {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.popup-cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

    .popup-cards-container a {
        text-decoration: none;
        color: inherit;
    }

.popup-card {
    background-color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    max-width: 200px;
}

    .popup-card img {
        display: block;
        margin: 0.7rem auto; /* center the image horizontally */
        border-radius: 10px;
        width: 170px;
        height: 190px;
        object-fit: cover;
    }

    .popup-card h4 {
        margin: 0.5rem 0.2rem 0 12px; /* align text to the left */
        font-size: 1.1rem;
        color: #333;
        text-align: left; /* ensure left alignment */
    }

    .popup-card p {
        color: #333;
        padding-left: 12px;
        margin: 0.2rem 0.3rem 1rem;
        overflow: hidden;
        max-height: 48px; /* approx. 2 lines */
        transition: max-height 0.3s ease;
        text-align: left; /* ensure left alignment */
    }

    .popup-card:hover p {
        max-height: 500px; /* expand to show full text */
    }

/* Tablet - 768px and below */
@media (max-width: 768px) {
    .popup-card {
        max-width: 180px;
    }

        .popup-card img {
            width: 150px;
            height: 170px;
        }

        .popup-card h4 {
            font-size: 1rem;
        }
}

/* Small tablet/large phone - 425px and below */
@media (max-width: 425px) {
    .popup-card {
        max-width: 160px;
    }

        .popup-card img {
            width: 130px;
            height: 150px;
        }

        .popup-card h4 {
            font-size: 0.95rem;
        }

        .popup-card p {
            font-size: 0.9rem;
        }
}

/* Phone - 375px and below */
@media (max-width: 375px) {
    .popup-card {
        max-width: 140px;
    }

        .popup-card img {
            width: 110px;
            height: 130px;
            margin: 0.5rem auto;
        }

        .popup-card h4 {
            font-size: 0.9rem;
            margin: 0.4rem 0 0 10px;
        }

        .popup-card p {
            font-size: 0.85rem;
            padding-left: 10px;
        }
}

/* Small phone - 320px and below */
@media (max-width: 320px) {
    .popup-card {
        max-width: 120px;
    }

        .popup-card img {
            width: 95px;
            height: 110px;
            margin: 0.4rem auto;
        }

        .popup-card h4 {
            font-size: 0.85rem;
            margin: 0.3rem 0 0 8px;
        }

        .popup-card p {
            font-size: 0.8rem;
            padding-left: 8px;
            margin: 0.2rem 0 0.8rem;
        }
}

.close-popup {
    display: block;
    margin: 0 auto 1rem auto;
    padding: 0.4rem 1rem;
    background: #b1282e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .popup-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .popup-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .popup-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/*-- =======================================================
Event Section
=======================================================*/
.event-section {
    padding: 1px 20px 72px;
    background-color: #f0f4f8;
}

.event-header {
    font-size: 2.5rem;
    color: #b1282e;
    margin: 2rem auto 1.25rem auto;
    font-weight: 700;
    text-align: justify;
    position: relative;
    padding-bottom: 5px;
    max-width: 1200px;
    padding-top: 0px;
}

    .event-header::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 124px;
        border-bottom: 3px solid #d1a550;
    }

@media (max-width: 768px) {
    .event-header {
        font-size: 2rem;
    }

        .event-header::after {
            width: 105px;
        }
}

@media (max-width: 425px) {
    .event-header {
        font-size: 1.8rem;
    }

        .event-header::after {
            width: 90px;
        }
}

@media (max-width: 375px) {
    .event-header {
        font-size: 1.6rem;
    }

        .event-header::after {
            width: 80px;
        }
}

@media (max-width: 320px) {
    .event-header {
        font-size: 1.4rem;
    }

        .event-header::after {
            width: 68px;
        }
}

.event-container {
    max-width: 1200px;
    margin: auto;
}

/*-- -- =======================================================
Event Section
=======================================================*/



/* -================================================================================================
 Partners Section CSS
=================================================================================================*/
.custom-partners-section {
    padding: 60px 20px;
    background-color: #f0f4f8;
}

.custom-partners-heading {
    max-width: 1300px;
    margin: 0 auto 20px auto;
    padding-left: 20px;
}

    .custom-partners-heading h2 {
        font-size: 2rem;
        color: #b1282e;
        font-weight: 700;
        border-bottom: 3px solid #d1a550;
        display: inline-block;
        padding-bottom: 6px;
    }

.custom-partners-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    gap: 160px;
    justify-content: center;
    align-items: center;
}


.custom-partners-left img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-partners-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

    .custom-partners-right img {
        width: 100px;
        height: 100px;
        border-radius: 10px;
        object-fit: cover;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
    }




/*-- -- =======================================================
Event Section
=======================================================*/

.event-slider-container {
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-slider-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.event-slide {
    flex: 0 0 auto;
    margin-right: 10px;
}

    .event-slide img {
        display: block;
        border-radius: 8px;
        object-fit: cover;
        max-width: 100%;
        width: 400px;
        height: 300px;
    }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .event-section {
        padding: 1px 20px 30px;
    }

    .event-slider-container {
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .event-slide {
        margin-right: 5px;
    }

        .event-slide img {
            width: 300px;
            height: 200px;
        }
}

@media (max-width: 425px) {
    .event-section {
        padding: 0 10px 0;
    }

    .event-slide img {
        width: 200px;
        height: 150px;
    }
}

/* -================================================================================================
 Partners Section CSS
=================================================================================================*/
.custom-partners-section {
    padding: 60px 20px;
    background-color: #f0f4f8;
}

.custom-partners-heading {
    max-width: 1300px;
    margin: 0 auto 20px auto;
    padding-left: 20px;
}

    .custom-partners-heading h2 {
        font-size: 2rem;
        color: #b1282e;
        font-weight: 700;
        border-bottom: 3px solid #d1a550;
        display: inline-block;
        padding-bottom: 6px;
    }

.custom-partners-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    gap: 160px;
    justify-content: center;
    align-items: center;
}


.custom-partners-left img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-partners-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

    .custom-partners-right img {
        width: 100px;
        height: 100px;
        border-radius: 10px;
        object-fit: cover;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
    }




/* =======================================================
  Join Us Section CSS
=======================================================*/


/* =======================================================
  Footer Section CSS
=======================================================*/
.footer {
    background-color: #b61c1c;
    background-image: url('footer-img.jpg');
    background-position: center;
    background-size: cover;
    color: white;
    padding: 0;
    position: relative;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('footer-img.jpg');
        background-size: cover;
        opacity: 0;
        pointer-events: none;
    }

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.map-frame {
    border: 5px solid white;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow: hidden;
}

    .map-frame img {
        max-width: 100%;
        height: auto;
        display: block;
    }
/* Map container styling */
.map-container {
    text-align: center; /* center the map if needed */
    margin: 1rem auto; /* adjust margin as needed */
}

    .map-container iframe {
        width: 500px;
        height: 350px;
        border-radius: 10px; /* optional: rounded corners for the iframe */
        border: none;
    }

/* For devices 768px and below */
@media (max-width: 768px) {
    .map-container iframe {
        width: 500px;
        height: 280px;
    }
}

/* For devices 425px and below */
@media (max-width: 530px) {
    .map-container iframe {
        width: 380px;
        height: 220px;
    }
}

/* For devices 375px and below */
@media (max-width: 401px) {
    .map-container iframe {
        width: 330px;
        height: 200px;
    }
}

/* For devices 320px and below */
@media (max-width: 350px) {
    .map-container iframe {
        width: 280px;
        height: 180px;
    }
}


.footer h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

.footer-address {
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

    .footer-address a {
        text-decoration: none;
        color: #fff;
    }

.social-media h3 {
    margin-top: 10px;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background-color: white;
        color: #b61c1c;
    }

.gmail-logo: {
    border-radius: 50%;
}


.copyright {
    text-align: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .contact-info,
    .map-container {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .map-container {
        justify-content: flex-start;
    }

    .map-frame {
        width: 100%;
    }
}
