/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #e6f2ff; /* Light blue background */
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    background-color: #003366; /* Dark blue from banner */
    text-align: center;
    padding: 0;
    width: 100%;
}

/* Banner */
#banner {
    width: 55%; 
    /* max-width: 100%; */
    height: auto;
    /* display: block; */
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: center;
    background-color: #007acc; /* Medium blue */
    padding: 15px;
    gap: 10px;
}

.navbar a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s;
}

.navbar a:hover {
    background-color: #005f99; /* Slightly darker blue */
    border-radius: 5px;
}

/* Main Container */
.container {
    display: flex;
    margin: 20px auto;
    max-width: 1200px;
}

/* Sidebar Container */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 25%;
}

/* Sidebar */
.sidebar {
    background-color: #007acc; /* Medium blue */
    padding: 20px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 12px;
    border-bottom: 1px solid #005f99;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar ul li:hover {
    background-color: #005f99;
}

/* Content Area */
.content {
    width: 75%;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Product List */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product {
    border: 1px solid #ddd;
    padding: 20px;
    width: 250px;
    background: #f9f9f9;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
}

.product:hover {
    transform: scale(1.05);
}

/* Add to Cart Button */
.add-to-cart {
    background: #007acc;
    color: white;
    padding: 12px;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #005f99;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    background-color: #003366; /* Dark blue */
    color: white;
    margin-top: 20px;
    width: 100%;
}

/* New Navbar Styles */
.navbar {
    background-color: #007acc;
    padding: 10px 20px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: none;
}

/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
}

.nav-links a:hover {
    background-color: #005f99;
    border-radius: 5px;
}

/* Attempting a more desktop-like layout on smaller screens (Potentially less user-friendly) */
@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }

    .header {
        padding: 10px 0; /* Adjust header padding */
    }

    #banner {
        max-height: 150px; /* Adjust banner height as needed */
        width: 100%; /* Make banner full width */
        object-fit: contain; /* Or 'cover' */
        margin-bottom: 10px;
    }

    .navbar {
        padding: 10px;
    }

    .navbar-container {
        flex-direction: column; /* Stack brand and toggle */
        align-items: flex-start;
    }

    .brand {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .menu-toggle {
        display: block;
        align-self: flex-end;
    }

   .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch; /* Make children stretch to full width */
        background-color: #007acc;
        width: 100%; /* Ensure the container takes full width */
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block; /* Make each link a block-level element */
        width: 100%; /* Ensure each link takes full width */
        text-align: left;
        padding: 12px 15px;
        border-top: 1px solid #005f99;
        box-sizing: border-box; /* Include padding and border in width */
    }

    .container {
        flex-direction: row; /* Try to keep sidebar and content side-by-side */
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow-x: auto; /* Enable horizontal scrolling if content overflows */
        margin: 10px auto; /* Adjust margins */
        padding: 10px;
    }

    .sidebar-container {
        width: 30%; /* Adjust sidebar width */
        margin-right: 10px; /* Add some spacing */
        flex-shrink: 0; /* Prevent sidebar from shrinking */
    }

    .sidebar {
        padding: 10px; /* Adjust sidebar padding */
    }

    .content {
        width: 70%; /* Adjust content width */
        padding: 10px; /* Adjust content padding */
        flex-shrink: 0; /* Prevent content from shrinking */
    }

    .product-list {
        justify-content: flex-start; /* Keep products aligned left */
    }

    .product {
        width: calc(33.33% - 10px); /* Try for 3 products per row */
        margin-bottom: 10px;
    }

    .footer {
        padding: 10px;
        font-size: 0.9em;
        text-align: center; /* Center footer text */
    }
}
