/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e9c48dbb;
    /* Fallback color */
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    width: 100%;
    overflow-y: auto;
    /* Allow vertical scrolling */
    position: relative;
    /* Required for pseudo-element positioning */
}

/* Pseudo-element for the blurred background */
body::before {
    content: '';
    position: fixed;
    /* Fixed to make it static */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/back1.jpg');
    /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    /* Adjust the blur intensity (e.g., 8px) */
    z-index: -1;
    /* Place it behind the content */
}

html {
    overflow-x: hidden;
}

/* Header Styles */
header {
    background-color: rgb(195, 181, 155);
    /* Your specified color */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    /* White text for contrast */
    font-size: 24px;
    font-weight: bold;
    margin-left: 5px;
}

.logo img {
    height: 170px;
    width: 400px;
    margin-top: 2.5rem;
    margin-left: -40px;
}

/* General styles for navigation bar*/
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a:hover {
    color: #000;
    /* Slightly lighter shade of your color for hover effect */
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    /* White text */
    font-size: 18px;
    padding: 5px 0;
    position: relative;
}

/* Hover Effect: Adds an underline */
nav ul li a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #000;
    /* Underline color */
    transition: width 0.3s ease;
}

/* Ensure hover effect works smoothly */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

/*underlines the services link in the services page*/
nav ul li a.active-page {
    color: rgb(12, 139, 0) !important;
}

nav ul li a.active-page::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: rgb(12, 139, 0);
    /* Same as text color */
    transition: width 0.3s ease;
}


/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgb(195, 181, 155);
        z-index: 1000;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav.active {
        display: block;
    }

    .logo img {
        height: 100px;
        width: 280px;

    }
}


/* Footer Section Styling */
.footer-section {
    background-color: rgb(195, 181, 155);
    padding: 10px 0;
    display: 20px;
    /* Make the footer columns grow horizontally */
    width: 100%;
    margin-left: 0;
}

/* Style the footer container */
.footer-container {
    flex-direction: column;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* Style the footer columns */
.footer-column {
    flex: 1;
    /* Make each column occupy 1/4th of the available space */
    padding: 10px;
    text-align: left;
    margin-left: 0;
    margin-bottom: 20px;
}

/* Style the footer headings (h6) */
.footer-column h6 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #5c471b;
}

/* Style the footer links */
.footer-column ul {
    list-style: none;
    padding: 0;

}

.footer-column ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-column ul li a {
    text-decoration: none;
    color: #5c471b;

}

.footer-column ul li a:hover {
    color: #fff;
    text-decoration-line: underline;
}

/* Style the social links */
.social-links {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.social-links li {
    margin-right: 0px;
    margin-bottom: 5px;
}

.social-links li a {
    color: #333;
}

.social-links li a i {
    font-size: 20px;
    margin-left: -15px;
}

/* Style the feedback form */
.footer-column form {
    margin-top: 10px;
}

.footer-column form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    resize: none;
}

.footer-column form button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 5px;
}

.footer-column form button:hover {
    background-color: #0067cc;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        text-align: left;
    }

    .footer-column {
        margin-left: 20px;
    }
}

/* ------END OF HEADER AND FOOTER STYLING THAT SHOULD BE SIMILAR IN ALL WEB PAGES------  */




/*this section styles the introduction section*/
.introduction-section {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    /* Increased gap for better spacing */
    padding: 40px 0;
}

.introduction-section .content {
    flex: 1;
    max-width: 600px;
}

.introduction-section h1 {
    font-size: 26px;
    font-weight: bold;
    color: rgb(146, 124, 84);
    margin-bottom: 10px;
}

.introduction-section h2 {
    color: rgb(116, 85, 28);
    font-size: 45px;
    margin-bottom: 10px;
}

.introduction-section p {
    font-size: 20px;
    color: #333;
    line-height: 1.3;
    font-weight: 520;
    margin-bottom: 10px;
}

.introduction-section .image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.introduction-section .image img {
    width: 100%;
    max-width: 430px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

/* Responsive Design for introduction section*/
@media screen and (max-width: 768px) {
    .introduction-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 30px;
        /* Adjusted gap for mobile view */
    }

    .introduction-section .image img {
        max-width: 350px;
        width: 90%;
    }
}



/*this section styles the Yonga Odhiambo background text*/
.YO-section {
    position: relative;
    width: 100%;
    margin-top: 100px;
    margin-bottom: -200px;
}

.large-YO {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 200px;
    font-weight: bold;
    color: #000;
    position: absolute;
    right: 50px;
    bottom: 0;
    opacity: 0.07;
}

.large-YO {
    display: none;
}

/*responsiveness for the background section*/
@media (min-width: 768px) {
    .introduction-section {
        flex-direction: row;
        text-align: left;
    }

    .large-YO {
        display: block;
    }
}





/*this section styles the mission vision section*/
.mission-vision-section {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 150px;
}

.mission-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.content {
    flex: 1;
    max-width: 500px;
}

h3 {
    font-size: 36px;
    font-weight: bold;
    color: rgb(116, 85, 28);
    margin-bottom: 10px;
}

.mission-section p {
    font-size: 20px;
    font-weight: 500;
    color: #181212;
    line-height: 1.5;
}

.image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-right: -200px;
}

/* Reverse layout for vision section */
.vision-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 40px;
}

.vision-section .content {
    flex: 1;
    max-width: 500px;
}

h3 {
    font-size: 36px;
    font-weight: bold;
    color: rgb(116, 85, 28);
    margin-bottom: 10px;
}

.vision-section p {
    font-size: 20px;
    font-weight: 500;
    color: #181212;
    line-height: 1.5;
}

.vision-section .image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.vision-section .image img {
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 20px;
    margin-right: 250px;
}

/* Responsive Design for mission-vision section */
@media screen and (max-width: 768px) {
    .mission-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .mission-section .image {
        align-items: center;
        margin-left: -200px;
    }

    .vision-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .vision-section .image {
        align-items: center;
        margin-right: -250px;
    }
}


/* Styling for Core Values Section */
.core-values {
    padding: 50px 20px;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.core-values h4 {
    font-size: 46px;
    font-weight: bold;
    color: rgb(116, 85, 28);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 40px;
}

/* Values Grid */
.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Value Card */
.value-card {
    background-color: #e9c48dbb;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.value-card h5 {
    font-size: 1.3rem;
    color: #705822;
    margin-bottom: 10px;
    margin-top: 10px;
}

.value-card p {
    font-size: 1.1rem;
    color: #b87639;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Adjustments for core values*/
@media (min-width: 600px) {
    .value-card {
        flex: 1 1 calc(50% - 20px);
        /* Two cards per row on tablets */
        max-width: calc(50% - 20px);
    }
}

@media (min-width: 1024px) {
    .value-card {
        flex: 1 1 calc(33.33% - 20px);
        /* Three cards per row on desktops */
        max-width: calc(33.33% - 20px);
    }
}



/*survey*/
/* Popup Styles */
.popup {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.popup-content {
    background-color: rgb(236, 211, 164);
    padding: 20px;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #000;
}

#surveyContent label {
    display: block;
    /* Ensure labels are on their own line */
    margin-bottom: 10px;
    /* Add spacing between questions */
    font-weight: bold;
    /* Make questions stand out */
    color: rgb(116, 85, 28);
}

#surveyContent input {
    width: 95%;
    /* Make input fields full width */
    padding: 8px;
    /* Add padding for better appearance */
    margin-bottom: 15px;
    /* Add spacing between inputs */
}

#surveyContent button {
    background-color: rgb(116, 85, 28);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#surveyContent button:hover {
    background-color: green;
}