/* Header - Full Width */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: background 0.3s ease;
}


.header:hover {
    background: rgba(0, 0, 0, 0.63);
}

.header.scrolled {
    position: fixed;
    background: rgba(0, 0, 0, 0.63);
}

.header-inner {
    width: 100%;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    display: block;
}


.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
}

.nav-list {
    display: flex;
    gap: 98px;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}



.nav-item > a {
    color: #fff;
    font-size: 17px;
    padding: 25px 0;
    display: block;
    white-space: nowrap;
}

.nav-item > a:hover {
    color: #ccc;
}

/* Sub Menu - Dropdown */
.sub-menu {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    white-space: nowrap;
}

.header:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu li {
    margin-bottom: 12px;
    text-align: center;
}

.sub-menu li a {
    color: #fff !important;
    font-size: 17px;
    transition: color 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sub-menu li a:hover {
    color: #ccc !important;
}

/* User Menu */
.user-menu {
    display: flex;
    gap: 20px;
}

.user-menu a {
    color: #fff;
    font-size: 15px;
}

.user-menu a:hover {
    color: #ccc;
}

/* Mega Menu Background - Full Width */
.mega-menu-bg {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.63);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.header:hover .mega-menu-bg {
    opacity: 1;
    visibility: visible;
}

/* Header Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }

    .main-nav {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .nav-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mega-menu {
        display: none;
    }
}
