/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e9c48dbb;
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    width: 100%;
    overflow-y: auto;
    /* Allow vertical scrolling */
}

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 Team link in the team 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 Yonga Odhiambo background text*/
.YO-section {
    position: relative;
    width: 100%;
    margin-top: 600px;
    margin-bottom: 200px;
}

.large-YO {
    display: flex;
    text-align: left;
    font-size: 200px;
    font-weight: bold;
    color: #000;
    position: absolute;
    right: 50px;
    bottom: 0;
    opacity: 0.07;
    margin-left: 40px;
}

.large-YO {
    display: none;
}

/*responsiveness for the background section*/
@media (min-width: 768px) {

    .large-YO {
        display: block;
    }
}





/* Styling of the our team section */
.teamcontainer {
    max-width: 94%;
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    margin-left: 20px;
    margin-bottom: 30px;
    background: transparent;
    /* Hiding background color to hide container */
}

/* Blog Heading */
h1 {
    font-size: 56px;
    font-weight: bold;
    color: #ff9634;
    margin-bottom: 10px;
    text-align: center;
}


p {
    font-size: 24px;
    font-style: normal;
    color: rgb(116, 85, 28);
    margin-bottom: 30px;
    text-align: center;
}


/* Blog Card */
.team-card {
    background: #F7E6CA;
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    /* Enables side-by-side layout */
    gap: 20px;
    /* Adds space between the image and text */
    align-items: flex-start;
    /* Aligns content to the top */
}

/* Member's  Image */
.team-card img {
    width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 25px;
    flex-shrink: 0;
    /* Prevents image from shrinking */
    overflow: hidden;
    object-position: top;
}

/* Team Content Container */
.team-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    /* Allows text to take remaining space */
}

/* Team member name */
.member-name {
    font-size: 38px;
    font-weight: bold;
    color: #598688;
    margin-bottom: 5px;
}

/* team member designation */
.member-designation {
    font-size: 20px;
    color: #e98d38;
    font-weight: 600;
    margin-bottom: 10px;
    /* Space between date and content */
}

.brief-description {
    background: #f7c39ce5;
    padding: 15px;
    border-radius: 25px;
    color: #0B595C;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    word-spacing: 1px;
}

/* Target <p> tags inside .brief-description */
.brief-description p {
    text-align: left !important;
    /* Force it left regardless of TinyMCE inline styles */
    margin: 0 0 10px 0;
    /* Optional: spacing between paragraphs */
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}


/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .team-card {
        flex-direction: column;
        /* Stack image and text on smaller screens */
        align-items: center;
    }

    .team-card img {
        width: 300px;
        /* Make sure width and height are equal */
        height: 300px;
        object-fit: cover;
        border-radius: 50%;
        /* Makes it circular */
        overflow: hidden;
        /* Ensures content stays within the circle */

    }

    .team-content-wrapper {
        width: 100%;
        text-align: left;
    }

    .teamcontainer {
        max-width: 94%;
        width: 100%;
        padding: 20px;
        border-radius: 15px;
        margin-top: 30px;
        margin-left: -10px;
        margin-bottom: 30px;
        background: transparent;
        /* Hiding background color to hide container */
    }
}



/*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;
}