.home-elem-206 {
    display: grid; /* Change from flex to grid */
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    max-width: 1200px; /* Optional: add max-width for larger screens */
    margin: 0 auto; /* Optional: center the container */
}

/* Update the team member cards */
.home-elem-207,
.home-elem-237,
.home-elem-227,
.home-elem-217 {
    width: 100%; /* Change from percentage to full width */
    text-align: center;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Update responsive breakpoints */
@media (max-width: 768px) {
    .home-elem-206 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 480px) {
    .home-elem-206 {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}


.team-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    word-wrap: break-word;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: normal;
    line-height: 1.3;
}

.role {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
}

.team-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10%;
    margin-top: 10px;
}

.team-details {
    margin-top: 10px;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {

    .home-elem-207,
    .home-elem-237,
    .home-elem-227,
    .home-elem-217 {
        width: 45%;
    }
}

@media (max-width: 480px) {

    .home-elem-207,
    .home-elem-237,
    .home-elem-227,
    .home-elem-217 {
        width: 100%;
    }
}

/* Mission Section Styles */
.mission {
    padding: 60px 0;
    background: linear-gradient(135deg, #f4f4f4, #e1f5fe);
    font-family: Raleway;
}

.home-elem-300 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.home-elem-300:hover {
    transform: translateY(-5px);
}

.mission-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.mission-text {
    width: 100%;
    padding-right: 30px;
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.8;
}

.mission-text h2 {
    font: inherit;
    font-size: 2rem;
    font-weight: bold;
    color: #982220;
    margin-bottom: 20px;
    text-align: center;
}

.mission-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.mission-image {
    width: 50%;
    text-align: center;
    padding-left: 30px;
}

.mission-image img {
    max-width: 90%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mission-image img:hover {
    transform: scale(1.05);
}

/* Vision Section Styles */
.vision-section {
    padding: 160px 20px;
    background-color: #f4f7fa;
    text-align: center;
    font-family: Raleway;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #982220;
    /* Dark red color for both mission and vision titles */
}

.section-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 10px;
}

.vision-statement {
    margin-top: 30px;
    font-size: 24px;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.6;
}

.icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.icon {
    width: 50px;
    height: 50px;
    margin: 0 20px;
}

.cta {
    margin-top: 40px;
}

.cta-link {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #2980b9;
}

.vision-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    text-align: center;
}

.vision-section .section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #982220;
    /* Ensure color matches the mission section title */
}

.vision-section .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.vision-statement p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.icon {
    font-size: 2rem;
    color: #982220;
}

.icon-label {
    font-size: 1.1rem;
    color: #333;
}

.mission {
    padding: 160px 20px 20px 20px;
}

.vision-section {
    padding: 160px 20px 20px 20px;
    background-color: #f4f7fa;
    text-align: center;
    font-family: Raleway;
}

.objectives {
    padding: 160px 20px 20px 20px;
    background-color: #f4f7fa;
    text-align: center;
    font-family: Raleway;
}

.team {
    padding: 160px 20px 20px 20px;
    background-color: #f4f7fa;
    text-align: center;
}

.nation-program {
    padding: 160px 20px 20px 20px;
    background-color: #f4f7fa;
    text-align: center;
}

/* Mobile responsive adjustments for mission text */
@media (max-width: 768px) {
    .mission-text {
        order: 1;
        width: 100%;
        text-align: center;
    }


    .mission-image {
        order: 2;
        /* Moves the image below the text */
        text-align: center;
        width: 100%;
    }

    .vision-statement {
        font-size: 1rem;
        /* Reduce font size for mobile */
        margin-bottom: 20px;
        /* Adjust bottom margin */
    }

    .icons {
        gap: 10px;
        /* Reduce gap between icons on mobile */
    }

    .icon {
        width: 40px;
        /* Adjust icon size on mobile */
        height: 40px;
    }
}

@media (min-width: 769px) {
    .mission-text {
        width: 50%;
        /* Half width on desktop */
    }

    .mission-image {
        width: 50%;
        /* Half width on desktop */
    }

    .vision-statement {
        font-size: 1.2rem;
        /* Adjust font size for larger screens */
    }

    .icons {
        gap: 30px;
        /* Ensure enough space on larger screens */
    }

    .icon {
        width: 50px;
        /* Maintain the size for larger screens */
        height: 50px;
    }
}

/* Basic styles for the menu */
.home-elem-388 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* Hide the menu on small screens */
@media (max-width: 768px) {
    .home-elem-388 {
        display: none;
        /* Hide the menu by default */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
}

/* Show the menu when hamburger is clicked */
.show-menu {
    display: flex !important;
    /* Override the default hidden state */
}

/* Optional: Styling for the active state of links */
.home-elem-389 a {
    text-decoration: none;
    padding: 10px;
    display: block;
}

.values_taboos {
    background-color: #f9f9f9;
    padding: 20px;

    .container {
        display: flex;
        flex-wrap: wrap;
        max-width: 1000px;
        padding: 20px;
        border-radius: 8px;
    }

    .column {
        flex: 1;
        margin: 10px;
        padding: 20px;
        border-radius: 8px;
    }

    .taboos {
        background-color: #ffffff;
        box-shadow: 0 2px 0 0 #982220;
    }

    .values {
        background-color: #ffffff;
        box-shadow: 0 2px 0 0 #388e3c;
    }

    h2 {

        font: inherit;
        font-size: 2rem;
        font-weight: bold;
        color: #982220;
        margin-bottom: 20px;
        text-align: center;
    }

    .taboos h2 {
        color: #d32f2f;
    }

    .values h2 {
        color: #388e3c;
    }

    ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    li {
        margin: 10px 0;
        font-size: 1.1em;
    }

    .taboos h2::before {
        content: "⚠️ ";
        color: #d32f2f;
        margin-right: 10px;
    }

    .values h2::before {
        content: "🌟 ";
        color: #388e3c;
        margin-right: 10px;
    }

    @media (max-width: 768px) {
        .container {
            flex-direction: column;
        }

        .column {
            margin: 0 0 20px 0;
        }

        .taboos h2::before,
        .values h2::before {
            left: 10px;
        }
    }
}

/* Nation Anglophone Program Section */
.nation-program .container {
    width: 80%;
    margin: 0 auto;
}

.nation-program .section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.nation-program .section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

.program-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.program-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.card-title {
    font-size: 1.5em;
    text-align: center;
    font-weight: bold;
    color: #982220;
    margin-bottom: 20px;
}

.program-card p {
    font-size: 1.1em;
    line-height: 1.5em;
}

/* Program Card Images */
.card-image {
    width: 100%;
    height: 200px;
    /* Fixed height for a consistent landscape ratio */
    overflow: hidden;
    border-radius: 8px;
    /* Optional: rounded corners */
    margin-bottom: 15px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image is cropped proportionally */
    object-position: center;
    /* Center the cropped area */
}


@media screen and (max-width: 768px) {
    .program-info {
        flex-direction: column;
    }

    .program-card {
        margin-bottom: 20px;
    }
}

.events {
    padding: 160px 20px 20px 20px;
    background-color: #f4f7fa;
    text-align: center;
}

/* event section */
.events-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.event-card {
    flex: 1 1 calc(33.333% - 20px);
    /* 3 columns on larger screens */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    /* Fixed size for square images */
    height: 250px;
    /* Fixed size for square images */
    object-fit: cover;
    margin-top: 20px;
    border-radius: 8px;
}

.event-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    color: #982220;
}

.event-content p {
    font-size: 1rem;
    margin-top: 10px;
    line-height: 1.5;
}

/* Reverse layout for the second card */
.reverse-layout {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .event-card {
        flex: 1 1 100%;
        /* 1 column on smaller screens */
    }

    .event-card img {
        width: 100%;
        margin-bottom: 15px;
    }
}


/* Contact Section Styles */

.contact-card {
    margin: 40px 0;
    padding: 160px 15px;
}

.contact-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-card-map,
.contact-card-form {
    flex: 1;
    min-width: 300px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 1rem;
    color: #333;
}

input,
textarea {
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

textarea {
    resize: vertical;
}

.submit-btn {
    padding: 10px 20px;
    background: #982220;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn:hover {
    background: #0056b3;
}

.map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .contact-card-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-card-map,
    .contact-card-form {
        min-width: 100%;
    }

    .map {
        height: 300px;
    }
}


/* Hamburger menu styles */
/* Main Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px 0;
    border-radius: 4px;
}

.dropdown-menu a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    /* Ensures long text doesn't wrap */
}

.dropdown-menu a:hover {
    background-color: #ddd;
}
/* Dropdown toggle caret */
.dropdown-toggle .caret {
    font-size: 20px;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Optional: rotate caret on hover */
.dropdown:hover .caret {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Mobile menu adjustments */
@media screen and (max-width: 768px) {
    .mobile-menu .dropdown-toggle .caret {
        border-width: 5px; /* Slightly larger on mobile */
        margin-left: 8px;
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Submenu Dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    /* Position the submenu to the right */
    margin-left: 1px;
    display: none;
    /* Initially hidden */
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
    /* Show submenu on hover */
}

.dropdown-submenu a:hover {
    background-color: #ddd;
}

/* Ensure nested dropdown doesn't disappear */
.dropdown-menu:hover {
    display: block;
}

.hamburger-menu {
    display: block;
    font-size: 40px;
    color: #fff;
    display: block;
    cursor: pointer;
    padding: 10px;

    /* hide on larger screens */
    @media screen and (min-width: 769px) {
        display: none;
    }
}

.hamburger-menu.scrolled {
    font-size: 25px;
    color: #fff;
}

.mobile-header {
    display: none;
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-right: 120px;
}

.mobile-header.scrolled {
    display: block;
}

@media screen and (max-width: 768px) {  

    .mobile-header {
        display: none;
        font-size: 20px;
        font-weight: bold;
        color: white;
        margin-right: 120px;
    }

    .mobile-header.scrolled {
        display: block;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        margin-left: 120px;
        width: 20%;
    }


}


/* mobile menu */
/* Ensure the body has a position and background to overlay the menu */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.long-div {
    height: 500vh;
}

/* Initially hide the full-screen mobile menu */
.mobile-menu {
    position: fixed;
    border-top: 1px solid #ddd;
    margin-top: 70px;
    padding-top: 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #982220;
    z-index: 999999999999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Style links inside the full-screen menu */
.mobile-menu a {
    color: #fff;
    font-size: 2em;
    margin: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

/* Change link color on hover */
.mobile-menu a:hover {
    color: #f39c12;
}

/* Style for the hamburger icon */
.hamburger-menu {
    cursor: pointer;
    font-size: 30px;
    color: #fff;
    z-index: 10000;
}

/* Mobile menu links container */
.mobile-menu .menu-links {
    display: flex;
    flex-direction: column;
}

/* For small screen view */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Ensure hamburger is visible on mobile */
    }
    .mobile-menu a {
        font-size: 1.5em; /* Adjust font size */
    }
}

  /* Slider section */


.home-elem-333 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: crossfade 15s infinite;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2);
}

/* Adjust timing for crossfade */
.slide:nth-child(1) {
    animation-delay: 0s;
}
.slide:nth-child(2) {
    animation-delay: 5s;
}
.slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes crossfade {
    0%, 45% {
        opacity: 1;
    }
    50%, 95% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(85deg, 
        rgba(5, 5, 5, 0.3) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}
.event-card {
    margin-bottom: 30px;
}

.event-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding-bottom: 60px;
}

.event-text {
    flex: 1;
}

.button-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
}

.watch-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ff0000;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.watch-video-btn:hover {
    background-color: #cc0000;
}

.watch-video-btn.disabled {
    background-color: #888;
    cursor: not-allowed;
}

.watch-video-btn i {
    font-size: 1.2em;
}