/* Same hover behavior as Services */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    
}

/* Dropdown box */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    width: 1134px !important;
    padding: 0px !important;
    border: none !important;
    left: -355px !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

/* 3 columns × 2 rows */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Each box */
.mega-box {
    display: flex;
    gap: 14px;
    padding: 22px 20px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Remove borders correctly */
.mega-box:nth-child(3),
.mega-box:nth-child(6) {
    border-right: none;
}
.mega-box:nth-child(4),
.mega-box:nth-child(5),
.mega-box:nth-child(6) {
    border-bottom: none;
}

/* Icons */
.mega-box i {
    font-size: 34px;
    color: #1f4aa8;
}

.mega-grid .mega-box div img{
    max-width: 50px;
}

/* Text */
.mega-box h6 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.mega-box a {
    display: block;
    font-size: 13px;
    color: #9a9a9a;
    text-decoration: none;
    margin-bottom: 3px;
}

.mega-box a:hover {
    color: #1f4aa8;
}

/* View All */
.view-all {
    font-weight: 600;
    text-decoration: underline;
}
/* ==============================
   MOBILE / TABLET MEGA MENU
============================== */

@media (max-width: 991px) {

    /* Disable hover behavior */
    .nav-item.dropdown:hover > .dropdown-menu {
        display: none;
    }

    /* Dropdown opens on click */
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: 1px solid #eee;
    }

    /* Stack grid to 1 column */
    .mega-grid {
        display: block;
    }

    /* Card layout */
    .mega-box {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 18px 16px;
    }

    .mega-box:last-child {
        border-bottom: none;
    }

    /* Icons smaller */
    .mega-box i {
        font-size: 28px;
    }

    /* Titles */
    .mega-box h6 {
        font-size: 14px;
    }

    /* Links */
    .mega-box a {
        font-size: 14px;
    }
}
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}
/* Desktop: 3 columns */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 991px) and (min-width: 576px) {
    .mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .mega-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 991px) {

    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none;
        transform: none !important;
    }

    .nav-item.dropdown:hover > .dropdown-menu {
        display: none;
    }
}

/* =========================
   VIEW ALL BUTTON
========================= */

.mega-view-all {
    text-align: center;
    padding: 12px 0 4px;
    border-top: 1px solid #e6ecf5;
    margin-top: 10px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #7acac2;
    background: #f2f6ff;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Hover effect */
.view-all-btn:hover {
    background: #7acac2;
    color: #fff;
}

.view-all-btn:hover i {
    transform: translateX(3px);
}
@media (max-width: 575px) {
    .view-all-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
