/* =========================================================================
   Services Mega-Menu (Desktop) + Service Detail Pages
   ========================================================================= */

/* ---------- Desktop Mega Menu ---------- */
@media (min-width: 992px) {
    .header__area-menubar-center-menu ul li.has-mega {
        position: static;
    }

    .header__area-menubar-center-menu ul li.has-mega > .sub-menu.mega-menu {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 1320px;
        margin: 0 auto;
        padding: 28px 30px;
        background: #ffffff;
        border-top: 3px solid var(--primary-color-1, #8B0000);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 26px;
        min-width: 0;
    }

    @media (min-width: 1400px) {
        .header__area-menubar-center-menu ul li.has-mega > .sub-menu.mega-menu {
            grid-template-columns: repeat(7, 1fr);
        }
    }

    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col {
        position: static;
        padding: 0;
        margin: 0;
        display: block;
    }

    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col::after {
        display: none;
    }

    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col > a {
        display: block;
        padding: 0 0 8px 0;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: #1a1f2e;
        border-bottom: 1px solid #e9ecef;
        line-height: 1.3;
    }

    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col > a:hover {
        color: var(--primary-color-1, #8B0000);
    }

    /* Inner sub-menu always visible inside the mega panel */
    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col > .sub-menu {
        position: static;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: 0;
        width: auto;
    }

    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col > .sub-menu li {
        display: block;
        padding: 0;
        margin: 0;
    }

    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col > .sub-menu li > a {
        display: block;
        padding: 5px 0;
        font-size: 13px;
        line-height: 1.4;
        color: #4a5568;
        border: none !important;
        font-weight: 400;
    }

    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col > .sub-menu li > a::after,
    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col > .sub-menu li > a::before {
        display: none !important;
    }

    .header__area-menubar-center-menu ul li.has-mega .sub-menu.mega-menu > li.mega-col > .sub-menu li > a:hover {
        color: var(--primary-color-1, #8B0000);
        padding-left: 4px;
        transition: padding 0.2s ease, color 0.2s ease;
    }
}

/* ---------- Service Detail Page ---------- */
.service-detail {
    padding: 80px 0 60px 0;
    background: #ffffff;
}

.service-detail__hero {
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 3px solid var(--primary-color-1, #8B0000);
}

.service-detail__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-color-1, #8B0000);
    margin-bottom: 12px;
}

.service-detail__title {
    font-size: 42px;
    line-height: 1.15;
    color: #1a1f2e;
    margin: 0 0 12px 0;
    font-weight: 700;
}

@media (max-width: 575px) {
    .service-detail__title {
        font-size: 30px;
    }
}

.service-detail__tagline {
    font-size: 17px;
    line-height: 1.5;
    color: #5a6577;
    max-width: 820px;
    margin: 0;
}

.service-detail__section {
    margin-bottom: 32px;
}

.service-detail__section h3 {
    font-size: 20px;
    line-height: 1.3;
    color: #1a1f2e;
    margin: 0 0 12px 0;
    padding-left: 14px;
    border-left: 4px solid var(--primary-color-1, #8B0000);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.service-detail__section p {
    font-size: 15px;
    line-height: 1.7;
    color: #3d4658;
    margin: 0 0 10px 0;
}

.service-detail__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-detail__list li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #3d4658;
}

.service-detail__list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color-1, #8B0000);
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 12px;
}

.service-detail__sidebar {
    background: #f7f8fa;
    border-left: 4px solid var(--primary-color-1, #8B0000);
    padding: 28px 26px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.service-detail__sidebar h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1a1f2e;
    margin: 0 0 12px 0;
}

.service-detail__sidebar p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Related services */
.service-detail__related {
    background: #f7f8fa;
    padding: 60px 0;
}

.service-detail__related h2 {
    font-size: 28px;
    color: #1a1f2e;
    margin: 0 0 30px 0;
    font-weight: 700;
}

.service-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 24px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: block;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color-1, #8B0000);
}

.service-card__category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color-1, #8B0000);
    margin-bottom: 8px;
    display: block;
}

.service-card__title {
    font-size: 18px;
    color: #1a1f2e;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.3;
}

.service-card__arrow {
    font-size: 13px;
    color: var(--primary-color-1, #8B0000);
    font-weight: 600;
}

/* CTA band */
.service-detail__cta {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3548 100%);
    color: #fff;
    padding: 60px 0;
}

.service-detail__cta h2 {
    color: #fff;
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.service-detail__cta p {
    color: #c8cdd6;
    font-size: 16px;
    margin: 0 0 24px 0;
}

@media (max-width: 991px) {
    .service-detail__cta {
        text-align: center;
    }
    .service-detail__cta .text-end,
    .service-detail__cta .jc-end {
        text-align: center !important;
        justify-content: center !important;
        margin-top: 18px;
    }
}

/* ---------- Services Hub Page ---------- */
.services-hub {
    padding: 70px 0;
    background: #ffffff;
}

.services-hub__category {
    margin-bottom: 50px;
}

.services-hub__category-header {
    border-left: 5px solid var(--primary-color-1, #8B0000);
    padding-left: 18px;
    margin-bottom: 22px;
}

.services-hub__category-header h2 {
    font-size: 26px;
    color: #1a1f2e;
    margin: 0 0 6px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.services-hub__category-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.services-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
