body {
    margin: 0;
    padding: 0;
    background: url('BackroundImageHome.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

/* Transparent brown overlay that covers the whole background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(97, 60, 5, 0.5); /* Transparent brown overlay */
    z-index: -1;
}

/* Header navigation styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(132, 102, 87, 1);
    height: 80px;
    box-sizing: border-box;
    overflow: hidden;
}

header .logo img {
    width: 300px;
    margin-left: -40px;
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin-right: 0px;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 25px;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: white;
    left: 0;
    bottom: 0;
    transition: width 0.1s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main content container */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    position: relative;
}

/* Transparent brown overlay box */
.transparent-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(132, 102, 87, 0.0); /* Transparent brown overlay */
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    height: 60%;
    box-sizing: border-box;
}

/* Content section with images */
.content-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    flex: 1;
    margin: 0 20px;
}

.content-section img {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 10px;
}

.content-section:hover img {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

/* Text overlay for each image */
.text-overlay {
    background-color: rgba(132, 102, 87, 0.8); /* Solid brown block */
    color: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    width: 100%;
    max-width: 260px;
    text-align: center;
    font-weight: bold;
    text-transform: capitalize;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .transparent-box {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .content-section {
        margin: 10px 0;
    }
}
