/************* Global & Container *************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Crucial: padding won't break your widths anymore */
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    background: #a99190;
}

#container {
    width: 100%;
    max-width: 740px; /* Limits desktop width */
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/************* Header & Nav *************/
#headerWrap {
    background: #45444d; /* Fallback if gif is missing */
    padding: 10px 20px;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Wraps menu on tiny screens */
}

#header h1 a {
    font-size: 30px;
    color: #a99190;
    text-decoration: none;
}

ul#navigation {
    display: flex;
    list-style: none;
}

ul#navigation li a {
    padding: 10px 15px;
    display: block;
    color: #fff;
    text-decoration: none;
}

/************* Content Layout *************/
#content {
    display: flex;
    flex-direction: row-reverse; /* Keeps #main on right, #secondary on left */
    flex-wrap: wrap;
    padding: 20px;
}

#main {
    flex: 1;
    min-width: 300px; /* Prevents text from getting too squeezed */
    margin-bottom: 20px;
}

#secondary {
    width: 220px;
    margin-right: 20px;
}

/* Header Image / Description */
#contentHeader {
    width: 100%;
    /* Remove the fixed height: 180px; */
    aspect-ratio: 740 / 180; /* This maintains the original banner shape */
    background: #44434c url(header.gif) no-repeat center;
    background-size: contain; /* This ensures the whole image is visible */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}
/************* Mobile Adjustments *************/
@media (max-width: 600px) {
    #content {
        flex-direction: column; /* Stacks sidebar and main content */
    }
    
    #secondary, #main {
        width: 100%;
        margin: 0 0 20px 0;
    }

    ul#navigation {
        width: 100%;
        justify-content: center;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 1. Hide the button on desktop */
#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

#menu-toggle span {
    width: 30px;
    height: 3px;
    background: #fff;
    transition: all 0.3s linear;
}

/* 2. Mobile Styles */
@media (max-width: 600px) {
    #menu-toggle {
        display: flex; /* Show the button */
    }

    ul#navigation {
        display: none; /* Hide the menu links initially */
        flex-direction: column;
        width: 100%;
        background: #45444d;
        text-align: center;
    }

    /* This class will be added by JavaScript when clicked */
    ul#navigation.show {
        display: flex;
    }
}

/************* Footer *************/
#footer {
    background: #45444d;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%;
}
