/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

header {
    background-color: saddlebrown;
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

nav ul.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav ul.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul.nav-links li a:hover {
    text-decoration: underline;
}

.content-wrapper {
    display: flex;
    margin-top: 120px; /* Adjust for header space */
    margin-bottom: 60px; /* Adjust for footer space */
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 180px); /* To avoid footer overlap */
}

/* Sidebar */
.sidebar .card:nth-child(1) {
    border: 8px solid darkred;
}

.sidebar .card:nth-child(2) {
    border: 8px solid darkmagenta;
}

.sidebar .card:nth-child(3) {
    border: 8px solid lightslategrey;
}
.sidebar {
    width: 25%;
    min-width: 250px;
    padding: 1rem;
    background-color: #fff;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    height: 100%;
}

.sidebar .card {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.sidebar .card img {
    border-radius: 4px;
}

/* Main Content */
main {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #fff;
    height: 100%;
}

main h2 {
    color: saddlebrown;
}

/* Carousel Styling */
.carousel img {
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

/* Footer */
footer {
    background-color: saddlebrown;
    color: white;
    text-align: center;
    padding: 0.5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Do not change the layout structure on smaller screens */
    .content-wrapper {
        flex-direction: row;
        height: calc(100vh - 180px); /* Keep content-wrapper height fixed */
    }

    /* Sidebar takes the same width, do not stack it */
    .sidebar {
        width: 25%;
        border-right: 1px solid #ccc;
    }

    /* Main content remains in place */
    main {
        flex: 1;
    }

    /* Navigation links should stay aligned and centered */
    nav ul.nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Footer */
    footer {
        position: relative; /* Ensure footer stays at the bottom */
    }
}
