@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;600&display=swap");

body {
  background: black;
  font-family: "Instrument Sans", sans-serif;
}

h1 {
  font-size: clamp(45px, 8vw, 90px);
  line-height: 1.1;
}
h2 {
  font-size: 40px;
}
h3 {
  font-size: 30px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 15px;
}

.type1 {
  color: #ffffff;
  font-weight: 4300; /* Regular */
}

.type2 {
  color: #ffffff;
  font-weight: 500; /* Semi Bold */
}

.type3 {
  color: #b1b1b1;
  font-weight: 300; /* Regular */
}

/* ========== Tokens ========== */
:root {
  --blue: #278ccc;
  --white: #ffffff;
  --gray-13: #131313;
  --gray-b1: #b1b1b1;

  --radius-10: 10px;
  --radius-pill-80: 40px; /* 80px yükseklik / 2 */
}

/* ========== Base ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 140, 204, 0.35);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

/* ========== TYPE 1: Mavi (60H x 180W, r10) ========== */
.btn--blue-180x60 {
  width: 180px;
  height: 60px;
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  border-radius: var(--radius-10);
}
.btn--blue-180x60:hover {
  filter: brightness(0.92);
}

/* ========== TYPE 2: Şeffaf zemin + 2px beyaz çerçeve (180x60, r10) ========== */
.btn--whiteOutline-180x60 {
  width: 180px;
  height: 60px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 10px;
}
.btn--whiteOutline-180x60:hover {
  background: rgba(255, 255, 255, 0.08); /* hafif hover efekti */
}

/* ========== TYPE 3: Extended Mavi (350W x 60H, r10) ========== */
.btn--blue-350x60 {
  width: 350px;
  height: 60px;
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  border-radius: var(--radius-10);
}
.btn--blue-350x60:hover {
  filter: brightness(0.92);
}

.btn--grayOutline-240x80 {
  width: 240px;
  height: 80px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #b1b1b1;
  border-radius: 40px; /* 80/2 */
}
.btn--grayOutline-240x80:hover {
  background: rgba(177, 177, 177, 0.08);
}

/* ========== TYPE 5: Çerçevesi #B1B1B1, içi #131313 (80H x 240W, H/2=40px radius) ========== */
.btn--outlinedGray-240x80 {
  width: 240px;
  height: 80px;
  background: var(--gray-13);
  color: var(--white);
  border-color: var(--gray-b1); /* 2px çerçeve */
  border-radius: var(--radius-pill-80); /* 80/2 = 40px */
}
.btn--outlinedGray-240x80:hover {
  filter: brightness(1.06);
}

/* ========== TYPE 6: Çerçevesi #B1B1B1, içi #131313 (80H x 240W, H/2=40px radius) ========== */
.btn--grey-180x60 {
  width: 180px;
  height: 60px;
  background: var(--gray-13);
  border-radius: 10px; /* 80/2 = 40px */
}
.btn--grey-180x60:hover {
  filter: brightness(1.06);
}

/* ===================== BUTTON MOBILE FINAL OVERRIDE ===================== */
@media (max-width: 767.98px) {
  /* Eski patch'lerdeki min()/genişlik sınırlarını etkisizleştir */
  .btn {
    min-width: 0 !important;
    white-space: nowrap; /* tek satır kalsın */
    gap: 8px !important; /* ikon-yazı aralığını küçült */
  }

  /* 180x60 türleri → %50 */
  .btn--blue-180x60,
  .btn--whiteOutline-180x60,
  .btn--grey-180x60 {
    width: 120px !important;
    height: 40px !important;
    border-width: 2px; /* çerçeve varsa */
  }

  /* 350x60 → %50 */
  .btn--blue-350x60 {
    width: 250px !important;
    height: 40px !important;
  }

  /* 240x80 türleri → %50 */
  .btn--grayOutline-240x80,
  .btn--outlinedGray-240x80 {
    width: 120px !important;
    height: 40px !important;
    border-radius: 20px !important; /* yükseklik/2 */
    border-width: 2px;
  }

  /* Buton içindeki metinleri küçült (h5/type sınıfları ne olursa olsun) */
  .btn h1,
  .btn h2,
  .btn h3,
  .btn h4,
  .btn h5,
  .btn h6,
  .btn .type1-h5,
  .btn .type1,
  .btn .type3 {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  /* Buton içinde logo/ikonlar da küçülsün */
  .btn img,
  .btn .icon {
    width: 16px !important;
    height: 16px !important;
  }

  /* Buton gruplarında yan yana kalmayı kolaylaştır (gap küçült) */
  .hero-actions,
  .reviews-cta,
  .page-actions {
    gap: 8px !important;
    flex-wrap: nowrap; /* alt alta düşmesin */
  }
}

.type1-h5 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
}

.type1-h5-grey {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #b1b1b1;
}

.logo-google {
  width: 40px;
  height: 40px;
  object-fit: contain; /* logo orantılı kalsın */
}

.logo-instagram {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

body.home > section:nth-of-type(even) {
  background-color: #131313;
}

.section-hero {
  position: relative;
  overflow: hidden;
}

.section-hero .hero-bg {
  position: absolute;
  inset: 0; /* section'ın tamamını kaplasın */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0; /* içerikten arkada */
  pointer-events: none; /* tıklamaları engellemesin */
}

.section-hero .hero-bg img {
  width: 100%; /* section'ın tamamını doldurur */
  height: 100%;
  object-fit: cover; /* logoyu orantılı büyüt/küçült, boşluk kalmasın */
  opacity: 1; /* tam renkli */
}

.section-hero .hero-inner {
  position: relative;
  z-index: 1; /* içeriği logonun üstünde tut */
}

/* ===================== RESET & TOKENS ===================== */
* {
  box-sizing: border-box;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
:root {
  /* breakpoints */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;

  /* spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* colors */
  --bg-even: #131313;
  --text: #fff;
  --muted: #d6d6d6;
}

/* Gövde */
body {
  color: var(--text);
}

/* Container */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* Section’lar */
body.home > section {
  padding-block: var(--space-7);
}
@media (max-width: 767.98px) {
  body.home > section {
    padding-block: var(--space-6);
  }
}

/* Çift section arka planı */
body.home > section:nth-of-type(even) {
  background: #131313;
}

/* SECTION: arka planın referansı burası */
.section-hero {
  position: relative;
  overflow: hidden; /* kalsın; tüm section boyunca görünür */
}

/* ARKA PLAN KATMANI: section'a göre konumlanır */
.section-hero .hero-bg {
  position: absolute;
  inset: 0; /* tüm section alanını kapla */
  z-index: 0; /* içerikten arkada */
  pointer-events: none;
  display: block !important;
}

/* İÇERİK KATMANI: her şey bunun içinde */
.section-hero .hero-inner {
  position: relative;
  z-index: 1; /* arka planın üstünde */
}

/* LOGO'NUN KENDİ BOYUT/KONUMU — SENDE NASILSA ÖYLE KALSIN */
/* (örnek olarak sağa sabitle+translate kullandım; istersen mevcut değerlerini koru) */
.section-hero .hero-bg img {
  position: absolute;
  top: 0;
  right: 0; /* sağ kenarı güvene alır (kesilmez) */
  /* BOYUT VE KONUM SENDE NASILSA ÖYLE KALSIN — örnek: */
  width: clamp(900px, 58vw, 1600px);
  transform: translateX(-12%);
  height: auto;
  max-width: none;
  object-fit: contain;
  opacity: 1;
}

/* Tablet */
@media (max-width: 991.98px) {
  .section-hero .hero-bg img {
    width: clamp(680px, 70vw, 920px);
    transform: translateX(-8%);
  }
}

/* Mobil */
@media (max-width: 767.98px) {
  .section-hero .hero-bg img {
    width: clamp(420px, 92vw, 720px);
    transform: translateX(-4%);
  }
}

/* İçerik container: kenarlara yapışmasın */
.section-hero .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px; /* container genişliği */
  margin-inline: auto;
  padding-inline: 16px; /* iç yan boşluk */
}
@media (min-width: 1200px) {
  .section-hero .hero-inner {
    padding-inline: 24px;
  }
}

/* Sol üst marka sabit kalsın */
.brand {
  position: absolute;
  top: 24px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* İki kolon: 3 : 1 oran (sol: başlık, sağ: misyon) */
.hero-grid {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 3:1 */
  gap: 48px;
  padding-top: 0px; /* brand ile çakışmasın */
}
@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr; /* mobilde tek sütun */
    gap: 32px;
    padding-top: 72px;
  }
}

/* Sağ taraftaki “Misyonumuz” metni renk/okunabilirlik */
.hero-right .mission {
  margin: 0;
}
.hero-right .eyebrow {
  margin: 0 0 12px;
}

/* Buton grubu ve görsel boşlukları */
.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-image {
  margin-top: 48px;
}

/* ===================== BÖLÜM 2 (sol metin + sağ buton ızgarası) ===================== */
#bolum2 .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 991.98px) {
  #bolum2 .container {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}
#bolum2 .content-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (max-width: 575.98px) {
  #bolum2 .content-right {
    grid-template-columns: 1fr;
  }
}
/* ==== BÖLÜM 2 — MOBİL 2×2 KİLİT (final override) ==== */
@media (max-width: 575.98px) {
  /* 2 kolon zorunlu, yatay akış kapalı */
  #bolum2 .content-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 sütun kilit */
    grid-auto-flow: row dense !important; /* satır satır doldur */
    gap: 12px !important;
  }

  /* Hücre yerleşimini garanti et (1-2 / 3-4) */
  #bolum2 .content-right > *:nth-child(odd) {
    grid-column: 1;
  }
  #bolum2 .content-right > *:nth-child(even) {
    grid-column: 2;
  }

  /* Butonların hücreye sığması — genişlik sabitlemelerini geçersiz kıl */
  #bolum2 .content-right .btn {
    width: 100% !important; /* hücreyi doldur */
    height: 42px; /* mobil için mantıklı yükseklik */
    font-size: 14px; /* yazıyı biraz küçült */
    box-sizing: border-box;
  }
}

/* Program buton metni (gri tonunu istiyorsun) */
.type1-h5-grey {
  color: #b1b1b1;
}
/* ===================== BÖLÜM 2.5 — Öğrenci Başarıları ===================== */
#bolum2-ogrenciler {
  /* ana section boşlukları mevcut global kurallardan geliyor (margin-block/padding) */
}

#bolum2-ogrenciler .section-title {
  margin: 0 0 16px 0; /* başlık ile kutular arası */
}

#bolum2-ogrenciler .ogrenciler-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 kutu yan yana */
  gap: var(--space-4);
  align-items: start;
}

#bolum2-ogrenciler .ogrenciler-box {
  background: var(--gray-13); /* kutu arka plan #131313 */
  border-radius: 12px;
  padding: var(--space-4);
}

#bolum2-ogrenciler .ogrenci-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px; /* satırlar arası */
}

#bolum2-ogrenciler .ogrenci-list li {
  word-break: break-word;
}

#bolum2-ogrenciler .ogrenciler-cta {
  margin-top: var(--space-4);
  display: flex;
  justify-content: left;
}

/* Tablet ve mobil düzen */
@media (max-width: 991.98px) {
  #bolum2-ogrenciler .ogrenciler-grid {
    grid-template-columns: 1fr; /* tek kolon */
    gap: var(--space-3);
  }
}

/* Çok dar mobilde iç boşluk biraz azalır */
@media (max-width: 575.98px) {
  #bolum2-ogrenciler .ogrenciler-box {
    padding: var(--space-3);
  }
  #bolum2-ogrenciler .ogrenci-list {
    gap: 8px;
  }
}
/* ===================== BÖLÜM 2.5 — Öğrenci Başarıları (logo destekli) ===================== */
#bolum2-ogrenciler .ogrenci-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

#bolum2-ogrenciler .ogrenci-item {
  display: flex;
  align-items: center;
  gap: 10px; /* logo-metni arası */
  min-height: 36px; /* çizgiler eşit dursun */
}

#bolum2-ogrenciler .ogrenci-item .uni-logo {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  /* koyu arka planda PNG/logoların daha net görünmesi için istersen:
     filter: drop-shadow(0 0 0.5px rgba(255,255,255,0.25));
  */
}

@media (max-width: 575.98px) {
  #bolum2-ogrenciler .ogrenci-item {
    gap: 8px;
    min-height: 32px;
  }
  #bolum2-ogrenciler .ogrenci-item .uni-logo {
    width: 20px;
    height: 20px;
  }
}

/* ===================== BÖLÜM 3 (adım ızgarası) ===================== */
#bolum3 .steps {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}
@media (max-width: 767.98px) {
  #bolum3 .steps {
    grid-template-columns: 1fr;
  }
}
#bolum3 .step {
  background: black;
  padding: var(--space-1);
  border-radius: 12px;
}

/* ===================== BÖLÜM 4 (kurucular) ===================== */
#bolum4 .founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 kolon: yazı - kurucular */
  gap: 48px;
  align-items: start;
}

#bolum4 .founders-text h5 {
  margin-bottom: 16px;
}

#bolum4 .founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kurucu yan yana */
  gap: 24px;
}

#bolum4 .founder-card {
  background: var(--gray-13);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#bolum4 .founder-card img {
  max-width: 100%;
  border-radius: 12px;
}

#bolum4 .founder-card a {
  align-self: center; /* buton ortalı */
}

/* Mobil uyumu: sadece yazı kısmı tek kolon olacak, kurucular yan yana kalacak */
@media (max-width: 991.98px) {
  #bolum4 .founders-grid {
    grid-template-columns: 1fr; /* yazı üstte, kurucular altta */
    gap: 32px;
  }

  #bolum4 .founders {
    grid-template-columns: repeat(2, 1fr); /* kurucular mobilde de yan yana */
  }
}

/* ===================== BÖLÜM 5 (kütüphaneler) ===================== */
.libraries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}
@media (max-width: 767.98px) {
  .libraries {
    grid-template-columns: 1fr;
  }
}
.library-card {
  display: flex;
  background-color: #131313;
  padding: var(--space-3);
  flex-direction: column;
  gap: var(--space-3);
  border-radius: 12px;
}

/* ===================== BÖLÜM 6 (özellikler) ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 991.98px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ===================== BÖLÜM 7 (Galeri) — Tek görsel + mobil değişimi ===================== */
#bolum7 .gallery.single {
  /* Grid kurallarını devre dışı bırak */
  display: block !important;
}

#bolum7 .gallery.single img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* Varsayılan: masaüstü görseli açık, mobil görseli kapalı */
#bolum7 .only-desktop {
  display: block !important;
}
#bolum7 .only-mobile {
  display: none !important;
}

/* Mobilde (≤575.98px) tersine çevir: mobil görsel açık, masaüstü kapalı */
@media (max-width: 575.98px) {
  #bolum7 .only-desktop {
    display: none !important;
  }
  #bolum7 .only-mobile {
    display: block !important;
  }
}

/* (İsteğe bağlı) Container dar ekran nefes payı */
@media (max-width: 767.98px) {
  #bolum7 .container {
    padding-inline: 16px;
  }
}

/* ===================== BÖLÜM 8 (kadro: görsel + metin) ===================== */
/* ===================== BÖLÜM 8 ===================== */
#bolum8 .staff {
  display: grid;
  grid-template-columns: 2fr 1fr; /* sol kolon geniş, sağ dar */
  gap: 48px;
  align-items: start;
}

#bolum8 .staff-photo {
  display: flex;
  flex-direction: column;
  gap: 24px; /* başlık, metin ve fotoğraf arasında boşluk */
}

#bolum8 .staff-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

#bolum8 .staff-info h3 {
  margin-bottom: 5px;
}

@media (max-width: 991.98px) {
  #bolum8 .staff {
    grid-template-columns: 1fr; /* mobilde tek kolon */
    gap: 32px;
  }
}

/* ===================== BÖLÜM 9 (videolar) ===================== */
.student-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
@media (max-width: 991.98px) {
  .student-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .student-videos {
    grid-template-columns: 1fr;
  }
}

/* ===================== BÖLÜM 10 (Google yorumları + CTA) ===================== */
.reviews-cta {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.logo-google {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.logo-instagram {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Desktop/mobil görseller */
.only-desktop {
  display: block;
}
.only-mobile {
  display: none;
}
@media (max-width: 575.98px) {
  .only-desktop {
    display: none;
  }
  .only-mobile {
    display: block;
  }
}
/* ===================== BÖLÜM 10 (Google yorumları görsel alanı) ===================== */
#bolum10 .reviews-visual {
  display: block !important; /* grid veya flex olmadan tek görsel alanı */
  text-align: center;
  margin-top: var(--space-4);
}

#bolum10 .reviews-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* Varsayılan: masaüstü görseli açık, mobil görseli kapalı */
#bolum10 .reviews-visual .only-desktop {
  display: block !important;
}
#bolum10 .reviews-visual .only-mobile {
  display: none !important;
}

/* Mobilde (≤575.98px) tersine çevir */
@media (max-width: 575.98px) {
  #bolum10 .reviews-visual .only-desktop {
    display: none !important;
  }
  #bolum10 .reviews-visual .only-mobile {
    display: block !important;
  }
}

/* ===================== BÖLÜM 12 (servisler 2x2) ===================== */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}
@media (max-width: 991.98px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .services {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-3);
  border-radius: 12px;
  border: 2px solid #ffffff;
}

/* ===================== TYPO (yalnızca gerekli olanlar) ===================== */
/* Senin isteğin: type1-h4 = 24px / 400; responsive küçülsün, üst sınır 24px */
.type1-h4 {
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 400;
  line-height: 1.4;
}
/* type1-h5: buton/ikincil başlıklar için */
.type1-h5 {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.4;
}
/* “type3” metinler (uzun paragraflar) */
.type3 {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}
/* Büyük başlıklar örn. h2.type2/h2.type1 */
.type2 {
  font-size: clamp(24px, 4.5vw, 40px);
  line-height: 1.25;
  font-weight: 700;
}
.type1 {
  font-weight: 600;
} /* sadece ağırlık, boyutu elemanın kendisi belirler */

/* ===================== BUTON YARDIMCI ===================== */
.btn {
  gap: var(--space-2);
} /* ikon–yazı aralığı */

/* =========================================================
   YATAY İÇ BOŞLUK (GUTTER) OVERRIDE — SAĞ/SOL’U YAKLAŞTIR
   (Dikey section aralıklarına dokunmaz)
   ========================================================= */

/* Desktop (>= 992px): 50px */
.container,
.section-hero .hero-inner {
  padding-inline: 50px;
}

/* Tablet (768–991.98px): 40px */
@media (max-width: 991.98px) {
  .container,
  .section-hero .hero-inner {
    padding-inline: 40px;
  }
}

/* Mobil (<= 767.98px): 28px */
@media (max-width: 767.98px) {
  .container,
  .section-hero .hero-inner {
    padding-inline: 28px;
  }
}
/* ===================== Kurucu Sayfaları (Founders Pages) ===================== */
.founder-page {
  position: relative;
  min-height: 100dvh;
}

/* Geri butonu */
.founder-page .back-btn {
  top: 20px;
  left: 20px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.founder-page .back-btn span {
  font-size: 20px;
  line-height: 1;
}

/* Arka plan */
.founder-page .page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.founder-page .bg-photo {
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(50vw, 720px);
  height: auto;
  opacity: 0.3;
}
.founder-page .bg-logo {
  position: absolute;
  left: -6%;
  top: -6%;
  width: min(90vw, 1400px);
  height: auto;
  opacity: 0.06;
}

/* Ana alan */
.founder-page .founder-main {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  margin-block: 50px; /* default desktop margin */
}

/* Başlık */
.founder-page .founder-title {
  margin: 0 0 24px 0;
}

/* Grid */
.founder-page .founder-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 48px;
  align-items: start;
}

/* Sol medya */
.founder-page .founder-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.founder-page .founder-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Sağ içerik */
.founder-page .founder-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Aksiyonlar */
.founder-page .page-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.founder-page .page-actions .btn h5 {
  margin: 0;
}

/* Tablet */
@media (max-width: 991.98px) {
  .founder-page .founder-main {
    margin-block: 40px;
  }
  .founder-page .founder-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .founder-page .bg-photo {
    right: -16%;
    top: 10%;
    width: min(65vw, 620px);
  }
  .founder-page .bg-logo {
    left: -12%;
    top: -10%;
    width: min(120vw, 1600px);
  }
}

/* Mobil */
@media (max-width: 767.98px) {
  .founder-page .founder-main {
    margin-block: 28px;
    padding-top: 80px;
  }
  .founder-page .back-btn {
    top: 14px;
    left: 14px;
  }
  .founder-page .page-actions {
    gap: 10px;
  }
}

/* ===================== Programlar Sayfası ===================== */
.programs-page .back-btn {
  top: 20px;
  left: 20px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.programs-page main {
  margin-block: 50px;
  padding-top: 20px; /* sabit back butona çarpmasın */
}

/* Grup başlıkları ve ayracı */
.programs-page .program-group {
  margin-block: 40px;
}
.programs-page .program-group hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 12px 0 20px;
}

/* 1:1:2 grid satırı */
.programs-page .program-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr; /* 1:1:2 */
  gap: 24px;
  align-items: start;
}

/* Kutu stilleri (yalın, tipografiye dokunmuyoruz) */
.programs-page .program-box,
.programs-page .program-visual {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 20px;
}
.programs-page .program-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tablet ve altı: oran aynı kalsın, ama yatay kaydırma açılsın */
@media (max-width: 991.98px) {
  .programs-page main {
    margin-block: 40px;
  }

  .programs-page .program-row {
    grid-template-columns: 1fr 1fr 2fr; /* oranı koru */
    gap: 16px;
    overflow-x: auto; /* scroll = evet */
    padding-bottom: 8px; /* scroll bar boşluğu */
    scroll-snap-type: x proximity;
  }
  /* Kolonların minimum genişliği: kartlar sıkışmasın */
  .programs-page .grid-1-1-2 > *:nth-child(1) {
    min-width: 260px;
    scroll-snap-align: start;
  }
  .programs-page .grid-1-1-2 > *:nth-child(2) {
    min-width: 260px;
    scroll-snap-align: start;
  }
  .programs-page .grid-1-1-2 > *:nth-child(3) {
    min-width: 320px;
    scroll-snap-align: start;
  }
}

/* Telefon */
@media (max-width: 767.98px) {
  .programs-page main {
    margin-block: 28px;
    padding-top: 70px;
  }

  /* En küçük ekranlarda da aynı oran, daha esnek min genişlikler */
  .programs-page .grid-1-1-2 > *:nth-child(1),
  .programs-page .grid-1-1-2 > *:nth-child(2) {
    min-width: 240px;
  }
  .programs-page .grid-1-1-2 > *:nth-child(3) {
    min-width: 300px;
  }
}
.programs-page .program-box {
  background: #131313; /* içi boş */
  border-radius: 12px;
  padding: 20px;
}
/* LGS bölümünde 1:1:2 oranını korumak için boş kutu */
.programs-page .track-empty {
  background: transparent;
  padding: 0;
}
.section-hero .hero-bg img {
  position: absolute; /* Kapsayıcıya göre konumlandırma */
  top: 0; /* Üst kenardan 0 piksel */
  left: 0; /* Sol kenardan 0 piksel */
  width: 75%; /* Kapsayıcının genişliğinin %100'ü */
  height: 75%; /* Kapsayıcının yüksekliğinin %100'ü */
  object-fit: cover; /* Resmi alana sığdırırken en-boy oranını korur ve taşan kısımları keser */
  opacity: 1;
}

/* ========= MOBILE/TABLET SAFE PATCH (en sona yapıştır) ========= */

/* Genel anti-overflow koruması */
html,
body {
  overflow-x: hidden;
}
.home img,
.home video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container mobil nefes alanı ve taşma koruması */
@media (max-width: 767.98px) {
  .container {
    padding-inline: 16px;
  }
}

/* --- HERO (Section 1) düzeltmeleri --- */
@media (max-width: 767.98px) {
  /* Arka plan logo: daha küçük, hafif sola taşmalı (scroll yaratmadan) */
  .section-hero .hero-bg img {
    width: clamp(360px, 90vw, 680px);
    left: -8vw;
    top: -2vh;
  }

  /* İçerik üstten nefes alsın; brand ile çakışma olmasın */
  .hero-grid {
    padding-top: 88px;
    gap: 20px;
  }

  /* Butonlar üstteki başlığa yaklaştır, ama taşma yok */
  .hero-actions {
    margin-top: 8px;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Hero görseli ile buton arası küçük boşluk */
  .hero-image {
    margin-top: 24px;
  }
}

/* --- Kart/Izgara sistemleri: taşma ve üst üste binme fixleri --- */
@media (max-width: 767.98px) {
  /* Bölüm 2 sağdaki program buton ızgarası tek kolon */
  #bolum2 .container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  #bolum2 .content-right {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Bölüm 3 adımlar tek kolon ve daha sıkı boşluk */
  #bolum3 .steps {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  /* Kurucular grid ve kartları: mobilde iki kart yan yana kalacaksa min-width koru ama taşma yapma */
  #bolum4 .founders-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #bolum4 .founders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  /* Çok dar cihazlarda da taşmasın diye */
  @media (max-width: 380px) {
    #bolum4 .founders {
      grid-template-columns: 1fr;
    }
  }

  /* Kütüphaneler tek kolon */
  .libraries {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Özellikler (3 kutu) -> tek kolon */
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Galeri iki kolon zaten; gap küçült */
  .gallery {
    gap: 8px;
  }

  /* Kadro (Section 8) tek kolon ve boşluklar azalt */
  #bolum8 .staff {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  /* Videolar tek kolon */
  .student-videos {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  /* Servisler tek kolon */
  .services {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
}

/* --- Butonlar: sabit genişlikleri esnet, taşmayı önle --- */
@media (max-width: 767.98px) {
  /* Tüm sabit ölçülü buton tipleri mobilde daralsın */
  .btn--blue-180x60,
  .btn--whiteOutline-180x60,
  .btn--blue-350x60,
  .btn--grayOutline-240x80,
  .btn--outlinedGray-240x80 {
    width: min(100%, 260px);
    height: 52px;
  }

  /* CTA gruplarında satır kırılmasına izin ver */
  .hero-actions,
  .reviews-cta,
  .page-actions {
    flex-wrap: wrap;
  }
}

/* --- Yazı taşması/çizgi kırılması --- */
@media (max-width: 767.98px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* --- “kesin suçlu” kontrolleri: bir şey hâlâ yana taşıyorsa --- */
/* gereğinde geçici olarak aç: 
.section-hero, #bolum2, #bolum3, #bolum4, #bolum5, #bolum6, #bolum7, #bolum8, #bolum9, #bolum10, #bolum11, #bolum12 {
  outline: 1px dashed rgba(255,255,255,.2);
}
*/
/* ===================== ÖĞRENCİLER SAYFASI ===================== */

/* Arka plan logo (opsiyonel) */
.students-page .page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.students-page .bg-logo {
  position: absolute;
  right: -8%;
  top: -6%;
  width: min(95vw, 1600px);
  height: auto;
  opacity: 0.06;
}

/* İçerik katmanı */
.students-page #ogrenciler {
  position: relative;
  z-index: 1;
}

/* 3 kolon grid (web), responsive kırılımlar */
.ogr-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

/* Tablet: 2 kolon */
@media (max-width: 991.98px) {
  .ogr-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Mobil: 1 kolon */
@media (max-width: 575.98px) {
  .ogr-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Kolon içi dikey akış */
.ogr-col {
  display: flex;
  flex-direction: column;
}

/* Kolon başlığı */
.col-title {
  margin: 0 0 8px 0;
}

/* Kart listesi */
.ogr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Kart kutusu */
.ogr-card {
  background: var(--gray-13);
  border-radius: 12px;
  padding: 16px;
}

/* Başlık “köşeli kutu” */
.ogr-card-title {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid currentColor; /* renk akıllı: alt paletten gelir */
  border-radius: 8px;
  margin: 0 0 10px 0;
  /* yazı rengi global type sınıflarından gelir; burada sadece çerçeve rengi için currentColor kullanıyoruz */
}

/* İsimlerin geleceği alan */
.ogr-card-names {
  /* metin tipini sayfanın mevcut type1/type3 sınıfları yönetiyor */
  white-space: normal;
  word-break: break-word;
}

/* ===== Renk Paleti (başlık kenarlıkları için) ===== */
:root {
  --tag-red: #ef4444;
  --tag-orange: #f97316;
  --tag-amber: #f59e0b;
  --tag-yellow: #eab308;
  --tag-lime: #84cc16;
  --tag-green: #22c55e;
  --tag-teal: #14b8a6;
  --tag-cyan: #06b6d4;
  --tag-blue: #3b82f6;
  --tag-indigo: #6366f1;
  --tag-purple: #8b5cf6;
  --tag-pink: #ec4899;
}

/* Kart başlık renklerini döngüyle ata (her 12’de bir tekrar) */
.ogr-list .ogr-card:nth-child(12n + 1) .ogr-card-title {
  color: var(--tag-red);
}
.ogr-list .ogr-card:nth-child(12n + 2) .ogr-card-title {
  color: var(--tag-orange);
}
.ogr-list .ogr-card:nth-child(12n + 3) .ogr-card-title {
  color: var(--tag-amber);
}
.ogr-list .ogr-card:nth-child(12n + 4) .ogr-card-title {
  color: var(--tag-yellow);
}
.ogr-list .ogr-card:nth-child(12n + 5) .ogr-card-title {
  color: var(--tag-lime);
}
.ogr-list .ogr-card:nth-child(12n + 6) .ogr-card-title {
  color: var(--tag-green);
}
.ogr-list .ogr-card:nth-child(12n + 7) .ogr-card-title {
  color: var(--tag-teal);
}
.ogr-list .ogr-card:nth-child(12n + 8) .ogr-card-title {
  color: var(--tag-cyan);
}
.ogr-list .ogr-card:nth-child(12n + 9) .ogr-card-title {
  color: var(--tag-blue);
}
.ogr-list .ogr-card:nth-child(12n + 10) .ogr-card-title {
  color: var(--tag-indigo);
}
.ogr-list .ogr-card:nth-child(12n + 11) .ogr-card-title {
  color: var(--tag-purple);
}
.ogr-list .ogr-card:nth-child(12n + 12) .ogr-card-title {
  color: var(--tag-pink);
}

/* Mobilde kart içi boşluklar biraz küçülsün */
@media (max-width: 575.98px) {
  .ogr-card {
    padding: 12px;
  }
  .ogr-card-title {
    margin-bottom: 8px;
  }
}
