﻿/* Service Navigation Mega Menu Styles */

header .menu-item-has-children .service-group {
    margin-bottom: 40px;
}

@media (max-width: 1440px) {
    header .menu-item-has-children .service-group {
        margin-bottom: 30px;
    }
}

@media (max-width: 900px) {
    header .menu-item-has-children .service-group {
        margin-bottom: 30px;
    }
}

header .menu-item-has-children .parent-service-title {
    color: #415d9b;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #415d9b;
}

@media (max-width: 1440px) {
    header .menu-item-has-children .parent-service-title {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #415d9b;
    }
}

@media (max-width: 900px) {
    header .menu-item-has-children .parent-service-title {
        font-size: 22px;
        line-height: 30px;
    }
}

header .menu-item-has-children .child-services-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    header .menu-item-has-children .child-services-list li {
        margin-bottom: 15px;
    }

@media (max-width: 1440px) {
    header .menu-item-has-children .child-services-list li {
        margin-bottom: 12px;
    }
}

header .menu-item-has-children .child-services-list li:last-child {
    margin-bottom: 0;
}

header .menu-item-has-children .child-services-list li a {
    color: #000000;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

@media (max-width: 1440px) {
    header .menu-item-has-children .child-services-list li a {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 900px) {
    header .menu-item-has-children .child-services-list li a {
        font-size: 15px;
        line-height: 22px;
        padding-left: 0;
    }
}

header .menu-item-has-children .child-services-list li a:hover {
    color: #415d9b;
    padding-left: 25px;
}

@media (max-width: 900px) {
    header .menu-item-has-children .child-services-list li a:hover {
        padding-left: 0;
    }
}

/* Scroll Down Indicator */
header .menu-item-has-children.active .scroll-down {
    opacity: 1;
    visibility: visible;
}

header .menu-item-has-children .scroll-down {
    position: absolute;
    right: 30px;
    top: 70%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    top:25rem;
    right:20px;
    visibility: hidden;
    transition: all 0.3s ease;
}

header .menu-item-has-children .scroll-down span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 15px;
    font-weight: 800;
    color: #415d9b;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header .menu-item-has-children .scroll-down .chevron {
    width: 20px;
    height: 3px;
    position: relative;
    animation: moveDown 2s ease-in-out infinite;
    color: #415d9b;
    font-size: 20px;
    right: -2.5px;
}

header .menu-item-has-children .scroll-down .chevron:nth-child(2) {
    animation-delay: 0s;
}

header .menu-item-has-children .scroll-down .chevron:nth-child(3) {
    animation-delay: 0.3s;
}

header .menu-item-has-children .scroll-down .chevron:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes moveDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@media (max-width: 1440px) {
    header .menu-item-has-children .scroll-down {
        right: 20px;
    }

    header .menu-item-has-children .scroll-down span {
        font-size: 11px;
    }

    header .menu-item-has-children .scroll-down .chevron {
        width: 18px;
    }
}

@media (max-width: 900px) {
    header .menu-item-has-children .scroll-down {
        display: none;
    }
}

/* Modern Mega Menu Footer with View All Button */
header .menu-item-has-children .mega-menu-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1440px) {
    header .menu-item-has-children .mega-menu-footer {
        margin-top: 30px;
        padding-top: 25px;
    }
}

@media (max-width: 900px) {
    header .menu-item-has-children .mega-menu-footer {
        margin-top: 25px;
        padding-top: 20px;
        display: none;
    }
}

header .menu-item-has-children .mega-menu-footer .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #415d9b 0%, #2c4270 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(65, 93, 155, 0.2);
    position: relative;
    overflow: hidden;
}

header .menu-item-has-children .mega-menu-footer .view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

header .menu-item-has-children .mega-menu-footer .view-all-btn:hover::before {
    left: 100%;
}

header .menu-item-has-children .mega-menu-footer .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 93, 155, 0.3);
    background: linear-gradient(135deg, #2c4270 0%, #1a2d52 100%);
}

header .menu-item-has-children .mega-menu-footer .view-all-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

header .menu-item-has-children .mega-menu-footer .view-all-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 1440px) {
    header .menu-item-has-children .mega-menu-footer .view-all-btn {
        padding: 12px 28px;
        font-size: 15px;
        gap: 10px;
    }

    header .menu-item-has-children .mega-menu-footer .view-all-btn i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    header .menu-item-has-children .mega-menu-footer .view-all-btn {
        padding: 10px 24px;
        font-size: 14px;
        gap: 8px;
    }

    header .menu-item-has-children .mega-menu-footer .view-all-btn i {
        font-size: 14px;
    }
}
