/* =========================================
   DENEXA HEADER
========================================= */

.denexa-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #ffffff;
    border-bottom: 1px solid #edf1f5;
}

/* Navbar */

.denexa-header .navbar {
    min-height: 78px;
    padding: 8px 0;
}

/* Logo */

.denexa-logo {
    display: flex;
    align-items: center;
}

.denexa-logo img {
    width: 185px;
    height: auto;
    display: block;
}

/* Navigation */

.denexa-header .nav-link {
    position: relative;
    padding: 28px 15px !important;

    color: #172033 !important;

    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.denexa-header .nav-link:hover {
    color: #0878f9 !important;
}

/* Animated underline */

.denexa-header .nav-link::after {
    position: absolute;
    content: "";

    left: 15px;
    right: 15px;
    bottom: 17px;

    height: 2px;

    background: linear-gradient(
        90deg,
        #086cf5,
        #00c6ff
    );

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.denexa-header .nav-link:hover::after {
    transform: scaleX(1);
}

/* Remove Bootstrap arrow */

.denexa-header .dropdown-toggle::after {
    margin-left: 7px;
    vertical-align: 2px;
}

/* =========================================
   MEGA MENU
========================================= */

.denexa-mega-menu {
    width: 920px;

    left: 50%;
    transform: translateX(-50%);

    margin-top: 0 !important;

    padding: 30px !important;

    border: 1px solid #e8edf4 !important;
    border-radius: 0 0 18px 18px !important;

    background: #ffffff;

    box-shadow:
        0 20px 50px rgba(16, 40, 80, 0.12);

    animation: denexaMenu 0.2s ease;
}

@keyframes denexaMenu {

    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Heading */

.mega-heading {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 16px;

    color: #172033;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.mega-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 8px;

    color: #ffffff;

    font-size: 11px;

    background: linear-gradient(
        135deg,
        #086cf5,
        #00c6ff
    );
}

/* Service link */

.mega-link {
    display: block;

    padding: 10px 12px;

    margin-bottom: 4px;

    border-radius: 9px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.mega-link:hover {
    background: #f3f8ff;

    transform: translateX(4px);
}

.mega-link strong {
    display: block;

    color: #172033;

    font-size: 13px;
    font-weight: 650;
}

.mega-link small {
    display: block;

    margin-top: 3px;

    color: #788397;

    font-size: 11px;
    line-height: 1.4;
}

/* =========================================
   MEGA MENU BOTTOM
========================================= */

.mega-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid #edf1f5;
}

.mega-bottom strong {
    display: block;

    color: #172033;

    font-size: 14px;
}

.mega-bottom span {
    display: block;

    margin-top: 3px;

    color: #7b8799;

    font-size: 12px;
}

.mega-cta {
    display: inline-flex;

    align-items: center;
    gap: 10px;

    padding: 10px 17px;

    border-radius: 8px;

    color: #ffffff !important;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    background: linear-gradient(
        135deg,
        #086cf5,
        #00bce9
    );

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.mega-cta:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(8, 108, 245, 0.25);
}

/* =========================================
   HEADER CTA
========================================= */

.denexa-header-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 105px;

    padding: 11px 17px;

    border-radius: 8px;

    color: #ffffff !important;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    background: linear-gradient(
        135deg,
        #086cf5,
        #00bce9
    );

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.denexa-header-btn:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(8, 108, 245, 0.25);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 991.98px) {

    .denexa-header .navbar {
        min-height: 68px;
    }

    .denexa-logo img {
        width: 155px;
    }

    .denexa-header .navbar-collapse {
        padding: 15px 0 20px;
    }

    .denexa-header .nav-link {
        padding: 12px 5px !important;
    }

    .denexa-header .nav-link::after {
        display: none;
    }

    .denexa-header .nav-item {
        width: 100%;
    }

    .denexa-header-btn {
        width: 100%;
        margin-top: 5px;
    }

    /* Mobile dropdown */

    .denexa-mega-menu {
        position: static !important;

        width: 100%;

        transform: none !important;

        margin-top: 5px !important;

        padding: 15px !important;

        border: 1px solid #e8edf4 !important;
        border-radius: 12px !important;

        box-shadow: none;
    }

    .mega-bottom {
        display: block;
    }

    .mega-cta {
        width: 100%;

        justify-content: center;

        margin-top: 15px;
    }

    .mega-heading {
        margin-top: 10px;
    }
}

/* Small mobile */

@media (max-width: 575.98px) {

    .denexa-logo img {
        width: 140px;
    }

    .denexa-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mega-link {
        padding: 9px;
    }

}