/* DST-2026-003 · Yalnız mobil hata düzeltmeleri (15.11.2026, kapsam: "hiçbir şeyi değiştirmeden sadece hataları düzeltin").
   Bütün kurallar 1279 px ve altında; 1280 px ve üstünde bu dosyanın hiçbir etkisi yok. Görünüm (renk, yazı, yeni öğe, gizleme) değiştirilmez. */

@media (max-width: 1279px) {

/* Madde 2 (K1) · Bülten formu ≤991: e-posta alanı oval olmasın, "Gönder" kutudan taşmasın */
@media (max-width: 991px) {
  .cs_newsletter.cs_style_2 .cs_newsletter_form { position: relative; display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 12px !important; max-width: 100%; }
  .cs_newsletter.cs_style_2 .cs_newsletter_form .cs_form_field,
  .cs_newsletter.cs_style_2 .cs_newsletter_form input[type="email"] { flex: 0 0 auto !important; width: 100% !important; height: 52px !important; min-height: 52px !important; }
  .cs_newsletter.cs_style_2 .cs_newsletter_form .cs_btn.cs_style_1 { position: relative !important; overflow: hidden; isolation: isolate; top: auto !important; right: auto !important; -webkit-transform: none !important; transform: none !important; width: 100% !important; justify-content: center; margin: 0 !important; }
}

/* Madde 6 (K4) · Alt çubuk içeriği kapatmasın: sayfa sonunda çubuk yüksekliği + 16 px pay; çubuk ölçüsü ve görünümü canlıdaki gibi */
@media (max-width: 768px) {
  body { padding-bottom: calc(var(--geo-sticky-h, 64px) + env(safe-area-inset-bottom, 0px) + 16px) !important; }
  html { scroll-padding-bottom: calc(var(--geo-sticky-h, 64px) + env(safe-area-inset-bottom, 0px) + 16px); }
  /* K11 · reCAPTCHA rozeti gizlenmez; alt çubuğun üstüne alınır */
  .grecaptcha-badge { bottom: calc(var(--geo-sticky-h, 64px) + env(safe-area-inset-bottom, 0px) + 8px) !important; }
}
/* Madde 5 (K4) · Tedavi sayfası alt çubuğu (≤1079): sayfa sonu payı; 769–1079'da yüzen WhatsApp çubuğun altında kalmasın (gizlenmez, üstüne alınır) */
@media (max-width: 1079px) {
  body.tx-treatment-editorial { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 16px) !important; }
}
@media (min-width: 769px) and (max-width: 1079px) {
  body.tx-treatment-editorial .whatsapp-contact-btn { bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 16px) !important; }
}

/* Madde 1 (K5) · Ana sayfa slider ≤767: dekupe fotoğraf ok/sayaç şeridinin üstüne binmesin */
@media (max-width: 767px) {
  .hd-hero { --yh-strip: 72px; }
  .hd-hero__fg { bottom: calc(var(--geo-sticky-h, 64px) + env(safe-area-inset-bottom, 0px)) !important; } /* görsel alt çubuğun üstüne otursun; ok/sayaç boşluğu yalnız .hd-hero__bar ve .hd-hero__inner içinde */
  .hd-hero__fg img,
  .hd-hero__slide--copy-right .hd-hero__fg img { right: 0 !important; left: auto !important; height: 58% !important; max-width: 46% !important; object-position: right bottom; }
  .hd-hero__inner { padding-bottom: calc(var(--geo-sticky-h, 64px) + env(safe-area-inset-bottom, 0px)) !important; }
  .hd-hero__bar { min-height: var(--yh-strip); align-items: center; padding: 12px 0 !important; position: relative; z-index: 5; }
}
@media (max-width: 374px) {
  .hd-hero__fg img, .hd-hero__slide--copy-right .hd-hero__fg img { height: 52% !important; max-width: 40% !important; }
}

/* Madde 3 (K6) · Ortak sayfa hero: fotoğraf başlık, metin ve düğmeyle çakışmasın */
@media (min-width: 768px) and (max-width: 1023px) {
  .ph-hero__fg-img { height: 84% !important; max-height: 84% !important; max-width: 46% !important; right: 0 !important; }
  .ph-hero__copy { max-width: 380px !important; }
}
@media (max-width: 767px) {
  .ph-hero__fg-img { right: 0 !important; }
  .ph-hero__lede, .ph-hero__intro, .ph-hero__role { max-width: calc(100vw - 196px); }
}
@media (min-width: 1024px) {
  .ph-hero__copy { position: relative; z-index: 3; }
  .ph-hero__fg-img { max-width: 40% !important; }
  .ph-hero__crumbs { flex-wrap: wrap; max-width: min(100%, 44vw); }
}

/* Madde 4 (K2) · Hakkımda zaman çizelgesi ≤991: canlı şablonda sarmalayıcı yok; tarih, unvan ve kurum ikinci sütuna yerleşir (canlı CSS'in amaçladığı düzen) */
@media (max-width: 991px) {
  .hk-path__step > .hk-path__dot { grid-column: 1; grid-row: 1 / span 3; }
  .hk-path__step > .hk-path__date,
  .hk-path__step > .hk-path__role,
  .hk-path__step > .hk-path__place { grid-column: 2; min-width: 0; }
}

/* Madde 7 (K7) · Hakkımda portresi kemer çerçevede tuhaf kırpılmasın; Yaklaşım görseli kutuya oturur */
.hk-intro__portrait { aspect-ratio: 4 / 5 !important; border-radius: 0 !important; overflow: hidden; clip-path: none !important; }
.hk-intro__portrait .hk-intro__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.32); transform-origin: 50% 44%; border-radius: 0 !important; }
.hk-approach__visual { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0 !important; }
.hk-approach__visual .hk-approach__glyph { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; border-radius: 0 !important; }

/* Madde 5 (K3) · Tedavi kenar sütunu ≤639: örtük ikinci sütun açılmasın */
@media (max-width: 639px) {
  body.tx-treatment-editorial .tx-tips__inner { grid-template-columns: 1fr !important; gap: 24px !important; }
  body.tx-treatment-editorial .tx-tips__inner > * { grid-column: auto !important; }
}

/* K10 · Akademik künye kutusu ≤1023 alt çubuğun üstüne yapışıp binmesin */
@media (max-width: 1023px) { aside.ap-record { position: static !important; top: auto !important; } }

/* K14 · Tablolar ≤767 ekrandan taşmasın: tablo kendi içinde yana kayar */
@media (max-width: 767px) {
  .tx-content table, .mb-article table, article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Dipnot işaretleri satır kutusunu büyütüp bir sonraki maddeye binmesin */
sup.tx-blog-cites { line-height: 0; }

/* 1080–1279 metin daralması: yan notlar metnin altına iner, metin sütunu daralmaz (1280+ canlıdaki gibi yan not sütunu) */
@media (min-width: 1080px) {
  .mb-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mb-row__note { display: block; margin-top: .75rem; }
}

/* 1024–1099 EN üst menü taşması: "Book appointment" ekrandan taşmasın (yükseklik ve renk aynı) */
@media (min-width: 1024px) and (max-width: 1099px) {
  .gg-nav-links { column-gap: 6px; }
  .gg-nav .gg-nav-link, .gg-nav #ggMegaToggle { font-size: 14px; }
  .gg-nav-cta { gap: 8px; margin-left: 6px; }
  .gg-nav-cta .gg-btn-primary { padding-left: 12px; padding-right: 12px; }
  .gg-nav-cta .gg-btn-ghost { padding-left: 10px; padding-right: 10px; }
}

/* 768–1023 ana sayfa tedavi yayı: komşu kartlar üst üste binmesin */
@media (min-width: 768px) and (max-width: 1023px) {
  .hk-arc:not(.hk-arc--mobile) .hk-arc__card { scale: .6; }
}

}

/* TUR 2 (16.11.2026) · yalnız ≤767 px; 768 ve üstü değişmez */
@media (max-width: 767px) {
  /* Madde 1: slider yüksekliği görünen ekran yüksekliğini izlesin (iOS araç çubuğu açık/kapalı); doktor görseli her slaytta alt çubuğun üstüne otursun */
  @supports (height: 100dvh) {
    .hd-hero, .hd-hero__inner { min-height: calc(100dvh - var(--gg-stack-h, 72px)); }
  }
  /* Madde 2–4: Hakkımda, Blog, İletişim üst bölüm doktor görseli okunur boyutta; butonlar ve metinle çakışmasın */
  .ph-hero__fg-img,
  .ph-hero--contact .ph-hero__fg-img,
  .ph-hero--blog .ph-hero__fg-img { height: 54% !important; max-height: none !important; max-width: 58% !important; right: -9% !important; bottom: calc(var(--geo-sticky-h, 64px) + 16px + env(safe-area-inset-bottom, 0px)) !important; }
  .ph-hero:not(.ph-hero--contact):not(.ph-hero--blog) .ph-hero__fg-img { right: -13% !important; }
  .ph-hero__lede, .ph-hero__intro { max-width: calc(100vw - 210px); }
}

/* TUR 3 (16.11.2026) · yalnız ≤767 px: slider doktor görseli slaytın alt kenarına otursun (Safari'de araç çubuğu ne olursa olsun boşluk kalmasın).
   Görsel kapsayıcısı slaytın dibine bağlanır; görsel boyu eski boyla aynı tutulur (yalnız aşağı iner). Ok/sayaç şeridi z-index 5 ile üstte kalır. */
@media (max-width: 767px) {
  .hd-hero__fg { bottom: 0 !important; }
  .hd-hero__fg img,
  .hd-hero__slide--copy-right .hd-hero__fg img { height: calc((100% - var(--geo-sticky-h, 64px) - env(safe-area-inset-bottom, 0px)) * .58) !important; }
}
@media (max-width: 374px) {
  .hd-hero__fg img, .hd-hero__slide--copy-right .hd-hero__fg img { height: calc((100% - var(--geo-sticky-h, 64px) - env(safe-area-inset-bottom, 0px)) * .52) !important; }
}
/* Slayt sayacı (01 / 04) doktorun koyu kıyafeti üstünde de okunsun: ok düğmesiyle aynı dilde yarı saydam açık hap; yer ve boyut değişmez */
@media (max-width: 767px) {
  .hd-hero__num, .hd-hero__track + .hd-hero__range { background: rgba(255,255,255,.82); box-shadow: inset 0 0 0 1px rgba(39,71,96,.22); border-radius: 999px; padding: 2px 6px; margin: -2px -6px; }
  .hd-hero__bar .hd-hero__range { color: rgb(39,71,96) !important; }
}

/* Ana sayfa tetkik formu, 3 adım (yalnız ≤767 px, form-adim.js etkinse) */
@media (max-width: 767px) {
  #homeTetkikForm.fa-adimli .fa-gizli { display: none !important; }
  #homeTetkikForm .fa-ilerleme { display: flex; gap: 6px; margin: 2px 0 12px; }
  #homeTetkikForm .fa-ilerleme span { flex: 1; height: 6px; border-radius: 3px; background: #dfe4eb; }
  #homeTetkikForm .fa-ilerleme span.fa-on { background: #2f78c0; }
  #homeTetkikForm .fa-adim-etiket { margin: 0 0 10px; color: #2f78c0; font-size: .76rem; font-weight: 700; }
  #homeTetkikForm .fa-gezinti { display: flex; gap: 10px; }
  #homeTetkikForm .fa-gezinti[hidden], #homeTetkikForm .fa-btn[hidden] { display: none; }
  #homeTetkikForm .fa-btn { flex: 1; min-height: 44px; margin-top: 8px; border-radius: 9px; font-size: .9rem; font-weight: 700; cursor: pointer; }
  #homeTetkikForm .fa-btn--devam { border: 0; background: #1B2B5D; color: #fff; }
  #homeTetkikForm .fa-btn--geri { border: 1.5px solid #1B2B5D; background: #fff; color: #1B2B5D; }
  #homeTetkikForm.fa-adimli .fa-gezinti.fa-son { flex: 0 0 50%; max-width: 50%; }
  #homeTetkikForm.fa-adimli .fa-gezinti.fa-son ~ .col-md-4 { flex: 0 0 50%; max-width: 50%; }
  #homeTetkikForm.fa-adimli .submit-btn { min-height: 44px; height: 44px; }
  #homeTetkikForm.fa-adimli .row > .col-md-4:nth-child(4),
  #homeTetkikForm.fa-adimli .row > .col-md-4:nth-child(5) { flex: 0 0 50%; max-width: 50%; }
  #homeTetkikForm.fa-adimli .ht-files { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #homeTetkikForm.fa-adimli .ht-file { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; }
  #homeTetkikForm.fa-adimli .ht-file span { font-size: .76rem; }
  #homeTetkikForm.fa-adimli.fa-denendi .form-control:invalid, #homeTetkikForm.fa-adimli.fa-denendi .form-select:invalid { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192,57,43,.12); }
}

/* reCAPTCHA rozeti (yalnız ≤767 px): gizlenmez; sabit konumdan çıkıp koyu alt bölümün (footer) en altında, alt çubuğun üstünde
   kendine ayrılmış şeride oturur. Böylece slider okları, form düğmeleri, WhatsApp ve alt çubukla çakışmaz;
   genişleyince (256 px) de aynı şeritte kalır. Rozet olmayan sayfalarda hiçbir şey değişmez. */
@media (max-width: 767px) {
  body:has(.grecaptcha-badge) { position: relative; }
  /* Ayrılan alan alt bölümün (footer) kendi zemini içinde: beyaz şerit kalmaz */
  body:has(.grecaptcha-badge),
  body.tx-treatment-editorial:has(.grecaptcha-badge) { padding-bottom: 0 !important; }
  body:has(.grecaptcha-badge) footer.cs_footer { padding-bottom: calc(var(--geo-sticky-h, 64px) + env(safe-area-inset-bottom, 0px) + 16px + 76px); }
  .grecaptcha-badge { position: absolute !important; bottom: calc(var(--geo-sticky-h, 64px) + env(safe-area-inset-bottom, 0px) + 16px) !important; z-index: 1; }
}
