/**
 * Tüm sayfalar – ortak ve en uygun CSS ayarları
 * Index, iç sayfalar, blog, randevu/iletişim, tedavi sayfaları için tutarlı düzen.
 */

:root {
  --apple-radius: 12px;
  --apple-radius-lg: 18px;
  --apple-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --apple-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --space-section: 4rem;
  --space-section-sm: 2.5rem;
  --space-section-xs: 2rem;
  --space-container: 15px;
  --space-container-sm: 12px;
  --space-container-xs: 0.75rem;
}

/* ========== Tüm sayfalar – temel layout ========== */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
}
/* Sayfa scroll çalışsın ama scrollbar görünmesin */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
/* Sticky footer kaldırıldı – simya-responsive.css / simya-brand.css */
#wrapper {
  min-height: auto;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
}
#content {
  flex: 0 0 auto;
}

/* Container – ortada, makul genişlik (referans: eski ortalanmış görünüm) */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 992px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1200px;
  }
}
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1320px;
  }
}
.container {
  padding-left: var(--space-container);
  padding-right: var(--space-container);
}
@media (max-width: 991px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 575px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 480px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Row – tutarlı boşluk; taşma önleme (Bootstrap row zaten negatif margin kullanır) */
#content .row {
  max-width: 100%;
}
#content .row [class*="col-"] {
  min-width: 0;
}
/* Mobil row gutter → simya-responsive.css */

/* İç sayfa subheader – tüm iç sayfalarda aynı görünüm */
#subheader {
  text-align: center;
}
#subheader h1 {
  margin-bottom: 0.5rem;
}
#subheader .crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
#subheader .crumb li + li::before {
  content: "›";
  margin-right: 0.5rem;
  opacity: 0.7;
}

/* Form sayfaları – randevu / iletişim */
#content .success,
#content .error {
  padding: 1rem 1.25rem;
  border-radius: var(--apple-radius);
  margin-bottom: 1rem;
}
#content .success {
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.2);
}
#content .error {
  background: rgba(200, 60, 60, 0.08);
  border: 1px solid rgba(200, 60, 60, 0.25);
}

/* Tedavi sayfaları – sol/sağ kolon taşmasın */
.treatment-photo-wrap img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 991px) {
  .row.g-4:has(.treatment-photo-wrap) .col-lg-4,
  .row.g-4:has(.treatment-photo-wrap) .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Blog listesi – kart hizalama */
.de-bloglist-type-1 .d-image {
  overflow: hidden;
  border-radius: var(--apple-radius);
}
.de-bloglist-type-1 .d-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Widget / sidebar – iç sayfa sağ kolon */
.widget {
  margin-bottom: 1.5rem;
}
.widget:last-child {
  margin-bottom: 0;
}
.widget h4,
.widget h5 {
  margin-bottom: 1rem;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget ul li {
  margin-bottom: 0.5rem;
}
.widget ul li a {
  text-decoration: none;
}

/* Tüm sayfalarda ikon rengi (id-color) tema ile uyumlu */
.id-color {
  color: var(--primary-color, #6a3a93) !important;
}

/* Tedavilerimiz sayfası – tedavi blokları ikon (Font Awesome, ~70px görünüm) */
#content .treatment-block-icon {
  display: inline-block;
  font-size: 2.75rem;
  color: var(--primary-color, #6a3a93);
  margin-bottom: 0.75rem;
  line-height: 1;
}
#content a:hover .treatment-block-icon {
  color: var(--primary-color, #6a3a93);
  opacity: 0.9;
}

/* İçerik başlıkları – alt sayfalarda h2/h3 boşluk */
#content h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
#content h2:first-child {
  margin-top: 0;
}
#content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Kartlar / görseller – yuvarlatılmış köşe ve hafif gölge */
#content .rounded-1,
#content .hover-shadow.rounded-1,
#content div.rounded-1 {
  border-radius: var(--apple-radius-lg);
  box-shadow: var(--apple-shadow-sm);
}
#content a:hover .rounded-1.hover-shadow,
#content .hover-shadow:hover {
  box-shadow: var(--apple-shadow);
}

/* Butonlar – sadece yuvarlak form, renk tema renginde kalır */
#content .btn-main,
header .btn-main {
  border-radius: 980px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#content .btn-main:hover,
header .btn-main:hover {
  transform: scale(1.02);
}

/* Bölüm aralıkları → apple-layout-system.css */
#content > section.bg-color-op-1,
#content > section.bg-light {
  background: #f5f5f7;
}

/* İstatistik bölümü (10000+ Mutlu Hasta vb.) – gradient gri (apple-style’daki beyazı ezer) */
#content > section.section-stats {
  background: #f5f5f7 !important;
  color: #1d1d1f;
}
#content > section.section-stats .de_count,
#content > section.section-stats .de_count h3,
#content > section.section-stats .de_count .timer {
  color: #1d1d1f;
}

/* Anasayfa – üç bilgi kutusu (Çalışma Saatleri, Telefon, Adres) */
section.bg-color-op-1 .row.g-4.text-center {
  align-items: stretch;
}
section.bg-color-op-1 .row.g-4.text-center > .col-md-4 {
  display: flex;
}
section.bg-color-op-1 .row.g-4.text-center > .col-md-4 > .rounded-1.bg-white {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.5rem 1.25rem !important;
  min-width: 0;
}
section.bg-color-op-1 .row.g-4.text-center .rounded-1.bg-white h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}
section.bg-color-op-1 .row.g-4.text-center .rounded-1.bg-white p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.95rem;
  text-align: center;
}
section.bg-color-op-1 .row.g-4.text-center .rounded-1.bg-white p.small {
  font-size: 0.85rem;
  color: #666;
}
section.bg-color-op-1 .row.g-4.text-center .rounded-1.bg-white .id-color {
  color: var(--primary-color, #6a3a93);
}
section.bg-color-op-1 .row.g-4.text-center .rounded-1.bg-white a[href^="tel"] {
  color: var(--primary-color, #6a3a93);
  font-weight: 500;
}
section.bg-color-op-1 .row.g-4.text-center .rounded-1.bg-white .btn-main.btn-line {
  margin-top: auto;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  section.bg-color-op-1 .row.g-4.text-center > .col-md-4 > .rounded-1.bg-white {
    padding: 2rem 1.5rem !important;
  }
}
@media (max-width: 767px) {
  section.bg-color-op-1 .row.g-4.text-center > .col-md-4 {
    margin-bottom: 0;
  }
  section.bg-color-op-1 .row.g-4.text-center > .col-md-4:last-child {
    margin-bottom: 0;
  }
}
/* Mobil: Neden Bizi Seçmelisiniz? ve altındaki bölümler – metin ve kolonlar ortada */
@media (max-width: 991px) {
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 {
    text-align: center;
  }
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 .subtitle,
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 h2,
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 p,
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 h5 {
    text-align: center;
  }
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 .row [class*="col-"] {
    text-align: center;
  }
  /* Açıklama paragrafları mobilde sola yaslı */
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 p,
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 .row [class*="col-"] p,
  section.bg-color-op-1 + section .row.gy-4.gx-5 .col-lg-6 .row [class*="col-"] {
    text-align: left !important;
  }
}

/* ========== Anasayfa hero – eski CSS (style.css) davranışı korunsun ========== */
#section-intro.no-top.no-bottom {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#section-intro .abs-centered {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Swiper / slider yüksekliği eski tema ile uyumlu */
#section-intro .mh-800 {
  min-height: 800px;
}
@media (max-width: 991px) {
  #section-intro .abs-centered {
    min-height: 0;
    padding-top: 0;
  }
  #section-intro .d-lg-flex {
    margin-top: 1rem;
  }
  #section-intro .mh-800 {
    min-height: 720px;
  }
}
@media (max-width: 575px) {
  #section-intro .col-lg-6 .lead {
    font-size: 0.95rem;
  }
  #section-intro .mh-800 {
    min-height: 660px;
  }
}
@media (max-width: 480px) {
  #section-intro .mh-800 {
    min-height: 600px;
  }
}

/* Subheader (iç sayfa başlık) – spacing apple-layout-system.css */
#subheader,
#subheader.bg-color-op-1 {
  background: #f5f5f7;
  border-bottom: none;
}

/* Accordion / SSS – tıklanabilir alan */
.accordion-section .accordion-section-title {
  padding: 1rem 1.25rem;
  border-radius: var(--apple-radius);
  font-weight: 500;
}

/* Accordion / SSS – açılan cevap metni: okunabilir, biçimli */
.accordion-section-content {
  padding: 1rem 1.25rem 1.25rem !important;
  padding-top: 0.75rem !important;
  line-height: 1.65;
  color: #333;
  max-width: 52em;
  margin-bottom: 0.5rem;
}
.accordion-section-content a {
  color: var(--primary-color, #6a3a93);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.accordion-section-content a:hover {
  text-decoration: none;
}

/* Form alanları – odak halkası */
#content input[type="text"]:focus,
#content input[type="email"]:focus,
#content input[type="tel"]:focus,
#content textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
}

/* Back to top – yuvarlak, gölgeli (konum theme’de .show/.hide ile) */
#back-to-top {
  border-radius: 50%;
  box-shadow: var(--apple-shadow);
  width: 48px;
  height: 48px;
}
#back-to-top.show {
  bottom: 96px;
  right: 24px;
}

/* CTA Randevu bölümü – görseldeki gibi beyaz zemin, net metin, mavi çerçeveli buton */
.cta-randevu {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.cta-randevu__title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.cta-randevu .btn-cta-outline {
  display: inline-block;
  background: #fff !important;
  color: var(--primary-color, #6a3a93) !important;
  border: 2px solid var(--primary-color, #6a3a93) !important;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 980px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cta-randevu .btn-cta-outline:hover {
  background: var(--primary-color, #6a3a93) !important;
  color: #fff !important;
  border-color: var(--primary-color, #6a3a93) !important;
  transform: scale(1.02);
}
@media (max-width: 767px) {
  .cta-randevu {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
  .cta-randevu .row {
    text-align: center;
  }
  .cta-randevu .text-md-end {
    text-align: center !important;
  }
  .cta-randevu .btn-cta-outline {
    width: 100%;
    max-width: 280px;
  }
}

/* Mutlu Hasta / istatistik bölümü – rakamların her zaman görünür olması */
section.bg-dark.text-light .de_count h3,
section.bg-dark.text-light .de_count .timer {
  color: #fff !important;
  opacity: 1;
  visibility: visible;
}
section.bg-dark.text-light .de_count p,
section.bg-dark.text-light .de_count .mb-0 {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobil bölüm aralıkları → apple-layout-system.css */

/* Ana sayfa – küçük iyileştirmeler */
#content .grid-divider > [class*="col-"]:not(:last-child)::after {
  border-color: rgba(255, 255, 255, 0.15);
}
/* Üç sütunlu bilgi çubuğu (telefon, çalışma saatleri, adres) – taşma ve üst üste binme yok */
section.bg-dark.text-light .container .row.grid-divider {
  align-items: stretch;
}
section.bg-dark.text-light .container .row.grid-divider > [class*="col-"] {
  min-width: 0;
  position: relative;
  padding-left: 1rem;
  padding-right: 1rem;
}
section.bg-dark.text-light .container .row.grid-divider > [class*="col-"]:first-child {
  padding-left: 0;
}
section.bg-dark.text-light .container .row.grid-divider > [class*="col-"]:last-child {
  padding-right: 0;
}
section.bg-dark.text-light .container .row.grid-divider > [class*="col-"]:nth-child(n+2)::after {
  left: 0;
}
section.bg-dark.text-light .container .row.grid-divider .d-flex {
  min-width: 0;
  flex-wrap: nowrap;
}
section.bg-dark.text-light .container .row.grid-divider .d-flex > i,
section.bg-dark.text-light .container .row.grid-divider .d-flex > .fs-60 {
  flex-shrink: 0;
}
section.bg-dark.text-light .container .row.grid-divider .d-flex > div {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
section.bg-dark.text-light .container .row.grid-divider .d-flex h4,
section.bg-dark.text-light .container .row.grid-divider .d-flex p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (min-width: 992px) {
  section.bg-dark.text-light .container .row.grid-divider > [class*="col-"] {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  section.bg-dark.text-light .container .row.grid-divider > [class*="col-"]:first-child {
    padding-left: 0;
  }
  section.bg-dark.text-light .container .row.grid-divider > [class*="col-"]:last-child {
    padding-right: 0;
  }
}
@media (max-width: 991px) {
  section.bg-dark.text-light .container .row.grid-divider .d-flex {
    justify-content: flex-start;
  }
}
@media (max-width: 1199px) {
  section.bg-dark.text-light .container .row.grid-divider .d-flex > i.fs-60,
  section.bg-dark.text-light .container .row.grid-divider .fs-60 {
    font-size: 2.25rem !important;
  }
}
#content .mb-25 {
  margin-bottom: 1.25rem;
}

/* Footer düzeni apple-style.css içinde tanımlı (3 kolon yan yana) */

/* ========== Blog yazı sayfası – metnin üstünde görsel alanı ========== */
.blog-read .blog-featured-image {
  margin-bottom: 1.5rem;
  border-radius: var(--apple-radius-lg);
  overflow: hidden;
  box-shadow: var(--apple-shadow);
  background: var(--apple-gray, #f5f5f7);
}
.blog-read .blog-featured-image img {
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .blog-read .blog-featured-image img {
    min-height: 180px;
    max-height: 280px;
  }
}

/* Genel layout – taşma önleme (tüm sayfalar) */
#content img {
  max-width: 100%;
  height: auto;
}
#content .container {
  box-sizing: border-box;
}
@media (max-width: 575px) {
  #content .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
/* Tüm sayfalarda yatay taşma önleme */
body, html {
  overflow-x: hidden;
}
/* Header menü linkleri taşmasın */
#mainmenu > li > a {
  white-space: nowrap;
}
@media (min-width: 992px) {
  #mainmenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
}

/* ========== Tüm sayfalar – mobil responsive (taşma önleme) ========== */
@media (max-width: 480px) {
  #subheader .crumb {
    font-size: 0.85rem;
  }
  .widget h4, .widget h5 {
    font-size: 1.1rem;
  }
}

/* ========== Mobil drawer – yazılar sola yaslı (son yüklendiği için burada) ========== */
@media (max-width: 991px) {
  #mobile-drawer,
  #mobile-drawer.mobile-drawer,
  #mobile-drawer .mobile-drawer-menu-wrap,
  #mobile-drawer #mainmenu-mobile,
  #mobile-drawer #mainmenu-mobile li,
  #mobile-drawer #mainmenu-mobile a,
  #mobile-drawer #mainmenu-mobile .menu-item,
  #mobile-drawer .mobile-drawer-contact,
  #mobile-drawer .mobile-drawer-contact-item,
  #mobile-drawer .mobile-drawer-contact-item span,
  #mobile-drawer .mobile-drawer-contact-item a {
    text-align: left !important;
  }
  #mobile-drawer .mobile-drawer-close,
  #mobile-drawer .mobile-drawer-close * {
    text-align: center !important;
  }
}

/* Taşma / layout → apple-layout-system.css (son katman) */
