/**
 * Hizmet / program detay sayfaları — global-layout + header-like-home ile uyumlu
 * body: inner-page service-detail-body detail-program nb-header-home
 */

:root {
    --sd-accent: #e11d48;
    --sd-accent-dark: #9f1239;
    --sd-gold: #eab308;
    --sd-text: #0f172a;
    --sd-muted: #475569;
    --sd-bg-light: #f8fafc;
    --sd-container: 1280px;
    --sd-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.service-detail-body {
    opacity: 0;
    transition: opacity 0.45s ease;
    background-color: #eef1f6;
}

body.service-detail-body.loaded {
    opacity: 1;
}

body.inner-page.service-detail-body {
    padding-top: 0 !important;
}

/* Tam sayfa açık zemin — ortada tek “kart” main yok */

body.service-detail-body main.sd-main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Hero yığını bittiği yerde içerik başlasın — ara boşlukta #eef1f6 şeridi yok */
.sd-hero-stack + main.sd-main > .sd-band--white:first-child .sd-inner {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.sd-band {
    width: 100%;
}

.sd-inner {
    max-width: var(--sd-container);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(14px, 3vw, 28px);
}

.sd-band--white {
    background: #ffffff;
}

.sd-band--muted {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.sd-band--steps {
    background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
    border-top: 1px solid #e2e8f0;
}

.sd-band--cta {
    background: #eef1f6;
    border-top: 1px solid #e2e8f0;
}

/* Kontrol listesi şeridi — koyu arka plan (program sayfaları) */
.sd-band--dark {
    background: linear-gradient(180deg, #0f172a 0%, #0a0f1a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.service-detail-body .sd-band--dark .sd-content-block h2 {
    color: #f8fafc;
}

body.service-detail-body .sd-band--dark .sd-content-block .sd-lead,
body.service-detail-body .sd-band--dark .sd-content-block > p {
    color: #94a3b8;
}

body.service-detail-body .sd-band--dark .sd-checklist li {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.service-detail-body .sd-band--dark .sd-checklist li i {
    color: #eab308;
}

body.service-detail-body .sd-inner .section-intro {
    margin-bottom: 0;
}

body.service-detail-body .sd-band--steps .steps-section {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    padding: 0;
}

body.service-detail-body .sd-band--cta .sd-inner {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

body.service-detail-body .sd-band--cta .final-cta {
    margin-left: 0;
    margin-right: 0;
}

.sd-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b45309;
    margin: 0 0 0.75rem;
}

.sd-note {
    margin: 1.25rem 0 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    color: #64748b !important;
}

/* Program menüsünde aktif sayfa */
body.service-detail-body .dropdown-content a.active {
    color: #b45309 !important;
    font-weight: 700 !important;
}

/* Hero’daki h1–h4’e dokunma (çift renk / hayalet metin önlenir) */
body.service-detail-body .sd-main h1,
body.service-detail-body .sd-main h2,
body.service-detail-body .sd-main h3,
body.service-detail-body .sd-main h4 {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    color: var(--sd-text);
    margin-top: 0;
}

/* Hero bloğu: tam ekran; özet kartı akışta değil — absolute + bottom ile konum (yukarı/aşağı net) */
.sd-hero-stack {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #05080f;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Hero — Kurumsal (kr-hero) ile aynı tam genişlik + fotoğraf; detail-program kart gölgesi iptal */
body.service-detail-body.detail-program .page-hero.page-hero--editorial {
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100%;
    max-width: none;
}

/* Hero — tam genişlik; metin ortada */
body.service-detail-body .page-hero.page-hero--editorial {
    position: relative;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: clamp(120px, 16vh, 180px) clamp(16px, 4vw, 32px) clamp(4.5rem, 11vw, 6.5rem);
    background-color: transparent;
}

/* sd-hero-stack: tam ekran hero + altta absolute kart; padding shorthand’ten sonra gelmeli */
body.service-detail-body.detail-program .sd-hero-stack .page-hero.page-hero--editorial {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding-bottom: clamp(9.5rem, 18vh, 13rem);
}

/* Program görselleri: resimler/sd-hero-*.png — yoksa hero_bg.png (ana sayfa) */
body.service-detail-body .page-hero.sd-hero--bluecard {
    --sd-hero-bg: url("../resimler/sd-hero-bluecard.png");
    --sd-hero-position: 58% 42%;
}

body.service-detail-body .page-hero.sd-hero--qualified {
    --sd-hero-bg: url("../resimler/sd-hero-qualified.png");
    --sd-hero-position: center 48%;
}

body.service-detail-body .page-hero.sd-hero--university {
    --sd-hero-bg: url("../resimler/sd-hero-university.png");
    --sd-hero-position: center 50%;
}

body.service-detail-body .page-hero.sd-hero--research {
    --sd-hero-bg: url("../resimler/sd-hero-research.png");
    --sd-hero-position: center 48%;
}

body.service-detail-body .hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #030712;
    background-image: var(--sd-hero-bg, url("../resimler/hero_bg.png"));
    background-size: cover;
    background-position: var(--sd-hero-position, center 55%);
    background-repeat: no-repeat;
    transform: none;
}

/* Kurumsal benzeri okunabilirlik; detail-page-premium gradient’ini ezer */
body.service-detail-body .page-hero--editorial .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(3, 6, 14, 0.5) 0%, rgba(5, 8, 15, 0.18) 38%, rgba(5, 8, 15, 0.08) 62%),
        linear-gradient(180deg, rgba(5, 8, 15, 0.35) 0%, rgba(5, 8, 15, 0.55) 52%, #05080f 100%) !important;
    pointer-events: none;
}

body.service-detail-body.detail-program .page-hero--editorial .hero-overlay {
    z-index: 2 !important;
}

body.service-detail-body .hero-mesh,
body.service-detail-body .hero-orb {
    display: none;
}

body.service-detail-body .page-hero--editorial .hero-container {
    max-width: 920px;
    padding: 0 clamp(16px, 4vw, 32px);
    position: relative;
    z-index: 3;
}

body.service-detail-body .hero-badge {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--sd-accent) 0%, var(--sd-accent-dark) 100%);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Başlık + lead — Kurumsal kr-hero ile aynı hiyerarşi, bir tık daha güçlü */
body.service-detail-body .hero-container h1 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

body.service-detail-body .hero-container h1 span {
    color: #eab308;
}

body.service-detail-body .hero-container p {
    font-size: clamp(1.05rem, 2.1vw, 1.3rem);
    color: #e2e8f0;
    max-width: 42rem;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.65;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

/* Eski .main-content kaldırıldı — sd-main + sd-band kullanılır */

body.service-detail-body .section-intro {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: clamp(3.5rem, 7vw, 5rem);
}

body.service-detail-body .intro-text h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 1rem;
    line-height: 1.2;
}

body.service-detail-body .intro-text h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--sd-accent), var(--sd-gold));
    border-radius: 4px;
}

body.service-detail-body .intro-text p {
    font-size: 1.0625rem;
    color: var(--sd-muted);
    margin: 0 0 1.15rem;
    line-height: 1.75;
}

/* Hero ile aynı dosya (sd-hero-*.png); sütunda ortalı, oran korunur (bozulma yok) */
body.service-detail-body .intro-image {
    justify-self: center;
    width: 100%;
    max-width: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #e8ecf2;
}

body.service-detail-body .intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Özet kartı — stack’e göre absolute; bottom büyüdükçe kart YUKARI çıkar */
.sd-hero-stack .sd-stats-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(3.75rem, 8.5vh, 6.25rem);
    width: 100%;
    max-width: var(--sd-container);
    margin: 0;
    padding: 0 clamp(16px, 4vw, 32px);
    z-index: 5;
    box-sizing: border-box;
}

.sd-stats-wrap {
    margin: clamp(-2.5rem, -5vw, -3.5rem) auto clamp(1.25rem, 3vw, 2rem);
    position: relative;
    z-index: 5;
    max-width: var(--sd-container);
    padding: 0 clamp(16px, 4vw, 32px);
}

.sd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(234, 179, 8, 0.32);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.sd-stat {
    text-align: center;
    padding: clamp(1.25rem, 2.5vw, 1.65rem) 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-stat:last-child {
    border-right: none;
}

.sd-stat__icon {
    color: #eab308;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sd-stat__value {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.sd-stat__label {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.35;
}

/* Özellik grid */
body.service-detail-body .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

body.service-detail-body .feature-item {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8edf3;
    transition: var(--sd-transition);
}

body.service-detail-body .feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    border-color: rgba(234, 179, 8, 0.4);
}

body.service-detail-body .feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #b45309;
    margin-bottom: 1.15rem;
}

body.service-detail-body .feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

body.service-detail-body .feature-item p {
    color: var(--sd-muted);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0;
}

/* İçerik blok + iki sütun */
.sd-content-block {
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.sd-content-block h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    margin-bottom: 1rem;
}

.sd-content-block > p,
.sd-content-block .sd-lead {
    color: var(--sd-muted);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 1.25rem;
}

.sd-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.sd-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.55;
}

.sd-checklist li i {
    color: var(--sd-gold);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Adımlar */
body.service-detail-body .steps-section {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
    border-radius: 28px;
    margin-bottom: clamp(3.25rem, 6.5vw, 5rem);
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

body.service-detail-body .steps-header h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    margin: 0 0 0.35rem;
}

body.service-detail-body .steps-header p {
    color: var(--sd-muted);
    margin: 0;
    font-size: 1rem;
}

body.service-detail-body .steps-container {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    padding: clamp(1.5rem, 3vw, 2.5rem) 4% 0;
}

body.service-detail-body .step-step {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
}

body.service-detail-body .step-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #0f172a, #334155);
    color: #fde047;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 1rem;
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
}

body.service-detail-body .step-step h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--sd-text);
}

body.service-detail-body .step-step p {
    font-size: 0.9rem;
    color: var(--sd-muted);
    margin: 0;
    line-height: 1.55;
}

/* SSS bandı — üst boşluk (adımlar ile arayı aç) */
.sd-band--white:has(.sd-faq) .sd-inner {
    padding-top: clamp(2.75rem, 5.5vw, 4.25rem);
}

/* SSS — başlık ve sorular ortalı */
.sd-faq {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
}

.sd-faq h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    margin: 0 0 0.65rem;
}

.sd-faq > .sd-lead {
    color: var(--sd-muted);
    margin: 0 auto 1.75rem;
    font-size: 1rem;
    max-width: 40rem;
    line-height: 1.65;
}

.sd-faq__item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;
    text-align: center;
}

.sd-faq__item summary {
    padding: 1.15rem 2.85rem 1.15rem 1.15rem;
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--sd-text);
    cursor: pointer;
    list-style: none;
    display: block;
    position: relative;
    text-align: center;
}

.sd-faq__item summary::-webkit-details-marker {
    display: none;
}

.sd-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ca8a04;
    line-height: 1;
}

.sd-faq__item[open] summary::after {
    content: "−";
}

.sd-faq__item p {
    margin: 0;
    padding: 0 1.35rem 1.2rem;
    font-size: 0.94rem;
    line-height: 1.75;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    text-align: center;
}

/* CTA */
body.service-detail-body .final-cta {
    text-align: center;
    padding: clamp(2.75rem, 5vw, 4rem) 4%;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(234, 179, 8, 0.18);
}

body.service-detail-body .final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(234, 179, 8, 0.12), transparent 55%);
    pointer-events: none;
}

body.service-detail-body .final-cta h2,
body.service-detail-body .final-cta p {
    position: relative;
    z-index: 1;
    color: #f8fafc;
}

body.service-detail-body .final-cta p {
    opacity: 0.88;
    font-size: 1.05rem;
    margin: 0 auto 1.5rem;
    max-width: 520px;
}

body.service-detail-body .cta-btn-xl {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--sd-accent), #be123c);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(225, 29, 72, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.service-detail-body .cta-btn-xl:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(225, 29, 72, 0.5);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .sd-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-stat:nth-child(2) {
        border-right: none;
    }

    .sd-stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sd-stat:nth-child(3),
    .sd-stat:nth-child(4) {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    body.service-detail-body .section-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body.service-detail-body .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sd-stats-grid {
        grid-template-columns: 1fr;
    }

    .sd-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sd-stat:last-child {
        border-bottom: none;
    }

    body.service-detail-body .steps-container {
        flex-direction: column;
        align-items: center;
    }

    body.service-detail-body .step-step {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Kart hero üstüne binmesin: absolute kalkar, hero tam ekran, özet kartı altta akışta */
    .sd-hero-stack {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: visible;
    }

    body.service-detail-body.detail-program .sd-hero-stack .page-hero.page-hero--editorial {
        box-sizing: border-box;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        min-height: 100svh !important;
        padding-top: clamp(100px, 14vh, 150px);
        padding-left: clamp(14px, 4vw, 24px);
        padding-right: clamp(14px, 4vw, 24px);
        padding-bottom: clamp(2rem, 7vh, 3.5rem);
        flex: 0 0 auto;
    }

    body.service-detail-body .page-hero.sd-hero--bluecard {
        --sd-hero-position: 62% 40%;
    }

    .sd-hero-stack .sd-stats-wrap {
        position: relative;
        left: auto;
        right: auto;
        transform: none;
        bottom: auto;
        width: 100%;
        max-width: var(--sd-container);
        margin: 0 auto;
        padding: 0 clamp(16px, 4vw, 32px) clamp(1.25rem, 4vw, 2rem);
        z-index: 5;
    }
}
