/* General Styles */
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f0f0f0; /* Standard background color */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 10px;
}

header .logo span {
    font-size: 24px;
    font-weight: bold;
}

header .toggle-btn {
    display: none;
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* Navigation Styles */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}

/* Content Wrapper to ensure footer is at the bottom */
.content-wrapper {
    flex: 1;
    padding: 20px;
}

/* Banner Styles */
.banner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.banner-item {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.banner-item h1, .banner-item h2 {
    margin: 0;
}

/* Flex Grid Styles */
.home-content, .services, .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Home Page Content Styles */
.home-content .flex-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 1 1 calc(33.333% - 20px); /* Three items per row */
    display: flex;
    flex-direction: column;
    height: 300px; /* Fixed height for the flex boxes */
}

.home-content .flex-box img {
    width: 100%;
    height: 100%; /* Make the image fill the flex box */
    object-fit: cover; /* Ensures the image covers the container without distortion */
}

.home-content .flex-box:hover {
    transform: scale(1.05);
}

/* Services Page Styles */
.service-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 1 1 calc(33.333% - 20px); /* Three items per row */
    display: flex;
    flex-direction: column;
}

.service-item img {
    width: 100%;
    height: 200px; /* Set a fixed height for consistent box size */
    object-fit: cover; /* Ensures the image covers the container without distortion */
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item {
    padding: 10px; /* Adjusted padding for the service items */
}

/* Gallery Page Styles */
.gallery-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 1 1 calc(33.333% - 20px); /* Three items per row */
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Set a fixed height for consistent box size */
    object-fit: cover; /* Ensures the image covers the container without distortion */
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item {
    padding: 10px; /* Adjusted padding for the gallery items */
}

/* About Page Styles */
.about .mission-goal-values {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mission, .goal, .values {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
}

/* About Page Image Section */
.about .about-img-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Team and Community Section */
.team {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.team-member {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    flex: 1 1 calc(33% - 20px); /* Three items per row */
}

.community {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
}

/* Contact Page Styles */
.contact {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.contact-details {
    flex: 1;
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .banner {
        flex-direction: column;
    }

    .banner-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .home-content, .services, .gallery, .about-img-container {
        flex-direction: column;
    }

    .flex-box, .service-item, .gallery-item, .about-img {
        width: 100%;
    }

    header .toggle-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        color: #fff;
    }

    .contact {
        flex-direction: column;
    }

    .contact-details, .contact-form {
        width: 100%;
    }
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    background-color: green; /* Primary color */
    color: #fff;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 30px; /* Add margin at the bottom */
}

.cta-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.cta-button:active {
    background-color: #004494; /* Even darker shade on click */
    transform: scale(1); /* Reset zoom on click */
}
