/* ==================================================================
   Vital Hospital — public site design overlay
   ------------------------------------------------------------------
   Loaded LAST (after style.css + dad.css), so every rule here wins by
   cascade order at equal specificity. This file is the single home for
   the 2026 UX/visual refresh: emptying it fully reverts the design.

   Goals (owner brief): attractive · informative · not boring ·
   easily reachable · NOT-very-big buttons · calm & trustworthy for a
   patient audience (incl. elderly). WCAG 2.1 AA in mind throughout.

   Direction: ONE coherent palette = navy (brand) + a calm medical
   teal accent + neutral grays. The chaotic orange / yellow / green /
   competing teals & pinks of the legacy theme are unified here.
   To re-theme the whole site, change --accent below.
   ================================================================== */

:root {
  /* Brand */
  --navy:        #223a66;   /* primary — logo / header / headings / buttons */
  --navy-d:      #182a4d;   /* darker navy for active/hover depth */
  --navy-50:     #eef2f8;   /* navy tint surface */

  /* Single accent — calm medical teal */
  --accent:      #0e8c97;   /* icons · dividers · highlights · focus ring */
  --accent-d:    #0a6b74;   /* accent for TEXT/links (AA on white) */
  --accent-50:   #e7f3f4;   /* teal tint surface */

  /* Neutrals */
  --ink:         #1d2733;   /* body text */
  --muted:       #5c6b7e;   /* secondary text */
  --line:        #e5e9f0;   /* hairline borders */
  --bg:          #f5f8fc;   /* page background */
  --card:        #ffffff;

  /* Shape & depth — calm, restrained */
  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   20px;
  --shadow:      0 4px 14px rgba(31, 58, 99, .08);
  --shadow-lg:   0 12px 30px rgba(31, 58, 99, .14);

  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------
   1. Base
   ------------------------------------------------------------------ */
body {
  font-family: var(--font);
  color: var(--ink);
  /* Replace the fixed-attachment bodi1.png texture with a calm wash */
  background: linear-gradient(180deg, #f8fafd 0%, var(--bg) 100%) !important;
  background-attachment: scroll !important;
}

body, p { font-family: var(--font); }

/* ------------------------------------------------------------------
   2. Typography — a sane, readable scale (legacy h2 was 44px / .text-lg 50px)
   ------------------------------------------------------------------ */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.25;
}
h1, .h1 { font-size: 2.25rem; }      /* ~36px */
h2, .h2 { font-size: 1.9rem; }       /* ~30px */
h3, .h3 { font-size: 1.4rem; }       /* ~22px */
h4, .h4 { font-size: 1.15rem; line-height: 1.5; }
h5, .h5 { font-size: 1.05rem; }
h6, .h6 { font-size: 0.95rem; }
p  { line-height: 1.7; }

.text-lg      { font-size: 2.25rem; }     /* highlights only (was 50px) */
.content-title{ font-size: 2rem; line-height: 1.3; }
.text-md      { font-size: 1.6rem; }
.section-title{ margin-bottom: 48px; }
.section-title h2, .title-color, .text-color { color: var(--navy); }

@media (max-width: 992px) {
  h1, .h1 { font-size: 1.9rem; }
  h2, .h2 { font-size: 1.6rem; }
  .text-lg { font-size: 1.8rem; }
}
@media (max-width: 576px) {
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.4rem; line-height: 1.3; }
  h3, .h3 { font-size: 1.25rem; }
  .text-lg { font-size: 1.5rem; }
  .section-title { margin-bottom: 32px; }
}

/* The page-title hero overlay keeps the navy brand wash */
.overlay:before { background: var(--navy); }
.page-title .block h1 { text-shadow: 0 2px 12px rgba(0,0,0,.25); }

/* ------------------------------------------------------------------
   3. Links + visible focus (legacy stripped focus everywhere)
   ------------------------------------------------------------------ */
a { color: var(--navy); }
a:hover, a:focus { color: var(--accent-d); }

/* Keyboard focus ring — wins over the theme's outline:none at equal
   specificity because this file loads later. Mouse clicks (which match
   :focus but not :focus-visible) stay ring-free. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.navbar-toggler:focus-visible,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);   /* 4.03:1 on white — passes 3:1 for UI components */
  outline-offset: 2px;
  border-radius: 4px;
}
/* On navy grounds (top bar + non-sticky header nav) the teal ring is only
   2.8:1, so use a light teal there for >=3:1 (9.2:1 on navy). */
.top-bar a:focus-visible,
.header-two .site-navigation:not(.navbar-fixed) a:focus-visible {
  outline-color: #cfeef0;
}

.form-control:focus,
input[type=email]:focus, input[type=password]:focus,
input[type=text]:focus, input[type=tel]:focus, input[type=date]:focus,
input[type=time]:focus, input[type=email]:focus, textarea:focus, select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(34, 58, 102, .18);
}

/* ------------------------------------------------------------------
   4. Buttons — smaller, softer, Title Case (owner: "not very big buttons")
   ------------------------------------------------------------------ */
.btn {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .2px;
  text-transform: none;            /* was UPPERCASE */
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  line-height: 1.4;
}
.btn-round-full { border-radius: 999px; }

.btn-main,
.service .btn-main,
section .btn-main {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-main:hover, .btn-main:focus {
  background: var(--accent-d);          /* white text needs AA 4.5:1 → darker teal (6.2:1) */
  border-color: var(--accent-d);
  color: #fff;
}
.btn-main-2 { background: var(--accent-d); border-color: var(--accent-d); color:#fff; }
.btn-main-2:hover { background: var(--navy); border-color: var(--navy); color:#fff; }
.btn-solid-border { border-color: var(--navy); color: var(--navy); }
.btn-solid-border:hover { background: var(--navy); color:#fff; }

/* ------------------------------------------------------------------
   5. Skip-to-content link (added to layout)
   ------------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 2000;
  background: var(--navy);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color:#fff; }

/* ------------------------------------------------------------------
   6. Top bar — fix yellow-on-navy (failed contrast), add tel: styling
   ------------------------------------------------------------------ */
.top-bar { background: var(--navy); }
ul.top-info li p.info-text a:hover,
.top-social ul li a:hover { color: #fff; text-decoration: underline; }
.top-bar a.tel-link { color:#fff; font-weight:600; }
.top-bar .lang-sep { opacity:.5; }
#aktiv { font-weight: 700; text-decoration: underline; }

/* Emergency / quick-call badge in the top bar */
.top-emergency {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-d);          /* white text → AA-safe darker teal (6.2:1) */
  color: #fff !important;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.6;
}
.top-emergency:hover { background: var(--navy); color:#fff !important; }

/* ------------------------------------------------------------------
   7. Header + navigation — reliably sticky, calm hover/active, smaller logo
   ------------------------------------------------------------------ */
.header-two { background: var(--navy); }

/* CSS-first sticky baseline (independent of the JS .navbar-fixed toggle).
   Scoped with :not(.navbar-fixed) so that once the theme's scroll JS adds
   .navbar-fixed (position:fixed + its own margin compensation) that state
   wins cleanly and the two mechanisms never fight. */
.header-two .site-navigation:not(.navbar-fixed) {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-two .navbar-fixed {
  background: #fff;
  border-bottom: 2px solid var(--navy);
  box-shadow: var(--shadow);
}

/* nav links: white on navy; hover/active use the accent, not yellow */
ul.navbar-nav > li > a { color: #fff; font-weight: 500; }
ul.navbar-nav > li:hover > a,
ul.navbar-nav > li.active > a,
.header-two ul.navbar-nav > li > a.active {
  color: #cfeef0 !important;          /* light teal tint — AA on navy */
}
.navbar-fixed ul.navbar-nav > li > a { color: var(--navy) !important; }
.navbar-fixed ul.navbar-nav > li:hover > a,
.navbar-fixed ul.navbar-nav > li.active > a { color: var(--accent-d) !important; }
ul.navbar-nav > li.active > a { position: relative; }

/* Dropdowns: navy/teal instead of yellow borders + hovers */
.dropdown-menu { border-top: 3px solid var(--accent); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg); }
.dropdown-menu li a:hover, .dropdown-menu li a:focus {
  background: var(--navy-50);
  color: var(--navy);
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover { background: var(--accent-d); color:#fff; }

/* Cap height + scroll ONLY the long flat Poliklinka list (.dropdown-scroll).
   Must NOT apply to dropdowns that contain dropright sub-menus (e.g. Bölmələr):
   overflow-y:auto also clips the x-axis, hiding the submenus that open to the
   right. Those keep overflow:visible. */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu.dropdown-scroll { max-height: 78vh; overflow-y: auto; }
  .navbar-nav .dropdown-menu { overflow: visible; }
}

/* Logo: 100px was large & jumped to 55px when sticky — standardize */
.logo img { height: 70px; padding: 10px; }
.header-two .logo img { height: 70px; }
@media (max-width: 576px) { .logo img { height: 52px; padding: 6px; } }
.slogan { color: var(--navy); font-weight: 500; }

/* Mobile hamburger: the theme painted it RED — brand it teal (stands out on
   the navy bar, matches the accent) with the white icon it already has. */
.navbar-toggler,
.navbar-light .navbar-toggler {
  background: var(--accent-d);
  border: none;
  border-radius: var(--radius-sm);
}
.navbar-toggler:hover { background: var(--accent); }

/* White brand bar (logo + slogan) above the nav: taller, with both sides
   truly centred on the vertical axis (the theme pushed the slogan down with
   a margin-top:30px hack on .orta). */
.brand-bar .row { min-height: 104px; }
.brand-bar .orta {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
@media (max-width: 767px) { .brand-bar .row { min-height: 72px; } }

/* ------------------------------------------------------------------
   8. Hero carousel — softer radius, container-aligned width
   ------------------------------------------------------------------ */
/* Constrained to the same width as every .container section below it, so the
   hero lines up with the page instead of bleeding to the viewport edges. */
.karusel {
  margin-left: auto;
  margin-right: auto;
  max-width: 1140px;
  padding-left: 15px;
  padding-right: 15px;
}
/* overflow:hidden makes the radius actually clip the slide image — without it
   the artwork's own background squared off the corners. */
.carousel-inner {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.karusel .carousel-item img {
  border-radius: var(--radius-lg);
  display: block;
  width: 100%;
}
@media (max-width: 1199px) { .karusel { max-width: 960px; } }
@media (max-width: 991px)  { .karusel { max-width: 720px; } }
@media (max-width: 767px)  { .karusel { max-width: 540px; } }
@media (max-width: 575px)  { .karusel { max-width: 100%; } }

/* Compact circular nav buttons — centred vertically and inset from the edges,
   instead of Bootstrap's default full-height 15% side strips that ate into the
   image (and the over-padded icon) on both sides. */
.karusel .carousel-control-prev,
.karusel .carousel-control-next {
  width: 42px;
  height: 42px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  margin: 0 16px;
  border-radius: 50%;
  background: rgba(34, 58, 102, .42);
  opacity: 1;
  z-index: 996;           /* above the floating rail (990) so the arrow is always clickable */
  transition: background .2s ease;
}
.karusel .carousel-control-prev { left: 0; }
.karusel .carousel-control-next { right: 0; }
.karusel .carousel-control-prev:hover,
.karusel .carousel-control-next:hover { background: var(--navy); }
.karusel .carousel-control-prev-icon,
.karusel .carousel-control-next-icon {
  width: 15px;
  height: 15px;
  background-size: 100% 100%;
}
@media (max-width: 767px) {
  .carousel-inner,
  .karusel .carousel-item img { border-radius: 10px; }
  .karusel .carousel-control-prev,
  .karusel .carousel-control-next { width: 34px; height: 34px; margin: 0 8px; }
}

/* ------------------------------------------------------------------
   9. Floating quick-links rail — compact (owner: "not very big buttons"),
      and a persistent Randevu CTA on mobile (legacy hid it < 575px)
   ------------------------------------------------------------------ */
/* Anchored low on the right so the stack sits BELOW the carousel's centred
   next-arrow (they used to collide and the rail intercepted the click).
   z-index kept under the arrows (996) and the sticky nav (1000). */
/* Flex column with every item pinned to the right edge (align-items:flex-end):
   each pill is icon-only by default and expands LEFTWARD on hover/focus, so
   siblings never shift and the full label is always inside the viewport.
   (Old approach pushed 188px buttons translateX(132px) off-screen → only a
   ~56px sliver of icon + first letter showed, which read as "clipped".) */
.fixed {
  top: auto; bottom: 24px; right: 0; height: auto; width: auto; z-index: 990;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.fixed .button {
  width: auto; margin-bottom: 0; line-height: 1; font-size: 14px;   /* zero base .button margin/line-height */
  border-radius: 999px 0 0 999px; box-shadow: var(--shadow);
}
.fixed .buttonDiv {
  display: flex; align-items: center;
  height: 46px; padding: 0 14px;
  border-radius: 999px 0 0 999px;
  background: var(--navy); color: #fff;
  overflow: hidden; white-space: nowrap;
}
.fixed .buttonDiv:hover { margin-left: 0; }   /* neutralise base .buttonDiv:hover{margin-left:-140px} */
.fixed .buttonDiv img { width: 22px; height: 22px; flex: none; }
/* Label: collapsed to zero width (clean icon-only tab); revealed on hover/focus. */
.fixed .rail-label {
  max-width: 0; opacity: 0; margin-left: 0; overflow: hidden;
  transition: max-width .35s ease, opacity .25s ease, margin-left .35s ease;
}
.fixed .button:hover .rail-label,
.fixed .button:focus-within .rail-label { max-width: 220px; opacity: 1; margin-left: 10px; }
/* Colour feedback tracks the SAME trigger as the label (hover AND keyboard focus). */
.fixed .bg-b-blue, .fixed .bg-b-blue:hover { background: var(--navy); }
.fixed .button:hover .buttonDiv,
.fixed .button:focus-within .buttonDiv { background: var(--accent-d); }   /* white text → AA */
.fixed .button:first-child .buttonDiv { background: var(--accent-d); }    /* Randevu stands out (6.2:1) */
.fixed .button:first-child:hover .buttonDiv,
.fixed .button:first-child:focus-within .buttonDiv { background: var(--navy); }

@media (max-width: 575px) {
  /* Show ONE always-reachable Randevu pill bottom-right instead of hiding all */
  .fixed { right: 12px; bottom: 16px; }
  .fixed .button { display: none; }
  .fixed .button:first-child { display: block; }
  .fixed .button:first-child .buttonDiv {
    border-radius: 999px; height: 52px; padding: 0 22px;
    font-weight: 700; box-shadow: var(--shadow-lg);
  }
  .fixed .button:first-child .rail-label { max-width: 220px; opacity: 1; margin-left: 10px; }
}

/* ------------------------------------------------------------------
   10. Feature cards (3D) — keep the flair on desktop, calm on touch
   ------------------------------------------------------------------ */
.card { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.glass { border-radius: var(--radius-lg); border-top-right-radius: 100%; border-left-color: var(--accent); }
.contentcard .title { color: var(--navy); }
.bottom .view-more .view-more-button:hover { color: var(--accent-d); }
.logocard .circle { background: var(--accent-50); }
.bottom .social-buttons-container .social-button .svg,
.bottom .social-buttons-container .social-button i { color: var(--accent-d); }
.bottom .social-buttons-container .social-button:hover { background: var(--navy); }

@media (hover: hover) and (min-width: 769px) {
  /* (3D tilt only where a real pointer exists) */
}
@media (max-width: 768px) {
  .parent:hover .card { transform: none; }
  .card { box-shadow: var(--shadow); }
  .bottom .social-buttons-container { display: none; }   /* was visibility:hidden (reserved space) */
}

/* ------------------------------------------------------------------
   11. Counters — give the band a navy ground (white text was invisible)
   ------------------------------------------------------------------ */
.cta-section { margin: 40px 0; }
.cta-section .cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-lg);
}
/* style.css gives .cta:before a 50px radius over a 20px parent, so the tint
   pulled away from the corners and the navy ground showed through as dark
   wedges. Matching the radius (and clipping the parent) closes the gap. */
.cta-section .cta { overflow: hidden; }
.cta-section .cta:before { border-radius: var(--radius-lg); }
.counter-stat { text-align: center; }
.counter-stat span, .counter-stat p { color: #fff; }
.counter-stat p {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin: 6px 0 0;
  font-size: 15px;
}
.counter-stat i { color: rgba(255,255,255,.10); }
.counter-stat .counter {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.5px;
}
/* Was a bare "+" text node after </span>: it inherited body type, so it sat
   small and baseline-aligned next to a 44px numeral. Now a sized element,
   raised to align with the digits' cap height. */
.counter-stat .counter-plus {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-50);
  margin-left: 3px;
  vertical-align: 14px;
}
@media (max-width: 767px) {
  .counter-stat .counter { font-size: 34px; }
  .counter-stat .counter-plus { font-size: 19px; vertical-align: 10px; }
  .cta-section .cta { padding: 20px 14px; }
  .counter-stat { margin-bottom: 14px; }
}

/* ------------------------------------------------------------------
   12. Service / specialty tiles — calm lift (was skewY + orange),
       and styled descriptions for the now-populated .content
   ------------------------------------------------------------------ */
.service { padding-top: 18px; }
/* Cards are equal-height anchors (height:100%), so the inner mb-4 collapses
   against the stretched column and leaves no gap between wrapped rows.
   Drive the vertical rhythm from the row instead. */
.service .row { row-gap: 26px; }
.service .row .service-item { margin-bottom: 0 !important; }
.service .service-item, .service-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service .service-item:hover, a.service-item:hover {
  background: var(--card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  border-radius: var(--radius);     /* cancel the asymmetric legacy radius */
  text-decoration: none;
}
.service .icon { float: none; display: flex; align-items: center; }
.service i, .service-item i { color: var(--accent); }
.service h3, .service h4,
.service-item h3, .service-item h4 { padding-left: 14px; margin-bottom: 6px; color: var(--navy); }
a.service-item:hover h3, a.service-item:hover h4,
.service .service-item a h4:hover { color: var(--accent-d); }
.service .content, .service-item .content {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  margin-top: 4px;
}
/* Long single-word names (“Otorinolarinqologiya”) may never push the tile wider */
.service .service-item h3 { font-size: 1.25rem; overflow-wrap: break-word; min-width: 0; }
.service .service-item .icon i { flex: none; }

/* dividers / small accents */
.divider { background: var(--accent); }

/* ------------------------------------------------------------------
   13. Appointment form — remove the 50px slide, tighter fields
   ------------------------------------------------------------------ */
.appoinment-content:hover { transform: none; }
.appoinment-content img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.appoinment-form .form-control {
  background: #fff;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.appoinment-form label, .contact__form label, .form-label {
  display: block; font-weight: 600; color: var(--navy);
  font-size: .9rem; margin-bottom: 6px;
}
.form-label .req, .req-mark { color: var(--accent-d); }
@media (max-width: 768px) { .appoinment-form .form-control { height: 46px; } }

/* ------------------------------------------------------------------
   14. FAQ — navy/teal instead of teal-blue #0099c1
   ------------------------------------------------------------------ */
/* Fixed rhythm: the theme's `padding: 10vh 0 0` made the gap above this
   section swing with viewport height (huge on tall screens). */
.faq-section { padding: 56px 0 8px; }
/* Accordion and illustration centre on each other instead of top-hanging */
.faq-section .row { align-items: center; }
.skl { display: flex; justify-content: center; }
.skl img { width: 100%; max-width: 540px; }
.faq { box-shadow: var(--shadow); border-radius: var(--radius); }
.faq-title h2::before { background: var(--accent); }
.faq .cardfaq { border-bottom: 1px solid var(--line); }
.faq .cardfaq .card-header:hover { background: var(--navy-50); }
.faq .cardfaq .card-header .faq-title .badge { background: var(--accent-d); }   /* number is text → AA */
.faq .cardfaq .card-header .faq-title { color: var(--navy); font-weight: 500; }
.skl:hover { transform: translateY(-12px); }     /* was -60px */
.skl img { border-radius: var(--radius-lg); }

/* ------------------------------------------------------------------
   15. .cardx service-sidebar tiles (dad.css 350×84, 1.5em) — shrink & recolor
   ------------------------------------------------------------------ */
.cardx {
  width: 100%;
  max-width: 280px;
  height: 54px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--navy);
  box-shadow: var(--shadow);
  margin-top: 12px;
  margin-left: auto; margin-right: auto;
}
.cardx::before { background: var(--accent-d); }   /* white text sweeps in on hover → AA */
.cardx:hover { color: #fff; box-shadow: var(--shadow-lg); }
/* Each cardx sits one-per-row, full sidebar width, with clear spacing.
   (Bootstrap .nav flex-wrap was placing them 2-up and touching.) */
.service-menu > a { display: block; width: 100%; }
.service-menu > a .cardx { max-width: 100%; margin: 14px auto 0; }
.sidebar .widget { margin-bottom: 28px; }
.sidebar-heading { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 6px 0 10px; }

/* In-page service-menu list (laparoskopik / lab / about menus) */
.sidebar ul.service-menu li a {
  background: var(--navy);
  border-radius: var(--radius-sm);
  text-align: left;
  font-weight: 500;
}
.sidebar ul.service-menu li.active a,
.sidebar ul.service-menu li:hover a { background: var(--accent-d); }   /* white text → AA */
.sidebar ul.service-menu li a:hover { color: #fff; }

/* ------------------------------------------------------------------
   16. Content cards: .qobi · .cardo (9 Ay) · .pelo11/.dok11 · blog cards
   ------------------------------------------------------------------ */
/* Check-up / Aksiya & Həkim məsləhəti tiles — uniform image size + equal-height
   cards (images have different native aspect ratios and captions vary in length,
   which made every tile a different height/size). */
.qobi { display: flex; margin-bottom: 26px; }
.qobi > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.qobi > a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.qobi img {
  width: 100%;
  max-width: none;          /* was 330px */
  height: 230px;            /* identical image area for every card */
  object-fit: cover;
  border-radius: 0;         /* the card owns the corners now */
  box-shadow: none;
}
.qobi1 {
  flex: 1 1 auto;           /* caption fills the remaining height → equal cards */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;                /* was margin-bottom:50px */
  padding: 16px 18px;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.4;
}
.qobi1:hover, .qobi > a:hover .qobi1 { color: var(--accent-d); }
@media (max-width: 575px) { .qobi img { height: 200px; } }

.cardo {
  width: 300px; max-width: 100%;
  background: var(--accent-50);
  border: 1px solid var(--accent);
  color: var(--navy);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
  box-shadow: var(--shadow);
}
.cardo .headingo { font-size: 1.4rem; }
.cardo:hover {
  background: var(--accent-d);          /* white text → AA */
  color: #fff;
  scale: 1; rotate: 0deg;             /* drop the 8deg spin */
  transform: translateY(-4px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.dog1 { border-radius: var(--radius); box-shadow: var(--shadow); color: var(--navy); }
.dog1:hover { transform: translateX(-8px); color: var(--accent-d); }

/* Article / detail body containers — were heavy gray inset boxes */
.pelo11, .dok11 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  color: var(--ink);
}
@media (max-width: 576px) { .pelo11, .dok11 { padding: 22px; } }
.basliq h2 { color: var(--navy); font-size: 1.9rem; }

/* Editor-embedded media (Quill ql-video + pasted img/table) stays responsive and
   inside the article/blog body card. Overrides the old .ql-video{width:50%;
   height:100%} which kept the iframe's native 480x306 and let it overflow .pelo11. */
.ql-video,
.pelo11 iframe,
.dok11 iframe,
.article-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  margin: 1rem 0;
}
/* Nothing pasted into a body card may exceed its width. */
.pelo11 img, .pelo11 video, .pelo11 iframe, .pelo11 table,
.dok11 img, .dok11 video, .dok11 iframe, .dok11 table { max-width: 100%; }
.pelo11 img, .pelo11 video, .dok11 img, .dok11 video { height: auto; }
/* Wide tables scroll inside the card instead of pushing the page wider. */
.pelo11 table, .dok11 table { display: block; overflow-x: auto; }
.pelo11, .dok11 { height: auto; overflow-wrap: break-word; }

.sekilblog img { border-radius: var(--radius); box-shadow: var(--shadow); }

.department-block img { height: 210px; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.department-block .content .read-more { color: var(--accent-d); font-weight: 600; }
.department-block .content .read-more:hover { color: var(--navy); letter-spacing: normal; }
.read-more { color: var(--accent-d); }

/* ------------------------------------------------------------------
   17. Doctors
   ------------------------------------------------------------------ */
/* The doctors grid no longer uses Shuffle.js (absolute positioning that
   overlapped cards when lazy images measured 0px). It is a plain Bootstrap
   row now; .h-100 + the column's mb-4 give equal heights and clean spacing. */
.doctors-grid .doctor-inner-box {
  display: flex;
  flex-direction: column;
}
.doctor-inner-box {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.doctor-inner-box:hover { box-shadow: var(--shadow-lg); }
.doctor-inner-box .content { padding: 4px 12px 18px; }
.doctor-inner-box .content h4 { font-size: 1.05rem; line-height: 1.3; }
.doctor-inner-box .content p { font-size: .9rem; }
.doctor-inner-box .content h4 a { color: var(--navy); }
.doctor-inner-box .content h4 a:hover { color: var(--accent-d); }
.doctor-inner-box .content p { color: var(--muted); margin: 0; }
.doctor-info li i { color: var(--accent); }

/* ------------------------------------------------------------------
   18. Footer — retire orange #ff5e14 / red hovers
   ------------------------------------------------------------------ */
.footer-section { background: #fff; border-top: 1px solid var(--line); padding-top: 52px; margin-top: 40px; }
.footer-section > .container > h2 { margin-bottom: 10px; }
@media (max-width: 576px) { .footer-section { padding-top: 32px; margin-top: 24px; } }
.single-cta i { color: var(--accent); }
.cta-text h4 { color: var(--navy); }
.footer-widget-heading h3 { color: var(--navy); }
.footer-widget-heading h3::before { background: var(--accent); }
.footer-widget ul li a:hover { color: var(--accent-d); }
.footer-social-icon a { color: var(--navy); }
.footer-social-icon a:hover { color: var(--accent); }
.footer-social-icon span { color: var(--navy); }
.copyright-area { border-top: 1px solid var(--line); }
.copyright-text p a, .copyright-text p:hover a { color: var(--accent-d); }
.footer-cta { border-bottom: 1px solid var(--line); }
.footer-randevu {
  display:inline-flex; align-items:center; gap:8px; margin-top:24px;
}

/* ------------------------------------------------------------------
   19. Breadcrumbs (rendered under the page-title h1)
   ------------------------------------------------------------------ */
.breadcrumb-nav { margin-top: 14px; }
.breadcrumb-nav ol {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin: 0; padding: 0; list-style: none;
  font-size: .9rem;
}
.breadcrumb-nav li { color: rgba(255,255,255,.85); }
.breadcrumb-nav li + li::before { content: "›"; padding-right: 6px; opacity: .7; }
.breadcrumb-nav a { color: #fff; text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; color:#fff; }
.breadcrumb-nav li[aria-current] { color: #cfeef0; font-weight: 600; }

/* ------------------------------------------------------------------
   20. Back-to-top button (wires the unused .scroll-top-to / .backtop JS)
   ------------------------------------------------------------------ */
.scroll-top-to {
  position: fixed; left: 16px; right: auto; bottom: 16px;   /* bottom-LEFT: the rail now owns bottom-right */
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff;
  border: none; border-radius: 50%;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 998; cursor: pointer; font-size: 20px;
}
.scroll-top-to.reveal { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-to:hover { background: var(--accent); color:#fff; }

/* ------------------------------------------------------------------
   21. Responsive safety — kill the .w-100{width:200%} overflow bug,
       constrain stray fixed-width images
   ------------------------------------------------------------------ */
@media (max-width: 646px) {
  .w-100 { width: 100% !important; height: auto !important; }
}
img { max-width: 100%; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------
   23. Symmetry pass (2026-08): equal-size media, centred groups
   ------------------------------------------------------------------ */
/* Home “Haqqımızda”: the two stacked photos had different native sizes —
   crop both to the same 4:3 box so the column reads as one unit. */
.about .about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Brand logo between the photos and the text: cap it on stacked layouts,
   where col-lg-2 no longer limits its width. */
.about .about-logo img { max-width: 200px; }

/* Corporate partners: one centred row of uniform logo boxes */
.partners-row { row-gap: 18px; }
.partners-row .client-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 108px; padding: 0 18px;
}
.partners-row .client-thumb img { max-height: 84px; width: auto; object-fit: contain; }

/* News / blog card grid: equal card heights with “Daha Ətraflı” pinned to the
   bottom, so the link lines up across a row despite 1–2 line titles. */
.department-block { display: flex; flex-direction: column; height: calc(100% - 3rem); }
.department-block .content { display: flex; flex-direction: column; flex: 1 1 auto; }
.department-block .content .read-more { margin-top: auto; padding-top: 10px; }

/* “Biz kimik?” article carousel: uniform 4:3 crop inside a soft card */
.about-carousel .carousel-inner { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-carousel .carousel-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ------------------------------------------------------------------
   22. Motion restraint — respect users who ask for less
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .parent:hover .card,
  .service .service-item:hover,
  .cardx:hover,
  .cardo:hover,
  .skl:hover,
  .doctor-inner-box .doctor-profile .doctor-img:hover { transform: none !important; }
}

/* Image-zoom hover only with a real pointer (sticks on touch otherwise) */
@media (hover: none) {
  .doctor-inner-box .doctor-profile .doctor-img:hover { transform: none; }
}

/* ------------------------------------------------------------------
   20. Foto Galereya — uniform thumbnail grid + room under the title.
       The base .projects{margin-top:-120px} crammed the grid up under
       the page-title hero; images kept their native sizes so rows were
       ragged. Now every tile is a cropped 4:3 box of equal height.
   ------------------------------------------------------------------ */
#media.gallery-section { margin-top: 0; padding-top: 48px; padding-bottom: 64px; }
/* Vertical gap between rows: the row's `gy-4` is Bootstrap-5 only and inert on
   this BS4 build, so add it explicitly (horizontal gap comes from the BS4
   .col padding). ~30px matches the column gutter for an even grid. */
#media .portfolio-item { margin-bottom: 30px; }
#media .portfolio-content {
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#media .portfolio-content img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;       /* crop to fill — uniform tiles regardless of source size */
  margin-bottom: 0;        /* row gap (gy-4) is the single source of vertical spacing */
  border-radius: var(--radius);
}
