/* Page-specific layout additions for the shared Sofat treatment-page template. */
.services-article {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.75;
}

.services-article p {
    margin-bottom: 1rem;
}

.services-article h2,
.services-article h3,
.services-article h4 {
    color: #20296E;
}

.services-article h2 {
    font-size: 25px;
    line-height: 1.3;
    margin-bottom: 18px;
}

.services-article h3 {
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 14px;
}

.services-article h4 {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.services-article a {
    color: #20296E;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(233, 30, 140, .45);
    text-underline-offset: 3px;
}

.services-article a:hover,
.services-article a:focus-visible {
    color: #e91e8c;
}

.services-feature-image {
    max-width: 100%;
    height: auto;
}

.services-feature-caption {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.services-price-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 16, 50, .045);
    -webkit-overflow-scrolling: touch;
}

.services-price-table {
    min-width: 700px;
    margin: 0;
    color: #475569;
    vertical-align: middle;
}

.services-price-table th {
    padding: 16px 18px;
    background: #f4f5ff;
    color: #20296E;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.services-price-table td {
    padding: 16px 18px;
    font-size: 14px;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-list li {
    min-height: 58px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #20296E;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

.services-detail-panel {
    height: 100%;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(10, 16, 50, .04);
}

.services-plain-list {
    margin: 0;
    padding-left: 22px;
}

.services-plain-list li {
    padding: 3px 0;
}

.services-video-embed {
    width: 100%;
    max-width: 860px;
    margin: 24px auto 0;
}

.services-video-side {
    max-width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(32, 41, 110, .1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 16, 50, .07);
}

.services-video-match-row > .services-video-match-column {
    display: flex;
}

.services-video-match-card {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.services-video-match-card .services-video-player {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
}

.services-video-side .services-video-player {
    border-radius: 12px;
    box-shadow: none;
}

.services-video-side .services-video-link-row {
    padding: 0 3px;
}

.services-detail-panel .services-video-embed {
    max-width: 100%;
    margin-top: 18px;
}

.services-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #0b1028;
    box-shadow: 0 12px 30px rgba(10, 16, 50, .1);
}

.services-video-launch {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.services-video-launch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.services-video-launch::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(9, 14, 43, .25), transparent 48%);
}

.services-video-launch:hover img {
    transform: scale(1.025);
}

.services-video-launch:focus-visible {
    outline: 3px solid #ff70a3;
    outline-offset: -4px;
}

.services-video-play {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 66px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 13px;
    background: #f00035;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    transition: background .2s ease, transform .2s ease;
}

.services-video-launch:hover .services-video-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: #cc002d;
}

.services-video-frame-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.services-video-link-row {
    margin-top: 9px;
    text-align: right;
}

.services-video-link {
    display: inline-flex;
    color: #20296E;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.services-video-link:hover,
.services-video-link:focus-visible {
    color: #e91e8c;
}

@media (max-width: 991px) {
    .services-article h2 {
        font-size: 26px;
    }

    .services-video-match-card .services-video-player {
        flex: initial;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 575px) {
    .services-list {
        grid-template-columns: 1fr;
    }

    .services-detail-panel {
        padding: 22px;
    }

    .services-article h2 {
        font-size: 24px;
    }
}
