/* =========================================================
   Global Mobile / Responsive Layer — Uzm. Dr. Ahmet Kurt
   Anasayfa + tüm PHP sayfalar
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

iframe {
  width: 100%;
}

/* Container güvenliği */
.container,
.container-fluid,
.container-left,
.max-w-390,
.row {
  max-width: 100%;
}

main,
.page-content,
#smooth-content,
#smooth-wrapper,
.page-wraper {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

/* Dokunma hedefleri */
@media (max-width: 991px) {
  a,
  button,
  .btn,
  summary {
    -webkit-tap-highlight-color: rgba(0, 128, 153, 0.12);
  }

  .btn,
  .btn-lg,
  .btn-primary,
  .btn-accent {
    min-height: 44px;
  }

  /* Tipografi: aşırı büyük başlıkları yumuşat */
  .headline,
  h1.headline,
  h2.headline {
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: clamp(1.45rem, 6vw, 2rem) !important;
    line-height: 1.3 !important;
  }

  /* Anasayfa about negatif margin taşması */
  .about-section-wrap .row.\!-ml-50,
  .about-section-wrap [class*="!-ml-"] {
    margin-left: 0 !important;
  }

  .about-section-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* ——— Hakkımızda mobil toparlama ——— */
  .about-section-wrap {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .about-section-wrap > .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-section-wrap > .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
  }

  .about-section-wrap > .container > .row > [class*="lg:w-1/2"],
  .about-section-wrap > .container > .row > [class*="w-full"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Görsel collage: sol büyük + sağ iki küçük */
  .about-section-wrap > .container > .row > div:first-child > .row {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr;
    gap: 0.65rem;
    margin: 0 !important;
    align-items: stretch;
  }

  .about-section-wrap > .container > .row > div:first-child > .row > [class*="w-2"],
  .about-section-wrap > .container > .row > div:first-child > .row > .w-2\/3,
  .about-section-wrap > .container > .row > div:first-child > .row > [class*="w-1"],
  .about-section-wrap > .container > .row > div:first-child > .row > .w-1\/3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .about-section-wrap > .container > .row > div:first-child > .row > div:last-child > .row {
    display: flex !important;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    margin: 0 !important;
  }

  .about-section-wrap > .container > .row > div:first-child > .row > div:last-child > .row > .w-full,
  .about-section-wrap > .container > .row > div:first-child > .row > div:last-child > .row > [class*="w-"] {
    width: 100% !important;
    flex: 1 1 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0;
  }

  .about-section-wrap > .container > .row > div:first-child .mb-9 {
    margin-bottom: 0 !important;
  }

  .about-section-wrap > .container > .row > div:first-child [class*="mask-["],
  .about-section-wrap > .container > .row > div:first-child .rounded-2xl,
  .about-section-wrap > .container > .row > div:first-child .max-w-50 {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    border-radius: 1rem !important;
    overflow: hidden;
    max-width: 100% !important;
    height: 100%;
  }

  .about-section-wrap > .container > .row > div:first-child img {
    width: 100% !important;
    height: 100% !important;
    min-height: 120px;
    object-fit: cover !important;
    display: block;
  }

  .about-section-wrap > .container > .row > div:first-child > .row > div:first-child img {
    min-height: 220px;
    aspect-ratio: 3 / 4;
  }

  .about-section-wrap > .container > .row > div:first-child > .row > div:last-child img {
    min-height: 105px;
    aspect-ratio: 1 / 1;
  }

  /* Metin sütunu */
  .about-section-wrap > .container > .row > div:last-child {
    text-align: left;
  }

  .about-section-wrap .font-sub-title {
    font-size: 1rem !important;
    margin-bottom: 0.35rem;
  }

  .about-section-wrap h2.headline {
    font-size: clamp(1.4rem, 6vw, 1.85rem) !important;
    line-height: 1.3 !important;
    padding-right: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  .about-section-wrap .sm\:mb-7\.5 > p,
  .about-section-wrap .mb-5 > p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
  }

  .about-section-wrap .sm\:mb-7\.5,
  .about-section-wrap .mb-5 {
    margin-bottom: 1.15rem !important;
  }

  /* Checklist — 2 sütun, sıkı */
  .about-section-wrap ul.flex {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.65rem;
    margin-bottom: 1.25rem !important;
  }

  .about-section-wrap ul.flex > li {
    width: 100% !important;
    padding: 0.35rem 0.25rem 0.35rem 1.85rem !important;
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
  }

  .about-section-wrap ul.flex > li::before {
    width: 1.25rem !important;
    height: 1.25rem !important;
    top: 0.35rem;
  }

  .about-section-wrap .btn {
    width: 100%;
    max-width: 18rem;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .about-section-wrap > .container > .row > div:first-child > .row {
    grid-template-columns: 1fr 0.95fr;
    gap: 0.5rem;
  }

  .about-section-wrap > .container > .row > div:first-child > .row > div:first-child img {
    min-height: 200px;
  }

  .about-section-wrap ul.flex {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .about-section-wrap ul.flex > li {
    font-size: 0.9rem !important;
  }

  .about-section-wrap .btn {
    max-width: none;
  }

  /* ——— Mobil Hero: tam ekran, modern ——— */
  .page-content > .relative.z-1.overflow-hidden {
    min-height: 100svh !important;
    height: 100svh !important;
    max-height: none !important;
    width: 100% !important;
  }

  .page-content > .relative.z-1.overflow-hidden > .hero-effect-container,
  .page-content > .relative.z-1.overflow-hidden > .hero-image-overlay,
  .page-content > .relative.z-1.overflow-hidden > .hero-banner-swiper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-content > .relative.z-1.overflow-hidden > .hero-effect-container {
    z-index: 0 !important;
  }

  .page-content > .relative.z-1.overflow-hidden > .hero-effect-container canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .page-content > .relative.z-1.overflow-hidden > .hero-image-overlay {
    z-index: 2 !important;
  }

  .page-content > .relative.z-1.overflow-hidden > .hero-banner-swiper {
    z-index: 4 !important;
  }

  /* Alttan okunabilir gradient */
  .page-content > .relative.z-1.overflow-hidden::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
      linear-gradient(
        180deg,
        rgba(10, 61, 74, 0.45) 0%,
        rgba(10, 61, 74, 0.12) 32%,
        rgba(10, 61, 74, 0.35) 58%,
        rgba(10, 61, 74, 0.92) 100%
      );
  }

  .hero-banner-swiper,
  .hero-banner-swiper .swiper-wrapper,
  .hero-banner-swiper .swiper-slide {
    height: 100% !important;
    min-height: 100% !important;
  }

  .hero-banner-swiper .max-w-390 {
    max-width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-banner-swiper .swiper-slide > .max-w-390 > .h-full {
    height: 100% !important;
  }

  .hero-banner-swiper .swiper-slide .row.items-center {
    height: 100% !important;
    margin: 0 !important;
  }

  .hero-banner-swiper .swiper-slide .md\:w-1\/2,
  .hero-banner-swiper .swiper-slide .w-full.h-full.flex.flex-col {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding:
      5.5rem
      1.25rem
      calc(8.75rem + env(safe-area-inset-bottom))
      1.25rem !important;
    box-sizing: border-box;
  }

  .hero-banner-swiper .pt-30,
  .hero-banner-swiper .pb-10,
  .hero-banner-swiper .md\:pb-21 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-banner-swiper .my-auto {
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-banner-swiper h1,
  .hero-banner-swiper .headline {
    font-size: clamp(2rem, 8.5vw, 2.65rem) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    max-width: 14ch;
    margin: 0 0 0.75rem !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  }

  .hero-banner-swiper p {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    margin: 0 0 1.15rem !important;
    max-width: 28ch !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  }

  .hero-banner-swiper .btn-lg,
  .hero-banner-swiper .btn-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(0, 128, 153, 0.4) !important;
    margin-bottom: 1.25rem !important;
  }

  /* Stats — cam şerit */
  .hero-banner-swiper .swiper-slide .md\:w-1\/2 > .row,
  .hero-banner-swiper .swiper-slide .w-full.h-full.flex.flex-col > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.55rem !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .hero-banner-swiper .swiper-slide .md\:w-1\/2 > .row > [class*="w-"],
  .hero-banner-swiper .swiper-slide .w-full.h-full.flex.flex-col > .row > [class*="w-"] {
    width: auto !important;
    flex: 1 1 0 !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .hero-banner-swiper .swiper-slide .md\:w-1\/2 > .row > div > div,
  .hero-banner-swiper .swiper-slide .w-full.h-full.flex.flex-col > .row > div > div {
    padding: 0.7rem 0.85rem !important;
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-banner-swiper .swiper-slide .lg\:ps-7\.5 {
    padding-left: 0 !important;
  }

  .hero-banner-swiper .text-3xxl,
  .hero-banner-swiper [class*="text-3xxl"],
  .hero-banner-swiper .value,
  .hero-banner-swiper .sm\:text-6xl {
    font-size: 1.55rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
  }

  .hero-banner-swiper .swiper-slide h3 {
    font-size: 0.72rem !important;
    opacity: 0.9;
    margin-top: 0.15rem !important;
    font-weight: 500 !important;
  }

  /* Kontroller — alt şerit */
  .page-content > .relative.z-1.overflow-hidden > div:has(.hero-banner-slider__pagination) {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(5.5rem + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box;
  }

  .hero-banner-slider__pagination {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .hero-banner-slider__pagination .hero-banner-pagination-swiper {
    margin: 0 0.35rem !important;
    width: 1.75rem !important;
    background: rgba(255, 255, 255, 0.55) !important;
  }

  .hero-banner-slider__current,
  .hero-banner-slider__total {
    font-size: 0.8rem !important;
    width: auto !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
  }

  .hero-banner-slider__total {
    margin-right: 0 !important;
  }

  .page-content > .relative.z-1.overflow-hidden > div:has(.hero-banner-slider__pagination) > .flex.items-center.justify-end {
    gap: 0.4rem !important;
  }

  .hero-banner-button-prev,
  .hero-banner-button-next {
    width: 2.65rem !important;
    height: 2.65rem !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-banner-button-prev svg,
  .hero-banner-button-next svg {
    width: 1.35rem !important;
    height: 1.35rem !important;
  }

  .banner-content,
  .swiper-slide .container,
  .main-slider .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main-slider h1,
  .swiper-slide h1 {
    font-size: clamp(1.65rem, 7vw, 2.35rem) !important;
    line-height: 1.25 !important;
  }

  .main-slider p,
  .swiper-slide p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .main-slider .btn,
  .swiper-slide .btn {
    margin-top: 0.5rem;
  }

  /* CTA bandı */
  .img-zoom .absolute.top-1\/2,
  section.img-zoom .absolute.top-1\/2 {
    width: calc(100% - 2rem) !important;
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  section.img-zoom h2,
  section.img-zoom h2 a {
    font-size: clamp(1.25rem, 5.5vw, 1.85rem) !important;
    line-height: 1.3 !important;
  }

  /* Testimonials kartları */
  .testimonial-swiper9 .swiper-slide {
    height: auto;
  }

  .testimonial-swiper9 .p-7\.5,
  .testimonial-swiper9 [class*="px-7"],
  .testimonial-swiper9 [class*="p-7"] {
    padding: 1.15rem !important;
  }

  .testimonial-swiper9 p {
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
  }

  .testimonial-swiper9 h3,
  .testimonial-swiper9 .title {
    font-size: 1.05rem !important;
  }

  /* SSS anasayfa */
  .accordion-item,
  .accordion-header,
  .accordion-body {
    max-width: 100%;
  }

  .accordion-button,
  .accordion-header button,
  [data-bs-toggle="collapse"] {
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    font-size: 0.95rem !important;
  }

  /* Features / hizmet kartları */
  .services-section-wrap .row > [class*="w-"],
  .feature-section .row > [class*="w-"] {
    max-width: 100%;
  }

  /* Footer: dar ekranda tek sütun */
  footer .row > .w-1\/2,
  footer .row > [class*="xl:w-1\\/2"],
  footer .row > [class*="sm:w-"] {
    width: 100% !important;
  }

  footer .site-footer-logo-img {
    max-width: min(180px, 70vw) !important;
    height: auto !important;
  }

  footer .footer-middle .row {
    row-gap: 1rem;
  }

  footer .footer-middle input[type="email"] {
    width: 100% !important;
    min-width: 0 !important;
  }

  footer .max-w-75 {
    max-width: 100% !important;
  }

  /* Newsletter form taşması */
  .dzSubscribe .relative.flex,
  form.dzSubscribe .relative {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Sticky / absolute header altı boşluk — hero’lar zaten pad’li */
  .page-content > section:first-child {
    scroll-margin-top: 1rem;
  }

  /* Why choose / içerik grid */
  .why-choose-wrap .row,
  .conditions-section .row {
    margin-left: 0;
    margin-right: 0;
  }

  /* Genel spacing */
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .container-left {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Butonlar tam genişlik seçenekleri */
  .max-sm\:w-full {
    width: 100%;
  }

  /* Submenu mobilde */
  .site-header .sub-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    width: 100% !important;
  }
}

@media (max-width: 700px) {
  /* Anasayfa özellik / hizmet satırları */
  .services-section-wrap .container,
  .why-choose-wrap .container,
  .conditions-section .container,
  .feature-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mask görseller (about dışı) */
  .services-section-wrap [class*="mask-["],
  .why-choose-wrap [class*="mask-["] {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    border-radius: 1rem !important;
    overflow: hidden;
  }

  /* Hizmet kartları: swiper caption */
  .services-section-wrap .service-card-caption {
    padding: 1.15rem !important;
  }

  .services-section-wrap .service-card-caption h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  .services-section-wrap .service-card-caption span {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }

  .services-section-wrap .dz-hover-img img {
    min-height: 260px;
    object-fit: cover;
  }

  /* Ortadaki ok butonu — mobilde hover yok, görünür kalsın */
  .services-section-wrap a.size-25 {
    width: 3.25rem !important;
    height: 3.25rem !important;
  }

  .services-section-wrap .dz-hover-item > .absolute.top-1\/2 {
    opacity: 0.9 !important;
    visibility: visible !important;
  }

  /* Features / why-choose kart padding */
  .box-hover {
    padding-right: 1.35rem !important;
    min-height: auto !important;
  }

  .box-hover h3,
  .box-hover .title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  /* Conditions / video yan yana → alt alta */
  .conditions-section .row > [class*="w-"],
  .why-choose-wrap .row > [class*="w-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* CTA: metin alanı dar ekranda taşmasın */
  section.img-zoom {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  section.img-zoom .sm\:rounded-4xl,
  section.img-zoom [class*="rounded"] {
    border-radius: 1.15rem !important;
  }

  section.img-zoom .img-box img {
    min-height: 220px !important;
    max-height: 320px;
    object-fit: cover;
  }

  section.img-zoom .absolute.top-1\/2 {
    width: calc(100% - 1.5rem) !important;
    max-width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  section.img-zoom .btn {
    margin-top: 0.75rem;
  }

  /* Preloader logo */
  .ak-preloader-inner img {
    width: min(170px, 55vw);
  }

  /* Sağlık notları home */
  .sn-home {
    padding-left: 0;
    padding-right: 0;
  }

  .sn-home-head {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.85rem;
  }

  .sn-home-all {
    width: 100%;
    justify-content: center;
  }

  /* Footer newsletter: buton alta */
  footer .dzSubscribe .relative.flex,
  form.dzSubscribe .relative {
    flex-direction: column;
    align-items: stretch;
  }

  footer .dzSubscribe input[type="email"] {
    width: 100% !important;
    padding-right: 1.25rem !important;
  }

  footer .dzSubscribe button,
  footer .dzSubscribe .btn {
    position: static !important;
    width: 100%;
    margin-top: 0.5rem;
  }

  footer .footer-middle .row > [class*="w-"],
  footer .footer-middle .row > [class*="xl:w-"],
  footer .footer-middle .row > [class*="lg:w-"],
  footer .footer-middle .row > [class*="md:w-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Form alanları */
  input,
  textarea,
  select {
    font-size: 16px !important; /* iOS zoom önleme */
  }

  /* Offcanvas / dialog */
  #offcanvas-right {
    width: min(100vw, 22rem) !important;
  }

  #videoDialog .dialog-content {
    width: calc(100% - 1.5rem) !important;
    margin: 0.75rem auto !important;
  }
}

@media (max-width: 480px) {
  .hero-banner-swiper h1,
  .hero-banner-swiper .headline {
    font-size: clamp(1.85rem, 8vw, 2.25rem) !important;
  }

  .hero-banner-swiper .btn-lg,
  .hero-banner-swiper .btn-primary {
    width: 100%;
    max-width: 100%;
  }

  .btn-lg:not(.hero-banner-swiper .btn-lg) {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    font-size: 0.92rem !important;
  }

  footer .text-lg {
    font-size: 0.95rem !important;
  }

  footer .flex.items-center.gap-1 {
    flex-wrap: wrap;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 991px) {
    .site-header {
      padding-top: env(safe-area-inset-top);
    }
  }
}

/* 100vw taşmasını kes */
@media (max-width: 991px) {
  .site-header .menu-close.fade-overlay {
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-header {
    max-width: 100%;
    left: 0;
    right: 0;
  }

  .site-header .main-bar > .container-fluid.ak-header-bar {
    max-width: calc(100% - 1.25rem) !important;
    width: calc(100% - 1.25rem) !important;
    box-sizing: border-box;
  }

  section,
  footer,
  .row,
  .swiper,
  .swiper-wrapper {
    max-width: 100%;
  }

  .swiper-slide {
    max-width: 100%;
    box-sizing: border-box;
  }

  #offcanvas-right {
    max-width: 100% !important;
  }
}
