/* ============================================================
   Dr. Sabri ENT – style.css
   Palette: #31144c (deep purple) · #6610f2 (vivid purple)
   Font: Inter
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-dark:          #31144c;
  --color-primary:       #6610f2;
  --color-primary-light: #8b44f7;
  --color-white:         #ffffff;
  --color-off-white:     #f7f4fc;
  --color-text:          #1a1a2e;
  --color-muted:         #6b6b6b;
  --color-border:        #e5dff0;

  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 12px rgba(49,20,76,.07);
  --shadow-md: 0 8px 32px rgba(49,20,76,.13);

  --transition: .3s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--color-text); background: var(--color-white); overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ---------- CONTAINER ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
/* ============================================================
   PAGE LAYOUT — card-per-section system
   Each section sits as a distinct card on a neutral canvas.
   ============================================================ */

/* Outer wrapper — adds horizontal padding so cards don't touch viewport edges */
.page-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 84px 24px 64px;   /* top padding clears the fixed white navbar */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card shell — no border, rounded corners, alternating backgrounds */
.section-card {
  background: var(--color-white);
  border: none;
  border-radius: 24px;
  overflow: hidden;
}

/* Section backgrounds controlled individually below */

/* ---------- SECTION UTILITIES ---------- */
.section-pad   { padding: 96px 0; }
.section-title { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; letter-spacing: -.025em; color: var(--color-dark); line-height: 1.15; }
.section-title.centered { text-align: center; }
.section-sub   { color: var(--color-muted); line-height: 1.7; max-width: 560px; font-size: .95rem; }
.section-header{ display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 52px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: .82rem; border-radius: 8px; }

.btn-dark    { background: var(--color-dark); color: white; }
.btn-dark:hover { background: #45196e; transform: translateY(-2px); }

.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,16,242,.3); }

.btn-outline-white { background: rgba(255,255,255,.12); color: white; border: 2px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-outline-white:hover { background: rgba(255,255,255,.22); border-color: white; transform: translateY(-2px); }

.btn-outline-dark { background: transparent; color: var(--color-dark); border: 2px solid var(--color-dark); }
.btn-outline-dark:hover { background: var(--color-dark); color: white; transform: translateY(-2px); }


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: var(--color-white);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner { display: flex; align-items: center; gap: 12px; }

/* Logo — text-only, two-line style matching reference */
.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
}
.logo-tagline {
  font-size: .72rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-style: italic;
}

/* Nav links — dark on white */
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links a { color: var(--color-text); font-size: .9rem; font-weight: 500; transition: color var(--transition); display: flex; align-items: center; gap: 5px; }
.nav-links a:hover { color: var(--color-primary); }

/* Dropdown — white card */
.dropdown { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: var(--color-white); border-radius: var(--radius-sm); min-width: 180px; box-shadow: var(--shadow-md); padding: 8px 0; border: 1px solid var(--color-border); }
.dropdown li a { display: block; padding: 10px 18px; font-size: .875rem; color: var(--color-text); white-space: nowrap; }
.dropdown li a:hover { color: var(--color-primary); background: var(--color-off-white); }
.has-dropdown:hover .dropdown { display: block; }

.nav-cta { margin-left: 16px; }

/* Hamburger — dark on white */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-dark); border-radius: 2px; transition: var(--transition); }


/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 88vh; min-height: 560px; border-radius: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }

/* Hero+logos wrapper — the actual card */
.hero-card-wrap { overflow: hidden; }

.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04); }
.hero-slide.active { opacity: 1; animation: kenBurns 8s ease forwards; }
@keyframes kenBurns { from { transform: scale(1.04); } to { transform: scale(1); } }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,8,20,.75) 0%, rgba(10,8,20,.45) 60%, rgba(10,8,20,.2) 100%); }

.hero-inner { position: relative; z-index: 2; padding: 0; }
.hero-text { max-width: 600px; }
.hero-title {
  font-size: clamp(1.4rem, 2.9vw, 2.7rem);
  font-weight: 700;
  line-height: 1.12;
  color: white;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  transition: opacity .4s ease, transform .4s ease;
  padding-left: 28px;
  border-left: 5px solid var(--color-primary);
}
.hero-desc {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 680px;
  padding-left: 28px;
  transition: opacity .4s ease, transform .4s ease;
}
/* Class applied during text swap */
.hero-text-fade {
  opacity: 0;
  transform: translateY(10px);
}

.hero-word-bg { display: none; }

.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.hero-dot.active { background: white; width: 24px; border-radius: 4px; }


/* ============================================================
   LOGO BAR
   ============================================================ */
.logo-bar {
  background: var(--color-white);
  padding: 24px 0;
  border-top: 1px solid #ede8f8;
}

.logo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
}

/* Each logo is a clickable <a> tag with an <img> inside */
.logo-item-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--transition);
}
.logo-item-img:hover { transform: translateY(-2px); }

.logo-item-img img {
  height: 75px;         /* 25% larger than 60px */
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter .4s ease;
}

/* Full colour on hover */
.logo-item-img:hover img {
  filter: grayscale(0%) opacity(1);
}

@media (max-width: 600px) {
  .logo-item-img img { height: 56px; max-width: 172px; }
  .logo-list          { gap: 16px 28px; }
}


/* ============================================================
   ABOUT  — two-column: text left · photo collage right
   ============================================================ */
.about { }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── LEFT side ── */
.about-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.about-desc {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: 16px;
  max-width: 100%;
}
.about-desc:last-of-type { margin-bottom: 28px; }

/* Counter row: box + description side by side */
.about-counter-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(49,20,76,.12);
}

.about-counter-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 2px;
  min-width: 120px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px 12px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.about-counter-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1;
}

.about-counter-plus {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1;
  margin-left: 2px;
}

.about-counter-box p {
  width: 100%;
  font-size: .78rem;
  color: var(--color-muted);
  margin-top: 6px;
}

.about-counter-desc {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--color-muted);
  padding-top: 4px;
}

.about-cta { align-self: flex-start; }

/* ── RIGHT side: photo collage ── */
.about-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;                     /* photos overlap via negative margin */
}

/* TOP ROW: feature card (left) + clinic photo with badge (right) */
.about-photos-top {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 12px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Blue feature card — top-left */
.about-feature-card {
  background: var(--color-primary);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  color: white;
  min-height: 200px;
}
.about-feature-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.22);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.about-feature-card p {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  color: white;
}

/* Clinic photo wrapper — holds photo + badge together */
.about-photo-top-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;          /* lets badge overflow the corner */
}
.about-photo-top {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
}
.about-photo-top img {
  width: 100%; height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Spinning badge — sits on bottom-right corner of top-right photo */
.about-spin-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 92px; height: 92px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  border: 3px solid white;
}
.about-spin-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spinRing 14s linear infinite;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.about-spin-arrow {
  color: white;
  font-size: 1.2rem;
  z-index: 1;
}

/* BOTTOM: large main portrait — left-aligned, overlaps top row */
.about-photo-main {
  border-radius: 20px;
  overflow: hidden;
  width: 60%;          /* 40% narrower — centred in column */
  margin: 0 auto;
  position: relative;
  z-index: 0;
}
.about-photo-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}


/* ============================================================
   CREDENTIALS
   ============================================================ */
.credentials { }

/* Section heading + underline rule */
.cred-section-header { text-align: center; margin-bottom: 52px; }
.cred-title-line { width: 80px; height: 3px; background: var(--color-dark); border-radius: 2px; margin: 18px auto 0; }

/* 3-column grid — each card grows vertically when expanded */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;   /* cards don't stretch to match tallest — each grows on its own */
}

/* Card wrapper — vertical flex so content stacks cleanly */
.credential-card {
  background: var(--color-white);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.credential-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(102,16,242,.1);
}

/* Top block: large icon centered, then title + label below */
.cred-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* Large centered icon box — matches reference */
.cred-icon {
  width: 110px; height: 110px;
  background: #ede8f8;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Title + label — centered below icon */
.cred-meta { min-width: 0; text-align: center; }
.cred-stat  { font-size: 1.5rem; font-weight: 800; color: var(--color-dark); line-height: 1.2; margin-bottom: 4px; }
.cred-label { font-size: .82rem; color: var(--color-muted); line-height: 1.4; }

/* "Details ▾" toggle pill */
.cred-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;    /* centred under the icon */
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  margin-bottom: 0;
}
.cred-toggle:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* Chevron rotates when open */
.cred-arrow { transition: transform var(--transition); display: inline-block; }
.credential-card.expanded .cred-arrow { transform: rotate(180deg); }

/* Bullet list
   — uses max-height animation for smooth expand/collapse
   — no fixed height cap: 400px is generous enough for 5 items    */
.cred-details {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, margin-top .25s ease;
}
.credential-card.expanded .cred-details {
  max-height: 400px;
  margin-top: 16px;
  text-align: left;   /* bullets always left-aligned regardless of card centering */
}

/* Individual bullet item */
.cred-details li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--color-muted);
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.cred-details li:last-child { border-bottom: none; }

/* Purple dot — inline so it aligns with the first line of text */
.cred-details li::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 6px;   /* vertically centres dot against first line */
}


/* ============================================================
   SERVICES — original 3-col numbered card layout
   ============================================================ */
.services { }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.service-card {
  background: var(--color-off-white);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  padding: 36px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(102,16,242,.12);
  transform: translateY(-4px);
}

/* Featured card (card 5) */
.service-card--featured {
  border-color: rgba(102,16,242,.2);
  background: linear-gradient(140deg, #f0eaff 0%, #f7f4fc 100%);
}

/* Large faded number top-right */
.service-num {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
}

/* Icon */
.service-icon {
  width: 46px; height: 46px;
  background: #e8e0f8;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-dark); line-height: 1.3; }

/* Sub-list (Otology, Neurotology…) */
.service-sub-list { list-style: none; padding: 0; flex: 1; }
.service-sub-list li { font-size: .87rem; color: var(--color-muted); line-height: 2; }

/* Consultancy short description */
.service-consult-desc { font-size: .87rem; color: var(--color-muted); line-height: 1.65; flex: 1; }

/* Action buttons row */
.service-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }


/* ============================================================
   RESPONSIVE – TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .page-body              { padding: 74px 14px 40px; gap: 14px; }
  .about-inner            { grid-template-columns: 1fr; gap: 48px; }
  .about-photos-top       { grid-template-columns: 44% 56%; }
  .about-photo-main       { width: 70%; }
  .credentials-grid       { grid-template-columns: 1fr 1fr; }
  .services-grid          { grid-template-columns: 1fr 1fr; }
  .nav-links              { gap: 20px; }
  .nav-cta                { display: none; }
}

/* ============================================================
   RESPONSIVE – MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .page-body              { padding: 70px 10px 32px; gap: 10px; }
  .section-pad            { padding: 48px 0; }
  .about-inner            { grid-template-columns: 1fr; gap: 40px; }
  .about-photos-top       { grid-template-columns: 1fr; }
  .about-feature-card     { display: none; }
  .about-photo-main       { width: 100%; }
  .about-counter-row      { flex-direction: column; gap: 16px; }
  .credentials-grid       { grid-template-columns: 1fr; }
  .services-grid          { grid-template-columns: 1fr; }
  .hamburger              { display: flex; }
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: var(--color-white);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 36px; z-index: 999;
    border: none;
  }
  .nav-links.open         { display: flex; }
  .nav-links a            { font-size: 1.2rem; color: var(--color-dark); }
  .has-dropdown .dropdown { position: static; transform: none; background: transparent; box-shadow: none; border: none; padding: 8px 0 0; display: none; }
  .has-dropdown.open-mobile .dropdown { display: block; }
  .hero-title             { font-size: 2.4rem; }
  .hero-word-bg           { font-size: 5rem; }
  .logo-list              { gap: 14px 28px; }
  .section-card           { border-radius: 16px; }  /* card sections only */
}

/* Thin border on hero card only */
.hero-card-bordered {
  border: 1.5px solid var(--color-border);
}

/* ============================================================
   TESTIMONIALS — dark bg, two-column layout
   Left: heading + counter + arrows
   Right: two quote panels side by side, slides as pairs
   ============================================================ */
.testimonials {
  background: var(--color-white) !important;
  border-radius: 24px;
  padding: 28px 0;    /* top + bottom breathing room */
}

/* Outer grid: left 28% | right 72% */
.testi-outer {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 240px;
}

/* LEFT: heading + nav controls */
.testi-left {
  padding: 27px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--color-border);
}

.testi-heading {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* Counter + arrows row */
.testi-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}

.testi-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--color-dark);
}
.testi-current {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.testi-sep {
  font-size: 1.1rem;
  opacity: .5;
}
.testi-total {
  font-size: 1rem;
  opacity: .5;
}

/* Arrow buttons */
.testi-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-dark);
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.testi-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* RIGHT: sliding viewport */
.testi-viewport {
  overflow: hidden;
  position: relative;
}

.testi-track {
  display: flex;
  height: 100%;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Each slide = two quotes side by side */
.testi-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 100%;
  height: 100%;
}

/* Divider between the two quote columns */
.testi-slide .testi-item:first-child {
  border-right: 1px solid var(--color-border);
}

/* Single quote panel */
.testi-item {
  padding: 27px 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Large opening quote mark */
.testi-quote-mark {
  font-size: 5rem;
  line-height: .6;
  color: rgba(102,16,242,.2);
  font-family: Georgia, serif;
  margin-bottom: 20px;
  display: block;
}

/* Quote text */
.testi-quote {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--color-muted);
  flex: 1;
  margin-bottom: 24px;
}

/* Author row: avatar + name + role */
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-author img {
  display: none;   /* images removed — name and role only */
}
.testi-author strong {
  display: block;
  font-size: .97rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 3px;
}
.testi-author span {
  font-size: .8rem;
  color: var(--color-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .testi-outer              { grid-template-columns: 1fr; }
  .testi-left               { border-right: none; border-bottom: 1px solid var(--color-border); padding: 40px 32px; }
  .testi-nav                { margin-top: 24px; }
  .testi-slide              { grid-template-columns: 1fr; }
  .testi-slide .testi-item:first-child { border-right: none; border-bottom: 1px solid var(--color-border); }
  .testi-item               { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .testi-item               { padding: 28px 20px; }
  .testi-quote-mark         { font-size: 3.5rem; }
}

/* ============================================================
   BLOG / RECENT NEWS
   ============================================================ */
.blog { }   /* bg handled by section-card nth-child alternating */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

/* Individual blog card */
.blog-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(49,20,76,.1);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.blog-card-date i { color: var(--color-primary); }

.blog-card-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 16px;
}

/* "Read More" external link button */
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition);
  align-self: flex-start;
  text-decoration: none;
}
.blog-card-link:hover { gap: 10px; }

/* "View All News" CTA below grid */
.blog-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG — Top Recent Medical News
   4-column card grid. Each card is an <a> tag linking externally.
   To add cards: duplicate .blog-card in HTML — grid wraps automatically.
   ============================================================ */
.blog { background: var(--color-white) !important; }

/* 4-column grid — wraps to 2 on tablet, 1 on mobile */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* Card — entire card is a link */
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Image container — fixed height, zoom on hover */
.blog-img {
  height: 200px;
  overflow: hidden;
  border-radius: 14px;
  flex-shrink: 0;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.blog-card:hover .blog-img img { transform: scale(1.06); }

/* Card text body */
.blog-body {
  padding: 18px 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Date row */
.blog-date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: var(--color-muted);
}
.blog-date i { color: var(--color-primary); font-size: .85rem; }

/* Title */
.blog-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.45;
  letter-spacing: -.01em;
}
.blog-card:hover .blog-body h3 { color: var(--color-primary); }

/* View All button row */


/* Responsive */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-img  { height: 220px; }
}

/* 5 cards in one row */
.services-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) {
  .services-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .services-grid--5 { grid-template-columns: 1fr; }
}

/* ============================================================
   GALLERY — purple background, masonry-style photo grid
   ============================================================ */
.gallery {
  background: #31144c !important;
  padding: 28px;
  overflow: hidden;
}

/* Outer grid: 4 columns (alt tall | stacked | tall | stacked) */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 14px;
  height: 520px;
}

/* A column that holds two stacked cells */
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Base cell */
.gallery-cell {
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #1a0a2e;  /* dark bg behind contained images */
  display: block;
  transition: transform .5s ease;
}
.gallery-cell:hover img { transform: scale(1.05); }

/* Tall cell fills full column height */
.gallery-cell--tall {
  height: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-grid  { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-cell--tall { height: 260px; }
  .gallery-col .gallery-cell { height: 180px; }
}
@media (max-width: 600px) {
  .gallery-grid  { grid-template-columns: 1fr; height: auto; }
  .gallery-cell--tall, .gallery-col .gallery-cell { height: 220px; }
}

/* ============================================================
   VIDEOS SECTION
   3-col grid. Click a card to expand the player inline.
   ============================================================ */
.videos { background: var(--color-white); }

/* 3-column grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card — collapses to thumbnail, expands to show player */
.video-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-off-white);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.video-card:hover { border-color: var(--color-primary); transform: translateY(-3px); }
.video-card.is-open {
  border-color: var(--color-primary);
  transform: none;
  grid-column: span 1;         /* stays in its column */
  cursor: default;
}

/* Thumbnail wrapper */
.video-thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #0d0d1a;
}
.video-card.is-open .video-thumb { display: none; }  /* hide thumb when player open */

.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.video-card:not(.is-open):hover .video-thumb img { transform: scale(1.05); }

/* Dark overlay + play button */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.32);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.video-card:hover .video-overlay { background: rgba(0,0,0,.48); }

.video-play-btn {
  width: 56px; height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.video-card:hover .video-play-btn { transform: scale(1.12); }

/* Source badge (YouTube / Video file) */
.video-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.video-badge--yt   { background: #ff0000; color: white; }
.video-badge--file { background: rgba(0,0,0,.55); color: white; }

/* Duration badge */
.video-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.65);
  color: white;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Card text below thumb */
.video-info {
  padding: 16px 18px 20px;
}
.video-info h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 5px;
  line-height: 1.35;
}
.video-info p {
  font-size: .82rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* Expanded player container */
.video-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;  /* 16:9 ratio */
  height: 0;
  background: #000;
}
.video-player iframe,
.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Close button shown when expanded */
.video-close-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: var(--color-off-white);
  border: none;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--transition), background var(--transition);
}
.video-close-btn:hover { color: var(--color-primary); background: #f0eaff; }

/* Responsive */
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-thumb { height: 210px; }
}

/* ============================================================
   FOOTER
   Dark card: top band (logo + cols) · middle strip (contact) · bottom bar
   ============================================================ */
.footer {
  background: var(--color-dark) !important;
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  margin: 0;                                   /* sits inside page-body gap like all cards */
  border: 1.5px solid rgba(255,255,255,.1);
}

/* ── TOP BAND ── */
.footer-top {
  padding: 52px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-top-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Logo */
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.footer-logo-tagline {
  font-size: .68rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-style: italic;
}

/* Columns */
.footer-col h5 {
  font-size: .9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: .03em;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-primary-light); }
.footer-col ul a i { font-size: .9rem; opacity: .8; }

/* ── MIDDLE CONTACT STRIP ── */
.footer-contact-strip {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-contact-col h6 {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Contact item: icon circle + text */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-contact-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  color: white;
  flex-shrink: 0;
}
.footer-contact-item span {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 2px;
}
.footer-contact-item a {
  color: white;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--color-primary-light); }

/* Centre column — clinics list */
.footer-contact-col--center { text-align: center; }
.footer-clinic-list {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-clinic-list li {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  padding: 4px 0;
}

/* Right column — hours */
.footer-contact-col--right { text-align: right; }
.footer-hours p {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin: 0;
}
.footer-hours p:first-child {
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

/* ── BOTTOM BAR ── */
.footer-bottom {
  padding: 20px 0 28px;   /* extra bottom so content clears the card border */
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-top-inner     { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-contact-col--center,
  .footer-contact-col--right { text-align: left; }
}
@media (max-width: 600px) {
  .footer-top-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-top       { padding: 40px 0 32px; }
}


/* About: single photo top row (no feature card) */
.about-photos-top--single {
  grid-template-columns: 1fr;
}
.about-photos-top--single .about-photo-top-wrap {
  width: 100%;
}
.about-photos-top--single .about-photo-top img {
  min-height: 220px;
  max-height: 260px;
}


/* Empty testi-item placeholder (last slide odd count) */
.testi-item--empty {
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   NEWS CARDS — date badge overlay style
   ============================================================ */
.news-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Photo with date badge top-right */
.news-card-img {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

/* Purple date badge */
.news-date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
}
.news-day   { display: block; font-size: 1.3rem; font-weight: 900; line-height: 1; }
.news-month { display: block; font-size: .7rem;  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-year  { display: block; font-size: .7rem;  font-weight: 600; opacity: .8; }

/* Card body */
.news-card .blog-body {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-card .blog-body h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  margin: 0;
}
.news-card .blog-body p {
  font-size: .84rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}


/* ============================================================
   Dark alternating cards (#31144c) — ensure text stays readable
   ============================================================ */
.page-body > .section-card:nth-child(even) .section-title,
.page-body > .section-card:nth-child(even) .section-sub,
.page-body > .section-card:nth-child(even) .about-heading,
.page-body > .section-card:nth-child(even) .about-desc,
.page-body > .section-card:nth-child(even) .about-counter-desc,
.page-body > .section-card:nth-child(even) .cred-stat,
.page-body > .section-card:nth-child(even) .cred-label,
.page-body > .section-card:nth-child(even) .cred-section-header .section-title,
.page-body > .section-card:nth-child(even) .cred-title-line,
.page-body > .section-card:nth-child(even) .service-card h3,
.page-body > .section-card:nth-child(even) .service-card p,
.page-body > .section-card:nth-child(even) .service-num,
.page-body > .section-card:nth-child(even) p,
.page-body > .section-card:nth-child(even) h2,
.page-body > .section-card:nth-child(even) h3 {
  color: white;
}

.page-body > .section-card:nth-child(even) .about-counter-box {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: white;
}
.page-body > .section-card:nth-child(even) .about-counter-num,
.page-body > .section-card:nth-child(even) .about-counter-plus {
  color: white;
}
.page-body > .section-card:nth-child(even) .about-counter-box p {
  color: rgba(255,255,255,.7);
}

.page-body > .section-card:nth-child(even) .credential-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}
.page-body > .section-card:nth-child(even) .cred-toggle {
  border-color: rgba(255,255,255,.25);
  color: var(--color-primary-light);
}
.page-body > .section-card:nth-child(even) .cred-details li {
  color: rgba(255,255,255,.75);
  border-bottom-color: rgba(255,255,255,.1);
}

.page-body > .section-card:nth-child(even) .service-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.page-body > .section-card:nth-child(even) .service-card:hover {
  border-color: var(--color-primary-light);
}
.page-body > .section-card:nth-child(even) .service-icon {
  background: rgba(255,255,255,.15);
}
.page-body > .section-card:nth-child(even) .service-sub-list li,
.page-body > .section-card:nth-child(even) .service-consult-desc {
  color: rgba(255,255,255,.7);
}


/* Blog section always white with dark text */
.blog.section-card { background: var(--color-white) !important; }
.blog .section-title,
.blog .section-sub,
.blog .blog-body h3,
.blog .blog-date { color: var(--color-dark) !important; }
.blog .blog-date span { color: var(--color-primary) !important; }

/* ============================================================
   ENHANCED CARD HOVER & SHADOW EFFECTS
   ============================================================ */

/* Credential cards */
.credential-card {
  box-shadow: 0 2px 12px rgba(49,20,76,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.credential-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(49,20,76,.16);
  border-color: var(--color-primary) !important;
}

/* Service cards */
.service-card {
  box-shadow: 0 2px 10px rgba(49,20,76,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 44px rgba(49,20,76,.18) !important;
  border-color: var(--color-primary-light) !important;
}

/* Video cards */
.video-card {
  box-shadow: 0 2px 10px rgba(49,20,76,.06);
}
.video-card:hover {
  box-shadow: 0 12px 36px rgba(49,20,76,.16) !important;
}

/* Testimonials items — subtle lift on hover */
.testi-item {
  border-radius: 14px;
  transition: background .3s ease;
}
.testi-item:hover {
  background: rgba(102,16,242,.04);
}

/* Blog/News cards */
.blog-card {
  box-shadow: 0 2px 10px rgba(49,20,76,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 44px rgba(49,20,76,.15) !important;
}

/* About counter box hover */
.about-counter-box {
  transition: box-shadow .3s ease, transform .3s ease;
}
.about-counter-box:hover {
  box-shadow: 0 6px 24px rgba(49,20,76,.12);
  transform: translateY(-2px);
}

/* Section cards — subtle lift when hovered */
.section-card {
  transition: box-shadow .3s ease;
}
.section-card:hover {
  box-shadow: 0 4px 28px rgba(49,20,76,.1);
}




/* ============================================================
   SECTION BACKGROUNDS & TEXT COLOURS — explicit per section
   ============================================================ */

/* ── ABOUT: dark bg, white text ── */
.about { background: #31144c !important; }
.about .about-heading,
.about .about-desc,
.about .about-counter-desc,
.about h2, .about p, .about strong { color: white !important; }
.about a { color: var(--color-primary-light) !important; }
.about .about-counter-box {
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.2) !important;
}
.about .about-counter-num,
.about .about-counter-plus { color: white !important; }
.about .about-counter-box p { color: rgba(255,255,255,.7) !important; }
.about .about-divider { background: var(--color-primary-light); }

/* ── VIDEOS: white bg, dark text ── */
.videos { background: var(--color-white) !important; }
.videos .section-title  { color: var(--color-dark) !important; }
.videos .section-sub    { color: var(--color-muted) !important; }
.videos .video-info h3  { color: var(--color-dark) !important; }
.videos .video-info p   { color: var(--color-muted) !important; }
.videos .video-card {
  background: var(--color-off-white) !important;
  border-color: var(--color-border) !important;
}

/* ── CREDENTIALS: dark bg, white inner cards with dark text ── */
.credentials { background: #31144c !important; }
.credentials .cred-section-header h2,
.credentials .section-title { color: white !important; }
.credentials .cred-title-line { background: rgba(255,255,255,.4) !important; }
.credentials .credential-card {
  background: var(--color-white) !important;
  border-color: var(--color-border) !important;
}
.credentials .cred-stat  { color: var(--color-dark) !important; }
.credentials .cred-label { color: var(--color-muted) !important; }
.credentials .cred-toggle { color: var(--color-primary); border-color: var(--color-border); }
.credentials .cred-details li { color: var(--color-muted) !important; border-bottom-color: var(--color-border) !important; }
.credentials .cred-icon { background: #e8e0f8; color: var(--color-primary); }

/* ── SERVICES: dark bg, white inner cards with dark text ── */
.services { background: #31144c !important; }
.services .section-title { color: white !important; }
.services .section-sub   { color: rgba(255,255,255,.7) !important; }
.services .service-card {
  background: var(--color-white) !important;
  border-color: var(--color-border) !important;
}
.services .service-card h3   { color: var(--color-dark) !important; }
.services .service-card p,
.services .service-sub-list li,
.services .service-consult-desc { color: var(--color-muted) !important; }
.services .service-num  { color: var(--color-border) !important; }
.services .service-icon { background: #e8e0f8 !important; color: var(--color-primary) !important; }

/* ── TESTIMONIALS: white bg, dark text ── */
.testimonials { background: var(--color-white) !important; }
.testimonials .testi-heading       { color: var(--color-dark) !important; }
.testimonials .testi-counter       { color: var(--color-dark) !important; }
.testimonials .testi-current,
.testimonials .testi-sep,
.testimonials .testi-total         { color: var(--color-dark) !important; }
.testimonials .testi-quote         { color: var(--color-muted) !important; }
.testimonials .testi-author strong { color: var(--color-dark) !important; }
.testimonials .testi-author span   { color: var(--color-muted) !important; }
.testimonials .testi-btn {
  border-color: var(--color-border) !important;
  color: var(--color-dark) !important;
  background: transparent !important;
}
.testimonials .testi-btn:hover {
  background: var(--color-primary) !important;
  color: white !important;
  border-color: var(--color-primary) !important;
}
.testimonials .testi-left { border-right-color: var(--color-border) !important; }
.testimonials .testi-slide .testi-item:first-child { border-right-color: var(--color-border) !important; }
.testimonials .testi-quote-mark { color: var(--color-primary); opacity: .3; }

/* ── GALLERY: dark bg, single-row equal grid ── */
.gallery { background: #31144c !important; padding: 28px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;  /* 5 images equal width in one row */
  gap: 14px !important;
  height: 400px !important;
}

/* All cells are direct children — same height, no tall columns */
.gallery-grid > .gallery-cell,
.gallery-grid > .gallery-col { height: 100% !important; }

/* Hide the stacked column structure, show as single cells */
.gallery-col {
  display: contents;  /* unwraps col divs so children join the grid directly */
}

.gallery-cell {
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #1a0a2e;
  display: block;
  transition: transform .5s ease;
}
.gallery-cell:hover img { transform: scale(1.04); }

/* ── BLOG/NEWS: white bg, dark text ── */
.blog { background: var(--color-white) !important; }
.blog .section-title  { color: var(--color-dark) !important; }
.blog .section-sub    { color: var(--color-muted) !important; }
.blog .blog-body h3   { color: var(--color-dark) !important; }
.blog .blog-body p    { color: var(--color-muted) !important; }
.blog .news-day,
.blog .news-month,
.blog .news-year      { color: white !important; }

/* ── FOOTER: dark bg — already correct ── */
.footer { background: var(--color-dark) !important; }

/* Responsive gallery */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    height: auto !important;
  }
  .gallery-cell { height: 200px; }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .gallery-cell { height: 180px; }
}

/* ============================================================
   BEFORE & AFTER GALLERY
   ============================================================ */
.ba-gallery { background: #31144c !important; }

.ba-gallery-header { margin-bottom: 28px; }
.ba-gallery .section-title { color: white !important; }
.ba-gallery .section-sub   { color: rgba(255,255,255,.7) !important; }

/* Filter tabs */
.ba-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ba-tab {
  padding: 7px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
.ba-tab.active,
.ba-tab:hover {
  background: white;
  color: #31144c;
  border-color: white;
}

/* Cards grid */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.ba-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ba-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* Slider area */
.ba-slider-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}

/* Both images fill the container */
.ba-before-img,
.ba-after-img {
  position: absolute;
  inset: 0;
  background-size: 90%;         /* zoomed out — shows more of the image */
  background-repeat: no-repeat;
  background-position: center top;
}
.ba-before-img { z-index: 1; }
.ba-after-img  {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0s;   /* no transition — instant on drag */
}

/* Divider line */
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
}

/* Drag handle */
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: white;
  border: 2px solid #31144c;
  z-index: 4;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ba-handle i { color: #31144c; font-size: .85rem; }

/* Before / After labels */
.ba-side-labels {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 12px;
  z-index: 5; pointer-events: none;
}
.ba-label-before,
.ba-label-after {
  font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  letter-spacing: .04em; text-transform: uppercase;
}
.ba-label-before { background: rgba(255,255,255,.9); color: #31144c; }
.ba-label-after  { background: #31144c; color: white; }

/* Card body */
.ba-card-body { padding: 14px 18px 16px; }
.ba-card-title { font-size: .95rem; font-weight: 700; color: var(--color-dark); margin-bottom: 3px; }
.ba-card-sub   { font-size: .82rem; color: var(--color-muted); }

/* Responsive */
@media (max-width: 900px) { .ba-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .ba-grid { grid-template-columns: 1fr; } .ba-slider-wrap { height: 260px; } }

/* Fancybox video trigger — covers the full thumbnail area */
.video-fancybox-trigger {
  display: block;
  text-decoration: none;
  position: relative;
}
.video-fancybox-trigger .video-thumb { cursor: pointer; }

/* Instagram video card thumbnail */
.video-thumb-ig {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  opacity: .85;
}

/* Instagram badge */
.video-badge--ig {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  color: white;
}

/* Instagram video card thumbnail */
.video-ig-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-ig-thumb i {
  font-size: 3rem;
  color: white;
  opacity: .85;
}

/* Instagram badge */
.video-badge--ig {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  color: white;
}
