/* ===================================
   MEGA MENU NAVIGATION STYLES (FIXED)
   =================================== */

/* Main Navigation Container */
.navbar-nav-primary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.main-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Navigation Items */
.nav-item {
    position: static;
    padding: 0;
}

/* Make sure dropdown items work */
.nav-item.dropdown {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: transparent;
    color: #e91e63 !important;
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    padding: 0;
    z-index: 9999;
    margin-top: 0;
    /* visibility:hidden already blocks pointer events — no need for pointer-events:none */
}

/* JS-controlled: menu-open class added by hover-intent logic */
.nav-item.menu-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Add invisible bridge to prevent gap issues */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 10000;
}

/* Simple Mega Menu */
.mega-menu-simple {
    width: 100%;
    left: 0;
    right: 0;
}

/* Mega Menu Content */
.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10001;
}

.mega-menu-simple .mega-menu-content {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Make everything inside mega menu clickable */
.mega-menu-content,
.mega-column,
.mega-menu-list,
.mega-menu-list li,
.mega-menu-list a {
    pointer-events: auto;
}

/* Mega Columns */
.mega-column {
    padding: 10px 0;
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.mega-column h5 {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding: 0;
}

.mega-column h6.section-title {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin: 20px 0 12px 0;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}

/* Mega Menu List */
.mega-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-list li {
    margin: 0;
    padding: 0;
}

.mega-menu-list a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    transition: all 0.2s ease;
    position: relative;
    pointer-events: auto;
}

.mega-menu-list a:hover {
    color: #007bff;
    padding-left: 5px;
}

/* CTA Buttons */
.nav-cta-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.cta-btn-primary,
.cta-btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.cta-btn-primary {
    background-color: #e91e63;
    color: white;
}

.cta-btn-primary:hover {
    background-color: #f52a6e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.cta-btn-secondary {
    background-color: #fff;
    color: #333;
    border-color: #ddd;
}

.cta-btn-secondary:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: #f9f9f9;
}

/* Sticky Header Styles */
.sticky-active {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #000 !important;
}

.sticky-active .nav-link {
    color: #fff !important;
}

.sticky-active .nav-link:hover {
    color: #e91e63 !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .mega-menu {
        top: 100%;
    }

    .mega-menu-content {
        gap: 60px;
        padding: 30px 40px;
    }

    .mega-column {
        flex: 1;
        min-width: 250px;
    }
}

/* Laptop/Tablet (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .mega-menu-content {
        gap: 40px;
        padding: 25px 30px;
        max-width: 100%;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 13px;
    }

    .mega-column {
        flex: 1;
        min-width: 200px;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .navbar-nav-primary {
        display: flex;
        flex-wrap: wrap;
    }

    .main-nav-menu {
        gap: 0;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 12px 10px;
        font-size: 12px;
        color: #333;
    }

    .mega-menu {
        position: static;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        background: #f9f9f9;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
        top: auto;
        margin-top: 0;
        padding: 0;
        pointer-events: auto;
    }

    .nav-item.menu-open .mega-menu,
    .nav-item.active .mega-menu {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
    }

    .mega-menu-content {
        gap: 30px;
        padding: 20px 20px;
        flex-direction: column;
    }

    .mega-column {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px;
        padding-right: 0;
    }

    .mega-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .nav-cta-buttons {
        width: 100%;
        margin-top: 10px;
        gap: 5px;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        text-align: center;
    }
}

/* Mobile (Below 768px) */
@media (max-width: 767px) {
    .navbar-nav-primary {
        display: none !important;
    }

    .nav-cta-buttons {
        display: none !important;
    }
}

/* ===================================
   NAVIGATION ACTIVE STATES
   =================================== */

.nav-item.active > .nav-link {
    color: #e91e63;
    background-color: transparent;
}

/* ===================================
   DIVIDER & SEPARATORS
   =================================== */

.mega-menu-content {
    border-top: 0;
}

.mega-column {
    padding-top: 0;
    border-right: 1px solid #f0f0f0;
    padding-right: 30px;
}

.mega-column:last-child {
    border-right: none;
    padding-right: 0;
}

/* ===================================
   SMOOTH SCROLLING
   =================================== */

html {
    scroll-behavior: smooth;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .mega-menu,
    .nav-cta-buttons {
        display: none;
    }
}

.header-area .main-header-area .main-menu ul.mega-menu-list li {
    margin: 0px;
}

.header-area .main-header-area .main-menu ul.mega-menu-list li a {
    padding: 8px 0px;
}

/* ===== PREVENT HERO SECTION FROM BLOCKING MEGA MENU ===== */
.hero-section,
.slider_bg_1 {
    position: relative;
    z-index: 1;
}

/* ===== FIX FOR CONSISTENT HOVER ===== */
.nav-item:hover {
    z-index: 10001;
}