/* ==================================================
   PLASTİK CERRAHİ UYGULAMALARI
   Masaüstü: 4 sütun / Tablet: 2 sütun / Mobil: 1 sütun
================================================== */

.yc-services,
.yc-services * {
    box-sizing: border-box;
}

.yc-services {
    margin: 0;
    padding: clamp(24px, 3vw, 58px) 0 clamp(48px, 5vw, 96px);
    background: #fff;
    color: #476e70;
    font-family: "Poppins", sans-serif;
}

.yc-services__container {
    width: 70.416667%;
    max-width: 1352px;
    margin: 0 auto;
}

/* Başlık ve açıklama */
.yc-services__heading {
    max-width: 1120px;
    margin: 0 auto clamp(28px, 2.5vw, 48px);
    text-align: center;
}

.yc-services__heading h2 {
    margin: 0 0 16px;
    color: #476e70;
    font-family: inherit;
    font-size: clamp(26px, 2.4vw, 46px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.yc-services__heading p {
    margin: 0;
    color: #374345;
    font-size: clamp(13px, 0.94vw, 18px);
    line-height: 1.5;
}

/* Kartlar doğal akışta; sabit kart yüksekliği yok */
.yc-services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(16px, 1.25vw, 24px);
}

.yc-services__card {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #e3eeee;
}

/* Bağlantılı ve henüz bağlantısı olmayan kartlar aynı görünür */
.yc-services__card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

/* Tüm kartlarda aynı görsel hover etkisi */
.yc-services__card-inner {
    transition: background-color 180ms ease;
}

.yc-services__card:hover .yc-services__card-inner,
.yc-services__card:focus-within .yc-services__card-inner {
    color: inherit;
    background: #d8e7e7;
}

/* El işareti yalnızca gerçekten bağlantısı olan kartlarda */
a.yc-services__card-inner {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .yc-services__card-inner {
        transition: none;
    }
}
a.yc-services__card-inner:focus-visible {
    outline: 3px solid #476e70;
    outline-offset: 4px;
}

/* Görseller farklı boyutta olsa da kartlarda aynı oranı korur */
.yc-services__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.65;
    overflow: hidden;
    border-radius: 14px;
    background: #d8e3e3;
}

.yc-services__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.yc-services__placeholder {
    padding: 16px;
    color: #476e70;
    font-size: 13px;
    text-align: center;
}

/* Kart metinleri */
.yc-services__body {
    flex: 1;
    padding: clamp(14px, 1.1vw, 21px);
    overflow-wrap: anywhere;
}

.yc-services__body h3 {
    margin: 0 0 10px;
    color: #476e70;
    font-family: inherit;
    font-size: clamp(15px, 1.05vw, 20px);
    font-weight: 500;
    line-height: 1.35;
}

.yc-services__body p {
    margin: 0;
    color: #374345;
    font-size: clamp(13px, 0.94vw, 18px);
    line-height: 1.5;
}

/* Bölüm altındaki butonlar */
.yc-services__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: clamp(24px, 2vw, 38px);
}

.yc-services__actions:empty {
    display: none;
}

.yc-services__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
}

.yc-services__button--primary {
    background: #476e70;
}

.yc-services__button--contact {
    background: #ba785d;
}

.yc-services__button--primary:hover {
    background: #365658;
    color: #fff;
}

.yc-services__button--contact:hover {
    background: #a6664d;
    color: #fff;
}

.yc-services__button:focus-visible {
    outline: 3px solid #263f40;
    outline-offset: 4px;
}

/* Tablet ve küçük dizüstü */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .yc-services__container {
        width: calc(100% - 64px);
    }

    .yc-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Mobil */
@media (max-width: 767.98px) {
    .yc-services {
        padding: 24px 0 48px;
    }

    .yc-services__container {
        width: calc(100% - 40px);
    }

    .yc-services__heading h2 {
        font-size: clamp(25px, 6.5vw, 32px);
    }

    .yc-services__heading p {
        font-size: 14px;
    }

    .yc-services__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .yc-services__body {
        padding: 18px;
    }

    .yc-services__body h3 {
        font-size: 19px;
    }

    .yc-services__body p {
        font-size: 14px;
    }

    .yc-services__actions {
        gap: 12px;
    }

    .yc-services__button {
        flex: 1 1 180px;
        min-width: 0;
    }
}