/* Developer template: service-details page (cf-insd).
 *
 * The shared cf-insd__*, cf-cta__*, sec-title-18, sub-title-service, wc-btn-default,
 * btn-hover-divide and wc-play-icon rules already ship in master-product-designer.css,
 * so this file only adds what that stylesheet does not cover: a title size that fits
 * long service names, the rich-text body and the project-cover slots.
 */

/* "Web Application Development" is far longer than the template's one-word demo title. */
.cf-insd__area .sec-title-18 {
    font-size: clamp(40px, 8.5vw, 140px);
    line-height: 1.02;
    overflow-wrap: break-word;
}

.cf-insd__title-wrapper {
    padding-inline: 15px;
}

.service-detail__subtitle {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-4);
}

/* Rich text imported from the old site: h2/h3/p/ul/figure. */
.service-prose__intro,
.service-prose__body > div,
.service-prose__body > p {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.5;
}

.service-prose h2 {
    margin: 55px 0 22px;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.service-prose h3 {
    margin: 40px 0 14px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

.service-prose > :first-child,
.service-prose__body > :first-child {
    margin-top: 0;
}

.service-prose ul {
    margin-bottom: 26px;
    padding-inline-start: 22px;
    list-style: disc;
}

.service-prose li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.5;
    list-style: disc;
}

.service-prose li::marker {
    color: var(--primary);
}

.service-prose strong {
    font-weight: 600;
    color: var(--white);
}

.light .service-prose strong {
    color: var(--black-2);
}

.service-prose a {
    color: var(--primary);
}

.service-prose figure {
    margin: 45px 0;
}

.service-prose img {
    display: block;
    width: 100%;
    height: auto;
}

/* Sidebar project covers, cropped to the template's portrait ratio. */
.service-detail__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 1s;
}

.service-detail__media:hover img {
    transform: scale(1.04);
}

.service-detail__caption {
    display: block;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-4);
}

.light .service-detail__caption {
    color: var(--gray);
}

/* Full-width strip: no play button, so let the image carry the section. */
.cf-insd__video-thumb img {
    display: block;
    object-fit: cover;
}

@media only screen and (max-width: 767px) {
    .service-prose h2 {
        margin-top: 40px;
        font-size: 30px;
    }

    .service-prose h3 {
        margin-top: 30px;
        font-size: 20px;
    }

    .service-prose__intro,
    .service-prose__body > div,
    .service-prose__body > p,
    .service-prose li {
        font-size: 16px;
    }

    .service-detail__subtitle {
        font-size: 16px;
    }
}

/* Services list in the sidebar: the current service is highlighted. */
.cf-insd__other-service ul li.is-active a {
    color: var(--white);
    font-weight: 500;
    padding-left: 14px;
    box-shadow: inset 3px 0 0 var(--primary);
}

.light .cf-insd__other-service ul li.is-active a {
    color: var(--black-2);
}

.cf-insd__other-service ul li.is-active a i {
    opacity: 1;
    visibility: visible;
    color: var(--primary);
}
