
.main-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000 !important;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

.main-header-wrapper.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.main-header-wrapper.scrolled .top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
    opacity: 0;
}

.top-bar {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 3px solid #f89429;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, 
                opacity 0.4s ease-in-out, 
                padding 0.4s ease-in-out, 
                border-bottom-width 0.4s ease-in-out;
    opacity: 1;
    position: relative;
    z-index: 1001;
}

.offer-scroll-container {
    overflow: hidden;
    position: relative;
    height: 24px;
    width: 100%;
}

.offer-scroll-wrapper {
    display: flex;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 60px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.offer-item i {
    color: #f89429;
    font-size: 16px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.offer-scroll-wrapper:hover {
    animation-play-state: paused;
}

.main-header {
    background: #fff;
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 1001;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1002;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s;
    display: block;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.nav-container nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-container nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-container nav > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-container nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 6px;
    white-space: nowrap;
    height: 100%;
}

.nav-container nav > ul > li > a:hover,
.nav-container nav > ul > li.active > a {
    color: #f89429;
    background: rgba(255, 107, 53, 0.08);
}

.mega-dropdown > a::after
 {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 11px;
    transition: transform 0.3s ease;
}

@media (min-width: 993px) {
    .nav-container .mega-dropdown:hover > a::after,
    .nav-container .dropdown:hover > a::after {
        transform: rotate(180deg);
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1003;
}

@media (min-width: 993px) {
    .nav-container .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 13px 20px;
    border-radius: 0;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f89429;
    color: #fff;
    padding-left: 25px;
}

.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #fff;
    min-width: 900px;
    max-width: 1100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1003;
}

@media (min-width: 993px) {
    .mega-dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.mega-menu-section h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f89429;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-section h4 i {
    color: #f89429;
}

.mega-menu-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-menu-section ul li {
    display: block;
}

.package-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    background: #fff;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.package-item:hover {
    background: #f8f9fa;
    border-color: #f89429;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.package-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-image i {
    font-size: 32px;
    color: #fff;
}

.package-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.package-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14.5px;
    margin-bottom: 4px;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.package-item:hover .package-title {
    color: #f89429;
}

.package-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.ctas-button {
    background: linear-gradient(135deg, #f89429 100%);
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ctas-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    color: #fff !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
    z-index: 1002;
}

.mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* CRITICAL FIX: Mobile Overlay - Only show when active */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100; /* REDUCED and stays below mobile menu */
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1101; 
}

.mobile-menu.active {
    right: 0;
    display: block; /* Show only when active */
}

.mobile-menu-header {
    background: linear-gradient(135deg, #f89429 0%, #ff6b35 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
}

.mobile-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.mobile-menu-content {
    flex: 1;
    padding: 10px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    background: #fff;
}

.mobile-menu-link:active {
    background: rgba(255, 107, 53, 0.1);
}

.mobile-menu-link i {
    font-size: 16px;
    margin-right: 12px;
    color: #f89429;
    width: 20px;
}

.mobile-menu-link .arrow {
    color: #999;
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s;
}

.mobile-menu-item.active .mobile-menu-link .arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
}

.mobile-menu-item.active .mobile-submenu {
    max-height: 1500px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 52px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.mobile-submenu-link:active {
    background: rgba(255, 107, 53, 0.08);
    border-left-color: #f89429;
}

.mobile-submenu-link i {
    margin-right: 10px;
    font-size: 14px;
    color: #f89429;
}

.mobile-package-section {
    padding: 15px 20px;
}

.mobile-package-title {
    color: #2c3e50;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-package-title i {
    color: #f89429;
}

.mobile-package-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-package-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.mobile-package-item:active {
    transform: scale(0.98);
    border-color: #f89429;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.mobile-package-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-package-info {
    flex: 1;
    min-width: 0;
}

.mobile-package-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
    line-height: 1.3;
}

.mobile-package-desc {
    color: #666;
    font-size: 11px;
    line-height: 1.3;
}

.mobile-menu-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.mobile-cta-button {
    background: linear-gradient(135deg, #f89429 0%, #ff6b35 100%);
    color: #fff;
    padding: 14px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s;
}

.mobile-cta-button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

@media (max-width: 1200px) {
    .header-content {
        padding: 0 20px;
    }

    .nav-container nav ul {
        gap: 0;
    }

    .nav-container nav ul li a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .mega-menu {
        min-width: 700px;
    }

    .package-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        display: none !important;
    }

    .header-content {
        min-height: 75px;
    }

    .logo img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 10px 0;
    }
    
    .offer-scroll-container {
        height: 20px;
    }

    .offer-item {
        font-size: 13px;
        padding: 0 40px;
    }

    .offer-item i {
        font-size: 14px;
    }

    .header-content {
        padding: 0 15px;
    }

    .mobile-menu {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 8px 0;
    }

    .offer-scroll-container {
        height: 18px;
    }

    .offer-item {
        font-size: 12px;
        padding: 0 30px;
    }

    .offer-item i {
        font-size: 13px;
    }

    .logo img {
        height: 55px;
    }

    .header-content {
        padding: 0 12px;
        min-height: 70px;
    }

    .mobile-menu {
        max-width: 95%;
    }

    .mobile-menu-header {
        padding: 15px;
    }

    .mobile-menu-title {
        font-size: 16px;
    }
}