/************************************************************
 *  PrimeFit Exclusive — Tasarım Yükseltme Katmanı
 *  ---------------------------------------------------------
 *  custom.css'ten SONRA yüklenir; hiçbir mevcut kural silinmez,
 *  yalnızca üzerine yazılır. Geri almak için head.php'deki
 *  tek satırlık <link> etiketini kaldırmak yeterlidir.
 *
 *  Marka kimliği korunur: lacivert (#202737 / #171E2E) + altın
 *  (#D4AF37), Rajdhani başlık + Rubik metin. Değişen şey palet
 *  değil, uygulamasıdır: derinlik, hiyerarşi, kenar, ritim.
 ************************************************************/

:root {
    /* Mevcut paletten türetilen ara tonlar — yeni renk DEĞİL,
       var olan lacivert ve altının kademeleri. */
    --surface-1: #1c2334;
    --surface-2: #212a3d;
    --surface-raised: #26314a;
    --hairline: rgba(212, 175, 55, .16);
    --hairline-soft: rgba(255, 255, 255, .08);
    --gold-dim: rgba(212, 175, 55, .55);

    /* Derinlik: ofset + yumuşak blur (düz halo değil) */
    --lift-1: 0 2px 8px rgba(0, 0, 0, .28);
    --lift-2: 0 12px 32px -8px rgba(0, 0, 0, .55);
    --lift-3: 0 24px 60px -16px rgba(0, 0, 0, .7);

    --ease-out: cubic-bezier(.22, 1, .36, 1);
}


/* ==========================================================
   1. TİPOGRAFİ — yassı görünümün ilk sebebi
   Rajdhani geniş bir font; büyük boyutlarda sıkılaştırılmazsa
   dağınık durur. Ağırlık ve harf aralığı kademelendiriliyor.
   ========================================================== */

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -.02em;
}

h1 {
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: .96;
}

h2 {
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.04;
}

/* Hero başlığı: sayfanın en güçlü sesi olmalı */
.hero-content h1,
.hero-section h1 {
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .94;
    text-wrap: balance;
}

/* Gövde metni okunabilirliği: 18px/1em çok sıkışıktı */
body {
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    line-height: 1.7;
    max-width: 72ch;
}

/* NOT: .section-title h3 (kicker) stili aşağıda,
   hayalet başlık bölümünde tanımlanıyor. */


/* ==========================================================
   2. SAYFA BAŞLIK BLOĞU — en büyük "boşluk" sorunu
   240px üst + 130px alt dolgu = ~450px neredeyse boş alan.
   Yükseklik düşürülüp altın bir ufuk çizgisi ve derinlik
   kazandırılıyor.
   ========================================================== */

.page-header {
    padding: 170px 0 78px;
    background-color: var(--surface-1);
    overflow: hidden;
}

/* Alt kenara altın ufuk çizgisi: bölümü bitiren net bir kenar */
.page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--gold-dim) 22%,
            var(--gold-dim) 78%,
            transparent);
    z-index: 2;
}

/* Derinlik için tabana doğru koyulaşan bir yıkama */
.page-header::before {
    opacity: .5;
}

.page-header-box {
    position: relative;
    z-index: 3;
}

.page-header-box h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: .55rem;
}

/* Breadcrumb: başlıkla arasına nefes ve ince bir ayraç */
.page-header-box .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.1rem;
    padding: .5rem 1.15rem;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(6px);
    font-size: .9rem;
}

.page-header-box .breadcrumb a {
    color: rgba(255, 255, 255, .72);
    transition: color .25s var(--ease-out);
}

.page-header-box .breadcrumb a:hover {
    color: var(--accent-color);
}

@media (max-width: 767px) {
    .page-header {
        padding: 130px 0 56px;
    }
}


/* ==========================================================
   3. HAYALET BAŞLIK — asıl başlıkla çakışıyordu
   Dev soluk yazı (.section-bg-title) başlığın üstüne binip
   okunaklığı bozuyordu. Geri çekiliyor, çakışma kalkıyor.
   ========================================================== */

.section-bg-title {
    opacity: .16;
    pointer-events: none;
    /* Başlığın ÜSTÜNE değil, yukarısına konumlanır: çakışma biter */
    top: -26px;
}

.section-bg-title span {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(255, 255, 255, .14);
    color: transparent;
}

/* Asıl başlık her zaman hayalet yazının önünde kalmalı */
.section-title h2,
.section-title h3,
.section-title p {
    position: relative;
    z-index: 2;
}

/* Kicker (h3): ikonuyla birlikte okunur olmalı.
   16px + capitalize ikonun üstüne biniyordu. */
.section-title h3 {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
    padding-left: 42px;
    background-size: 30px auto;
    margin-bottom: 14px;
    opacity: 1;
}

/* Mobilde hayalet yazıyı tamamen gizle: yer yok, kirlilik yaratıyor */
@media (max-width: 991px) {
    .section-bg-title {
        display: none;
    }

    .section-title {
        padding-top: 0;
    }
}


/* ==========================================================
   4. KARTLAR — arka planla aynı renkti, görünmüyorlardı
   Yüzey ayrımı, ince kenar ve gerçek derinlik veriliyor.
   ========================================================== */

.pricing-item,
.service-item,
.about-item,
.team-item,
.blog-item,
.why-choose-item,
.feature-item {
    position: relative;
    background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--hairline-soft);
    border-radius: 18px;
    box-shadow: var(--lift-1);
    transition: transform .45s var(--ease-out),
                box-shadow .45s var(--ease-out),
                border-color .45s var(--ease-out);
}

.pricing-item {
    padding: 52px 40px;
    height: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

/* Üst kenarda altın vurgu: kartın "başladığı" yeri işaretler.
   highlighted-box hariç — orada ::after rozet olarak kullanılıyor. */
.pricing-item:not(.highlighted-box)::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: .5;
    transition: opacity .45s var(--ease-out);
}

/* "MOST POPULAR" rozeti: dikey yazılmış, İngilizce ve 3 sütunlu
   düzende başlığı örtüyordu. Yatay, Türkçe ve köşede. */
.pricing-item.highlighted-box::after {
    content: 'EN ÇOK TERCİH EDİLEN';
    writing-mode: horizontal-tb;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    padding: 7px 16px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    border-radius: 0 17px 0 12px;
    white-space: nowrap;
    background-color: var(--accent-color);
    color: var(--accent-secondary-color);
}

.pricing-item:hover,
.service-item:hover,
.team-item:hover,
.blog-item:hover,
.why-choose-item:hover {
    transform: translateY(-6px);
    border-color: var(--hairline);
    box-shadow: var(--lift-3);
}

.pricing-item:hover::after {
    opacity: 1;
}

/* Öne çıkan paket: rakiplerinden ayrışmalı */
.pricing-item.highlighted-box {
    border-color: var(--hairline);
    background: linear-gradient(180deg, var(--surface-raised), var(--surface-1));
    box-shadow: var(--lift-2);
}

/* Rozet sağ üstte durduğu için başlık ona çarpmasın */
.pricing-item.highlighted-box .pricing-header {
    padding-right: 96px;
}

/* Paket adı: kartın içinde net bir tepe noktası */
.pricing-header h3 {
    font-family: var(--accent-font);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .01em;
    margin-right: 0;
}

.pricing-header {
    margin-right: 0;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hairline-soft);
}

/* Özellik listesi: satır aralığı ve ikon hizası */
.pricing-body ul li,
.pricing-item ul li {
    line-height: 1.6;
    padding-block: 3px;
}

/* Buton kartın altına yapışsın — kartlar eşit boyda dursun */
.pricing-item .btn-default,
.pricing-item .pricing-footer {
    margin-top: auto;
}

/* Üç paket: ilk ikisi col-lg-6, üçüncüsü col-lg-8 offset-lg-2
   ile ayrı satırda ortalanmış. Masaüstünde üçü de eşit genişlikte
   tek sıraya alınıyor — HTML'e dokunmadan, sütun genişliğiyle.
   :has() desteklenmeyen tarayıcıda kural sessizce atlanır ve
   mevcut iki-sütunlu düzen korunur. */
@media (min-width: 992px) {
    .row:has(> [class*="col-lg-"] .pricing-item) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    [class*="col-lg-"]:has(> .pricing-item) {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        margin-left: 0;
    }

    .pricing-item {
        padding: 44px 32px;
    }

    .pricing-item ul li {
        font-size: .95rem;
    }
}


/* ==========================================================
   5. BUTONLAR — düz sarı hap görünümündeydi
   ========================================================== */

.btn-default {
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: var(--lift-1);
    transition: transform .3s var(--ease-out),
                box-shadow .3s var(--ease-out),
                background-color .3s var(--ease-out);
}

.btn-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(212, 175, 55, .45);
}

.btn-default:active {
    transform: translateY(0);
}

/* Klavye erişilebilirliği: odak halkası hiç yoktu */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn-default:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 6px;
}


/* ==========================================================
   6. FORMLAR — kenarlıkları neredeyse görünmezdi
   ========================================================== */

.form-control {
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--hairline-soft);
    border-radius: 10px;
    transition: border-color .3s var(--ease-out),
                background-color .3s var(--ease-out);
}

.form-control:focus {
    border-color: var(--gold-dim);
    background: rgba(0, 0, 0, .34);
    box-shadow: none;
}

.form-control::placeholder {
    /* Gri değil, yüzeyin kendi tonundan türetilmiş */
    color: rgba(226, 232, 245, .5);
}


/* ==========================================================
   7. DERS PROGRAMI TABLOSU — sitenin en değerli içeriği
   ========================================================== */

.schedule-table table,
table {
    border-collapse: separate;
    border-spacing: 0;
}

.schedule-table th,
table th {
    background: var(--surface-raised);
    font-family: var(--accent-font);
    letter-spacing: .04em;
    border-bottom: 1px solid var(--hairline);
}

.schedule-table td,
table td {
    border-bottom: 1px solid var(--hairline-soft);
    transition: background-color .25s var(--ease-out);
}

.schedule-table tbody tr:hover td {
    background: rgba(212, 175, 55, .06);
}


/* ==========================================================
   8. GÖRSELLER — düz dikdörtgenlerdi
   ========================================================== */

.about-us-image figure img,
.service-image img,
.page-single-image img {
    border-radius: 14px;
}

figure.image-anime {
    border-radius: 14px;
    overflow: hidden;
}


/* ==========================================================
   9. ÇEREZ BANDI — mobilde ekranın %40'ını kaplıyordu
   ve CTA butonlarını örtüyordu.
   ========================================================== */

.kvkk-banner {
    box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, .7);
    border-top: 1px solid var(--hairline);
}

.kvkk-banner-content {
    align-items: center;
}

@media (max-width: 767px) {
    .kvkk-banner {
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    }

    .kvkk-banner-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .kvkk-banner-text {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        width: 100%;
    }

    /* Kısa ve tam okunur metin — kesilmiyor.
       Ayrıntılı bilgi zaten /kvkk sayfasında. */
    .kvkk-banner-text p {
        font-size: .82rem;
        line-height: 1.5;
        margin: 0;
        text-align: left;
    }

    .kvkk-banner-text i {
        flex: 0 0 auto;
        margin-top: 3px;
        font-size: 1rem;
    }

    .kvkk-banner-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .kvkk-banner-actions button {
        flex: 1;
        padding-block: 11px;
        font-size: .9rem;
    }
}


/* ==========================================================
   10. KAYAN ŞERİT — çok yüksek ve gürültülüydü
   ========================================================== */

.our-scrolling-ticker {
    border-block: 1px solid rgba(0, 0, 0, .18);
}

.scrolling-content span {
    letter-spacing: .02em;
}


/* ==========================================================
   11. HAREKET — tek yetkili an, dağınık efekt değil
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================
   12. MOBİL RİTİM — bölümler arası boşluk tutarsızdı
   ========================================================== */

@media (max-width: 767px) {

    .hero-content h1,
    .hero-section h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    p {
        max-width: none;
    }
}
