#main-container {
    margin: 0;
    padding: 0;
    background-color: #7b1113; 
}

#main-container .main-header #header {
    background-color: #1f1f1fd0;
    color: white;
    padding: 5px 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#main-container .main-header #header p {
    padding: 0px;
}

/* Nav-header container styling */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background-color: #7b1113;
    position: relative;
}

.nav-header #nav {
    background-color: #7b1113;
    color: white;
}

.nav-header #nav a {
    color: white;
}

/* Logo container */
#logo img {
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
}

/* Nav links */
#nav {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

#nav li a:hover {
   font-weight: bold;
      border-bottom: 2px solid  #F3AA2c;
        background-color: transparent !important;
        background: none !important;
        border-radius: 0 !important;
        color: white;
}

#nav li a.active {
    font-weight: bold;
      border-bottom: 2px solid  #F3AA2c;
        background-color: transparent !important;
        background: none !important;
        border-radius: 0 !important;
        color: white;
}



/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Announcements */
.announcements {
    background-color: #004522;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
}

.announcements .scroll-content {
    display: inline-block;
    animation: marquee 60s linear infinite;
}

.announcements:hover .scroll-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide flush-right content on very small screens or make it smaller */
    #main-container .main-header #header {
        padding: 5px;
    }
    
    #main-container .main-header #header .flush-right {
        font-size: 12px;
    }
    
    /* Mobile nav styling */
    #nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #7b1113;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, box-shadow 0.3s ease;
        z-index: 1000;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    
    #nav.mobile-menu-open {
        max-height: 300px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    #nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #nav li:last-child {
        border-bottom: none;
    }
    
    #nav li a {
        display: block;
        padding: 15px 20px;
        color: white;
        border-radius: 0;
    }
    
    #nav li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    #nav li a.active {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Tablet responsive adjustments */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .nav-header {
        padding: 8px 15px;
    }
    
    #nav {
        gap: 10px;
    }
    
    #nav li a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    #main-container .main-header #header .flush-right {
        font-size: 10px;
    }
    
    #main-container .main-header #header .flush-right p {
        margin: 0;
    }
    
    #logo img {
        max-height: 40px;
    }
    
    .announcements {
        padding: 10px 0;
        font-size: 14px;
    }
}