/* Shared visual system for the clinic website, blog, booking flow, and admin. */
:root {
  /* Canonical palette: see /DESIGN_SYSTEM.md before adding colors to another page. */
  --color-brand: #3F7478;
  --color-brand-deep: #344B50;
  --color-sage: #B8D0CB;
  --color-forest: #718F81;
  --color-canvas: #F7F8F6;
  --color-surface-soft: #EEF2EF;
  --color-surface: #FFFFFF;
  --color-text: #2F4145;
  --color-body: #526166;
  --color-muted: #718080;
  --color-border: #DEE6E3;
  --interaction-duration: 180ms;
  --interaction-easing: cubic-bezier(.2, .65, .3, 1);
  --brand-blue: var(--color-brand);
  --ebru-blue: var(--color-brand);
  --secondary-color: var(--color-brand-deep);
  --ebru-navy: var(--color-brand-deep);
  --accent-blue: var(--color-sage);
  --tertiary-color: var(--color-forest);
  --background-light: var(--color-canvas);
  --background-primary: var(--color-canvas);
  --background-alt: var(--color-surface-soft);
  --background-secondary: var(--color-surface-soft);
  --text-dark: var(--color-text);
  --text-primary: var(--color-text);
  --text-body: var(--color-body);
  --text-secondary: var(--color-body);
  --text-muted: var(--color-muted);
  --border-color: var(--color-border);
  --shadow-sm: 0 2px 8px rgba(52, 75, 80, .06);
  --shadow-md: 0 8px 24px rgba(52, 75, 80, .08);
  --shadow-lg: 0 16px 38px rgba(52, 75, 80, .11);
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --brand-blue-dark: var(--secondary-color);
  --brand-blue-light: var(--accent-blue);
  --brand-accent: var(--tertiary-color);
  --brand-accent-light: var(--accent-blue);
  --primary: var(--brand-blue);
  --primary-color: var(--brand-blue);
  --primary-dark: var(--secondary-color);
  --primary-light: var(--accent-blue);
  --accent: var(--tertiary-color);
  --bg-primary: var(--background-light);
  --bg-secondary: var(--background-alt);
  --bg-gradient: linear-gradient(135deg, var(--background-light), var(--background-alt));
  --background-gradient: linear-gradient(135deg, var(--background-light), var(--background-alt));
  --gradient-primary: linear-gradient(135deg, var(--background-light), var(--background-alt));
  --gradient-accent: linear-gradient(135deg, var(--brand-blue), var(--secondary-color));
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, .98), var(--background-light));
}

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
body { overflow-x: hidden; overflow-y: auto; color: var(--text-body); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; }
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.018em; }
a { color: var(--brand-blue); }
a:hover { color: var(--secondary-color); }
:focus-visible { outline: 3px solid var(--brand-blue) !important; outline-offset: 3px; }

.topbar { background: var(--secondary-color); }
.navbar-mainbg { border-bottom: 1px solid rgba(52, 75, 80, .08); box-shadow: 0 4px 18px rgba(52, 75, 80, .07); }
.navbar-brand .logo { display: block; width: min(300px, 45vw); height: 68px; object-fit: contain; }
.tedavi-alanlari-section { background: linear-gradient(180deg, var(--background-alt), var(--background-light)); }
.tedavi-alanlari-section .alanlar-div { border-radius: var(--radius-md); min-height: 60px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.tedavi-alanlari-section .alanlar-div:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary, .btn.btn-primary { background: var(--brand-blue); border-color: var(--brand-blue); }
.btn-primary:hover, .btn.btn-primary:hover { background: var(--secondary-color); border-color: var(--secondary-color); }
.btn, .btn-primary, .btn-outline-primary { border-radius: var(--radius-md); font-weight: 650; }
.section-title::after { background: var(--accent-blue); }
.giriscontainer, .basin-text, .info-box, .medical-gallery, .blog-preview article, .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.blog-preview article { transition: box-shadow .2s ease, border-color .2s ease; }
.blog-preview article:hover { transform: translateY(-2px); border-color: var(--accent-blue); box-shadow: var(--shadow-md); }
.cta-section .cta-button:not(.btn-light):not(.btn-outline-light) { background-color: var(--brand-blue); }
.cta-section .cta-button:not(.btn-light):not(.btn-outline-light):hover { background-color: var(--secondary-color); }
.cta-button, .channel-button { animation: none !important; will-change: auto; }
.btn:hover, .info-box:hover { transform: translateY(-2px); }
.muayenehane-section { background-attachment: scroll; }
.page-section::before { background: linear-gradient(to bottom, rgba(247, 248, 246, .9), transparent); }
.page-section.bg-alt::before, .page-section.bg-alt::after { background: linear-gradient(to bottom, rgba(238, 242, 239, .88), transparent); }
.page-section.bg-alt::after { background: linear-gradient(to top, rgba(238, 242, 239, .88), transparent); }
.page-footer { background: var(--secondary-color); }
.legal-brandbar { background: #fff; border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.legal-brandbar-inner { max-width: 1140px; min-height: 76px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.legal-brandbar img { display: block; width: min(300px, 58vw); height: 58px; object-fit: contain; object-position: left center; }
.legal-brandbar a:last-child { font-weight: 650; }

/* The native type=date input is intentionally replaced with a button and grid. */
.date-picker { position: relative; }
.date-picker-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: .7rem .9rem; background: #fff; color: var(--text-dark); text-align: left; font: inherit; cursor: pointer; }
.date-picker-trigger:hover { border-color: var(--brand-blue); }
.date-picker-trigger[aria-expanded="true"] { border-color: var(--brand-blue); box-shadow: 0 0 0 .2rem rgba(63, 116, 120, .13); }
.date-picker-popover { position: absolute; z-index: 30; top: calc(100% + .45rem); left: 0; width: min(100%, 360px); min-width: 300px; padding: 1rem; border: 1px solid var(--border-color); border-radius: 1rem; background: #fff; box-shadow: 0 18px 48px rgba(48, 71, 78, .14); }
.date-picker-popover[hidden] { display: none; }
.date-picker-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.date-picker-month { color: var(--text-dark); font-weight: 700; text-transform: capitalize; }
.date-picker-nav { display: flex; gap: .35rem; }
.date-picker-nav button { width: 36px; height: 36px; border: 1px solid var(--border-color); border-radius: .65rem; background: #fff; color: var(--secondary-color); cursor: pointer; }
.date-picker-week, .date-picker-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; text-align: center; }
.date-picker-week { margin-bottom: .25rem; color: var(--text-muted); font-size: .76rem; font-weight: 700; }
.date-picker-day { min-height: 38px; border: 0; border-radius: .65rem; background: transparent; color: var(--text-dark); font: inherit; cursor: pointer; }
.date-picker-day:hover:not(:disabled), .date-picker-day[aria-pressed="true"] { background: var(--brand-blue); color: #fff; }
.date-picker-day:disabled { color: var(--text-muted); opacity: .5; cursor: not-allowed; }
.date-picker-day.is-closed { background: var(--background-alt); color: var(--text-muted); text-decoration: line-through; }
.date-picker-day.is-today { box-shadow: inset 0 0 0 1px var(--brand-blue); }
.date-picker-day.is-other-month { visibility: hidden; }
.date-picker-help { margin: .7rem 0 0; color: var(--text-muted); font-size: .8rem; }
.slot-note { margin-top: .4rem; color: var(--text-muted); font-size: .86rem; }

@media (max-width: 700px) {
  .navbar-brand .logo { width: min(250px, 46vw); height: 56px; }
  .giriscontainer, .basin-text, .info-box, .medical-gallery, .blog-preview article, .accordion-item { border-radius: .85rem; }
  .date-picker-popover { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Homepage layout refinements */
body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section {
  padding: 12px 0;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
  width: min(100% - 32px, 1380px);
  height: auto;
  line-height: 1.3;
  margin: 0;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar > div {
  position: static;
  top: auto;
  width: auto;
  height: auto;
  margin: 0 !important;
  padding: 0 12px;
  opacity: 1;
  animation: none;
  transform: none;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: auto;
  padding: 8px 12px;
  line-height: 1.2;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link {
  grid-column: auto;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget {
  position: static;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: max-content;
  height: auto;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget #google_translate_element,
body:is(.homepage, .about-page, .site-page) .google-translate-widget .skiptranslate.goog-te-gadget,
body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  min-height: 36px;
  padding: 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, .65) !important;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .12);
  font-size: .82rem;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple::before {
  content: "\f0ac";
  margin-right: 8px;
  color: #fff;
  font-family: "Font Awesome 6 Free";
  font-size: 15px;
  font-weight: 900;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, .2);
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple span {
  color: #fff !important;
  font-family: inherit !important;
  font-size: .85rem !important;
  font-weight: 600;
  text-decoration: none !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-icon {
  display: none !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple img:not(.goog-te-gadget-icon) {
  display: none !important;
}

body.homepage .home-intro-heading {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

body.homepage .home-intro-heading h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 750;
  line-height: 1.15;
}

body.homepage .home-intro-heading p {
  margin: .4rem 0 0;
  color: var(--brand-blue);
  font-size: 1rem;
  font-weight: 650;
}

body.homepage .page-section.girisdiv {
  min-height: 0;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  background: var(--background-light);
}

body.homepage .girisdiv .row.align-items-center {
  align-items: flex-start !important;
  flex-direction: row;
}

body.homepage .images-place {
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
}

body.homepage .images-place img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 680px);
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

body.homepage .giriscontainer {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--color-surface);
}

body.homepage #girishtext p {
  text-align: left;
  line-height: 1.7;
}

body.homepage #girishtext {
  overflow: visible;
  flex: 1 1 auto;
}

body.homepage .giriscontainer {
  height: auto;
}

body.homepage .h1ebru {
  margin-bottom: 0;
}

body:is(.homepage, .about-page, .site-page) .topbar .site-info i,
body.homepage .contact i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body:is(.homepage, .about-page, .site-page) .topbar .site-info i {
  width: 18px;
  font-size: 14px;
}

body.homepage .contact i {
  font-size: 18px;
}

body.homepage .muayenehane-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--background-alt);
  background-image: none;
}

body.homepage .medical-gallery.swiper {
  width: 100%;
  max-width: 900px;
  height: auto !important;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.homepage .medical-gallery .swiper-wrapper {
  align-items: stretch;
}

body.homepage .medical-gallery .swiper-slide {
  height: auto;
  align-items: stretch;
}

body.homepage .medical-gallery .image-container.contain-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

body.homepage .medical-gallery .image-container.contain-image .gallery-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  border-radius: calc(var(--radius-md) - .2rem);
}

body.homepage .video-section,
body.homepage .page-section.anlasmali {
  background: var(--background-alt);
}

body.homepage .cta-section {
  background: var(--color-brand-deep) !important;
  background-image: none !important;
}

body.homepage .cta-section::before,
body.homepage .cta-section::after {
  background: none;
}

body.homepage .channel-button {
  background: var(--brand-blue);
  color: var(--color-surface) !important;
}

body.homepage .channel-button:hover {
  background: var(--secondary-color);
}

@media (max-width: 991px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    justify-content: center;
    gap: 8px 14px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info a[href^="mailto:"] {
    font-size: .8rem;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .divider {
    display: none;
  }
}

@media (max-width: 768px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    gap: 8px 12px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info a[href^="mailto:"] {
    flex: 1 1 205px;
    min-width: 0;
    white-space: nowrap;
    font-size: .7rem;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    flex: 0 0 auto;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
    min-height: 34px;
    padding: 5px 9px !important;
    font-size: .78rem;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple span {
    font-size: .78rem !important;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section {
    padding: 8px 0;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 24px);
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar > div {
    padding: 0;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
    min-height: 42px;
    padding: 7px 8px;
    font-size: .9rem;
  }

  body.homepage .page-section.girisdiv {
    padding: 1.5rem 0;
  }

  body.homepage .girisdiv .row.align-items-center {
    flex-direction: column !important;
  }

  body.homepage .girisdiv .row.align-items-center > .col-12 {
    width: 100%;
    max-width: 100%;
  }

  body.homepage .giriscontainer {
    margin-top: 1.25rem;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget #google_translate_element,
  body:is(.homepage, .about-page, .site-page) .google-translate-widget .skiptranslate.goog-te-gadget {
    display: inline-block !important;
    width: max-content !important;
  }

  body.homepage .home-intro-heading {
    margin-bottom: .85rem;
  }

  body.homepage .home-intro-heading h1 {
    font-size: 1.75rem;
  }

  body.homepage .home-intro-heading p {
    font-size: .95rem;
  }

  body.homepage #girishtext {
    max-height: none;
    overflow: visible;
  }

  body.homepage .giriscontainer p {
    font-size: var(--text-sm);
    line-height: 1.55;
  }

  body.homepage .medical-gallery .image-container.contain-image {
    padding: 10px;
  }
}

@media (max-width: 380px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info a[href^="mailto:"],
  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    flex-basis: 100%;
    justify-content: center;
  }
}

/* Homepage polish: compact topbar, simpler cards, and consistent interactions. */
body:is(.homepage, .about-page, .site-page) .topbar .site-info {
  width: 100%;
  justify-content: flex-start;
  gap: 8px clamp(12px, 1.5vw, 24px);
}

body:is(.homepage, .about-page, .site-page) .topbar .site-info .divider {
  display: none;
}

body:is(.homepage, .about-page, .site-page) .topbar .site-info a[href^="mailto:"] {
  margin-right: auto;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
  white-space: nowrap;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar > div {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--brand-blue);
  font-weight: 650;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div:hover,
body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div:focus-visible {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: var(--color-surface);
  text-decoration: none;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link {
  background: var(--brand-blue);
  color: var(--color-surface);
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link:hover,
body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link:focus-visible {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

body.homepage .home-intro-heading {
  display: none;
}

body.homepage .page-section::before,
body.homepage .page-section::after {
  z-index: 0;
}

body.homepage .fade-in-section {
  position: relative;
  z-index: 1;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .65, .3, 1);
}

body.homepage .fade-in-section:not(.is-visible) {
  transform: translateY(14px);
}

body:is(.homepage, .about-page, .site-page) .animate__animated {
  animation: none !important;
}

body.homepage .medical-gallery.swiper {
  max-width: 980px;
  overflow: hidden;
}

body.homepage .medical-gallery .swiper-slide {
  display: flex;
  justify-content: center;
}

body.homepage .medical-gallery .image-container.contain-image {
  width: calc(100% - 96px);
  max-width: 860px;
  padding: clamp(10px, 1.6vw, 18px);
}

body.homepage .medical-gallery .image-container .gallery-photo {
  object-fit: cover;
}

body.homepage .medical-gallery .image-container .gallery-image:not(.gallery-photo) {
  object-fit: contain;
}

body.homepage .medical-gallery .image-overlay {
  inset: 0;
  height: auto;
  align-items: flex-end;
  padding: clamp(16px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(28, 43, 46, .06) 18%, rgba(28, 43, 46, .78) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

body.homepage .medical-gallery .image-container:focus-within .image-overlay,
body.homepage .medical-gallery .image-container.is-details-open .image-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.homepage .medical-gallery .overlay-content {
  width: 100%;
  transform: translateY(10px);
  transition: transform .24s ease;
}

body.homepage .medical-gallery .image-container:focus-within .overlay-content,
body.homepage .medical-gallery .image-container.is-details-open .overlay-content {
  transform: translateY(0);
}

body.homepage .medical-gallery .overlay-content h3 {
  max-width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

body.homepage .medical-gallery .overlay-content h3::after {
  display: none;
}

body.homepage .medical-gallery .overlay-content p {
  max-width: 100%;
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
  line-height: 1.45;
}

body.homepage .medical-gallery .overlay-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--secondary-color);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

body.homepage .medical-gallery .overlay-link:hover,
body.homepage .medical-gallery .overlay-link:focus-visible {
  background: var(--color-sage);
  color: var(--secondary-color);
}

body.homepage .medical-gallery .swiper-button-prev { left: 8px; }
body.homepage .medical-gallery .swiper-button-next { right: 8px; }
body.homepage .medical-gallery .swiper-button-next,
body.homepage .medical-gallery .swiper-button-prev {
  z-index: 10;
  color: #fff;
}

@media (hover: hover) {
  body.homepage .medical-gallery .image-container:hover .image-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.homepage .medical-gallery .image-container:hover .overlay-content {
    transform: translateY(0);
  }
}

@media (hover: none) {
  body.homepage .medical-gallery .image-container:hover .image-overlay {
    opacity: 0;
    pointer-events: none;
  }

  body.homepage .medical-gallery .image-container:hover .overlay-content {
    transform: translateY(10px);
  }

  body.homepage .medical-gallery .image-container.is-details-open .image-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.homepage .medical-gallery .image-container.is-details-open .overlay-content {
    transform: translateY(0);
  }
}

body.homepage .blog-preview {
  isolation: isolate;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: var(--color-canvas) !important;
}

body.homepage .blog-preview > .fade-in-section {
  z-index: 1;
}

body.homepage .blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: 1.5rem;
}

body.homepage .blog-preview-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.homepage .blog-preview-card:hover,
body.homepage .blog-preview-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-sage);
  box-shadow: var(--shadow-md);
  color: var(--secondary-color);
}

body.homepage .blog-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--background-alt);
}

body.homepage .blog-preview-card > span {
  padding: 1rem 1.1rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

body.homepage .channel-button {
  font-family: inherit;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}

body.homepage .cta-section .cta-button.btn-success,
body.homepage .cta-section .cta-button.btn-success:visited {
  border: 1px solid #168c68;
  background: #168c68;
  color: #fff;
}

body.homepage .cta-section .cta-button.btn-success:hover,
body.homepage .cta-section .cta-button.btn-success:focus-visible {
  border-color: #116b50;
  background: #116b50;
  color: #fff;
}

body:is(.homepage, .about-page, .site-page) .floating-appointment {
  position: fixed !important;
  z-index: 1200;
  top: auto;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-full);
  background: var(--secondary-color);
  box-shadow: 0 8px 24px rgba(34, 52, 56, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}

body:is(.homepage, .about-page, .site-page) .floating-appointment.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body:is(.homepage, .about-page, .site-page) .floating-appointment[hidden] {
  display: none;
}

body:is(.homepage, .about-page, .site-page) .floating-appointment > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

body:is(.homepage, .about-page, .site-page) .floating-appointment > a:hover,
body:is(.homepage, .about-page, .site-page) .floating-appointment > a:focus-visible {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

body:is(.homepage, .about-page, .site-page) .floating-appointment-dismiss {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

body:is(.homepage, .about-page, .site-page) .floating-appointment-dismiss:hover,
body:is(.homepage, .about-page, .site-page) .floating-appointment-dismiss:focus-visible {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

/* Keep the homepage treatment shortcuts on one balanced desktop row. */
body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
  min-height: 54px;
  padding: 9px 8px;
  font-size: clamp(.82rem, .95vw, 1rem);
  text-align: center;
}

/* Use two intentional next steps under the introduction instead of a wrapped third button. */
body.homepage .giriscontainer .button-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

body.homepage .giriscontainer .button-container .buttonebru {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: .65rem .8rem;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-md);
  background: var(--color-brand);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

body.homepage .giriscontainer .button-container .buttonebru::before {
  display: none;
}

body.homepage .giriscontainer .button-container .buttonebru:hover,
body.homepage .giriscontainer .button-container .buttonebru:focus-visible {
  border-color: var(--color-brand-deep);
  background: var(--color-brand-deep);
  color: #fff;
  transform: translateY(-2px);
}

body.homepage .giriscontainer .button-container .button-secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-brand-deep);
}

body.homepage .giriscontainer .button-container .button-secondary:hover,
body.homepage .giriscontainer .button-container .button-secondary:focus-visible {
  border-color: var(--color-brand);
  background: var(--color-surface-soft);
  color: var(--color-brand-deep);
}

body.homepage .fade-in-section {
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .65, .3, 1);
}

body.homepage .fade-in-section:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}

body.homepage .fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.homepage .medical-gallery .image-container {
  touch-action: pan-y;
}

body.homepage .medical-gallery .image-container:focus-visible {
  outline: 3px solid var(--color-brand) !important;
  outline-offset: 3px;
}

body.homepage .medical-gallery .swiper-button-prev { left: 10px; }
body.homepage .medical-gallery .swiper-button-next { right: 10px; }

body.homepage .blog-preview {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

body.homepage .blog-preview > .fade-in-section {
  position: relative;
}

@media (max-width: 1199px) and (min-width: 768px) {
  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 7px 10px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info > a[href^="tel:"] {
    justify-content: center;
    font-size: .77rem;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info > a[href^="mailto:"] {
    grid-column: 1 / -1;
    justify-content: center;
    margin-right: 0;
    font-size: .73rem;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    grid-column: 1 / -1;
    justify-content: center;
    justify-self: center;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link {
    grid-column: 1 / -1;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
    font-size: .9rem;
  }

  body.homepage .medical-gallery .image-container.contain-image {
    width: calc(100% - 88px);
    padding: 10px;
  }

  body.homepage .medical-gallery .swiper-button-next,
  body.homepage .medical-gallery .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  body.homepage .blog-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.homepage .blog-preview-card > span {
    padding: .8rem;
    font-size: .95rem;
  }

}

@media (max-width: 480px) {
  body.homepage .giriscontainer .button-container {
    grid-template-columns: 1fr;
  }

  body.homepage .blog-preview-grid {
    grid-template-columns: 1fr;
  }

  body.homepage .blog-preview-card {
    display: grid;
    grid-template-columns: minmax(105px, 35%) 1fr;
    align-items: center;
  }

  body.homepage .blog-preview-card img {
    height: 100%;
    min-height: 92px;
    aspect-ratio: auto;
  }

  body:is(.homepage, .about-page, .site-page) .floating-appointment {
    right: 12px;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.homepage .fade-in-section:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  body.homepage .slideBar-track {
    animation: none !important;
  }
}

/* Shared hover and focus behavior across the public site. */
:root {
  --interaction-speed: 180ms;
  --interaction-lift: translateY(-2px);
}

a[href],
button,
[role="button"],
input[type="submit"] {
  transition: color var(--interaction-speed) ease,
    background-color var(--interaction-speed) ease,
    border-color var(--interaction-speed) ease,
    box-shadow var(--interaction-speed) ease,
    transform var(--interaction-speed) ease;
}

:is(.btn, .buttonebru, .basinButton, .cta-button, .channel-button, .alanlar-div,
    .blog-preview-card, .blog-preview-read-link, .overlay-link, .socialButton,
    .swiper-button-next, .swiper-button-prev, .date-picker-trigger,
    .date-picker-nav button, .date-picker-day):focus-visible {
  outline: 3px solid var(--color-sage) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-brand-deep);
}

@media (hover: hover) {
  :is(.btn, .buttonebru, .basinButton, .cta-button, .channel-button, .alanlar-div,
      .blog-preview-card, .blog-preview-read-link, .overlay-link, .socialButton,
      .date-picker-trigger, .date-picker-nav button):hover {
    transform: var(--interaction-lift);
  }
}

:is(.btn, .buttonebru, .basinButton, .cta-button, .channel-button,
    .alanlar-div, .blog-preview-card, .blog-preview-read-link, .overlay-link,
    .socialButton, .swiper-button-next, .swiper-button-prev):active {
  transform: translateY(0);
}

/* Keep the language icon visible while Google's menu script starts up. */
body:is(.homepage, .about-page, .site-page) .google-translate-widget {
  position: relative;
  width: 52px;
  height: 40px;
  min-width: 52px;
  flex: 0 0 52px;
  cursor: pointer;
}

body:is(.homepage, .about-page, .site-page) .language-trigger {
  display: inline-flex;
  width: 52px;
  height: 40px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

body:is(.homepage, .about-page, .site-page) .language-trigger:hover,
body:is(.homepage, .about-page, .site-page) .language-trigger:focus-visible,
body:is(.homepage, .about-page, .site-page) .google-translate-widget:focus-within .language-trigger {
  border-color: #fff;
  background: rgba(255, 255, 255, .22);
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget #google_translate_element {
  position: absolute !important;
  z-index: 2;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget:has(.goog-te-gadget-simple) #google_translate_element {
  pointer-events: auto;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .skiptranslate.goog-te-gadget,
body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
  width: 100% !important;
  height: 100% !important;
  min-height: 40px !important;
  max-height: 40px !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
  gap: 0;
  min-width: 44px;
  min-height: 40px;
  justify-content: center;
  padding: 7px 11px !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
  color: #fff !important;
  font-size: 0 !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple::before {
  margin: 0;
  font-size: 16px;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: #fff;
  transform: translateY(-2px) rotate(45deg);
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple span {
  width: 0;
  height: 0;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple:hover,
body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple:focus-visible {
  border-color: #fff !important;
  background: rgba(255, 255, 255, .22);
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}

/* Six concise treatment links make a balanced shortcut grid without a stray item. */
body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
  min-height: 46px;
  padding: 8px 10px;
  font-size: .92rem;
}

@media (max-width: 1199px) and (min-width: 768px) {
  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The gallery arrows sit outside the clipped image window and retain contrast. */
body.homepage .medical-gallery-shell {
  position: relative;
  /* Keep the clinic photos comfortably sized on desktop, while retaining
     room for the carousel arrows and natural mobile responsiveness. */
  width: min(100%, 760px);
  margin-inline: auto;
  padding-inline: 46px;
}

body.homepage .medical-gallery.swiper {
  max-width: none;
  overflow: hidden;
}

body.homepage .medical-gallery .image-container.contain-image {
  width: 100%;
}

body.homepage .medical-gallery-shell .swiper-button-prev,
body.homepage .medical-gallery-shell .swiper-button-next {
  top: 50%;
  z-index: 10;
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0 !important;
  place-items: center;
  border: 1px solid rgba(52, 75, 80, .16);
  border-radius: 50%;
  background: #fff;
  color: var(--color-brand-deep) !important;
  opacity: 1;
  transform: translateY(-50%) !important;
  box-shadow: 0 6px 18px rgba(28, 54, 59, .16);
  cursor: pointer;
  transition: color var(--interaction-duration) var(--interaction-easing),
    background-color var(--interaction-duration) var(--interaction-easing),
    border-color var(--interaction-duration) var(--interaction-easing),
    box-shadow var(--interaction-duration) var(--interaction-easing),
    opacity var(--interaction-duration) var(--interaction-easing) !important;
}

body.homepage .medical-gallery-shell .swiper-button-prev { left: 0; }
body.homepage .medical-gallery-shell .swiper-button-next { right: 0; }

body.homepage .medical-gallery-shell .swiper-button-prev::after,
body.homepage .medical-gallery-shell .swiper-button-next::after {
  display: none !important;
  content: none !important;
}

body.homepage .medical-gallery-shell .swiper-button-prev svg,
body.homepage .medical-gallery-shell .swiper-button-next svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
  pointer-events: none;
}

body.homepage .medical-gallery-shell .swiper-button-prev:hover,
body.homepage .medical-gallery-shell .swiper-button-next:hover,
body.homepage .medical-gallery-shell .swiper-button-prev:focus-visible,
body.homepage .medical-gallery-shell .swiper-button-next:focus-visible {
  border-width: 1px !important;
  border-color: var(--color-sage);
  background: var(--color-surface-soft);
  color: var(--color-brand-deep) !important;
  transform: translateY(-50%) !important;
  box-shadow: 0 8px 22px rgba(28, 54, 59, .2);
}

body.homepage .medical-gallery-shell .swiper-button-prev:focus-visible,
body.homepage .medical-gallery-shell .swiper-button-next:focus-visible {
  outline: 3px solid rgba(63, 116, 120, .24);
  outline-offset: 3px;
}

body.homepage .medical-gallery-shell .swiper-button-prev:hover::after,
body.homepage .medical-gallery-shell .swiper-button-next:hover::after,
body.homepage .medical-gallery-shell .swiper-button-prev:focus-visible::after,
body.homepage .medical-gallery-shell .swiper-button-next:focus-visible::after {
  color: var(--color-brand-deep) !important;
}

body.homepage .medical-gallery-shell .swiper-button-prev:active,
body.homepage .medical-gallery-shell .swiper-button-next:active {
  border-width: 1px !important;
  transform: translateY(-50%) !important;
}

body.homepage .medical-gallery .gallery-image { cursor: zoom-in; }

.gallery-lightbox:not([open]) { display: none !important; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  color: #fff;
  background: rgba(15, 25, 28, .96);
}

.gallery-lightbox::backdrop { background: rgba(15, 25, 28, .24); }

.gallery-lightbox figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
}

.gallery-lightbox figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .4);
}

.gallery-lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: #fff;
  color: var(--color-brand-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .24);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transform: none !important;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

.gallery-lightbox .gallery-lightbox-close {
  border-radius: 50% !important;
}

.gallery-lightbox-close svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  border-color: #fff;
  background: var(--color-surface-soft);
  color: var(--color-brand-deep);
  transform: none !important;
}

.gallery-lightbox-close:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(184, 208, 203, .96), 0 6px 20px rgba(0, 0, 0, .24) !important;
}

@media (max-width: 600px) {
  .gallery-lightbox { padding: 12px; }
  .gallery-lightbox-close {
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }
  body.homepage .medical-gallery-shell .swiper-button-prev svg,
  body.homepage .medical-gallery-shell .swiper-button-next svg { width: 24px; height: 24px; }
}

/* Blog cards use the actual CMS excerpt and a small editorial thumbnail. */
body.homepage .blog-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

body.homepage .blog-preview-card {
  display: grid;
  grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 156px;
  color: var(--color-text);
}

body.homepage .blog-preview-card img {
  width: 100%;
  height: 100%;
  min-height: 156px;
  aspect-ratio: auto;
  object-fit: cover;
}

body.homepage .blog-preview-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 15px;
}

body.homepage .blog-preview-content h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.3;
}

body.homepage .blog-preview-title {
  color: var(--color-text);
  text-decoration: none;
}

body.homepage .blog-preview-card:hover .blog-preview-title,
body.homepage .blog-preview-title:focus-visible {
  color: var(--color-brand-deep);
  text-decoration: underline;
  text-decoration-color: var(--color-sage);
  text-underline-offset: 3px;
}

body.homepage .blog-preview-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 10px;
  color: var(--color-body);
  font-size: .82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.homepage .blog-preview-read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--color-brand);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}

body.homepage .blog-preview-read-link:hover,
body.homepage .blog-preview-read-link:focus-visible {
  color: var(--color-brand-deep);
  text-decoration: none !important;
  text-underline-offset: 3px;
}

/* Basında Biz */
body.homepage #basindabiz {
  position: relative;
  min-height: 400px;
  padding: 0;
  overflow: hidden;
}

body.homepage #basindabiz .bg-1 {
  position: absolute;
  inset: -64px 0;
  z-index: 1;
  background-image: url("../images/basindabiz/1-1200.webp");
  background-position: center 18%;
  background-size: cover;
  background-attachment: scroll;
  transform: translate3d(0, var(--press-parallax-offset, 0px), 0) scale(1.08);
  will-change: transform;
  transition: none !important;
}

body.homepage #basindabiz .basin-content {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(100%, 1200px);
  min-height: 400px;
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto;
  padding: 32px;
}

body.homepage #basindabiz .basin-text {
  display: block;
  max-width: 50%;
  margin: 0 32px 0 0;
  padding: 32px;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

body.homepage #basindabiz .basin-text h2 {
  display: block;
  margin: 0 0 16px;
  color: var(--color-brand);
  font-size: 2rem;
  font-weight: 700;
}

body.homepage #basindabiz .basin-text p {
  margin: 0 0 24px;
  color: var(--color-body);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

body.homepage #basindabiz .basinButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-brand);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: none;
}

@media (max-width: 1200px) {
  body.homepage #basindabiz .basin-text {
    max-width: 60%;
    margin-right: 0;
  }
}

@media (max-width: 992px) {
  body.homepage #basindabiz,
  body.homepage #basindabiz .basin-content { min-height: 350px; }

  body.homepage #basindabiz .basin-text {
    max-width: 65%;
    padding: 24px;
  }

  body.homepage #basindabiz .basin-text h2 { font-size: 1.5rem; }
  body.homepage #basindabiz .basin-text p { font-size: 1rem; }
}

@media (max-width: 768px) {
  body.homepage #basindabiz,
  body.homepage #basindabiz .basin-content { min-height: 300px; }

  body.homepage #basindabiz .basin-content {
    justify-content: center;
    padding: 24px;
  }

  body.homepage #basindabiz .bg-1 { background-position: 30% center; }
  body.homepage #basindabiz .bg-1::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(255, 255, 255, .9) 50%);
  }

  body.homepage #basindabiz .basin-text {
    max-width: 80%;
    padding: 16px;
  }

  body.homepage #basindabiz .basin-text h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  body.homepage #basindabiz,
  body.homepage #basindabiz .basin-content { min-height: 250px; }

  body.homepage #basindabiz .bg-1 { background-position: 25% center; }

  body.homepage #basindabiz .basin-text {
    max-width: 90%;
    padding: 16px;
  }

  body.homepage #basindabiz .basin-text h2 { font-size: 1.125rem; }
  body.homepage #basindabiz .basin-text p { margin-bottom: 16px; font-size: .9rem; }
  body.homepage #basindabiz .basinButton { padding: 8px 14px; font-size: .875rem; }
}

@media (max-width: 360px) {
  body.homepage #basindabiz .basin-text { max-width: 95%; }
  body.homepage #basindabiz .basin-text h2 { font-size: 1rem; }
}

/* Keep contact links visually aligned with the shared information-card style. */
body.homepage #contact .contact-method-link {
  max-width: 100%;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
  text-underline-offset: 3px;
}

body.homepage #contact .contact-method-link:hover,
body.homepage #contact .contact-method-link:focus-visible {
  color: var(--color-brand);
  text-decoration: underline;
}

body.homepage #contact .contact-appointment-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.35rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Keep branded button colors present in every interaction state. */
body.homepage .giriscontainer .button-container .buttonebru:not(.button-secondary):hover,
body.homepage .giriscontainer .button-container .buttonebru:not(.button-secondary):focus-visible,
body.homepage .cta-section .cta-button.btn-success:hover,
body.homepage .cta-section .cta-button.btn-success:focus-visible {
  border-color: var(--color-brand-deep) !important;
  background: var(--color-brand-deep) !important;
  color: #fff !important;
}

body.homepage .cta-section .cta-button.btn-success,
body.homepage .cta-section .cta-button.btn-success:visited {
  border-color: #168c68 !important;
  background: #168c68 !important;
  color: #fff !important;
}

body.homepage .cta-section .cta-button.btn-success:hover,
body.homepage .cta-section .cta-button.btn-success:focus-visible {
  border-color: #116b50 !important;
  background: #116b50 !important;
}

@media (max-width: 767px) {
  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 24px);
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link { grid-column: auto; }

  body.homepage .medical-gallery-shell { padding-inline: 42px; }

  body.homepage .medical-gallery-shell .swiper-button-prev,
  body.homepage .medical-gallery-shell .swiper-button-next {
    width: 38px;
    height: 38px;
  }

  body.homepage .medical-gallery-shell .swiper-button-prev::after,
  body.homepage .medical-gallery-shell .swiper-button-next::after {
    font-size: 13px !important;
  }

  body.homepage .blog-preview-grid { grid-template-columns: 1fr; }

  body.homepage .blog-preview-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 132px;
  }

  body.homepage .blog-preview-card img { min-height: 132px; }

  body.homepage .blog-preview-content { padding: 12px 13px; }

  body.homepage .blog-preview-excerpt {
    font-size: .8rem;
    -webkit-line-clamp: 2;
  }

}

@media (prefers-reduced-motion: reduce) {
  a[href], button, [role="button"], input[type="submit"] {
    transition: none !important;
  }
}

/* Shared interaction states: restrained motion, contextual color, visible content. */
:where(
  a[href], button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"],
  .btn, .buttonebru, .basinButton, .cta-button, .channel-button, .socialButton, .btn-social,
  .nav-link, .page-btn, .nav-btn, .close-btn, .swiper-button-next, .swiper-button-prev,
  .language-trigger, .goog-te-gadget-simple,
  .date-picker-trigger, .date-picker-nav button, .date-picker-day,
  .card, .treatment-card, .gallery-item, .address-card, .map-container, .legal-notice,
  .info-box, .blog-preview-card, .accordion-button, .list-group-item
) {
  transition: color var(--interaction-duration) var(--interaction-easing),
    background-color var(--interaction-duration) var(--interaction-easing),
    border-color var(--interaction-duration) var(--interaction-easing),
    box-shadow var(--interaction-duration) var(--interaction-easing),
    text-decoration-color var(--interaction-duration) var(--interaction-easing),
    transform var(--interaction-duration) var(--interaction-easing) !important;
}

body a[href]:not(.btn, .buttonebru, .basinButton, .cta-button, .channel-button, .socialButton, .btn-social, .nav-link, .page-btn, .nav-btn, .close-btn, .swiper-button-next, .swiper-button-prev, .overlay-link, .blog-preview-title, .blog-preview-read-link, .contact-method-link, .alanlar-div, .lite-youtube-fallback):is(:hover, :focus-visible) {
  color: var(--color-brand-deep);
  text-decoration: underline;
  text-decoration-color: var(--color-sage);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

body :is(.topbar, .page-footer, .footer-content, .cta-section, .navbar-dark, .bg-dark) a[href]:not(.btn, .buttonebru, .basinButton, .cta-button, .channel-button, .socialButton, .btn-social, .nav-link, .page-btn, .nav-btn, .close-btn, .swiper-button-next, .swiper-button-prev):is(:hover, :focus-visible) {
  color: #fff !important;
  text-decoration-color: var(--color-sage);
}

body :is(button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"], .btn, .buttonebru, .basinButton, .cta-button, .channel-button, .socialButton, .btn-social, .page-btn, .nav-btn, .close-btn, .swiper-button-next, .swiper-button-prev, .date-picker-trigger):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body :is(.btn-primary, .buttonebru:not(.button-secondary), .basinButton, .button-primary, .cta-button:not(.btn-light):not(.btn-outline-light):not(.btn-success), .channel-button):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--color-brand-deep) !important;
  background-color: var(--color-brand-deep) !important;
  color: #fff !important;
}

body :is(.btn-light, .button-secondary):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--color-sage) !important;
  background-color: var(--color-surface-soft) !important;
  color: var(--color-brand-deep) !important;
}

body .btn-outline-primary:is(:hover, :focus-visible):not(:disabled),
body .btn-outline-secondary:is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--color-brand) !important;
  background-color: var(--color-surface-soft) !important;
  color: var(--color-brand-deep) !important;
}

body .btn-outline-light:is(:hover, :focus-visible):not(:disabled) {
  border-color: #fff !important;
  background-color: rgba(255, 255, 255, .16) !important;
  color: #fff !important;
}

body .btn-success:is(:hover, :focus-visible):not(:disabled) {
  border-color: #116b50 !important;
  background-color: #116b50 !important;
  color: #fff !important;
}

body :is(.btn-facebook, .btn-instagram, .btn-youtube):is(:hover, :focus-visible) {
  opacity: 1;
}

body .social-buttons :is(.btn, .btn-facebook, .btn-instagram, .btn-youtube):is(:hover, :focus-visible) {
  box-shadow: var(--shadow-md) !important;
  opacity: 1 !important;
  text-decoration: none;
  transform: translateY(-2px) !important;
}

body :is(.btn, button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"], .buttonebru, .basinButton, .cta-button, .channel-button, .socialButton, .btn-social, .nav-link, .page-btn, .nav-btn, .close-btn, .swiper-button-next, .swiper-button-prev, .language-trigger, .goog-te-gadget-simple, .date-picker-trigger, .date-picker-nav button, .date-picker-day):is(:hover, :focus-visible):not(:disabled) :is(span, i, svg) {
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body :is(.buttonebru, .basinButton)::before { content: none !important; display: none !important; }

body :is(.card, .treatment-card, .gallery-item, .address-card, .map-container, .legal-notice, .info-box, .blog-preview-card, .basin-text):hover {
  border-color: var(--color-sage);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body .list-group-item:hover {
  background-color: var(--color-surface-soft);
  color: var(--color-brand-deep);
}

body .accordion-button:hover {
  background: var(--color-surface-soft);
  color: var(--color-brand-deep);
}

body .accordion-button:not(.collapsed):hover {
  background: linear-gradient(135deg, var(--color-surface-soft), var(--color-surface));
  border-left-color: var(--color-brand);
  color: var(--color-brand-deep);
}

body :is(.date-picker-trigger, .date-picker-nav button):hover:not(:disabled),
body .page-btn:hover:not(.active),
body .navbar-toggler:hover:not(:disabled) {
  border-color: var(--color-brand);
  background-color: var(--color-surface-soft);
  color: var(--color-brand-deep);
}

body .nav-btn:is(:hover, :focus-visible) {
  background-color: rgba(52, 75, 80, .92);
  color: #fff;
  transform: translateY(-2px);
}

body .close-btn:is(:hover, :focus-visible) {
  color: var(--color-sage);
  transform: translateY(-2px);
}

body :is(.swiper-button-next, .swiper-button-prev):is(:hover, :focus-visible) {
  border-color: var(--color-brand) !important;
  background-color: var(--color-surface) !important;
  color: var(--color-brand-deep) !important;
  opacity: 1 !important;
}

body :is(.swiper-button-next, .swiper-button-prev):is(:hover, :focus-visible)::after {
  color: var(--color-brand-deep) !important;
  opacity: 1 !important;
}

body .topbar :is(.language-trigger, .goog-te-gadget-simple):is(:hover, :focus-visible) {
  border-color: rgba(255, 255, 255, .72) !important;
  background-color: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

body.homepage .blog-preview-card:is(:hover, :focus-visible) {
  transform: translateY(-2px);
}

body.homepage .medical-gallery .image-container:is(:hover, :focus-within) .gallery-image,
body .gallery-item:is(:hover, :focus-within) img {
  transform: none !important;
}

body .navbar-mainbg .navbar-nav .nav-link[aria-current="page"]:not(.nav-appointment),
body .navbar-mainbg .navbar-nav-ebru a[aria-current="page"]:not(.nav-appointment) {
  border: 1px solid rgba(63, 116, 120, .16);
  border-radius: var(--radius-full);
  background: var(--color-surface-soft);
  color: var(--color-brand-deep) !important;
  font-weight: 750;
}

body .navbar-mainbg .navbar-nav .nav-link[aria-current="page"]:not(.nav-appointment) i,
body .navbar-mainbg .navbar-nav-ebru a[aria-current="page"]:not(.nav-appointment) i {
  color: var(--color-brand) !important;
}

body .navbar-mainbg .navbar-nav .nav-link.nav-appointment,
body .navbar-mainbg .navbar-nav-ebru a.nav-appointment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: 4px;
  padding: 9px 13px;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-full);
  background: var(--color-brand);
  box-shadow: var(--shadow-sm);
  color: #fff !important;
  font-weight: 750;
  white-space: nowrap;
}

body .navbar-mainbg .navbar-nav .nav-link.nav-appointment i,
body .navbar-mainbg .navbar-nav-ebru a.nav-appointment i {
  color: #fff !important;
}

body .navbar-mainbg .navbar-nav .nav-link.nav-appointment::after { display: none; }

body .navbar-mainbg .navbar-nav .nav-link.nav-appointment:is(:hover, :focus-visible),
body .navbar-mainbg .navbar-nav-ebru a.nav-appointment:is(:hover, :focus-visible) {
  border-color: var(--color-brand-deep) !important;
  background: var(--color-brand-deep) !important;
  color: #fff !important;
  text-decoration: none;
}

body.homepage :is(.medical-gallery .image-overlay, .medical-gallery .overlay-content, .medical-gallery .overlay-link):is(:hover, :focus-visible),
body.homepage .medical-gallery .image-container:is(:hover, :focus-within, .is-details-open) .overlay-content {
  opacity: 1;
  visibility: visible;
}

body.homepage .medical-gallery .gallery-image,
body .treatment-card .treatment-image,
body .gallery-item img {
  transition: transform var(--interaction-duration) var(--interaction-easing) !important;
}

body .treatment-card:hover .treatment-image {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  :where(
    a[href], button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"],
    .btn, .buttonebru, .basinButton, .cta-button, .channel-button, .socialButton, .btn-social,
    .nav-link, .page-btn, .nav-btn, .close-btn, .swiper-button-next, .swiper-button-prev,
    .language-trigger, .goog-te-gadget-simple,
    .date-picker-trigger, .date-picker-nav button, .date-picker-day,
    .card, .treatment-card, .gallery-item, .address-card, .map-container, .legal-notice,
    .info-box, .blog-preview-card, .accordion-button, .list-group-item,
    .medical-gallery .gallery-image, .treatment-card .treatment-image, .gallery-item img
  ) {
    transition: none !important;
  }
}

/* Keep navigation and pill controls clean; reserve underlines for reading links. */
body .navbar-mainbg .navbar-nav-ebru a:is(:hover, :focus-visible),
body :is(.cta-buttons, .widget-cta, .tag-list, .share-row, .paginator) a:is(:hover, :focus-visible),
body a.lite-youtube-fallback:is(:hover, :focus-visible),
body a.alanlar-div:is(:hover, :focus-visible) {
  text-decoration: none !important;
}

/* Treatment shortcuts on inner pages should be visible without waiting for a carousel. */
body:not(.homepage):not(.about-page):not(.site-page) .tedavi-alanlari-section .alanlar {
  display: grid;
  width: min(1200px, calc(100% - 32px));
  height: auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 10px;
  margin: 18px auto 0;
  overflow: visible;
  font-size: clamp(.95rem, 1.35vw, 1.08rem);
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

body:not(.homepage):not(.about-page):not(.site-page) .tedavi-alanlari-section .alanlar > div {
  position: static;
  top: auto;
  width: auto;
  height: auto;
  margin: 0;
  opacity: 1;
  animation: none !important;
  transform: none;
  transition: none;
}

body:not(.homepage):not(.about-page):not(.site-page) .tedavi-alanlari-section .alanlar > div:last-child {
  grid-column: 1 / -1;
}

body:not(.homepage):not(.about-page):not(.site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-brand-deep);
  font-size: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

body:not(.homepage):not(.about-page):not(.site-page) .tedavi-alanlari-section .alanlar .alanlar-div:hover,
body:not(.homepage):not(.about-page):not(.site-page) .tedavi-alanlari-section .alanlar .alanlar-div:focus-visible {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 520px) {
  body:not(.homepage):not(.about-page):not(.site-page) .tedavi-alanlari-section .alanlar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Shorter, consistent motion across pages. */
@media (prefers-reduced-motion: no-preference) {
  body:not(.homepage):not(.about-page):not(.site-page) .animate__animated {
    --animate-duration: 360ms;
    animation-duration: 360ms !important;
    animation-delay: 0ms !important;
  }

  body [data-aos] { transition-duration: 320ms !important; }
  body.homepage .fade-in-section { transition-duration: 360ms !important; }
  body :is(.address-card, .map-container, .gallery-item, .gallery-image, .btn-social) {
    transition-duration: 220ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Keep the appointment CTA's color and underline behavior consistent site-wide. */
body .navbar-mainbg .navbar-nav .nav-link.nav-appointment,
body .navbar-mainbg .navbar-nav-ebru a.nav-appointment,
body:is(.homepage, .about-page, .site-page) .floating-appointment > a {
  color: #fff !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

body .navbar-mainbg .navbar-nav .nav-link.nav-appointment::after,
body .navbar-mainbg .navbar-nav-ebru a.nav-appointment::after {
  content: none !important;
  display: none !important;
}

body .navbar-mainbg .navbar-nav .nav-link.nav-appointment:is(:hover, :focus-visible, :active),
body .navbar-mainbg .navbar-nav-ebru a.nav-appointment:is(:hover, :focus-visible, :active) {
  border-color: var(--color-brand-deep) !important;
  background-color: var(--color-brand-deep) !important;
  color: #fff !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  transform: none !important;
  box-shadow: var(--shadow-md) !important;
}

body .navbar-mainbg .navbar-nav .nav-link.nav-appointment:is(:hover, :focus-visible, :active) :is(i, svg, span),
body .navbar-mainbg .navbar-nav-ebru a.nav-appointment:is(:hover, :focus-visible, :active) :is(i, svg, span) {
  color: #fff !important;
}

body:is(.homepage, .about-page, .site-page) .floating-appointment > a:is(:hover, :focus-visible, :active) {
  background-color: var(--color-brand) !important;
  color: #fff !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  box-shadow: none !important;
}

/* Give homepage modules a quiet, alternating rhythm from the shared brand palette. */
body.homepage .main-content-wrapper > main > section:first-child,
body.homepage .main-content-wrapper > main > #basindabiz,
body.homepage .main-content-wrapper > main > #yt-latest,
body.homepage .main-content-wrapper > main > .anlasmali,
body.homepage .main-content-wrapper > main > .iletisim {
  background-color: var(--color-canvas) !important;
  background-image: none !important;
}

body.homepage .main-content-wrapper > main > section:first-child > .page-section.girisdiv {
  background-color: var(--color-canvas) !important;
  background-image: none !important;
}

/* Use one continuous canvas around the contact map and information cards. */
body.homepage #contact.contact {
  background: transparent !important;
  box-shadow: none;
}

body.homepage .main-content-wrapper > main > #videolar,
body.homepage .main-content-wrapper > main > #ig-latest,
body.homepage .main-content-wrapper > main > .blog-preview {
  background-color: var(--color-surface-soft) !important;
  background-image: none !important;
}

/* The blog section inherits the canvas previously used by the removed institutions block. */
body.homepage .main-content-wrapper > main > .blog-preview {
  background-color: var(--color-canvas) !important;
}

/* The press module has its own photo overlay; avoid extra tinted section fades. */
body.homepage .main-content-wrapper > main > #basindabiz::before,
body.homepage .main-content-wrapper > main > #basindabiz::after {
  content: none;
  display: none;
}

/* Keep section edge fades in the same muted sage tone as the active surface. */
body.homepage .main-content-wrapper > main > :is(#videolar, #ig-latest, .blog-preview)::before {
  background: linear-gradient(to bottom, rgba(238, 242, 239, .88), transparent);
}

body.homepage .main-content-wrapper > main > :is(#videolar, #ig-latest, .blog-preview)::after {
  background: linear-gradient(to top, rgba(238, 242, 239, .88), transparent);
}

/* Keep blog cards visually still when hovered; links retain their keyboard focus styles. */
body.homepage .blog-preview-card:hover {
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--color-text) !important;
  transform: none !important;
  transition: none !important;
}

body.homepage .blog-preview-card:hover .blog-preview-title {
  color: var(--color-text) !important;
  text-decoration: none !important;
}

body.homepage .blog-preview-card .blog-preview-read-link:hover {
  transform: none !important;
}

/* Give topbar contact details and the language control a balanced desktop rhythm. */
@media (min-width: 992px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 2.2vw, 42px);
    padding-inline: 0;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info > a[href^="mailto:"] {
    margin-right: 0;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info > a > i {
    margin-right: 0;
  }
}

body:is(.homepage, .about-page, .site-page) .topbar .site-info > a > i {
  flex: 0 0 18px;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget {
  width: 68px;
  min-width: 68px;
  height: 44px;
  flex: 0 0 68px;
}

body:is(.homepage, .about-page, .site-page) .language-trigger {
  width: 68px;
  height: 44px;
  flex: 0 0 68px;
  gap: 11px;
  padding: 0;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .skiptranslate.goog-te-gadget,
body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
  width: 68px !important;
  min-width: 68px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 !important;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple::before {
  flex: 0 0 auto;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget .goog-te-gadget-simple::after {
  flex: 0 0 7px;
  margin-left: 0;
}

/* Match the homepage introduction portrait to the height of its biography panel. */
@media (min-width: 992px) {
  body.homepage .girisdiv .row.align-items-center {
    align-items: stretch !important;
  }

  body.homepage .images-place {
    display: flex;
    height: 100%;
  }

  body.homepage .images-place img {
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }
}

/* Keep the homepage contact links grouped and replace Google's raw language popup. */
body:is(.homepage, .about-page, .site-page) .topbar {
  position: relative;
  z-index: 1200;
}

@media (min-width: 992px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 3vw, 54px);
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links {
    display: contents;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget {
  z-index: 1201;
  overflow: visible;
}

body:is(.homepage, .about-page, .site-page) .google-translate-widget #google_translate_element {
  pointer-events: none !important;
}

body:is(.homepage, .about-page, .site-page) .language-trigger {
  position: relative;
  z-index: 2;
  cursor: pointer;
  padding: 0 !important;
  transform: none !important;
}

body:is(.homepage, .about-page, .site-page) .language-menu[hidden] {
  display: none !important;
}

body:is(.homepage, .about-page, .site-page) .language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1300;
  display: block;
  width: min(310px, calc(100vw - 24px));
  max-height: min(460px, calc(100vh - 96px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(52, 75, 80, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(27, 47, 51, .22);
  color: var(--color-text);
  text-align: left;
  overscroll-behavior: contain;
  scrollbar-color: #b7c9c4 transparent;
  scrollbar-width: thin;
}

body:is(.homepage, .about-page, .site-page) .language-menu-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px 11px;
  border-bottom: 1px solid rgba(52, 75, 80, .1);
}

body:is(.homepage, .about-page, .site-page) .language-menu-title {
  color: var(--color-brand-deep);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.25;
}

body:is(.homepage, .about-page, .site-page) .language-menu-description {
  color: #77868a;
  font-size: .74rem;
  line-height: 1.35;
}

body:is(.homepage, .about-page, .site-page) .language-menu-list {
  display: grid;
  gap: 3px;
  padding-top: 7px;
}

body:is(.homepage, .about-page, .site-page) .language-option {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344b50;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: none !important;
  transition: background-color .16s ease, color .16s ease;
}

body:is(.homepage, .about-page, .site-page) .language-option:hover,
body:is(.homepage, .about-page, .site-page) .language-option:focus-visible {
  background: #edf3f0;
  color: var(--color-brand-deep);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(61, 119, 121, .18);
}

body:is(.homepage, .about-page, .site-page) .language-option.is-selected {
  background: #f1f6f3;
  color: var(--color-brand-deep);
}

body:is(.homepage, .about-page, .site-page) .language-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

body:is(.homepage, .about-page, .site-page) .language-option-label {
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.3;
}

body:is(.homepage, .about-page, .site-page) .language-option-note {
  color: #77868a;
  font-size: .69rem;
  line-height: 1.25;
}

body:is(.homepage, .about-page, .site-page) .language-option-code {
  display: grid;
  width: 34px;
  height: 26px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 8px;
  background: #f1f4f2;
  color: #65797d;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
}

body:is(.homepage, .about-page, .site-page) .language-option.is-selected .language-option-code {
  background: var(--color-brand-deep);
  color: #fff;
}

body:is(.homepage, .about-page, .site-page) .language-menu-loading {
  margin: 0;
  padding: 14px 10px;
  color: #687b7e;
  font-size: .84rem;
}

@media (max-width: 991px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links {
    display: contents;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    align-self: center;
    left: auto;
    right: auto;
    margin: 0;
    transform: none;
  }

  body:is(.homepage, .about-page, .site-page) .language-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    position: relative;
    flex-direction: row;
    min-height: 44px;
    padding-right: 54px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links {
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: clamp(12px, 1.7vw, 20px);
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links > a {
    gap: 6px;
    font-size: .76rem;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a {
    gap: 6px;
    font-size: .76rem;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links > a[href^="mailto:"] {
    font-size: .76rem;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    position: absolute;
    top: 50%;
    left: auto;
    right: 0;
    align-self: auto;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: stretch;
    gap: 8px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links {
    display: contents;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, max-content);
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.4vw, 14px);
    width: 100%;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: .875rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links > a[href^="mailto:"] {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-self: stretch;
    justify-content: center;
    gap: 7px;
    font-size: .875rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links > a[href^="mailto:"] {
    font-size: .875rem;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    width: 68px;
    height: 44px;
  }

  body:is(.homepage, .about-page, .site-page) .language-trigger {
    width: 68px;
    height: 44px;
  }

  body:is(.homepage, .about-page, .site-page) .language-menu {
    right: 0;
    left: auto;
    transform: none;
  }

  body:is(.homepage, .about-page, .site-page) .language-menu {
    width: min(300px, calc(100vw - 20px));
    max-height: min(420px, calc(100vh - 92px));
  }
}

@media (max-width: 360px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 4px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links {
    grid-column: 1;
    gap: 4px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a,
  body:is(.homepage, .about-page, .site-page) .topbar-contact-links > a[href^="mailto:"] {
    gap: 5px;
    font-size: .8rem;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links > a[href^="mailto:"] {
    grid-column: 1;
    grid-row: 2;
    min-height: 44px;
    justify-self: center;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links > a[href^="mailto:"] {
    font-size: .8rem;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }

  body:is(.homepage, .about-page, .site-page) .language-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Keep the mobile contact row compact, with equal type sizing at every width. */
@media (max-width: 480px) {
  body:is(.homepage, .about-page, .site-page) .topbar {
    padding-block: 6px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    gap: 4px 8px;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a {
    width: 100%;
    min-width: 0;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a + a {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, .22);
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links > a[href^="mailto:"] {
    justify-content: flex-start;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links .topbar-phone-links > a,
  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links > a[href^="mailto:"] {
    font-size: clamp(13px, 3.59vw, 14px) !important;
    font-weight: 600;
    letter-spacing: 0;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget,
  body:is(.homepage, .about-page, .site-page) .language-trigger {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .language-trigger {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .language-chevron { display: none; }
}

@media (max-width: 360px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    gap: 4px 6px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 8px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a {
    width: auto;
    gap: 4px;
    font-size: 12.5px !important;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a + a {
    padding-left: 0;
    border-left: 0;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links .topbar-phone-links > a,
  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links > a[href^="mailto:"] {
    font-size: 12.5px !important;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links > a[href^="mailto:"] {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 3px;
    min-height: 44px;
    font-size: 12.5px !important;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links > a[href^="mailto:"] i {
    width: 16px;
    flex: 0 0 16px;
  }

  body:is(.homepage, .about-page, .site-page) .google-translate-widget {
    grid-column: 2;
    grid-row: 2;
    width: 44px;
    min-width: 44px;
    height: 44px;
    justify-self: end;
  }

  body:is(.homepage, .about-page, .site-page) .language-trigger {
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .language-trigger {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
  }

  body:is(.homepage, .about-page, .site-page) .language-menu {
    right: 0;
    left: auto;
    transform: none;
  }
}

/* Present treatment shortcuts as a light navigation strip rather than large cards. */
body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section {
  padding: 10px 0;
  background: var(--color-surface-soft);
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
  display: flex;
  width: min(calc(100% - 32px), 1380px);
  height: auto;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto;
  padding: 0;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar > div {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid rgba(63, 116, 120, .18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .88);
  box-shadow: none;
  color: var(--color-brand-deep);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transform: none;
  transition: background-color var(--interaction-duration) var(--interaction-easing),
    border-color var(--interaction-duration) var(--interaction-easing),
    color var(--interaction-duration) var(--interaction-easing);
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div:is(:hover, :focus-visible) {
  border-color: var(--color-brand);
  background: var(--color-sage);
  box-shadow: none;
  color: var(--color-brand-deep);
  text-decoration: none;
  transform: none;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link:is(:hover, :focus-visible) {
  border-color: var(--color-brand-deep);
  background: var(--color-brand-deep);
  color: #fff;
}

@media (max-width: 767px) {
  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section {
    padding: 9px 0;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
    width: calc(100% - 24px);
    gap: 7px;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
    min-height: 36px;
    padding: 7px 11px;
    font-size: .85rem;
  }
}

@media (max-width: 360px) {
  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
    width: calc(100% - 20px);
    gap: 6px;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
    padding-inline: 9px;
    font-size: .82rem;
  }
}

/* Keep the language control icon-only and circular at every viewport width. */
body:is(.homepage, .about-page, .site-page) .google-translate-widget {
  width: 44px;
  min-width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

body:is(.homepage, .about-page, .site-page) .language-trigger {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  gap: 0;
  padding: 0 !important;
  border-radius: 50%;
}

body:is(.homepage, .about-page, .site-page) .language-trigger > i:first-child {
  width: 18px;
  height: 18px;
  margin: 0 !important;
  font-size: 17px;
  line-height: 18px;
  text-align: center;
}

body:is(.homepage, .about-page, .site-page) .language-chevron {
  display: none !important;
}

body:is(.homepage, .about-page, .site-page) .language-trigger {
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0 !important;
}

body:is(.homepage, .about-page, .site-page) .language-trigger > i:first-child {
  width: 18px;
  margin: 0 !important;
  text-align: center;
}

body:is(.homepage, .about-page, .site-page) .language-chevron {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}

body:is(.homepage, .about-page, .site-page) .topbar .site-info .language-chevron {
  right: 12px;
  width: 12px;
  height: 12px;
  font-size: 12px;
}

@media (max-width: 480px) {
  body:is(.homepage, .about-page, .site-page) .language-chevron { right: 8px; }
  body:is(.homepage, .about-page, .site-page) .topbar .site-info .language-chevron { right: 14px; }
}

@media (max-width: 360px) {
  body:is(.homepage, .about-page, .site-page) .topbar .site-info .language-chevron { right: 12px; }
}

/* Keep tablet contact details readable without forcing them into a cramped row. */
@media (min-width: 481px) and (max-width: 991px) {
  body:is(.homepage, .about-page, .site-page) .topbar {
    padding-block: 8px;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1px 14px;
    min-height: 0;
    padding: 0;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-contact-links {
    display: contents;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(18px, 2.6vw, 28px);
    width: 100%;
  }

  body:is(.homepage, .about-page, .site-page) .topbar-phone-links > a,
  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links > a[href^="mailto:"] {
    font-size: .86rem;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .topbar-contact-links > a[href^="mailto:"] {
    grid-column: 1;
    grid-row: 2;
    min-height: 34px;
    justify-content: flex-start;
  }

  body:is(.homepage, .about-page, .site-page) .topbar .site-info .google-translate-widget {
    position: static;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    transform: none;
  }
}

/* The tablet carousel uses a shorter frame so landscape photos do not sit in a tall blank panel. */
@media (min-width: 481px) and (max-width: 991px) {
  body.homepage .medical-gallery .image-container.contain-image {
    height: clamp(270px, 50vw, 390px) !important;
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (max-width: 480px) {
  body.homepage .medical-gallery .image-container.contain-image {
    height: clamp(230px, 58vw, 280px) !important;
    min-height: 0;
    aspect-ratio: auto;
  }
}

/* Keep the three homepage videos compact on desktop and mid-size screens. */
body.homepage #videolar .video-grid {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-inline: auto;
}

body.homepage #videolar .video-grid > .video-item {
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 767px) {
  body.homepage #videolar .video-grid {
    width: min(100%, 560px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.homepage #videolar .video-grid {
    width: min(100%, 420px);
    grid-template-columns: 1fr;
  }
}

/* Use the same compact, centered language control across phone and tablet widths. */
@media (max-width: 991px) {
  body:is(.homepage, .about-page, .site-page) .google-translate-widget,
  body:is(.homepage, .about-page, .site-page) .topbar .site-info .google-translate-widget {
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  body:is(.homepage, .about-page, .site-page) .language-trigger,
  body:is(.homepage, .about-page, .site-page) .topbar .site-info .language-trigger {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 50%;
    padding: 0 !important;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .48);
    color: #fff;
  }

  body:is(.homepage, .about-page, .site-page) .language-trigger > i:first-child {
    width: 18px;
    height: 18px;
    margin: 0 !important;
    font-size: 17px;
    line-height: 18px;
    text-align: center;
  }

  body:is(.homepage, .about-page, .site-page) .language-chevron,
  body:is(.homepage, .about-page, .site-page) .topbar .site-info .language-chevron {
    display: none !important;
  }

  body:is(.homepage, .about-page, .site-page) .language-menu {
    right: 0;
    left: auto;
    transform: none;
  }
}

/* Mobile homepage refinements: keep the collapsed nav and make the content below it lighter. */
@media (max-width: 767px) {
  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section {
    padding: 8px 0;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 24px);
    gap: 7px;
    overflow: visible;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar > div {
    min-width: 0;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
    display: flex;
    width: 100%;
    min-height: 36px;
    justify-content: center;
    padding: 6px 5px;
    font-size: .8rem;
    white-space: nowrap;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .all-link { font-size: .72rem; }

  body.homepage .page-section.girisdiv { padding: 1.25rem 0 1.5rem; }
  body.homepage .images-place { max-width: 340px; margin-inline: auto; }
  body.homepage .images-place img {
    max-height: min(64vw, 240px);
    object-position: center 38%;
  }

  body.homepage .giriscontainer {
    margin-top: .8rem;
    padding: 1rem;
  }

  body.homepage .giriscontainer > h1.visually-hidden {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 .65rem !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    color: var(--color-brand-deep);
    font-size: clamp(1.05rem, 4.4vw, 1.2rem);
    font-weight: 750;
    line-height: 1.3;
  }

  body.homepage #girishtext p {
    margin-bottom: .7rem;
    font-size: .9rem;
    line-height: 1.55;
  }

  body.homepage .giriscontainer .h1ebru {
    margin-top: .8rem;
    font-size: .9rem;
  }

  body.homepage .muayenehane-section { padding: 2rem 0 !important; }
  body.homepage .muayenehane-section .section-title {
    margin-bottom: 1.35rem;
    font-size: clamp(1.18rem, 4.7vw, 1.4rem);
    line-height: 1.25;
  }

  body.homepage .medical-gallery-shell { padding-inline: 34px; }
  body.homepage .medical-gallery .image-container.contain-image {
    width: 100% !important;
    height: clamp(248px, 70vw, 280px) !important;
    min-height: 0;
    padding: 7px;
    aspect-ratio: auto;
  }

  body.homepage .medical-gallery-shell .swiper-button-prev,
  body.homepage .medical-gallery-shell .swiper-button-next {
    width: 34px;
    height: 34px;
  }

  body.homepage #contact .contact-appointment-button {
    min-height: 40px;
    gap: .45rem;
    padding: .5rem .9rem;
    font-size: .86rem;
  }

  body.homepage #videolar .video-grid {
    width: min(100%, 330px);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.homepage #videolar .channel-button-container {
    margin: 1.1rem 0 0;
    padding: 0;
  }

  body.homepage #videolar .channel-button {
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid rgba(52, 75, 80, .18);
    border-radius: var(--radius-full);
    background: #fff !important;
    box-shadow: var(--shadow-sm);
    color: var(--color-brand-deep) !important;
    font-size: .9rem;
    line-height: 1.2;
  }

  body.homepage #videolar .channel-button i { color: #d52d35; }

  body:is(.homepage, .about-page, .site-page) .floating-appointment {
    gap: 0;
    right: max(10px, env(safe-area-inset-right));
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 20px);
    padding: 3px;
    transition-duration: .16s;
  }

  body:is(.homepage, .about-page, .site-page) .floating-appointment > a {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: .8rem;
  }

  body:is(.homepage, .about-page, .site-page) .floating-appointment > a > span { display: none; }

  body:is(.homepage, .about-page, .site-page) .floating-appointment-dismiss {
    width: 24px;
    height: 24px;
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  body.homepage #videolar .video-grid { width: min(100%, 310px); }
}

@media (max-width: 767px) {
  body.homepage .medical-gallery-shell { padding-inline: 22px; }
  body.homepage .medical-gallery .image-container.contain-image {
    height: clamp(210px, 64vw, 245px) !important;
    padding: 5px;
  }

  body.homepage .medical-gallery-shell .swiper-button-prev,
  body.homepage .medical-gallery-shell .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  body.homepage #videolar .video-grid {
    width: min(100%, 300px);
    gap: 14px;
  }

  body.homepage #videolar .video-grid > .video-item { max-width: 280px; margin-inline: auto; }

  body.homepage #basindabiz,
  body.homepage #basindabiz .basin-content { min-height: 350px; }

  body.homepage #basindabiz .basin-content {
    align-items: flex-end;
    padding: 12px 14px;
  }

  body.homepage #basindabiz .bg-1 {
    inset: -56px 0;
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center 18%;
    transform: translate3d(0, var(--press-parallax-offset, 0px), 0) scale(1.16);
    will-change: transform;
    transition: none !important;
  }

  body.homepage #basindabiz .bg-1::after {
    background: linear-gradient(90deg, rgba(36, 58, 62, .04), rgba(255, 255, 255, .16));
    opacity: .4;
  }

  body.homepage #basindabiz .basin-text {
    width: min(100%, 360px);
    max-width: 100%;
    margin: 0;
    padding: 14px;
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  body.homepage .giriscontainer { padding: 1.05rem; }

  body.homepage .giriscontainer > h1.visually-hidden {
    margin-bottom: .8rem !important;
    font-size: clamp(1.05rem, 4.5vw, 1.2rem);
    line-height: 1.28;
  }

  body.homepage #girishtext { display: flex; flex-direction: column; gap: .65rem; }

  body.homepage #girishtext p {
    margin: 0;
    color: #526166;
    font-size: .875rem;
    line-height: 1.62;
  }

  body.homepage #girishtext p:first-child {
    padding: .8rem .9rem;
    border-left: 3px solid var(--color-brand);
    border-radius: 0 10px 10px 0;
    background: var(--color-surface-soft);
    color: var(--color-brand-deep);
    font-size: .92rem;
  }

  body.homepage .giriscontainer .h1ebru {
    margin-top: .7rem;
    text-align: right;
    font-size: .86rem;
  }

  body:is(.homepage, .about-page, .site-page) .page-footer {
    padding: 18px 0 16px !important;
  }

  body:is(.homepage, .about-page, .site-page) .footer-content {
    gap: 6px;
    padding-inline: 1rem;
  }

  body:is(.homepage, .about-page, .site-page) .socialButtons {
    gap: 10px;
    margin: 0;
  }

  body:is(.homepage, .about-page, .site-page) .footer-text { margin: 0; }

  body:is(.homepage, .about-page, .site-page) .footer-text p {
    max-width: 30rem;
    margin: .35rem auto;
    font-size: .86rem;
    line-height: 1.55;
  }

  body:is(.homepage, .about-page, .site-page) .footer-text p:first-child { margin-top: 0; }
  body:is(.homepage, .about-page, .site-page) .footer-text p:last-child { margin-bottom: 0; }
}

@media (max-width: 420px) {
  body.homepage #videolar .video-grid { width: min(100%, 250px); }
  body.homepage #videolar .video-grid > .video-item { max-width: 250px; }
}

@media (max-width: 480px) {
  body.homepage #basindabiz,
  body.homepage #basindabiz .basin-content { min-height: 350px; }

  body.homepage .medical-gallery-shell {
    width: calc(100% + 24px);
    margin-inline: -12px;
    padding-inline: 18px;
  }

  body.homepage .medical-gallery .image-container.contain-image {
    height: clamp(238px, 76vw, 280px) !important;
    padding: 5px;
  }
}

@media (max-width: 480px) {
  body.homepage #basindabiz .bg-1 {
    inset: -56px 0 -120px;
    background-position: -32px 18%;
    transform: translate3d(0, calc(var(--press-parallax-offset, 0px) - 105px), 0) scale(1.16);
  }

  body.homepage #basindabiz .basin-content {
    justify-content: flex-end;
  }

  body.homepage #basindabiz .basin-text {
    width: min(64%, 250px);
    max-width: 64%;
    margin-left: auto;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

/* Homepage device-audit refinements: expose the title consistently and reduce avoidable overlap. */
body.homepage .giriscontainer > h1.visually-hidden {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 1rem !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  color: var(--color-brand-deep);
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  font-weight: 750;
  line-height: 1.22;
}

body.homepage #contact .maps-container {
  width: 100%;
  max-width: none !important;
  margin-inline: auto;
}

body.homepage #contact #mapsIframe {
  display: block;
  border: 0;
  border-radius: inherit;
}

@media (min-width: 1201px) {
  body.homepage #basindabiz .bg-1 { background-position: center 48%; }

  body.homepage #basindabiz .basin-text {
    width: min(40%, 440px);
    max-width: 440px;
    margin-right: 8px;
    padding: 28px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  body.homepage #basindabiz .bg-1 { background-position: center 48%; }

  body.homepage #basindabiz .basin-text {
    width: min(46%, 400px);
    max-width: 400px;
    margin: 0 8px 0 auto;
    padding: 20px;
  }
}

@media (max-width: 767px) {
  body:is(.homepage, .about-page, .site-page) .topbar { padding-block: 4px; }

  body:is(.homepage, .about-page, .site-page) .navbar-mainbg { padding-block: 4px; }

  body:is(.homepage, .about-page, .site-page) .navbar-brand .logo {
    width: min(240px, 45vw);
    height: 52px !important;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section { padding-block: 4px; }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar {
    gap: 5px;
  }

  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
    min-height: 32px;
    padding: 4px 8px;
    font-size: .8rem;
  }

  body.homepage .giriscontainer > h1.visually-hidden {
    margin-bottom: .65rem !important;
    font-size: clamp(1.08rem, 4.5vw, 1.25rem);
    line-height: 1.28;
  }

  body.homepage #contact .maps-container {
    width: calc(100% + 48px);
    height: clamp(220px, 62vw, 340px) !important;
    margin-inline: -24px;
    padding-bottom: 0 !important;
  }

  body.homepage #basindabiz .basin-text {
    width: min(54%, 220px);
    max-width: 54%;
    padding: 13px;
  }
}

@media (max-width: 360px) {
  body:is(.homepage, .about-page, .site-page) .tedavi-alanlari-section .alanlar .alanlar-div {
    padding-inline: 6px;
    font-size: .76rem;
  }

  body.homepage #basindabiz .basin-text {
    width: min(56%, 210px);
    max-width: 56%;
    padding: 12px;
  }
}

/* Keep the current navigation item visually steady while it is hovered. */
body .navbar-mainbg .navbar-nav .nav-link[aria-current="page"]:is(:hover, :focus-visible, :active),
body .navbar-mainbg .navbar-nav-ebru a[aria-current="page"]:is(:hover, :focus-visible, :active) {
  text-decoration: none !important;
  text-decoration-line: none !important;
  transform: none !important;
}

body .navbar-mainbg .navbar-nav .nav-link[aria-current="page"]::after,
body .navbar-mainbg .navbar-nav-ebru a[aria-current="page"]::after {
  content: none !important;
  display: none !important;
}

body .navbar-mainbg .navbar-nav .nav-link.nav-appointment[aria-current="page"]:is(:hover, :focus-visible, :active),
body .navbar-mainbg .navbar-nav-ebru a.nav-appointment[aria-current="page"]:is(:hover, :focus-visible, :active) {
  border-color: var(--color-brand) !important;
  background-color: var(--color-brand) !important;
  box-shadow: var(--shadow-sm) !important;
  color: #fff !important;
}

/* Keep outlined links readable when they sit on the dark blog callout. */
body .cta-box .cta-buttons a.ghost:is(:hover, :focus-visible) {
  border-color: rgba(255, 255, 255, .9) !important;
  background-color: rgba(255, 255, 255, .16) !important;
  color: #fff !important;
  text-decoration: none !important;
}

body.about-page .about-mobile-profile-actions .about-mobile-profile-cta:is(:hover, :focus-visible) {
  border-color: var(--color-brand-deep) !important;
  background-color: var(--color-brand-deep) !important;
  color: #fff !important;
  text-decoration: none !important;
}

body.about-page .about-mobile-profile-actions .about-mobile-profile-cta:is(:hover, :focus-visible) :is(i, span, svg) {
  color: #fff !important;
}

/* Keep contact labels legible across hover and keyboard focus states. */
body.about-page .topbar-contact-links :is(a[href^="tel:"], a[href^="mailto:"]):is(:hover, :focus-visible) {
  color: #fff !important;
  text-decoration-color: var(--color-sage) !important;
}

body.about-page .profile-contact-card :is(.profile-whatsapp-link, .profile-appointment-link):is(:hover, :focus-visible) {
  border-color: var(--color-brand-deep) !important;
  background-color: var(--color-brand-deep) !important;
  color: #fff !important;
  text-decoration: none !important;
}

body.about-page .profile-contact-card .profile-email-link:is(:hover, :focus-visible) {
  border-color: var(--color-brand) !important;
  background-color: var(--color-surface-soft) !important;
  color: var(--color-brand-deep) !important;
  text-decoration: none !important;
}

body.about-page .about-mobile-profile-actions .about-mobile-profile-email:is(:hover, :focus-visible) {
  color: var(--color-brand-deep) !important;
  text-decoration-color: var(--color-brand) !important;
}

body.about-page .address-card > .card-body > .btn:is(:hover, :focus-visible) {
  color: var(--color-brand-deep) !important;
}

/* Let each supplied clinic photo use its own orientation without leaving side bars. */
body.homepage .medical-gallery .image-container.contain-image.gallery-frame {
  height: auto !important;
  min-height: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
}

body.homepage .medical-gallery .image-container.contain-image.gallery-frame.portrait-frame {
  aspect-ratio: 3 / 4;
}

body.homepage .medical-gallery .image-container.contain-image.gallery-frame .gallery-image.gallery-photo {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}
