/* ==================================================
   SSS — GENEL YERLEŞİM
   Son verilen butonlu faq.php ile birlikte kullanılır.
   ================================================== */

.yc-faq,
.yc-faq *,
.yc-faq *::before,
.yc-faq *::after {
    box-sizing: border-box;
}

.yc-faq {
    position: relative;
    isolation: isolate;
    z-index: 1;
    margin-top: 0;
    padding-block: clamp(48px, 5.2vw, 100px);
    color: #476e70;
    font-family: "Poppins", sans-serif;
}

/* Dekoratif arka plan. */
.yc-faq__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: fill;
    pointer-events: none;
}

/* Sorular ve fotoğraf: iki eşit sütun. */
.yc-faq__container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(28px, 3.5vw, 67px);
    width: 70.416667%;
    max-width: 1352px;
    margin-inline: auto;
}

.yc-faq__content,
.yc-faq__visual {
    min-width: 0;
}

/* ==================================================
   BAŞLIK
   ================================================== */

.yc-faq .yc-faq__title {
    margin: 0 0 clamp(20px, 2vw, 38px);
    color: #476e70;
    font-family: inherit;
    font-size: clamp(26px, 2.4vw, 46px);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: break-word;
}

/* ==================================================
   SORU BUTONLARI
   ================================================== */

.yc-faq__item {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgb(71 110 112 / 20%);
}

.yc-faq__item:last-child {
    border-bottom: 0;
}

.yc-faq .yc-faq__question {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;

    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: clamp(12px, 1.1vw, 21px) 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;

    color: #476e70;
    font-family: inherit;
    font-size: clamp(13px, 0.95vw, 18px);
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    text-transform: none;
    white-space: normal;
    cursor: pointer;

    transition: color 200ms ease;
}

.yc-faq__number {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.yc-faq__number::after {
    content: " –";
}

.yc-faq__question-text {
    min-width: 0;
    overflow-wrap: break-word;
}

.yc-faq .yc-faq__question:hover,
.yc-faq .yc-faq__question[aria-expanded="true"] {
    color: #234c50;
}

.yc-faq .yc-faq__question:focus-visible {
    outline: 2px solid #476e70;
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==================================================
   CEVAP ANİMASYONU
   Kapalı: 0fr / Açık: 1fr.
   Display:none kullanılmaz; yükseklik geçişi korunur.
   ================================================== */

.yc-faq .yc-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    min-height: 0;
    margin: 0;
    padding: 0;
    transition:
        grid-template-rows 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.yc-faq .yc-faq__item.is-open > .yc-faq__panel {
    grid-template-rows: 1fr;
}

/* Sıfıra küçülebilen ve içeriği kırpan katman.
   Bu elemana padding eklenmemelidir. */
.yc-faq .yc-faq__panel-inner {
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Cevabın boşluğu iç katmanda tutulur. */
.yc-faq .yc-faq__answer {
    margin: 0;
    padding: 0 0 clamp(14px, 1.3vw, 25px);
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 300ms ease,
        transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.yc-faq .yc-faq__item.is-open .yc-faq__answer {
    opacity: 1;
    transform: translateY(0);
}

.yc-faq .yc-faq__answer p {
    margin: 0;
    color: #374345;
    font-family: inherit;
    font-size: clamp(13px, 0.9vw, 17px);
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* ==================================================
   DOKTOR FOTOĞRAFI
   ================================================== */

.yc-faq__visual {
    overflow: hidden;
    border-radius: clamp(14px, 1.5vw, 28px);
}

.yc-faq__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* ==================================================
   MASAÜSTÜ — MEDİKAL ALANLA ÖRTÜŞME
   ================================================== */

@media (min-width: 1200px) {
    .yc-medical + .yc-faq {
        margin-top: clamp(-64px, -3.3vw, -32px);
    }
}

/* ==================================================
   TABLET — İKİ SÜTUN VE ÖRTÜŞME KORUNUR
   ================================================== */

@media (min-width: 768px) and (max-width: 1199.98px) {
    .yc-medical + .yc-faq {
        margin-top: clamp(-40px, -3.3vw, -25px);
    }

    .yc-faq__container {
        width: calc(100% - 64px);
        gap: 28px;
    }

    .yc-faq .yc-faq__question,
    .yc-faq .yc-faq__answer p {
        font-size: 14px;
    }
}

/* ==================================================
   MOBİL — SORULAR ÜSTTE, FOTOĞRAF ALTTA
   Medikal metinlerin üzerine binmez.
   ================================================== */

@media (max-width: 767.98px) {
    .yc-faq {
        margin-top: 0;
        padding-block: 40px;
        border-radius: 28px;
        background-color: #e5f0f0;
    }

    .yc-medical + .yc-faq {
        margin-top: 0;
    }

    .yc-faq__background {
        display: none;
    }

    .yc-faq__container {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 40px);
        gap: 28px;
    }

    .yc-faq .yc-faq__title {
        font-size: clamp(26px, 6vw, 34px);
    }

    .yc-faq .yc-faq__question {
        padding-block: 16px;
        font-size: 14px;
    }

    .yc-faq .yc-faq__answer p {
        font-size: 14px;
    }

    .yc-faq__visual {
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
        border-radius: 16px;
    }
}

/* Hareket azaltma tercihini korur. */
@media (prefers-reduced-motion: reduce) {
    .yc-faq .yc-faq__panel,
    .yc-faq .yc-faq__answer,
    .yc-faq .yc-faq__question {
        transition: none;
    }

    .yc-faq .yc-faq__answer {
        transform: none;
    }
}