 /* Reset and Base Styles */
 *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Color Theme */
:root {
    --yinmn-blue: #485696;
    --platinum: #e7e7e7;
    --sunset: #f9c784;
    --pumpkin: #fc7a1e;
    --golden-gate-bridge: #f24c00;
}

/* Header and Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--yinmn-blue);
    color: var(--platinum);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--platinum);
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: var(--platinum);
    font-size: 20px;
    cursor: pointer;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
    margin-left: 20px;
}

.nav-link {
    color: var(--platinum);
    padding: 25px 15px;
    display: block;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--sunset);
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--platinum);
    border-bottom: 2px solid var(--platinum);
    transform: rotate(45deg);
    transition: transform 0.3s;
    vertical-align: 2px;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 20px;
    width: 800px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mega-menu.columns-3 {
    width: 600px;
    grid-template-columns: repeat(3, 1fr);
}

/* Fix for the last dropdown menu to prevent it from going off-screen */
.nav-item:last-child .mega-menu,
.nav-item:nth-last-child(2) .mega-menu {
    left: auto;
    right: 0;
    transform: none;
}

.nav-item:hover .mega-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
}

.dropdown-header {
    font-weight: bold;
    color: var(--yinmn-blue);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.dropdown-item {
    display: block;
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
}

.dropdown-item:hover {
    color: var(--pumpkin);
}

/* Mobile Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.drawer-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--yinmn-blue);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
}

.drawer-body {
    padding: 20px 0;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
}

.drawer-item {
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-item.dropdown-toggle::after {
    border-color: var(--yinmn-blue);
}

.drawer-submenu {
    display: none;
    padding: 10px 0 10px 20px;
    background-color: #f9f9f9;
}

.drawer-submenu-group {
    margin-bottom: 15px;
}

.drawer-submenu-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--yinmn-blue);
    padding: 5px 20px;
    font-size: 14px;
}

.drawer-submenu a {
    display: block;
    padding: 8px 20px;
    color: #555;
    font-size: 14px;
}

.drawer-submenu a:hover {
    color: var(--pumpkin);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        display: none;
    }
    
    .mega-menu {
        display: none !important;
    }
    
    .side-drawer.open {
        left: 0;
    }
    
    .drawer-overlay.open {
        display: block;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        width: 100%;
        left: 0;
        transform: none;
    }
}