/* Global styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --base: #f7f7f7;
    --black: #11100e;
    --white: #ffffff;
    --red: #da2b26;
    --blue: #1a3685;
    --font-primary: 'Outfit', sans-serif;
}
body {
    
    font-family: 'Outfit', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
}

/* About Us Page */
.about_us_page {
    position: relative; /* Added for overlay positioning */
    background-image: url('/assets/building_about_us.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
}

.about_us_page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent black overlay */
    z-index: 1;
}

.about_content_page {
    position: relative; /* Ensures content is above overlay */
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

.about__title__page {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.about_description__page {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--black);
}

.about__actions__page {
    margin-top: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about_us_page {
        padding: 5rem 3%;
    }

    .about__title__page {
        font-size: 2.5rem;
    }

    .about_description__page {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about__title__page {
        font-size: 2.5rem;
    }

    .about_description__page {
        font-size: 1rem;
    }

    .about__actions__page .btn {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .about__title__page {
        font-size: 2.5rem;
    }

    .about_description__page {
        font-size: 1rem;
    }

    .about__actions__page .btn {
        padding: 0.8rem 1.2rem;
    }
}

.our_mission {
    background: url(assets/pexels-scottwebb-1029615.jpg);
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4;
    position: relative;
}

.our_mission::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay effect */
    z-index: -1;
}

.misson_title, 
.vision_title {
    
    font-weight: bold;
    font-size: 2em;
    color: var(--blue);
    margin-bottom: 30px;
}

.mission-cards-container,
.vision-cards-container {
    display: flex;
    justify-content: space-between; /* Space cards horizontally */
    flex-wrap: nowrap; /* Prevent cards from wrapping to the next line */
    gap: 20px; /* Add spacing between cards */
    margin-bottom: 40px;
}

.m_card, 
.v_card {
    border-radius: 10px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    width: 400px;
    height: 180px;
    background-color: var(--white);
    padding: 20px;
    position: relative;
    z-index: 0;
    overflow: hidden;
    transition: 0.6s ease-in;
    transition-delay: 0.2s;
    text-align: left;
}

.m_card::before, 
.v_card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -15px;
    right: -15px;
    background: var(--red);
    height: 220px;
    width: 25px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.25s ease-out;
}

.m_card:hover::before, 
.v_card:hover::before {
    transition-delay: 0.2s;
    transform: scale(40);
}

.m_card:hover, 
.v_card:hover {
    color: var(--white); /* Ensure card text changes to white */
}

.m_card:hover .m_card_content, 
.v_card:hover .v_card_content {
    transition-delay: 0.2s;
    color: var(--white); /* Ensure content text changes to white on hover */
}

.m_card_content, 
.v_card_content {
    transition-delay: 0.2s;
    font-size: 1em;
    color: var(--black);
    padding: 10px 0;
}

@media (max-width: 768px) {
    .mission-cards-container, 
    .vision-cards-container {
        flex-direction: column; /* Stack cards vertically on smaller screens */
        align-items: center;
    }

    .m_card, 
    .v_card {
        width: 100%; /* Make cards fill available width on small screens */
        max-width: 400px; /* Ensure a consistent max size */
    }
}


/* Leadership Section */
/* Leadership Section */
.leadership {
    position: relative;
    padding: 50px 20px;
    background: url('assets/leadership_image.jpg') no-repeat center center/cover; /* Background image */
    text-align: center;
    color: #fff;
    overflow: hidden; /* Ensures the overlay doesn't exceed the container */
}

.leadership::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:  rgba(255, 255, 255, 0.5); /* Overlay effect */
    z-index: 1; /* Places the overlay behind the content */
}

.section_title {
    font-size: 2.5em;
    color: var(--blue);
}

.section_title,
.leadership_content {
    position: relative;
    z-index: 2; /* Ensures content is above the overlay */
}

/* Leadership Content */
.leadership_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Ensures responsiveness */
}

/* Description Styling */
.leadership_description {
    flex: 1;
    text-align: left;
    font-size: 1.1em;
    color: var(--black); /* White text for readability */
    font-weight: bold;
    max-width: 500px;
    margin: 0 auto;
}

/* Card Styling */
.leadership_card {
    flex: 1;
    background: var(--base);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

/* Leader Image */
.leader_image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--red);
}

/* Leader Name and Position */
.leader_name {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 5px;
}

.leader_position {
    font-size: 1.1em;
    color: var(--black);
    margin-bottom: 15px;
}

/* Social Links */
.socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social_link {
    text-decoration: none;
    color: var(--red);
    font-weight: bold;
    border: 2px solid var(--red);
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s ease;
}

.social_link:hover {
    background-color: var(--red);
    color: #ffffff;
}

/* Responsiveness */
@media (max-width: 768px) {
    .leadership_content {
        flex-direction: column; /* Stacks content vertically */
        align-items: center;
    }

    .leadership_description {
        text-align: center;
    }

    .leadership_card {
        margin-top: 20px;
    }
}
