/* [ttw-egitmen-serit] Anasayfa egitmen seridi + hero duzen duzeltmeleri
   sablon: templates/frontend/egitmen_serit.html | js: js/ttw-egitmen.js
   NOT: hero duzen kurallari yalnizca >=992px'te devrededir; mobil/tablet sitenin
   kendi orijinal tasarimina birakilmistir (mobilde bozulma yasandigi icin). */
.ttwegt-alan {
  width: 100%; padding: 0 0 14px;
  background: transparent; border: 0;
  margin-top: -60px;
  position: relative; z-index: 5;
}
.ttwegt-serit {
  position: relative; width: 100%; padding: 12px 0;
  overflow-x: auto; overflow-y: hidden;
  cursor: grab; user-select: none; touch-action: pan-x;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.ttwegt-serit::-webkit-scrollbar { display: none; }
.ttwegt-serit.ttwegt-tutuluyor { cursor: grabbing; }
.ttwegt-ray { display: flex; gap: 46px; width: max-content; animation: ttwegt-kay 60s linear infinite; }
.ttwegt-serit:hover .ttwegt-ray, .ttwegt-ray:focus-within { animation-play-state: paused; }
/* js yuklenmezse CSS animasyonu yedek olarak akisi surdurur; js devralinca kapanir */
.ttwegt-serit[data-js="1"] .ttwegt-ray { animation: none; }
@keyframes ttwegt-kay { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ttwegt-kisi { width: 202px; flex: 0 0 auto; text-align: center; text-decoration: none; }
.ttwegt-cerceve {
  display: block; width: 168px; height: 168px; margin: 0 auto;
  border-radius: 50%; overflow: hidden;
  background: #eef2fa; border: 4px solid #fff;
  box-shadow: 0 10px 26px rgba(10,16,46,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ttwegt-kisi:hover .ttwegt-cerceve { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,16,46,.3); }
.ttwegt-cerceve img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ttwegt-kisi, .ttwegt-cerceve, .ttwegt-cerceve img { -webkit-user-drag: none; user-drag: none; }
.ttwegt-ad {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 14px; font-size: 17px; font-weight: 700; line-height: 1.3; color: #0A102E;
}
.ttwegt-unvan {
  display: block; margin-top: 3px; font-size: 14px; color: #6b7590;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ttwegt-kisi:focus-visible .ttwegt-cerceve { outline: 3px solid #E8402A; outline-offset: 3px; }
.ttwegt-alan ~ .course-list { margin-top: 20px !important; }

/* mobil/tablet: hero'ya tasma yok (baslik hero'nun altinda duruyor, cakismasin) */
@media (max-width: 991px) {
  .ttwegt-alan { margin-top: 10px; }
  .ttwegt-kisi { width: 158px; }
  .ttwegt-cerceve { width: 130px; height: 130px; }
  .ttwegt-ad { font-size: 15px; }
  .ttwegt-unvan { font-size: 13px; }
}
@media (max-width: 600px) {
  .ttwegt-kisi { width: 134px; }
  .ttwegt-cerceve { width: 110px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) { .ttwegt-ray { animation: none; } }

/* ================= HERO DUZEN — SADECE MASAUSTU (>=992px) =================
   Sitenin kartlari sabit 378px ama kolonlari daha dar; kartlar tasip birbirinin ve
   basligin uzerine biniyordu. Hero'yu 'height' ile sabitlemek de dar ekranda tasmaya
   yol aciyordu, bu yuzden min-height kullaniliyor. Mobilde hicbir kural uygulanmaz. */
@media (min-width: 992px) {
  .bg-header.biz-sizi-arayalim-section {
    height: auto !important; min-height: 480px !important; padding-bottom: 80px !important;
  }
  .biz-sizi-arayalim-section .card {
    width: 100% !important; max-width: 378px !important;
    height: 100% !important; min-height: 0 !important;   /* iki kart esit yukseklikte */
  }
  .biz-sizi-arayalim-section .col-lg-3 { min-width: 0 !important; }
  /* kart kolonlari genis, baslik kolonu ferah: dar ekranda metin daha az sarar,
     kartlar gereksiz uzamaz ve gorsel basligin sagina duser */
  .biz-sizi-arayalim-section .col-lg-3:nth-child(1),
  .biz-sizi-arayalim-section .col-lg-3:nth-child(2) {
    flex: 0 0 29% !important; max-width: 29% !important; width: 29% !important;
  }
  .biz-sizi-arayalim-section .col-lg-3:last-child {
    flex: 0 0 42% !important; max-width: 42% !important; width: 42% !important;
  }
  /* gorselin sag tarafi (portre) her masaustu genisliginde korunur */
  .bg-header.biz-sizi-arayalim-section { background-position: calc(100% + 200px) center !important; }
  .biz-sizi-arayalim-section .col-lg-11 {
    justify-content: flex-start !important; align-items: stretch !important; padding-left: 48px !important;
  }
  .biz-sizi-arayalim-section .text-white.text-center { width: 100% !important; max-width: 100% !important; }
  .kariyer-header {
    position: relative; left: 40px;   /* gorselin mor zeminine dogru hafif kaydirma */
    max-width: 100% !important; overflow-wrap: break-word;
    font-size: clamp(26px, 3.3vw, 66px) !important; line-height: 1.12 !important;
  }
}
@media (min-width: 992px) and (max-width: 1180px) {
  .bg-header.biz-sizi-arayalim-section { min-height: 460px !important; padding-bottom: 60px !important; }
  .biz-sizi-arayalim-section .col-lg-11 { padding-left: 12px !important; }
  .biz-sizi-arayalim-section .card { margin-left: 0 !important; }
}
