/* Basic Reset */
body, h1, p, ul, li {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Body and Wrapper */
body {
    background-color: #e6e6e6; /* Light grey background */
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

#wrapper {
    width: 960px; /* Fixed width as seen in images */
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Masthead */
#masthead {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px; /* Adjust as needed */
    box-sizing: border-box;
}

#masthead img {
    height: 60px; /* Adjust logo size */
    width: auto;
}

/* Simplified search input */
#search {
    position: relative;
}

#search input[type="text"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    width: 150px; /* Adjust search input width */
}

/* Banner */
#banner {
    width: 100%;
    overflow: hidden; /* Ensures image fits */
}

#banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Navigation Menu */
#menu {
    background-color: #333; /* Dark background for menu */
    height: 35px; /* Height of the menu bar */
    line-height: 35px;
    position: relative; /* Needed for dropdown positioning */
}

#menu ul {
    list-style: none;
    display: flex; /* Arrange main menu items horizontally */
    margin-left: 20px; /* Indent menu slightly */
}

#menu ul li {
    position: relative; /* For dropdown positioning */
}

#menu ul li a, #menu ul li span {
    display: block;
    padding: 0 15px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap; /* Prevent menu items from wrapping */
}

#menu ul li:hover > a, #menu ul li.active > a {
    background-color: #555; /* Hover/active state for main items */
}

/* Dropdown specific styles */
#menu ul ul {
    display: none; /* Hide sub-menus by default */
    position: absolute;
    top: 100%; /* Position below parent */
    left: 0;
    background-color: #555; /* Darker background for dropdown */
    min-width: 160px; /* Minimum width for dropdown */
    z-index: 100;
    flex-direction: column; /* Stack dropdown items vertically */
}

#menu ul li:hover > ul {
    display: flex; /* Show sub-menu on hover */
}

#menu ul ul li {
    border-bottom: 1px solid #666; /* Separator for dropdown items */
}

#menu ul ul li:last-child {
    border-bottom: none;
}

#menu ul ul li a {
    padding: 8px 15px; /* Adjust padding for dropdown items */
    color: #fff;
}

#menu ul ul li a:hover {
    background-color: #777; /* Hover state for dropdown items */
}

/* Inner Wrapper and Content */
#innerwrapper {
    padding: 20px;
    min-height: 400px; /* Ensure content area has some height */
}

#content {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

#content h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

#content p {
    margin-bottom: 10px;
}

/* Footer */
#footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}

#footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

#footer a:hover {
    text-decoration: underline;
}
