/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e9c48dbb;
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    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 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------  */



/* Customization of the Legal Section */
.Legal {
    height: auto;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.Legal h2 {
    color: rgb(116, 85, 28);
    font-size: 45px;
    margin-bottom: 10px;
}

.Legal p {
    font-size: 18px;
    color: #5c471b;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* Container for legal services cards */
.legalcontainer {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for multiple rows */
    gap: 20px;
    max-width: 1200px;
    justify-content: center;
    /* Align cards centrally */
    margin: 0 auto;
}

/* Individual card styling */
.card {
    background-color: rgba(255, 255, 255, 0.205);
    border-radius: 10px;
    overflow: hidden;
    width: calc(25% - 20px);
    /* Ensures 4 cards per row while accounting for gaps */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Card Image */
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Card Heading */
.card h3 {
    color: #856728;
    font-family: monospace;
    font-size: 1.5em;
    margin: 15px 0;
}

/* Card Paragraph */
.card p {
    font-family: sans-serif;
    color: #050505;
    font-size: 1em;
    padding: 0 15px 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Card Hover Effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .card {
        width: calc(33.33% - 20px);
        /* 3 cards per row for medium screens */
    }
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px);
        /* 2 cards per row for tablets */
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
        /* 1 card per row for small screens */
    }
}


/*this section styles the Yonga Odhiambo background text*/
.YO-section {
    position: relative;
    width: 100%;
    z-index: -1;
}

.large-YO {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 156px;
    font-weight: bold;
    color: #000;
    position: relative;
    right: 50px;
    bottom: 0;
    opacity: 0.05;
    margin-left: 80px;
}

.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;
    }
}

/*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;
}