/* Hiperbol — Porto teması üzerine küçük marka eklemeleri.
   Renkler skin-hiperbol.css'ten (logodan üretildi) gelir; burada renk tanımlanmaz. */

/* Slayt */
.hb-slider { height: 600px; }
.hb-slider .hb-slide {
    position: relative; height: 600px; background-size: cover; background-position: center;
}
.hb-slider .hb-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20, 20, 22, .88) 0%, rgba(20, 20, 22, .55) 55%, rgba(20, 20, 22, .25) 100%);
}
/* Afiş slaytı: metni görselin içinde olduğu için perde yok ve görsel kırpılmadan sığdırılır */
.hb-slider .hb-slide.hb-slide-afis {
    background-size: contain; background-repeat: no-repeat; background-color: #f1eeea;
}
.hb-slider .hb-slide.hb-slide-afis::after { content: none; }

.hb-slider .hb-slide-icerik { position: relative; z-index: 2; max-width: 620px; }
.hb-slider .hb-slide-icerik h2 { color: #fff; font-size: 3.2rem; line-height: 1.1; }
.hb-slider .hb-slide-icerik p { color: rgba(255, 255, 255, .85); }
@media (max-width: 991px) {
    /* Afiş slaytı yatay orandadır (2.8:1); dar ekranda üst-alt boşluk kalmasın diye slayt alçaltıldı.
       Metinli slaytlarda başlık + alt metin + düğmeler bu yüksekliğe sığar. */
    .hb-slider, .hb-slider .hb-slide { height: 340px; }
    .hb-slider .hb-slide-icerik h2 { font-size: 1.8rem; }
    .hb-slider .hb-slide-icerik p { font-size: 1rem !important; margin-bottom: 1rem !important; }
}

/* Baş harf avatarları (öğretmen/öğrenci fotoğrafı tutulmuyor) */
.hb-bas-harf {
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-weight: 700; border-radius: 50%;
    width: 60px; height: 60px; font-size: 1.1rem;
}
.hb-bas-harf.kare { border-radius: 0; width: 100%; height: 220px; font-size: 2.6rem; }
.hb-bas-harf.kucuk { width: 44px; height: 44px; font-size: .95rem; }
.custom-card-courses-author .hb-bas-harf { width: 54px; height: 54px; border: 3px solid #fff; }

/* ───── Başlık logosu ─────
   Porto sticky başlıkta logoyu küçültürken yüksekliği animasyonla değiştiriyor;
   genişlik sabit kalınca oran bozuluyordu. Oran her durumda korunur. */
#header .header-logo img.hb-logo {
    display: block; width: 150px; height: auto; max-width: 100%;
    object-fit: contain; object-position: left center;
}
/* Porto sticky durumda gövdeye "sticky-header-active" sınıfını ekliyor */
html.sticky-header-active #header .header-logo img.hb-logo,
#header.sticky-header-active .header-logo img.hb-logo,
#header .header-body.sticky-header-active .header-logo img.hb-logo { width: 122px; height: auto; }
@media (max-width: 991px) {
    #header .header-logo img.hb-logo { width: 130px; }
}

/* ───── Program kartı ─────
   Kapaklar yazılı afiş: kırpılmaz, tam sığar. Görsel ile gövde arasında boşluk bırakılmaz. */
.hb-kurs-kart {
    height: 100%; background: #fff; border: 1px solid #eceaf0; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hb-kart-govde { flex: 1 1 auto; }
.hb-kurs-kart:hover { transform: translateY(-5px); border-color: #e0dde6; box-shadow: 0 16px 32px rgba(20, 20, 22, .10); }

.hb-kart-gorsel { position: relative; background: #fff; line-height: 0; }
.hb-kart-gorsel img {
    display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
    object-fit: contain; background: #fff;
}
.hb-kart-seviye {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--primary); color: #fff; font-size: .68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; line-height: 1.4;
}
.hb-kart-indirim {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--secondary); color: #fff; font-size: .95rem; font-weight: 700; line-height: 1;
}
.hb-kart-indirim small { font-size: .52rem; font-weight: 500; text-transform: uppercase; opacity: .75; margin-top: 2px; }

/* Gövde: sabit ritim, her kartta aynı hizalar */
.hb-kart-govde { padding: 18px 18px 16px; border-top: 1px solid #f1eff4; }
.hb-kart-ustbilgi {
    margin: 0 0 4px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--default); opacity: .75;
}
.hb-kart-baslik { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.35; min-height: 2.7em; }
.hb-kart-baslik a { color: var(--secondary); }
.hb-kart-baslik a:hover { color: var(--primary); }
.hb-kart-ozet { margin: 0 0 14px; font-size: .84rem; line-height: 1.6; color: var(--default); }

/* Koyu alt şerit: solda ders saati/süre, sağda fiyat */
.hb-kart-footer {
    background: var(--secondary); color: #fff;
    padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
/* Meta dar alanda alt alta geçer; fiyat bloğu kendi alanını korur, üst üste binme olmaz */
.hb-kart-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; flex: 1 1 auto; }
.hb-kart-meta span {
    display: inline-flex; align-items: baseline; gap: 4px;
    font-size: .74rem; color: rgba(255, 255, 255, .72); white-space: nowrap;
}
.hb-kart-meta strong { font-size: 1rem; font-weight: 700; color: #fff; }
.hb-kart-meta i { color: var(--primary--300); font-size: .85rem; position: relative; top: 1px; }
.hb-kart-fiyat { text-align: right; white-space: nowrap; flex: 0 0 auto; }
.hb-kart-fiyat .hb-fiyat { display: block; font-size: 1.12rem; line-height: 1.15; font-weight: 700; color: #fff; }
.hb-kart-fiyat .hb-fiyat-ucretsiz { color: var(--primary--300); }
.hb-kart-fiyat .hb-fiyat-bilgi { font-size: 1rem; color: rgba(255, 255, 255, .85); }
.hb-fiyat-eski {
    display: block; text-decoration: line-through; font-size: .72rem; line-height: 1.2;
    color: rgba(255, 255, 255, .45);
}

/* İletişim bilgi listesi: ikon + iki satır metin */
.hb-iletisim-liste li { padding-left: 34px; margin-bottom: 18px; }
.hb-iletisim-liste li > [class*="fa-"]:first-child { top: 4px; color: var(--primary); }

/* Blog kartı */
.hb-blog-kart .card-img-top { height: 200px; object-fit: cover; }

/* Öğretmen kartı: kare blok yerine kart içinde yuvarlak avatar */
.hb-ogretmen-kart .hb-bas-harf.kare {
    width: 116px; height: 116px; border-radius: 50%; font-size: 2rem;
    margin: 28px auto 0;
}

/* Bildirim */
.hb-porto-toast {
    position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 99999;
    background: var(--secondary); color: #fff; padding: 12px 22px; border-radius: 4px; font-size: 15px;
}

/* ───── İç sayfalar ───── */
/* Sayfa başlığı şeridi: fotoğraf üstüne koyu perde */
.hb-sayfa-basligi { position: relative; background-size: cover; background-position: center; padding: 90px 0; }
/* Perde: başlık görselleri yazısız ve açık tonlu; metnin arkasında toplanan hafif bir karartma yeterli */
.hb-sayfa-basligi::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 75% at 50% 50%, rgba(20,20,22,.58) 0%, rgba(20,20,22,.20) 65%, rgba(20,20,22,0) 100%),
        linear-gradient(180deg, rgba(20,20,22,.30) 0%, rgba(20,20,22,.10) 40%, rgba(20,20,22,.35) 100%);
}
.hb-sayfa-basligi h1 { text-shadow: 0 2px 20px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.35); }
.hb-sayfa-basligi .container { position: relative; z-index: 2; }

/* Kenar çubuğu kutuları */
.hb-kenar { background: #fff; border: 1px solid #e8e6ee; padding: 26px; }
.hb-kenar .nav-list .nav-link { padding: 6px 0; color: var(--default); }
.hb-kenar .nav-list .nav-link.active,
.hb-kenar .nav-list .nav-link:hover { color: var(--primary); font-weight: 600; }
.hb-kenar-cagri { background: var(--secondary); padding: 22px; margin-top: 24px; }
.hb-kenar-cagri h4, .hb-kenar-cagri p { color: #fff; }

/* Program kartı seviye rozeti + kurs detay */
.hb-kart-seviye { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; }
.hb-kurs-meta .border-right { border-right: 1px solid #e0dee6; }
.hb-satin-kutu { background: #fff; border: 1px solid #e8e6ee; padding: 28px; position: sticky; top: 90px; }
.hb-sozlesme h2, .hb-sozlesme h3 { color: var(--secondary); margin-top: 1.5rem; }

/* Öğretmen detay görseli */
.hb-ogretmen-detay-gorsel { display: flex; align-items: center; justify-content: center; background: var(--secondary); min-height: 260px; }
.hb-ogretmen-detay-gorsel .hb-bas-harf.kare { width: 150px; height: 150px; border-radius: 50%; font-size: 2.6rem; margin: 0; }

/* Kimlik kutusu */
.hb-kimlik-kutu { background: #fff; border: 1px solid #e8e6ee; padding: 34px; }

/* Sepet / ödeme */
.hb-adimlar { list-style: none; display: flex; gap: 0; padding: 0; margin: 0; counter-reset: adim; flex-wrap: wrap; }
.hb-adimlar li { counter-increment: adim; display: flex; align-items: center; gap: 10px; padding: 10px 22px 10px 0; color: var(--default); }
.hb-adimlar li::before { content: counter(adim); width: 30px; height: 30px; flex: 0 0 30px; border: 2px solid #e0dee6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.hb-adimlar li.aktif { color: var(--secondary); font-weight: 600; }
.hb-adimlar li.aktif::before { background: var(--primary); border-color: var(--primary); color: #fff; }
.hb-ozet-kutu { background: #fff; border: 1px solid #e8e6ee; padding: 26px; position: sticky; top: 90px; }
.hb-sepet-ikon { width: 90px; height: 90px; background: #f4f3f7; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.6rem; }
.hb-odeme-secim { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e8e6ee; padding: 16px; cursor: pointer; width: 100%; }
.hb-odeme-secim:hover { border-color: var(--primary); }
.hb-sonuc-kutu { background: #fff; border: 1px solid #e8e6ee; padding: 40px; }
.hb-sonuc-ikon { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.6rem; color: #fff; }
.hb-sonuc-ikon.basarili { background: #16a34a; }
.hb-sonuc-ikon.basarisiz { background: var(--primary); }

/* Modern kayıt çağrısı şeridi */
.hb-cagri { position: relative; overflow: hidden; }
.hb-cagri::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(20, 20, 22, .94) 0%, rgba(20, 20, 22, .82) 45%, rgba(176, 0, 0, .72) 100%);
}
.hb-cagri > .container { position: relative; z-index: 2; }
.hb-cagri-etiket {
    display: inline-flex; align-items: center;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
    color: #fff; border-radius: 999px; padding: 6px 16px;
    font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.hb-cagri-etiket .fa-circle { color: var(--primary--300); font-size: .5rem !important; animation: hbNabiz 1.6s infinite; }
@keyframes hbNabiz { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hb-cagri-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.hb-cagri-liste li { color: rgba(255, 255, 255, .88); font-size: .92rem; }
.hb-cagri-liste i { color: var(--primary--300); margin-right: 8px; }
.hb-cagri .btn-outline.btn-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hb-cagri .btn-outline.btn-light:hover { background: #fff; color: var(--secondary); }
@media (max-width: 991px) {
    .hb-cagri-liste { justify-content: center; }
    .hb-cagri h2 { font-size: 1.9rem !important; }
}

/* Öğrenci yorumu kartı */
.hb-yorum-kart { background: #fff; padding: 26px 26px 0; display: flex; flex-direction: column; }
.hb-yorum-kart blockquote { border: 0; margin: 0 0 4px; padding: 0; }
.hb-yorum-kart blockquote p { color: var(--default); }
.hb-yorum-kart blockquote::before,
.hb-yorum-kart blockquote::after { content: none; }
.hb-yorum-yildiz { margin-bottom: 14px; letter-spacing: 1px; }
.hb-yorum-kart .testimonial-arrow-down { margin-top: auto; }
.hb-yorum-kart .testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.hb-yorum-kart .testimonial-author-thumbnail { width: auto; padding: 0; }
.hb-yorum-kart .testimonial-author strong { display: block; line-height: 1.2; }
.hb-yorum-kart .testimonial-author span { color: var(--primary); }

/* ───── Sayılarla Hiperbol ─────
   Tam genişlik koyu şerit; arka planda soluk ızgara deseni ve kırmızı ışık,
   sayaçlar ince dikey ayraçlarla bölünür. */
/* Porto'nun "section.section { background: var(--grey-100) }" kuralı eleman+sınıf seçicisiyle
   daha özgül olduğundan zemini eziyordu; aynı özgüllükte yazılır. */
section.section.hb-sayac-bolum,
.hb-sayac-bolum {
    position: relative; overflow: hidden;
    background: var(--secondary); border-top: 0;
}
/* Desen zemini yıkamamalı: kırmızı ışık köşelerde sınırlı, ızgara neredeyse görünmez */
.hb-sayac-bolum::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(176, 0, 0, .30) 0%, rgba(176, 0, 0, 0) 32%),
        radial-gradient(circle at 88% 82%, rgba(176, 0, 0, .18) 0%, rgba(176, 0, 0, 0) 30%),
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}
.hb-sayac-bolum > .container { position: relative; z-index: 1; }
.hb-sayac-bolum .hb-bolum-baslik { color: #fff; }
.hb-sayac-bolum .hb-bolum-alt { color: rgba(255, 255, 255, .6); }
.hb-sayac-cizgi { width: 54px; height: 3px; background: var(--primary); margin: 0 auto 26px; }

.hb-sayaclar { margin: 0; }
.hb-sayaclar > [class*="col-"] { position: relative; }
/* dikey ayraç: ilk sütun hariç */
.hb-sayaclar > [class*="col-"]::before {
    content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px;
    background: rgba(255, 255, 255, .13);
}
.hb-sayaclar > [class*="col-"]:first-child::before { display: none; }
@media (max-width: 991px) {
    .hb-sayaclar > [class*="col-"]:nth-child(odd)::before { display: none; }
}

.hb-sayac { text-align: center; padding: 6px 10px; }
.hb-sayac-ikon { color: var(--primary--300); font-size: 1.35rem; margin-bottom: 12px; line-height: 1; }
.hb-sayaclar .hb-sayac strong {
    display: block; font-size: 3.4rem; line-height: 1; letter-spacing: -.03em;
    color: #fff; transition: color .3s ease;
}
.hb-sayac:hover strong { color: var(--primary--300); }
.hb-sayac-etiket {
    display: block; margin-top: 12px; font-weight: 600; font-size: .92rem; color: #fff;
    position: relative; padding-bottom: 10px;
}
.hb-sayac-etiket::after {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 22px; height: 2px; background: var(--primary); transition: width .3s ease;
}
.hb-sayac:hover .hb-sayac-etiket::after { width: 46px; }
.hb-sayac-aciklama {
    display: block; margin-top: 10px; font-size: .76rem; line-height: 1.65;
    color: rgba(255, 255, 255, .55); max-width: 220px; margin-left: auto; margin-right: auto;
}
@media (max-width: 575px) {
    .hb-sayaclar .hb-sayac strong { font-size: 2.3rem; }
    .hb-sayac-aciklama { font-size: .72rem; }
}

/* Yaklaşan dersler listesi */
.hb-ders-satiri { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(20, 20, 22, .08); }
.hb-ders-satiri:last-child { border-bottom: 0; }
.hb-ders-tarih {
    flex: 0 0 74px; text-align: center; background: var(--primary); color: #fff; border-radius: 4px; padding: 10px 6px;
}
.hb-ders-tarih strong { display: block; font-size: 1.5rem; line-height: 1; }
.hb-ders-tarih span { font-size: .72rem; text-transform: uppercase; opacity: .9; }

/* ── Ana sayfa: sunum kartları (Hiperbol'de Ne Var?) — ilk kart vurgulu ── */
.hb-sunum-kart { background: #fff; border: 1px solid #e9e9e9; border-radius: 12px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; color: #444; }
.hb-sunum-kart:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.10); border-color: #b00000; color: #444; }
.hb-sunum-gorsel { height: 150px; overflow: hidden; }   /* sabit, alçak görsel bandı */
.hb-sunum-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hb-sunum-kart:hover .hb-sunum-gorsel img { transform: scale(1.04); }
.hb-sunum-govde { padding: 16px 18px 18px; position: relative; }
.hb-sunum-ikon { font-size: 22px; color: #b00000; line-height: 1; }
.hb-sunum-rozet { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #b00000; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.hb-sunum-baglanti { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 13px; color: #b00000; }
.hb-sunum-baglanti i { font-size: 11px; margin-left: 4px; transition: transform .2s ease; }
.hb-sunum-kart:hover .hb-sunum-baglanti i { transform: translateX(3px); }
.hb-sunum-kart-vurgu { border: 2px solid #b00000; box-shadow: 0 10px 30px rgba(176,0,0,.12); }
.hb-sunum-kart-vurgu .hb-sunum-govde { background: linear-gradient(180deg, #fff 0%, #fdeaea 100%); }
