.service-details {
    --service-primary: #009bc2;
    --service-primary-dark: #007fa0;
    --service-primary-soft: #eaf8fc;
    --service-ink: #17324d;
    --service-text: #455d73;
    --service-muted: #718396;
    --service-border: #dce7ef;
    --service-surface: #ffffff;
    padding: 30px 0 64px;
    background: linear-gradient(180deg, #f1f7fc 0, #f8fbfd 320px, #fff 760px);
    color: var(--service-ink);
}

.service-details .container {
    max-width: 1180px;
}

.service-details a {
    color: #006db2;
}

.service-details a:focus-visible,
.service-details button:focus-visible {
    outline: 3px solid rgba(0, 155, 194, .4);
    outline-offset: 4px;
}

.service-header {
    max-width: 980px;
    margin: 0 auto;
    padding: 38px 0 34px;
    text-align: center;
}

.service-details .service-header h1 {
    margin: 0;
    color: var(--service-ink);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.service-feature {
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--service-border);
    border-radius: 22px;
    background: var(--service-surface);
    box-shadow: 0 14px 42px rgba(25, 58, 83, .07);
}

.service-feature-link {
    display: block;
    padding: 12px;
    background: linear-gradient(135deg, #edf5fa, #f8fbfd);
}

.service-details .service-feature-image {
    display: block;
    width: 100%;
    max-height: 620px;
    margin: 0 auto;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
}

.service-section {
    min-width: 0;
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--service-border);
    border-radius: 20px;
    background: var(--service-surface);
    box-shadow: 0 10px 34px rgba(25, 58, 83, .055);
}

.service-description-section {
    width: 100%;
}

.service-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.service-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--service-primary-soft);
    color: var(--service-primary-dark);
    font-size: 1rem;
}

.service-section-icon--video {
    background: #fff0f0;
    color: #d62d2d;
}

.service-details .service-section-heading h2 {
    flex: 1 1 auto;
    margin: 0;
    color: var(--service-ink);
    font-size: 1.28rem;
    font-weight: 750;
    line-height: 1.5;
}

.service-count {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f1f5f8;
    color: var(--service-muted);
    direction: ltr;
    font-size: .84rem;
    font-weight: 600;
}

.service-prose {
    width: 100%;
    color: var(--service-text);
    font-size: 1.05rem;
    line-height: 2;
    overflow-wrap: anywhere;
}

.service-prose > :first-child {
    margin-top: 0;
}

.service-prose > :last-child {
    margin-bottom: 0;
}

.service-prose p,
.service-prose ul,
.service-prose ol {
    margin-bottom: 1.15rem;
}

.service-prose ul,
.service-prose ol {
    padding-inline-start: 1.6rem;
}

.service-prose li {
    margin-bottom: .5rem;
}

.service-prose h2,
.service-prose h3,
.service-prose h4 {
    margin-block: 1.5rem .7rem;
    color: var(--service-ink);
    line-height: 1.55;
}

.service-prose img,
.service-prose video,
.service-prose iframe,
.service-prose table {
    max-width: 100%;
}

.service-prose img {
    height: auto;
    border-radius: 10px;
}

.service-prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-prose blockquote {
    margin-inline: 0;
    padding: 14px 18px;
    border-inline-start: 4px solid var(--service-primary);
    border-radius: 8px;
    background: #f8fbfd;
}

.service-gallery-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2ebf1;
    border-radius: 16px;
    background: #f3f7fa;
}

.service-image-link {
    position: relative;
    display: block;
    min-height: 300px;
}

.service-details .service-image {
    display: block;
    width: 100%;
    height: clamp(320px, 52vw, 640px);
    object-fit: contain;
    background: #f3f7fa;
}

.service-image-hint {
    position: absolute;
    inset-inline-end: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(218, 228, 236, .95);
    border-radius: 9px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 18px rgba(25, 58, 83, .12);
    color: var(--service-ink);
    font-size: .82rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.service-gallery-controls[hidden] {
    display: none;
}

.service-gallery-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border: 1px solid rgba(216, 228, 237, .95);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 7px 22px rgba(25, 58, 83, .15);
    color: var(--service-primary-dark);
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.service-gallery-button:hover {
    border-color: rgba(0, 155, 194, .5);
    background: #fff;
    transform: scale(1.05);
}

.service-gallery-button--previous {
    left: 16px;
}

.service-gallery-button--next {
    right: 16px;
}

.service-details[dir="rtl"] .service-gallery-button--previous {
    right: 16px;
    left: auto;
}

.service-details[dir="rtl"] .service-gallery-button--next {
    right: auto;
    left: 16px;
}

.service-details[dir="rtl"] .service-gallery-button i {
    transform: scaleX(-1);
}

.service-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.service-thumbnail {
    flex: 0 0 88px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    opacity: .68;
    transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}

.service-thumbnail:hover,
.service-thumbnail[aria-current="true"] {
    border-color: var(--service-primary);
    opacity: 1;
    transform: translateY(-1px);
}

.service-details .service-thumbnail img {
    display: block;
    width: 78px;
    height: 68px;
    border-radius: 7px;
    object-fit: cover;
}

.service-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 16px;
    background: #101820;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.service-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.service-attachments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e0e9ef;
    border-radius: 14px;
    background: #fbfdfe;
    color: var(--service-ink) !important;
    text-decoration: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}

.service-attachment:hover {
    border-color: rgba(0, 155, 194, .45);
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 58, 83, .08);
    transform: translateY(-1px);
}

.service-attachment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--service-primary-soft);
    color: var(--service-primary-dark);
    font-size: 1.15rem;
}

.service-attachment-info {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.service-attachment-info strong {
    overflow: hidden;
    color: var(--service-ink);
    font-size: .95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-attachment-info small {
    color: var(--service-muted);
    font-size: .75rem;
    letter-spacing: .04em;
}

.service-attachment-open {
    flex: 0 0 auto;
    color: #8a9aab;
    font-size: .85rem;
}

.service-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--service-border);
}

.service-footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.service-details[dir="rtl"] .service-footer a i {
    transform: scaleX(-1);
}

@media (max-width: 991px) {
    .service-details {
        padding-bottom: 120px;
    }

    .service-feature-image {
        max-height: 520px;
    }
}

@media (max-width: 767px) {
    .service-header {
        padding: 28px 0 26px;
    }

    .service-section {
        padding: 20px;
        border-radius: 17px;
    }

    .service-attachments-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-details .service-image {
        height: clamp(280px, 70vw, 500px);
    }
}

@media (max-width: 575px) {
    .service-details {
        padding-top: 18px;
    }

    .service-details .container {
        padding-inline: 14px;
    }

    .service-header {
        padding: 24px 0 22px;
    }

    .service-details .service-header h1 {
        font-size: clamp(1.8rem, 9vw, 2.45rem);
    }

    .service-feature {
        border-radius: 16px;
    }

    .service-feature-link {
        padding: 8px;
    }

    .service-details .service-feature-image {
        border-radius: 10px;
    }

    .service-section {
        margin-top: 18px;
        padding: 16px;
        border-radius: 15px;
    }

    .service-section-heading {
        gap: 10px;
        margin-bottom: 16px;
    }

    .service-section-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .service-details .service-section-heading h2 {
        font-size: 1.12rem;
    }

    .service-prose {
        font-size: 1rem;
        line-height: 1.9;
    }

    .service-image-link {
        min-height: 240px;
    }

    .service-details .service-image {
        height: clamp(240px, 75vw, 390px);
    }

    .service-image-hint {
        display: none;
    }

    .service-gallery-button {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .service-gallery-button--previous {
        left: 10px;
    }

    .service-gallery-button--next {
        right: 10px;
    }

    .service-details[dir="rtl"] .service-gallery-button--previous {
        right: 10px;
        left: auto;
    }

    .service-details[dir="rtl"] .service-gallery-button--next {
        right: auto;
        left: 10px;
    }

    .service-thumbnail {
        flex-basis: 74px;
    }

    .service-details .service-thumbnail img {
        width: 64px;
        height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-gallery-button,
    .service-thumbnail,
    .service-attachment {
        transition: none;
    }
}
