
/* Service content enhancement */
.service-content-grid {
    display: grid;
    /*grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr);*/
    gap: 28px;
    align-items: stretch;
    margin-top: 28px
}

.service-content-card {
    background: #fff;
    border: 1px solid rgba(20,50,80,.10);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(20,50,80,.06)
}

    .service-content-card h3 {
        margin: 0 0 12px;
        font-size: 22px
    }

    .service-content-card p {
        margin: 0;
        line-height: 1.75;
        color: #526174
    }

.service-image-card {
    overflow: hidden;
    border-radius: 18px;
    background: #eef4f7;
    min-height: 280px
}

    .service-image-card img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 280px;
        object-fit: cover
    }

.service-detail-image {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 18px;
    margin: 24px 0
}

.service-reference-note {
    font-size: 13px;
    color: #718096;
    margin-top: 18px
}

.service-benefits {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin-top: 20px
}

.service-benefit {
    padding: 18px;
    border-radius: 14px;
    background: #f6f9fb
}

    .service-benefit strong {
        display: block;
        margin-bottom: 6px
    }

    .service-benefit span {
        color: #5c6978;
        line-height: 1.6;
        font-size: 14px
    }

@media(max-width:800px) {
    .service-content-grid {
        grid-template-columns: 1fr
    }

    .service-benefits {
        grid-template-columns: 1fr
    }

    .service-image-card, .service-image-card img {
        min-height: 220px
    }
}

.service-hero-media {
    margin: 0 auto 30px
}

    .service-hero-media img {
        display: block;
        width: 100%;
        height: clamp(260px,42vw,520px);
        object-fit: cover;
        border-radius: 20px;
        box-shadow: 0 14px 40px rgba(20,50,80,.10)
    }


/* Service page image reliability + right-side Services navigation */
.service-hero-media {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 34px;
    padding: 0;
    overflow: hidden;
    z-index: 2
}

    .service-hero-media img {
        display: block !important;
        width: 100% !important;
        height: clamp(260px,42vw,520px) !important;
        max-width: none !important;
        object-fit: cover !important;
        border-radius: 20px;
        box-shadow: 0 14px 40px rgba(20,50,80,.10);
        opacity: 1 !important;
        visibility: visible !important
    }

.service-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    gap: 34px;
    align-items: start
}

.service-sidebar {
    position: sticky;
    top: 110px;
    background: #073d3e;
    color: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(5,48,48,.14);
    max-height: calc(100vh - 130px);
    overflow: auto
}

.service-sidebar-title {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 5px
}

.service-sidebar-note {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,.65);
    margin-bottom: 18px
}

.service-sidebar-group {
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.10)
}

.service-sidebar-group-title {
    font-size: 14px;
    font-weight: 800;
    color: #9de7d9;
    margin-bottom: 7px;
    letter-spacing: .02em
}

.service-sidebar-subgroup {
    margin: 8px 0 8px 8px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.13)
}

.service-sidebar-subtitle {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,.72);
    margin: 6px 0 2px;
    text-transform: uppercase;
    letter-spacing: .06em
}

.service-sidebar-link {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 7px 4px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 7px;
    transition: .2s
}

    .service-sidebar-link:hover {
        background: rgba(255,255,255,.07);
        color: #fff;
        transform: translateX(2px)
    }

    .service-sidebar-link.active {
        background: #118376;
        color: #fff;
        font-weight: 800
    }

.service-sidebar-arrow {
    opacity: .6;
    font-size: 16px;
    line-height: 1
}

.service-sidebar-all {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #118376;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800
}

@media(max-width:1000px) {
    .service-layout {
        grid-template-columns: 1fr
    }

    .service-sidebar {
        position: static;
        max-height: none;
        overflow: visible
    }

    .service-sidebar-group {
        display: block
    }
}

@media(max-width:600px) {
    .service-hero-media {
        margin-bottom: 22px
    }

        .service-hero-media img {
            height: 250px !important;
            border-radius: 14px
        }

    .service-sidebar {
        padding: 20px
    }
}


/* Service mega-menu: Sub Category 1 expands locally; Sub Category 2 remains a real .html page. */
.service-menu .service-sub-item.has-children > .service-third-menu {
    display: none;
}

.service-menu .service-sub-item.has-children:hover > .service-third-menu,
.service-menu .service-sub-item.has-children.is-open > .service-third-menu {
    display: block;
}

/* Reference-informed service detail sections */
.reference-care-detail {
    margin: 30px 0 8px;
    padding: 30px;
    border: 1px solid #e2ebef;
    border-radius: 20px;
    background: linear-gradient(135deg,#f7fbfc,#ffffff);
    box-shadow: 0 10px 28px rgba(15,55,70,.05)
}

    .reference-care-detail .ref-kicker {
        font-size: 12px;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: #0b8175;
        font-weight: 800;
        margin-bottom: 8px
    }

    .reference-care-detail h2 {
        font-size: clamp(22px,2.3vw,30px);
        line-height: 1.25;
        margin: 0 0 12px;
        color: #123b47
    }

    .reference-care-detail p {
        line-height: 1.75;
        color: #536775;
        margin: 0 0 18px
    }

    .reference-care-detail h3 {
        font-size: 17px;
        color: #173f4a;
        margin: 20px 0 10px
    }

    .reference-care-detail ul {
        padding-left: 20px;
        margin: 0;
        color: #536775;
        line-height: 1.75
    }

    .reference-care-detail .ref-detail-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 18px
    }

    .reference-care-detail .ref-detail-panel {
        padding: 18px;
        border-radius: 14px;
        background: #fff;
        border: 1px solid #e6eef1
    }

    .reference-care-detail .ref-recovery {
        margin-top: 18px;
        padding: 16px 18px;
        border-left: 4px solid #138678;
        background: #eef8f6;
        border-radius: 8px;
        color: #385c61;
        line-height: 1.7
    }

@media(max-width:700px) {
    .reference-care-detail {
        padding: 22px
    }

        .reference-care-detail .ref-detail-grid {
            grid-template-columns: 1fr
        }
}
