/* ------------------------------------------------------------------
   Redesign layer (loaded after style.css)
   Light "glass" look: navy headlines, sky-blue accent, rounded cards,
   pill buttons, navy band for treatments, tile-based mobile menu.
--------------------------------------------------------------------*/
:root {
  --dv-navy: #0b2545;
  --dv-navy-2: #13315c;
  --dv-accent: #06a3db;
  --dv-accent-soft: #e6f5fc;
  --dv-ink: #1c2434;
  --dv-muted: #5f6b7d;
  --dv-line: #e3e9f3;
  --dv-bg: #f5f8fd;
  --dv-radius: 20px;
  --dv-shadow: 0 18px 40px -24px rgba(11, 37, 69, .35);
}

body {
  color: var(--dv-muted);
  background: #fff;
}

h1, h2, h3, h4, h5 {
  color: var(--dv-navy);
  letter-spacing: -.01em;
}

.span-title,
.eyebrow {
  color: var(--dv-accent);
  font-weight: 500;
}

/* ---------- Navbar ---------- */
body #navbar.navbar {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 233, 243, .7);
  padding: 14px 0;
}

body #navbar.navbar.navbar-fixed {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px -22px rgba(11, 37, 69, .45);
}

body #navbar .navbar-brand img {
  filter: none;
}

body #navbar .nav-link,
body #navbar #treatmentsDropdown,
body #navbar .tellink,
body #navbar .tel i,
body #navbar .navbar-toggler i {
  color: var(--dv-navy);
}

body #navbar .nav-link:hover,
body #navbar #treatmentsDropdown:hover {
  color: var(--dv-accent);
}

body #navbar .button-navbar.lang .btn,
body #navbar .lang .btn-secondary {
  background: transparent;
  color: var(--dv-navy);
  border-color: var(--dv-line);
}

body #navbar .appointment .nav-link {
  background: var(--dv-navy);
  color: #fff;
  border-radius: 999px;
  padding: .55rem 1.25rem;
}

body #navbar .appointment .nav-link:hover {
  background: var(--dv-navy-2);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn-pill,
.mm-cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--dv-navy);
  color: #fff;
  border-radius: 999px;
  padding: .5rem .5rem .5rem 1.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.btn-pill i,
.mm-cta i {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #fff;
  color: var(--dv-navy);
  font-size: 1.05rem;
}

.btn-pill:hover,
.mm-cta:hover {
  background: var(--dv-navy-2);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--dv-line);
  color: var(--dv-navy);
  background: #fff;
  font-weight: 500;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--dv-accent);
  color: var(--dv-accent);
}

body .btn-primary {
  background: var(--dv-navy);
  border-color: var(--dv-navy);
  border-radius: 999px;
  padding: .5rem 1.2rem;
}

body .btn-primary:hover {
  background: var(--dv-accent);
  border-color: var(--dv-accent);
}

/* ---------- Hero ---------- */
.intro.hero-v2 {
  position: relative;
  min-height: auto;
  padding: 140px 0 80px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(6, 163, 219, .18), transparent 70%),
    linear-gradient(180deg, #eef5ff 0%, #f7fbff 70%, #fff 100%);
  overflow: hidden;
  text-align: left;
}

.intro.hero-v2::before,
.intro.hero-v2::after {
  content: none;
}

.hero-v2 .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
}

.hero-v2 .eyebrow::before {
  content: "✦";
  color: var(--dv-accent);
}

.hero-v2 h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--dv-navy);
  text-shadow: none;
  margin: .75rem 0 1.25rem;
}

.hero-v2 .lead {
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--dv-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.75rem;
}

.hero-visual {
  position: relative;
}

.hero-visual picture img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--dv-shadow);
  object-fit: cover;
  aspect-ratio: 6 / 5;
}

.hero-card {
  position: absolute;
  right: -10px;
  bottom: 26px;
  width: min(250px, 60%);
  display: grid;
  gap: .25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--dv-radius);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--dv-shadow);
}

.hero-card > div {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--dv-line);
  color: var(--dv-navy);
  font-size: .88rem;
  line-height: 1.25;
  font-weight: 500;
}

.hero-card > div:last-child {
  border-bottom: 0;
}

.hero-card i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--dv-accent);
  color: #fff;
  font-size: 1.1rem;
}

@media (max-width: 991.98px) {
  .intro.hero-v2 {
    padding: 110px 0 56px;
    text-align: center;
  }
  .hero-v2 .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -48px 16px 0;
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero-card > div:nth-last-child(2) {
    border-bottom: 0;
  }
}

/* ---------- Generic cards ---------- */
.features .content,
.treatment-card,
.sevices-card .content,
.contact-form,
.home-doctor {
  border-radius: var(--dv-radius);
}

.features .content {
  background: #fff;
  border: 1px solid var(--dv-line);
  box-shadow: var(--dv-shadow);
}

/* icon wrapper stays transparent; only the round <i> carries colour */
.features .icon,
.about .icon {
  background: transparent !important;
  color: var(--dv-accent) !important;
}

.treatment-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dv-line);
  box-shadow: var(--dv-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.treatment-card:hover {
  transform: translateY(-4px);
}

.treatment-card > img,
.treatment-card > a > img {
  border-radius: 0;
}

/* 3D icon badge on treatment cards */
.t-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -14px rgba(11, 37, 69, .5);
  display: grid;
  place-items: center;
}

.t-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.sevices-card .content,
.treatment-card {
  position: relative;
}

/* ---------- Navy band (home treatments) ---------- */
.band-navy {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(6, 163, 219, .25), transparent 70%),
    var(--dv-navy);
}

.band-navy .span-title {
  color: #8fd3f0;
}

.band-navy h2 {
  color: #fff;
}

.band-navy .sevices-card a {
  text-decoration: none;
}

.band-navy .sevices-card .content {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.band-navy .sevices-card .content:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 163, 219, .8);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 1px rgba(6, 163, 219, .35), 0 20px 40px -20px rgba(6, 163, 219, .6);
}

.band-navy .sevices-card h5 {
  color: #fff;
}

.band-navy .sevices-card p {
  color: rgba(255, 255, 255, .72);
}

.band-navy .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--dv-navy);
}

/* ---------- Soft sections ---------- */
.subpage-header {
  background: linear-gradient(180deg, #eef5ff 0%, #f7fbff 100%) !important;
}

.subpage-header h1,
.subpage-header .subpage-title,
.subpage-header .breadcrumb a,
.subpage-header .breadcrumb-item.active {
  color: var(--dv-navy) !important;
  text-shadow: none;
}

.about,
.contact {
  background: var(--dv-bg);
}

/* ---------- Mobile menu (< 992px), after design-inspiration/Pasted image (3) ---------- */
@media (max-width: 991.98px) {
  body #navbar #navbarSupportedContent .navbar-nav {
    display: none;
  }

  body #navbar .navbar-collapse.show,
  body #navbar .navbar-collapse.collapsing {
    order: 10;
    flex-basis: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    margin: 12px -12px 0;
    padding: 6px 18px 22px;
    background: linear-gradient(180deg, #f7f9ff 0%, #f1f5fd 100%);
    border-radius: 24px;
    text-align: left;
  }
}

.mobile-menu .mm-label {
  margin: 14px 4px 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7d8797;
}

.mm-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mm-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  padding: 14px 54px 14px 16px;
  background: #fff;
  border: 1px solid var(--dv-line);
  border-radius: 18px;
  box-shadow: 0 8px 20px -16px rgba(11, 37, 69, .45);
  text-decoration: none;
}

.mm-tile strong {
  color: var(--dv-ink);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
}

.mm-tile span {
  margin-top: 4px;
  color: #7d8797;
  font-size: .8rem;
}

.mm-tile picture {
  position: absolute;
  top: -12px;
  right: -6px;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

.mm-tile picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(11, 37, 69, .18));
}

.mm-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mm-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--dv-line);
  border-radius: 14px;
  color: var(--dv-ink);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
}

.mm-links a::after {
  content: "→";
  color: var(--dv-accent);
}

.mm-links a.active {
  border-color: var(--dv-accent);
  color: var(--dv-accent);
}

.mm-cta {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  padding: .65rem .65rem .65rem 1.4rem;
  background: #1c1c22;
}

.mm-cta i {
  margin-left: auto;
  background: var(--dv-accent);
  color: #fff;
  transform: rotate(-45deg);
}

.mm-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 14px;
}

.mm-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dv-ink);
  font-weight: 500;
  text-decoration: none;
}

.mm-contact i {
  color: var(--dv-accent);
  font-size: 1.2rem;
}

/* Overrides for old intro/navbar rules */
.intro.hero-v2 h1 {
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  max-width: none;
  text-align: inherit;
}

body #navbar .button-navbar.appointment,
body #navbar .button-navbar li.appointment,
body #navbar li.appointment {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body #navbar .appointment .nav-link {
  font-size: .95rem;
  font-weight: 500;
}

/* Mobile tiles: allow shrinking, wrap long German/Turkish words */
.mm-tiles,
.mm-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-tile strong,
.mm-links a {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 991.98px) {
  body #navbar .tellink span,
  body #navbar .tel span {
    display: none;
  }
}

/* Home cards: new 3D icon replaces the old round image */
.band-navy .sevices-card .content > img {
  display: none;
}

.band-navy .sevices-card .t-icon {
  position: static;
  margin: 1.5rem auto .5rem;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
}

.band-navy .sevices-card .t-icon img {
  width: 78px;
  height: 78px;
}

/* Phone icon stays tappable when its label is hidden */
@media (max-width: 991.98px) {
  body #navbar li:has(> .tellink) {
    position: relative;
  }
  body #navbar .tellink::before {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

/* Treatments overview: new 3D icon replaces the old round image */
.treatment-card > img {
  display: none;
}

.treatment-card .t-icon {
  position: static;
  flex: none;
  width: 140px;
  height: 140px;
  border-radius: 28px;
  background: var(--dv-accent-soft);
  box-shadow: none;
}

.treatment-card .t-icon img {
  width: 116px;
  height: 116px;
  max-width: none;
}

/* Mobile tiles: hyphenate instead of breaking anywhere */
.mm-tile {
  padding: 14px 34px 12px 14px;
}

.mm-tile strong {
  overflow-wrap: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-size: .9rem;
}

/* ---------- Home "Comprehensive dental care" grid: 1 / 2 / 3 (tablet) / 4 (desktop) ---------- */
.band-navy .row.mt-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 576px) {
  .band-navy .row.mt-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .band-navy .row.mt-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .band-navy .row.mt-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.band-navy .row.mt-5 > .sevices-card {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  margin: 0;
}

.band-navy .sevices-card a,
.band-navy .sevices-card .content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.band-navy .sevices-card .content {
  min-height: 0;
  padding: 1.5rem 1.25rem 1.4rem;
  text-align: center;
}

.band-navy .sevices-card .content > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  position: static;
  padding: 0;
  transform: none;
}

.band-navy .sevices-card h5 {
  font-size: 1.08rem;
  margin: .5rem 0 .5rem;
}

.band-navy .sevices-card p {
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.band-navy .sevices-card .btn-primary {
  margin-top: auto;
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

/* Icons: free-standing, no tile behind them */
.t-icon,
.band-navy .sevices-card .t-icon,
.treatment-card .t-icon {
  background: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.band-navy .sevices-card .t-icon {
  margin: 0 auto .25rem;
  width: 110px;
  height: 110px;
}

.band-navy .sevices-card .t-icon img {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

.treatment-card .t-icon img {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 10px 14px rgba(11, 37, 69, .18));
}

/* ---------- Appointment form ---------- */
.contact-form.appointment {
  background: #fff;
  border: 1px solid var(--dv-line);
  border-top: 1px solid var(--dv-line);
  border-radius: 28px;
  box-shadow: var(--dv-shadow);
  padding: 2.5rem 2rem 2rem;
}

.contact-form.appointment h4 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dv-navy);
  margin-bottom: 1.75rem;
}

.contact-form.appointment h4::before {
  content: "✦ ";
  color: var(--dv-accent);
  font-size: .6em;
  vertical-align: middle;
}

.contact-form.appointment form {
  background: transparent;
  box-shadow: none;
}

.contact-form.appointment .form-control,
.contact-form.appointment .nice-select {
  background: var(--dv-bg);
  border: 1px solid var(--dv-line);
  border-radius: 16px;
  color: var(--dv-ink);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form.appointment .form-control:focus,
.contact-form.appointment .nice-select:focus,
.contact-form.appointment .nice-select.open {
  background: #fff;
  border-color: var(--dv-accent);
  box-shadow: 0 0 0 4px rgba(6, 163, 219, .15);
}

.contact-form.appointment .form-floating > label {
  color: var(--dv-muted);
}

.contact-form.appointment .nice-select .list {
  border-radius: 16px;
  border: 1px solid var(--dv-line);
  box-shadow: var(--dv-shadow);
}

.contact-form.appointment .nice-select .option.selected,
.contact-form.appointment .nice-select .option:hover {
  background: var(--dv-accent-soft);
  color: var(--dv-navy);
}

.contact-form.appointment .inform {
  height: 100%;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--dv-accent-soft);
  border: 1px solid rgba(6, 163, 219, .25);
  border-radius: 16px;
  color: var(--dv-navy);
  font-size: .85rem;
}

.contact-form.appointment .inform::before {
  content: "i";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--dv-accent);
  color: #fff;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
}

.contact-form.appointment .make-appointment-button-wrapper button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--dv-navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .55rem 1.6rem .55rem .55rem;
  font-weight: 500;
  box-shadow: 0 14px 30px -16px rgba(11, 37, 69, .7);
  transition: background .2s ease, transform .2s ease;
}

.contact-form.appointment .make-appointment-button-wrapper button i {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--dv-accent);
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
}

.contact-form.appointment .make-appointment-button-wrapper button:hover {
  background: var(--dv-navy-2);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .contact-form.appointment {
    padding: 1.75rem 1rem 1.25rem;
    border-radius: 22px;
  }
}

/* ---------- Mobile: full-height menu, language flags inside it ---------- */
@media (max-width: 991.98px) {
  body #navbar > .container > ul.lang,
  body #navbar ul.lang {
    display: none !important;
  }

  body #navbar .navbar-collapse.show,
  body #navbar .navbar-collapse.collapsing {
    height: calc(100vh - 76px) !important;
    height: calc(100dvh - 76px) !important;
    max-height: none;
    margin: 12px -12px 0;
    border-radius: 24px 24px 0 0;
    overscroll-behavior: contain;
  }

  body #navbar .navbar-collapse.collapsing {
    transition: none;
  }
}

.mm-langs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--dv-line);
}

.mm-langs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  background: #fff;
  border: 1px solid var(--dv-line);
  border-radius: 14px;
  color: var(--dv-ink);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
}

.mm-langs img {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.mm-langs a.active {
  border-color: var(--dv-accent);
  color: var(--dv-accent);
  box-shadow: 0 0 0 3px rgba(6, 163, 219, .12);
}

/* ---------- Appointment form: notice same height as inputs, no overflow on mobile ---------- */
.contact-form.appointment form {
  padding: 0;
  margin-top: 0;
}

.contact-form.appointment .form--inner {
  --bs-gutter-x: 1rem;
}

.contact-form.appointment .form-floating > .form-control:not(textarea),
.contact-form.appointment .area__dropdown .nice-select {
  height: 3.625rem;
  min-height: 3.625rem;
  line-height: 3.5rem;
}

.contact-form.appointment .form-floating > .form-control,
.contact-form.appointment .area__dropdown {
  margin-bottom: 1rem;
}

.contact-form.appointment .inform,
.contact-form.appointment .inform:hover,
.contact-form.appointment .inform:focus {
  height: 3.625rem;
  min-height: 3.625rem;
  max-height: none;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0 1rem;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  transform: none;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .contact-form.appointment .inform,
  .contact-form.appointment .inform:hover {
    height: auto;
    min-height: 3.625rem;
    padding: .7rem 1rem;
  }
}

/* ---------- Mobile: call + appointment move from the header to a floating bottom bar ---------- */
@media (max-width: 991.98px) {
  body #navbar li.appointment,
  body #navbar ul.tel,
  body #navbar .button-navbar.tel {
    display: none !important;
  }

  body {
    padding-bottom: 92px;
  }

  body #navbar .navbar-collapse.show {
    padding-bottom: 104px;
  }

  .cookie-consent-popup {
    bottom: 92px !important;
  }
}

.mobile-bottombar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dv-line);
  border-radius: 22px;
  box-shadow: 0 16px 36px -18px rgba(11, 37, 69, .55);
}

.mobile-bottombar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 16px;
  color: var(--dv-navy);
  font-size: .72rem;
  font-weight: 500;
  text-decoration: none;
}

.mobile-bottombar a i {
  font-size: 1.45rem;
  color: var(--dv-accent);
}

.mobile-bottombar a.mb-cta {
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  background: var(--dv-navy);
  color: #fff;
  font-size: .9rem;
  border-radius: 999px;
}

.mobile-bottombar a.mb-cta i {
  color: #fff;
  font-size: 1.3rem;
}

/* Form row: symmetric gutters (old rules left the fields flush right on mobile) */
.contact-form.appointment .form--inner {
  margin-left: 0;
  margin-right: 0;
}

.contact-form.appointment .form--inner > * {
  padding-left: .5rem;
  padding-right: .5rem;
  max-width: 100%;
}

/* Burger: larger tap target (48px+), icon unchanged; mobile only (desktop keeps Bootstrap's display:none) */
@media (max-width: 991.98px) {
body #navbar .navbar-toggler {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 52px;
  margin: -6px -10px -6px 0;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  touch-action: manipulation;
}

body #navbar .navbar-toggler:active {
  background: var(--dv-accent-soft);
}
}

/* Turnstile (data-appearance="interaction-only"): hidden unless a check is needed, then centred */
.contact-form.appointment .cf-turnstile {
  display: flex;
  justify-content: center;
}

/* Mobile: empty legacy helper became visible on menu open and pushed the logo right */
@media (max-width: 991.98px) {
  body #navbar .mobile-menu-content-wrap {
    display: none !important;
  }
}

/* Footer copyright row: tighter spacing above/below */
footer .footer__wrapper.divafooter:not(.services) {
  padding-bottom: 0;
}

footer .row.divacopyright {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

footer .divafooter:not(.services) .footerlinks > :last-child ul,
footer .divafooter:not(.services) .footerlinks ul:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

footer .divafooter.services > .footerlinks {
  margin-top: 24px;
}

@media (max-width: 767.98px) {
  footer .impress-copyright {
    flex-direction: column;
    align-items: center;
    gap: .5rem;
  }

  footer .impress-copyright .kunye.signature,
  footer .impress-copyright .signature {
    text-align: center;
  }

  footer div.sb-logo {
    margin: 0;
  }
}

/* Subpage header: title is a styled <p> (the SEO <h1> lives in the page content) */
body .subpage-header {
  min-height: 0;
  justify-content: center;
  padding: 2.5rem 0 1.75rem;
}

.subpage-header .subpage-title {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.subpage-header .breadcrumb {
  margin: 0;
  row-gap: .25rem;
}

.subpage-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--dv-accent) !important;
}

@media (max-width: 575.98px) {
  body .subpage-header {
    padding: 1.75rem 0 1.25rem;
  }
}

/* Home: even vertical rhythm between sections */
body.home .sxsolo {
  padding-top: 56px !important;
  padding-bottom: 24px !important;
}

body.home .sxsolo.pb-6 {
  padding-bottom: 56px !important;
}

body.home .home-doctors {
  margin-top: 0;
  padding-top: 0;
}

body .contact {
  padding-top: 64px;
}

@media (max-width: 767.98px) {
  body.home .sxsolo {
    padding-top: 40px !important;
  }

  body.home .sxsolo.pb-6 {
    padding-bottom: 40px !important;
  }

  body .contact {
    padding-top: 40px;
  }
}

body.home .home-doctors > .home-doctor:first-child {
  margin-top: 40px;
}

/* Small phones: feature cards too narrow for icon + long words (e.g. "danışmanlık"), stack them */
@media (max-width: 575.98px) {
  .features .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: 14px 10px;
    margin-bottom: 12px;
  }

  .features .content .icon {
    float: none;
  }

  .features .content .icon i {
    display: block;
    margin: 0;
  }

  .features .content .text h6 {
    margin: 0;
  }
}

/* ---------- Per-page SEO block: facts, process, FAQ, related links ---------- */
.page-seo {
  padding: 56px 0 24px;
}

.page-seo .ps-block {
  margin-bottom: 48px;
}

.page-seo .ps-title {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.page-seo .ps-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 12px 0 10px;
}

.page-seo .ps-fact {
  padding: 18px 20px;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius);
  background: var(--dv-bg);
}

.page-seo .ps-fact dt {
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dv-accent);
}

.page-seo .ps-fact dd {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--dv-navy);
}

.page-seo .ps-note {
  font-size: .85rem;
}

.page-seo .ps-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ps-step;
}

.page-seo .ps-steps li {
  position: relative;
  padding: 22px 20px 20px 64px;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius);
  background: #fff;
  box-shadow: var(--dv-shadow);
  counter-increment: ps-step;
}

.page-seo .ps-steps li::before {
  content: counter(ps-step);
  position: absolute;
  top: 20px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dv-navy);
  color: #fff;
  font-weight: 600;
}

.page-seo .ps-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dv-navy);
}

.page-seo .ps-faq details {
  margin-bottom: 12px;
  border: 1px solid var(--dv-line);
  border-radius: 16px;
  background: #fff;
}

.page-seo .ps-faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  color: var(--dv-navy);
  cursor: pointer;
  list-style: none;
}

.page-seo .ps-faq summary::-webkit-details-marker {
  display: none;
}

.page-seo .ps-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dv-accent);
}

.page-seo .ps-faq details[open] summary::after {
  content: "−";
}

.page-seo .ps-faq details p {
  margin: 0;
  padding: 0 22px 20px;
}

.page-seo .ps-faq a,
.page-seo .ps-byline a {
  color: var(--dv-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-seo .ps-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-seo .ps-related a {
  position: relative;
  display: block;
  height: 100%;
  padding: 18px 48px 18px 20px;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius);
  background: var(--dv-bg);
  transition: border-color .2s ease, transform .2s ease;
}

.page-seo .ps-related a:hover {
  border-color: var(--dv-accent);
  transform: translateY(-2px);
}

.page-seo .ps-related strong {
  display: block;
  color: var(--dv-navy);
}

.page-seo .ps-related span {
  display: block;
  margin-top: 4px;
  font-size: .9rem;
  color: var(--dv-muted);
}

.page-seo .ps-related i {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--dv-accent);
}

.page-seo .ps-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--dv-line);
  font-size: .9rem;
}

.page-seo .ps-byline i {
  color: var(--dv-accent);
  font-size: 1.25rem;
}

@media (max-width: 575.98px) {
  .page-seo {
    padding-top: 40px;
  }

  .page-seo .ps-block {
    margin-bottom: 36px;
  }
}

/* ---------- Doctors page ---------- */
.doctorspage .doctors-global {
  display: none;
}

.doctors-page {
  padding: 56px 0 8px;
}

.doctors-page .dp-img {
  border-radius: var(--dv-radius);
  box-shadow: var(--dv-shadow);
}

.doctors-page .dp-intro h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.doctors-page .dp-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 72px 0;
}

.doctors-page .dp-profile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius);
  background: #fff;
  box-shadow: var(--dv-shadow);
}

.doctors-page .dp-photo {
  display: flex;
  justify-content: center;
  height: 380px;
  background: linear-gradient(180deg, #eef5ff 0%, #f7fbff 100%);
}

.doctors-page .dp-photo {
  overflow: hidden;
}

.doctors-page .dp-photo picture {
  display: contents;
}

.doctors-page .dp-photo img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.doctors-page .span-title {
  display: block;
  text-align: left;
}

.doctors-page .dp-text {
  padding: 24px 26px 28px;
}

.doctors-page .dp-text h2 {
  margin-bottom: 2px;
  font-size: 1.5rem;
}

.doctors-page .dp-role {
  color: var(--dv-accent);
  font-weight: 500;
}

.doctors-page blockquote {
  margin: 12px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--dv-accent);
  font-style: italic;
}

.doctors-page .dp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.doctors-page .dp-tags a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--dv-accent-soft);
  color: var(--dv-navy);
  font-size: .85rem;
}

.doctors-page .dp-cta {
  color: var(--dv-navy);
  font-weight: 600;
}

.doctors-page .dp-cta i {
  color: var(--dv-accent);
}

.doctors-page .dp-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.doctors-page .dp-values > div {
  padding: 20px;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius);
  background: var(--dv-bg);
}

.doctors-page .dp-values i {
  font-size: 1.75rem;
  color: var(--dv-accent);
}

.doctors-page .dp-values h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}

.doctors-page .dp-values p {
  margin: 0;
  font-size: .95rem;
}

@media (max-width: 575.98px) {
  .doctors-page {
    padding-top: 40px;
  }

  .doctors-page .dp-profiles {
    grid-template-columns: 1fr;
    margin: 48px 0;
  }

  .doctors-page .dp-photo {
    height: 320px;
  }

  .doctors-page .dp-values {
    grid-template-columns: 1fr;
  }
}

/* Appointment type: keep the native required <select> focusable (not display:none),
   so the browser can show its validation message; nice-select draws the visible widget */
.contact-form.appointment .area__dropdown {
  position: relative;
}

.contact-form.appointment .area__dropdown select.nice-select {
  display: block !important;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-form.appointment .nice-select.is-invalid {
  border: 1px solid #e5484d !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .15);
}

.form-status.red {
  background-color: #c4282d;
}

.contact-form.appointment button[type="submit"]:disabled {
  opacity: .6;
  cursor: progress;
}

/* Doctor cards with the waist-up cut-outs (img/doctors/*-2): no legacy offsets */
.home-doctors {
  align-items: stretch;
  gap: 24px;
}

.home-doctors .home-doctor,
.home-doctors .home-doctor.mirrored {
  display: flex;
  align-items: flex-end;
  margin-left: 0;
}

.home-doctors .home-doctor .doc-img,
.home-doctors .home-doctor.mirrored .doc-img {
  width: 100%;
  transform: none;
}

.home-doctors .home-doctor .doc-img img,
.home-doctors .home-doctor.mirrored .doc-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  margin: 0;
  bottom: 0;
  object-fit: contain;
  object-position: bottom;
}

@media screen and (max-width: 575px) {
  .home-doctors .home-doctor .doc-img img {
    margin-top: 0;
    max-height: 420px;
  }
}

.doctors-page .dp-photo {
  height: 460px;
  padding-top: 16px;
}

@media (max-width: 575.98px) {
  .doctors-page .dp-photo {
    height: 380px;
  }
}

@media (min-width: 769px) {
  .home-doctors .home-doctor,
  .home-doctors .home-doctor.mirrored,
  body.home .home-doctors > .home-doctor:first-child {
    flex: 0 1 34rem;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .home-doctors .home-doctor {
    width: 100%;
  }
}

/* Form honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Services overview cards: photo on top, text below, equal heights ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius);
  background: #fff;
  box-shadow: var(--dv-shadow);
  color: inherit;
  transition: transform .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--dv-accent);
}

.service-card picture {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dv-bg);
}

.service-card picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.service-card:hover picture img {
  transform: scale(1.04);
}

.service-card .sc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
}

.service-card h3 {
  margin: 0;
  color: var(--dv-navy);
  font-size: 1.1rem;
  line-height: 1.35;
}

.service-card .sc-teaser {
  color: var(--dv-muted);
  font-size: .92rem;
}

.service-card .sc-more {
  margin-top: auto;
  padding-top: 10px;
  color: var(--dv-navy);
  font-size: .9rem;
  font-weight: 600;
}

.service-card .sc-more i {
  color: var(--dv-accent);
}

/* Overview intro: H1 smaller than the header title above it */
.treatments-intro .content-box h1 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.treatments-intro .content-box p {
  max-width: 720px;
  margin: 0 auto;
}

/* Responsive images: <picture class="rp"> is added around plain <img> by index.php,
   display: contents keeps the <img> laid out as before; child selectors need the extra step */
picture.rp {
  display: contents;
}

.treatment-card > picture.rp > img,
.treatment-card > a > picture.rp > img {
  border-radius: 0;
}

.treatment-card > picture.rp {
  display: none;
}

/* old round images on the home cards stay hidden */
.band-navy .sevices-card .content > picture.rp {
  display: none;
}

/* About block background: JXL, then WebP (900px), then the original JPG */
.about.ho .content-left {
  background-image: url(../img/operation_at_diva_dis_klinik_usak_turkey.jpg);
  background-image: image-set(
    url(../img/operation_at_diva_dis_klinik_usak_turkey-900.jxl) type("image/jxl"),
    url(../img/operation_at_diva_dis_klinik_usak_turkey-900.webp) type("image/webp"),
    url(../img/operation_at_diva_dis_klinik_usak_turkey.jpg) type("image/jpeg")
  );
}
