.yk-services {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    color: #111827;
}

.yk-services-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    margin: 32px 0 24px;
}

.yk-services-hero > div,
.yk-services-hero__box,
.yk-services-card,
.yk-services-empty,
.yk-services-cta {
    box-sizing: border-box;
    border: 1px solid #d8dee8;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.yk-services-hero > div {
    padding: 38px;
    border-radius: 24px;
}

.yk-services-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.yk-services-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #111827;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.yk-services-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.72;
}

.yk-services-hero__box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    border-radius: 24px;
    background: #111827;
    color: #ffffff;
}

.yk-services-hero__box strong {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.yk-services-hero__box span {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.65;
}

.yk-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.yk-services-card {
    overflow: hidden;
    min-height: 238px;
    border-radius: 20px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.yk-services-card:hover {
    transform: translateY(-2px);
    border-color: #111827;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.yk-services-card__link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    height: 100%;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.yk-services-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #d8dee8;
    border-radius: 16px;
    background: #f8fafc;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.yk-services-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.yk-services-card h2 {
    margin: 0;
    color: #111827;
    font-size: 21px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.yk-services-card p {
    margin: 11px 0 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.66;
}

.yk-services-card__more {
    margin-top: auto;
    padding-top: 18px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.yk-services-empty {
    margin: 0 0 24px;
    padding: 28px;
    border-radius: 20px;
}

.yk-services-empty h2 {
    margin: 0 0 8px;
    color: #111827;
}

.yk-services-empty p {
    margin: 0;
    color: #4b5563;
}

.yk-services-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 44px;
    padding: 30px;
    border-radius: 24px;
    background: #f8fafc;
}

.yk-services-cta h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.yk-services-cta p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #4b5563;
    line-height: 1.7;
}

.yk-services-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 1040px) {
    .yk-services-hero,
    .yk-services-cta {
        grid-template-columns: 1fr;
    }

    .yk-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yk-services-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .yk-services-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .yk-services {
        width: min(100% - 20px, 100%);
    }

    .yk-services-hero {
        margin-top: 20px;
        gap: 16px;
    }

    .yk-services-hero > div,
    .yk-services-hero__box,
    .yk-services-cta {
        padding: 22px;
        border-radius: 20px;
    }

    .yk-services-hero h1 {
        font-size: 34px;
    }

    .yk-services-hero p {
        font-size: 16px;
    }

    .yk-services-grid {
        grid-template-columns: 1fr;
    }

    .yk-services-card {
        min-height: auto;
    }

    .yk-services-card__link {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .yk-services-card__icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .yk-services-actions {
        width: 100%;
        flex-direction: column;
    }

    .yk-services-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ALL PAGES COLOR ONLY SERVICES START */
.yk-services {
    color: #0f172a;
}

.yk-services-hero > div {
    border-color: #bfdbfe;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(180deg, #eff6ff 0%, #ffffff 58%, #f8fafc 100%);
}

.yk-services-eyebrow {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.yk-services-hero__box {
    border-color: #1d4ed8;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    box-shadow: 0 18px 42px rgba(29, 78, 216, 0.20);
}

.yk-services-card {
    border-color: #d8dee8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.yk-services-card:nth-child(6n+1) { border-color: #bfdbfe; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 58%); }
.yk-services-card:nth-child(6n+2) { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 58%); }
.yk-services-card:nth-child(6n+3) { border-color: #fed7aa; background: linear-gradient(180deg, #fff7ed 0%, #ffffff 58%); }
.yk-services-card:nth-child(6n+4) { border-color: #ddd6fe; background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 58%); }
.yk-services-card:nth-child(6n+5) { border-color: #a5f3fc; background: linear-gradient(180deg, #ecfeff 0%, #ffffff 58%); }
.yk-services-card:nth-child(6n+6) { border-color: #fecaca; background: linear-gradient(180deg, #fef2f2 0%, #ffffff 58%); }

.yk-services-card:hover {
    border-color: #0f172a;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.yk-services-cta {
    border-color: #bfdbfe;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
        linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
/* ALL PAGES COLOR ONLY SERVICES END */

/* Service cards image support - isolated */
.yk-services-card__link--image {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.yk-services-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid #d8dee8;
    background: #f8fafc;
}

.yk-services-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yk-services-card__link--image .yk-services-card__content {
    flex: 1;
    padding: 20px 22px 22px;
}
