/* Mega Menu Styles */
.mega-menu-wrapper {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 31px;
    transform: translateX(-50%);
    width: 83vw;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
    z-index: 1000;
    margin-top: 10px;
    left: -10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.mega-menu-wrapper:hover .mega-menu,
.mega-menu-wrapper:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-category {
    margin-bottom: 0;
}

.mega-menu-title {
    color: #dc3545;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.mega-menu-title:hover  {
   font-weight: 900 !important;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 12px;
}

.mega-menu-list li:last-child {
    margin-bottom: 0;
}

.mega-menu-list a {
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mega-menu-list a:hover {
    color: #dc3545;
    padding-left: 5px;
}

/* Image and Caption Styles */
.mega-menu-image-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mega-menu .row {
    align-items: flex-start;
}

/* .mega-menu .row.g-4 .col-lg-8 .row.g-4 {
    max-height: 450px;
    overflow-y: scroll;
} */
.mega-menu-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    min-height: 400px;
    background: #1a1a1a;
    max-height: 400px;
    object-fit: cover;
}

.mega-menu-caption {
    color: #000000;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .mega-menu {
        max-width: 1200px;
        padding: 35px 25px;
    }
}

@media (max-width: 991.98px) {
    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        box-shadow: none;
        padding: 20px 15px;
        border-top: 1px solid #e9ecef;
        display: none;
    }

    .mega-menu-wrapper:hover .mega-menu,
    .mega-menu-wrapper:focus-within .mega-menu,
    .mega-menu-wrapper.active .mega-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .mega-menu .container-fluid {
        padding: 0;
    }

    .mega-menu .row {
        margin: 0;
    }

    .mega-menu .col-lg-4 {
        margin-bottom: 30px;
    }

    .mega-menu-image {
        min-height: 300px;
        margin-bottom: 12px;
    }

    .mega-menu-caption {
        font-size: 14px;
    }

    .mega-menu-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .mega-menu-list a {
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .mega-menu {
        padding: 15px 10px;
    }

    .mega-menu .col-md-6 {
        margin-bottom: 25px;
    }

    .mega-menu-image {
        min-height: 250px;
        margin-bottom: 10px;
    }

    .mega-menu-caption {
        font-size: 13px;
    }

    .mega-menu-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .mega-menu-list li {
        margin-bottom: 10px;
    }

    .mega-menu-list a {
        font-size: 13px;
    }
}

/* Ensure nav-link stays active on hover */
.mega-menu-wrapper .nav-link:hover {
    color: inherit;
}

/* Smooth transition for nav item */
.mega-menu-wrapper {
    transition: all 0.3s ease;
}