header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    padding-bottom: 12px;
}

.nav-menu > li > a,
.nav-menu > li > .dropdown-toggle {
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
    display: inline-block;
}

.nav-menu > li > a:hover,
.nav-menu > li > .dropdown-toggle:hover {
    color: var(--primary-red);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: var(--primary-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    opacity: 0.88;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-red);
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a:hover {
    padding-left: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
    color: #999999;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        position: relative;
        z-index: 1005 !important;
        transition: color 0.3s;
    }

    .nav-menu {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 85vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 90px 24px 30px !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15) !important;
        border: none !important;
        border-radius: 0 !important;
        z-index: 1004 !important;
        opacity: 1 !important;
        transform: translateX(100%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s !important;
        visibility: hidden !important;
        overflow-y: auto !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s !important;
    }
    
    /* Optional overlay background for the rest of the screen */
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1003;
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-menu > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
        margin-top: 10px;
    }
    
    .nav-menu > li > a,
    .nav-menu > li > .dropdown-toggle {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }

    .dropdown-content {
        position: static;
        display: none;
        min-width: 0;
        max-height: none;
        box-shadow: none;
        border: none;
        padding: 0 0 16px 16px;
        margin-top: 0;
        background: transparent;
        border-left: 2px solid #eaeaea;
        margin-left: 8px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 0;
        border-radius: 0;
        font-size: 15px;
        color: #444;
    }

    .dropdown-content a:hover {
        background: transparent;
        padding-left: 5px;
        color: var(--primary-red);
        transition: padding 0.3s, color 0.3s;
    }
}
