html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Raleway', sans-serif; /* Apply Raleway font globally */
    background-color: #c1b3a0;
}

#home_banner {
    position: relative;
    width: 100%;
    height: auto; /* Ensures it scales properly with the image */
}

#home_banner img {
    display: block;
    width: 100%;
    height: auto; /* Maintains aspect ratio */
}

.banner-text {
    position: absolute;
    top: 50%;   /* Center vertically */
    left: 50%;  /* Center horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    color: #EED6CE; /* Text color */
    font-size: 3rem; /* Adjust size */
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Adds contrast for readability */
    width: 100%; /* Ensures it doesn’t get cut off */
}

/* Custom Footer Styles */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    background-color: #4A5424 !important; /* Ensures footer remains dark green */
    color: #EED6CE;
}

/* Custom Navbar Styles */
.navbar {
    background-color: #4A5424 !important;
}

.navbar .navbar-nav .nav-link {
    color: #EED6CE !important;
}

.navbar .navbar-nav .nav-link:hover {
    color: #9DA57E !important;
}

.navbar .navbar-nav .nav-item.active .nav-link {
    color: #9DA57E !important;
}

.navbar .navbar-nav .nav-link {
    transition: color 0.3s ease;
}

section {
    margin-bottom: 40px;
}

/* Adjustments for smaller screen sizes (<=576px) */
@media screen and (max-width: 576px) {
    .banner-text {
        font-size: 2rem;
        width: 90%;
    }

    .navbar {
        padding: 0.5rem;
    }

    .footer {
        padding: 15px;
    }

    /* Adjust column layout for smaller screens */
    section {
        margin-bottom: 20px;
        width: 100%;
    }
}

/* Adjustments for medium screen sizes (<=768px) */
@media screen and (max-width: 768px) {
    .navbar-collapse {
        background-color: #4A5424; /* Optional: to match the navbar */
    }
    .navbar-nav {
        text-align: center;
    }

    /* Adjust column size at 768px breakpoint */
    section {
        width: 50%; /* Two columns per row */
    }
}

/* Adjustments for larger screens (<=1199px) */
@media screen and (max-width: 1199px) {
    /* Adjust column size at 1199px breakpoint */
    section {
        width: 33.33%; /* Three columns per row */
    }

    /* Insert an empty <div> after every 3rd section */
    .row:nth-child(3n) {
        display: flex;
        justify-content: space-between;
    }
}

/* Ensure the Case Study section background matches the site */
.jumbotron, .card {
    background-color: #c1b3a0 !important; 
    color: #4A5424 !important;
}

/* Adjust buttons */
.btn-primary {
    background-color: #4A5424 !important; /* Dark green */
    border-color: #4A5424 !important;
}

.btn-primary:hover {
    background-color: #9DA57E !important; /* Lighter green on hover */
    border-color: #9DA57E !important; 
}

.smaller-img {
    width: 80%; /* Adjust the percentage to make the image smaller */
    height: auto; /* Maintain the aspect ratio */
}
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    background-color: #4A5424;
    color: #EED6CE;
    width: 100%;
}

body {
    background-color: #c1b3a0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.footer {
    background-color: #4A5424 !important;
}

