/* =========================================================
   LHK Home â€” Modern Redesign (home page only)
   Scope: .lhk-modern *
   ========================================================= */
.lhk-modern {
  --hm-ink: #0b3353;
  --hm-slate: #56718a;
  --hm-blue: #2a93c9;
  --hm-blue-2: #0d6efd;
  --hm-violet: #6610f2;
  --hm-grad: linear-gradient(135deg, #2a93c9 0%, #7cb7d5 100%);
  --hm-grad-2: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  --hm-bg-soft: #f4f9fd;
  --hm-card: #ffffff;
  --hm-shadow: 0 24px 55px -18px rgba(11, 51, 83, 0.18);
  --hm-shadow-sm: 0 14px 34px -16px rgba(11, 51, 83, 0.16);
  --hm-radius: 24px;
  --hm-radius-lg: 34px;
  --hm-doc-g1: #0d6efd;
  --hm-doc-g2: #6610f2;
  --hm-doc-g1a: rgba(13, 110, 253, 0.16);
  --hm-doc-g2a: rgba(102, 16, 242, 0.16);
  --hm-hero-g1a: rgba(42, 147, 201, 0.55);
  --hm-hero-g2a: rgba(102, 16, 242, 0.5);
  --hm-hero-g1s: rgba(42, 147, 201, 0.9);
  --hm-hero-g2s: rgba(102, 16, 242, 0.65);
  --hm-hero-mid: rgba(11, 51, 83, 0.45);
  --hm-hero-angle: 100deg;
  color: var(--hm-ink);
  font-family: var(--lhk-font-body, "Lato", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif);
  overflow-wrap: break-word;
}

.lhk-modern *,
.lhk-modern *::before,
.lhk-modern *::after {
  box-sizing: border-box;
}

/* ---------------- shared section ---------------- */
.hm-section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.hm-section .container {
  max-width: 1320px;
}

.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hm-blue-2);
  background: rgba(42, 147, 201, 0.1);
  border: 1px solid rgba(42, 147, 201, 0.25);
}

.hm-head {
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.hm-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0.85rem 0 0.7rem;
  letter-spacing: -0.015em;
}

.hm-head p {
  color: var(--hm-slate);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
}

.hm-head.text-center p {
  margin-inline: auto;
}

/* =========================================================
   HERO
   ========================================================= */
.hm-hero {
  position: relative;
  min-height: clamp(460px, 72vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  margin-top: -1px;
}

.hm-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -10%;
  top: -40%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hm-hero-g2a), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--hm-hero-angle), var(--hm-hero-g1s) 0%, var(--hm-hero-mid) 55%, var(--hm-hero-g2s) 100%);
  pointer-events: none;
  z-index: 2;
}

[dir="rtl"] .lhk-modern {
  --hm-hero-angle: 80deg;
}

[dir="rtl"] .lhk-modern .hm-hero::before {
  inset-inline-end: auto;
  inset-inline-start: -10%;
}

.hm-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 7s ease;
  z-index: 0;
}

.hm-slide.hm-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hm-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: clamp(90px, 14vh, 150px) clamp(40px, 6vh, 70px);
}

.hm-hero-content {
  max-width: 720px;
}

.hm-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: hmFadeUp 0.9s both;
}

.hm-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.1rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 1.1rem 0 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  animation: hmFadeUp 0.9s 0.12s both;
}

.hm-hero h1 .hm-accent {
  background: linear-gradient(90deg, #7fd2ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-hero-text {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 560px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  animation: hmFadeUp 0.9s 0.24s both;
}

.hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
  animation: hmFadeUp 0.9s 0.36s both;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hm-btn-grad {
  background: linear-gradient(135deg, #2a93c9 0%, #7cb7d5 100%);
  color: #fff;
  box-shadow: 0 18px 40px -14px rgba(42, 147, 201, 0.55);
}

.hm-btn-grad:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -14px rgba(42, 147, 201, 0.62);
}

.hm-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hm-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.hm-hero-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-inline: clamp(12px, 3vw, 44px);
  pointer-events: none;
}

.hm-hero-nav button {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hm-hero-nav button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.hm-hero-dots {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hm-hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hm-hero-dots button.hm-dot-active {
  width: 34px;
  background: #fff;
}

.hm-hero-stats {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--hm-radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.5);
  animation: hmFadeUp 0.9s 0.5s both;
}

.hm-stat {
  padding: 22px 26px;
  background: rgba(6, 28, 48, 0.45);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hm-stat b {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, #fff, #a7d9f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-stat span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

/* =========================================================
   STATS SECTION (below hero)
   ========================================================= */
/* The live heart-monitoring ECG is a scrolling background-image of this section.
   The tile is 1200x300 and the path starts and ends on the same baseline (y=150),
   so translating it by exactly -1200px loops seamlessly. */
.hm-impact {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background-color: #0c3d63;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%232a93c9'/%3E%3Cstop offset='.55' stop-color='%236ee7f0'/%3E%3Cstop offset='1' stop-color='%237338dc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 150 H200 L210 150 L216 128 L222 178 L228 96 L234 208 L240 150 H400 L410 150 L416 128 L422 178 L428 96 L434 208 L440 150 H800 L810 150 L816 128 L822 178 L828 96 L834 208 L840 150 H1000 L1010 150 L1016 128 L1022 178 L1028 96 L1034 208 L1040 150 H1200' fill='none' stroke='url(%23g)' stroke-width='3' stroke-opacity='.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(120deg, #0c3d63 0%, #2a93c9 58%, #7338dc 100%);
  background-size: 1200px 100%, 100% 46px, 46px 100%, auto;
  background-repeat: repeat-x, repeat, repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0, 0 0;
  animation: hmEcgBgScroll 12s linear infinite;
  overflow: hidden;
}

@keyframes hmEcgBgScroll {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: -1200px 0, 0 0, 0 0, 0 0;
  }
}

.hm-impact::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -45%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.hm-impact::after {
  content: "";
  position: absolute;
  inset-inline-start: -6%;
  bottom: -50%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 56, 220, 0.4), transparent 70%);
  pointer-events: none;
}

.hm-impact .container {
  position: relative;
  z-index: 2;
}

/* ---- heading on the dark heartbeat canvas ---- */
.hm-impact .hm-head {
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.hm-impact .hm-head h2 {
  color: #fff;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

.hm-impact .hm-eyebrow {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #bfe6ff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- divider between the vitals strip and the feature cards ---- */
.hm-impact-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(1.8rem, 4vw, 2.6rem);
}

.hm-impact-divider::before,
.hm-impact-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.hm-impact-divider span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ef2a5;
  box-shadow: 0 0 0 4px rgba(110, 242, 165, 0.18);
  animation: hmBeat 1.8s ease-out infinite;
}

/* ---- live heart-monitoring badge ---- */
.hm-stats-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto clamp(1.4rem, 3vw, 2.2rem);
  width: fit-content;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}

.hm-stats-badge .mdi {
  color: #6ef2a5;
  font-size: 1.05rem;
}

/* pulsing live indicator */
.hm-sv-beat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.92rem;
  font-weight: 600;
}

.hm-sv-beat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6ef2a5;
  box-shadow: 0 0 0 0 rgba(110, 242, 165, 0.7);
  animation: hmBeat 1.8s ease-out infinite;
}

@keyframes hmBeat {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 242, 165, 0.65);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(110, 242, 165, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(110, 242, 165, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-impact {
    animation: none;
  }
}

@media (max-width: 575.98px) {
  .hm-impact {
    background-size: 600px 100%, 100% 34px, 34px 100%, auto;
    animation-name: hmEcgBgScrollSm;
  }

  .hm-stats-badge {
    padding: 7px 16px;
  }
}

/* Mobile uses a 600px tile, so the loop offset must match or the trace jumps. */
@keyframes hmEcgBgScrollSm {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: -600px 0, 0 0, 0 0, 0 0;
  }
}

.hm-stats-modern {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}

/* Compact horizontal rows (icon left, text right) in the brand blue gradient,
   matching the feature cards below them. */
.hm-stats-modern .hm-stat {
  position: relative;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #2a93c9 0%, #7cb7d5 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  padding: 18px 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 30px -20px rgba(42, 147, 201, 0.8);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  animation: hmFadeUp 0.8s both;
}

.hm-stats-modern .hm-stat:nth-child(1) { animation-delay: 0.05s; }
.hm-stats-modern .hm-stat:nth-child(2) { animation-delay: 0.14s; }
.hm-stats-modern .hm-stat:nth-child(3) { animation-delay: 0.23s; }
.hm-stats-modern .hm-stat:nth-child(4) { animation-delay: 0.32s; }
.hm-stats-modern .hm-stat:nth-child(5) { animation-delay: 0.41s; }
.hm-stats-modern .hm-stat:nth-child(6) { animation-delay: 0.5s; }

/* gradient hairline border */
.hm-stats-modern .hm-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* corner glow */
.hm-stats-modern .hm-stat::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -60px;
  inset-inline-end: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 68%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.hm-stats-modern .hm-stat:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 26px 44px -22px rgba(42, 147, 201, 0.95);
}

.hm-stats-modern .hm-stat:hover::before {
  opacity: 1;
}

.hm-stats-modern .hm-stat:hover::after {
  opacity: 1;
  transform: scale(1);
}

.hm-stats-modern .hm-stat-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease, border-radius 0.4s ease;
}

.hm-stats-modern .hm-stat:hover .hm-stat-icon {
  transform: scale(1.06) rotate(-6deg);
  background: rgba(255, 255, 255, 0.32);
  border-radius: 17px;
}

.hm-stats-modern .hm-stat-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hm-stats-modern .hm-stat b {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(100deg, #ffffff 10%, #eaf7ff 55%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-stats-modern .hm-stat span {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* =========================================================
   DEPARTMENTS
   ========================================================= */
.hm-dept {
  background: var(--hm-bg-soft);
}

.hm-dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.hm-dept-card {
  position: relative;
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: var(--hm-card);
  box-shadow: var(--hm-shadow-sm);
  color: var(--hm-ink);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
}

.hm-dept-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hm-shadow);
  color: var(--hm-ink);
}

.hm-dept-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hm-dept-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hm-dept-card:hover .hm-dept-media img {
  transform: scale(1.09);
}

.hm-dept-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 28, 48, 0.72) 100%);
}

.hm-dept-icon {
  position: absolute;
  z-index: 2;
  bottom: -24px;
  inset-inline-start: 22px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--hm-grad);
  color: #fff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(42, 147, 201, 0.6);
}

.hm-dept-body {
  padding: 34px 22px 22px;
}

.hm-dept-body h5 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.hm-dept-body p {
  font-size: 0.9rem;
  color: var(--hm-slate);
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-dept-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--hm-blue-2);
  text-decoration: none;
}

.hm-dept-link svg {
  transition: transform 0.25s ease;
}

.hm-dept-card:hover .hm-dept-link svg {
  transform: translateX(4px);
}

[dir="rtl"] .hm-dept-card:hover .hm-dept-link svg {
  transform: translateX(-4px);
}

/* =========================================================
   DOCTORS
   ========================================================= */
.hm-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.hm-scroller::-webkit-scrollbar {
  display: none;
}

.hm-scroller > * {
  scroll-snap-align: start;
}

.hm-doc-card {
  position: relative;
  background: var(--hm-card);
  /* border-radius: var(--hm-radius); */
  overflow: hidden;
  box-shadow: var(--hm-shadow-sm);
  height: 100%;
  border: 1px solid rgba(11, 51, 83, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.hm-doc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(135deg, var(--hm-doc-g1), var(--hm-doc-g2));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

[dir="rtl"] .hm-doc-card::before {
  background: linear-gradient(45deg, var(--hm-doc-g1), var(--hm-doc-g2));
}

.hm-doc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 50px -22px rgba(11, 51, 83, 0.4);
  border-color: rgba(13, 110, 253, 0.25);
}

.hm-doc-card:hover::before {
  opacity: 1;
}

.hm-doc-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -20%, var(--hm-doc-g2a), var(--hm-doc-g1a) 45%, transparent 70%),
    linear-gradient(160deg, var(--hm-doc-g1a), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hm-doc-card:hover .hm-doc-bg {
  opacity: 1;
}

.hm-doc-card .hm-doc-inner {
  position: relative;
  text-align: center;
  padding: 34px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hm-doc-avatar {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--hm-doc-g1a), var(--hm-doc-g2a));
}

.hm-doc-avatar::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hm-doc-g1), var(--hm-doc-g2));
  opacity: 0.3;
}

[dir="rtl"] .hm-doc-avatar::before {
  background: linear-gradient(45deg, var(--hm-doc-g1), var(--hm-doc-g2));
}

.hm-doc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 14px 30px -10px rgba(11, 51, 83, 0.35);
  position: relative;
  z-index: 1;
}

.hm-doc-online {
  position: absolute;
  z-index: 2;
  inset-inline-end: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px -2px rgba(34, 197, 94, 0.5);
}

.hm-doc-name {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.hm-doc-designation {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hm-blue-2);
  margin-bottom: 8px;
}

.hm-doc-stars {
  display: flex;
  gap: 3px;
  justify-content: center;
  color: #fbbf24;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.hm-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--hm-blue-2);
  background: rgba(42, 147, 201, 0.12);
  margin-bottom: 20px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hm-doc-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.hm-doc-more,
.hm-doc-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 11px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hm-doc-more {
  background: rgba(42, 147, 201, 0.1);
  color: var(--hm-blue-2);
}

.hm-doc-more:hover {
  background: linear-gradient(135deg, var(--hm-doc-g1), var(--hm-doc-g2));
  color: #fff;
}

[dir="rtl"] .hm-doc-more:hover {
  background: linear-gradient(45deg, var(--hm-doc-g1), var(--hm-doc-g2));
}

.hm-doc-book {
  background: linear-gradient(135deg, var(--hm-doc-g1), var(--hm-doc-g2));
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(13, 110, 253, 0.6);
}

[dir="rtl"] .hm-doc-book {
  background: linear-gradient(45deg, var(--hm-doc-g1), var(--hm-doc-g2));
}

.hm-doc-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(13, 110, 253, 0.75);
}

/* =========================================================
   FEATURES (What Makes Us Different)
   ========================================================= */
.hm-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Feature cards: compact horizontal rows (icon left, text right) in the
   brand blue gradient, so the section reads as a scannable list. */
.hm-feat-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #2a93c9 0%, #7cb7d5 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  padding: 20px 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 30px -20px rgba(42, 147, 201, 0.8);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  animation: hmFadeUp 0.8s both;
}

.hm-feat-card:nth-child(1) { animation-delay: 0.05s; }
.hm-feat-card:nth-child(2) { animation-delay: 0.13s; }
.hm-feat-card:nth-child(3) { animation-delay: 0.21s; }
.hm-feat-card:nth-child(4) { animation-delay: 0.29s; }
.hm-feat-card:nth-child(5) { animation-delay: 0.37s; }
.hm-feat-card:nth-child(6) { animation-delay: 0.45s; }

/* gradient hairline border, same as the stat cards */
.hm-feat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* corner glow */
.hm-feat-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -70px;
  inset-inline-start: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 68%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.hm-feat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 26px 44px -22px rgba(42, 147, 201, 0.95);
}

.hm-feat-card:hover::before {
  opacity: 1;
}

.hm-feat-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.hm-feat-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease, border-radius 0.4s ease;
}

.hm-feat-card:hover .hm-feat-icon {
  transform: scale(1.06) rotate(-6deg);
  background: rgba(255, 255, 255, 0.32);
  border-radius: 17px;
}

.hm-feat-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hm-feat-card h5 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #fff;
}

.hm-feat-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* =========================================================
   BANNERS (Diagnostics)
   ========================================================= */
.hm-banner {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
}

.hm-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 28, 48, 0.92) 30%, rgba(11, 51, 83, 0.55) 75%, rgba(102, 16, 242, 0.35) 100%);
}

.hm-banner::after {
  content: "";
  position: absolute;
  inset-inline-end: -10%;
  top: -40%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 210, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.hm-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hm-banner h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.hm-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

/* Diagnostics banner: parallax + lighter overlay so the image shows through */
.hm-banner-parallax {
  background-attachment: fixed;
}

.hm-banner-parallax::before {
  background: linear-gradient(105deg, rgba(6, 28, 48, 0.88) 10%, rgba(11, 51, 83, 0.45) 55%, rgba(42, 147, 201, 0.3) 100%);
}

@media (max-width: 991.98px) {
  .hm-banner-parallax {
    background-attachment: scroll;
  }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.hm-testi {
  background: var(--hm-bg-soft);
}

.hm-testi-card {
  background: var(--hm-card);
  border-radius: var(--hm-radius);
  padding: 30px 28px;
  box-shadow: var(--hm-shadow-sm);
  border: 1px solid rgba(42, 147, 201, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hm-stars {
  display: flex;
  gap: 3px;
  color: #f6b93b;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hm-testi-card blockquote {
  margin: 0 0 20px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #33475c;
  font-style: italic;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-testi-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hm-testi-meta img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e3f1fa;
}

.hm-testi-meta b {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.hm-testi-meta span {
  font-size: 0.8rem;
  color: var(--hm-slate);
}

/* =========================================================
   MAP / CONTACT
   ========================================================= */
.hm-map {
  background: #fff;
}

.hm-map-row {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  align-items: stretch;
}

.hm-contact-card {
  background: var(--hm-ink);
  color: #fff;
  border-radius: var(--hm-radius-lg);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hm-contact-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 210, 255, 0.35), transparent 70%);
}

.hm-contact-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hm-contact-card .hm-contact-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hm-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hm-contact-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #7fd2ff;
  margin-top: 2px;
}

.hm-contact-item a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.hm-contact-item a:hover {
  color: #7fd2ff;
}

.hm-contact-item span {
  font-size: 0.95rem;
}

.hm-map-frame {
  border-radius: var(--hm-radius-lg);
  overflow: hidden;
  box-shadow: var(--hm-shadow);
  min-height: 400px;
  position: relative;
}

.hm-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   ANIMATION
   ========================================================= */
@keyframes hmFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hm-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hm-reveal.hm-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   HOME REDESIGN v2 â€” Dept tabs + carousels
   ========================================================= */
/* ---------------- Department tabs (badge pills) ---------------- */
.hm-dept-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.4rem;
}

.hm-dept-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(11, 51, 83, 0.12);
  background: #fff;
  color: var(--hm-ink);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px -12px rgba(11, 51, 83, 0.25);
  white-space: nowrap;
}

.hm-dept-tab i {
  color: var(--hm-blue-2);
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.hm-dept-tab:hover {
  border-color: var(--hm-blue-2);
  transform: translateY(-2px);
}

.hm-dept-tab.hm-active {
  background: var(--hm-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px -12px rgba(42, 147, 201, 0.5);
}

.hm-dept-tab.hm-active i {
  color: #fff;
}

/* ---------------- Dept card badge + filter state ---------------- */
.hm-dept-tag {
  position: absolute;
  z-index: 2;
  inset-inline-start: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--hm-ink);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(6, 28, 48, 0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-dept-tag i {
  color: var(--hm-blue-2);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hm-dept-card.hm-hide {
  display: none !important;
}

.hm-dept-body {
  padding: 22px;
}

.hm-dept-filter-empty {
  display: none;
  text-align: center;
  color: var(--hm-slate);
  padding: 30px 0;
}

/* ---------------- Generic carousel ---------------- */
.hm-carousel {
  position: relative;
}

.hm-carousel-viewport {
  overflow: hidden;
}

.hm-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hm-carousel-track.hm-no-anim {
  transition: none;
}

.hm-car-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(11, 51, 83, 0.1);
  background: #fff;
  color: var(--hm-ink);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -14px rgba(11, 51, 83, 0.4);
  transition: all 0.3s ease;
}

.hm-car-nav:hover {
  background: var(--hm-grad-2);
  color: #fff;
  border-color: transparent;
}

.hm-car-prev {
  inset-inline-start: 0;
  transform: translate(-8px, -50%);
}

.hm-car-next {
  inset-inline-end: 0;
  transform: translate(8px, -50%);
}

.hm-car-prev:hover,
.hm-car-next:hover {
  transform: translate(0, -50%) scale(1.05);
}

.hm-car-nav.hm-hidden {
  opacity: 0;
  pointer-events: none;
}

[dir="rtl"] .hm-car-prev i,
[dir="rtl"] .hm-car-next i {
  transform: scaleX(-1);
}

.hm-testi .hm-carousel-track {
  grid-auto-columns: minmax(290px, 1fr);
}

@media (min-width: 1400px) {
  .hm-testi .hm-carousel-viewport {
    overflow: visible;
  }
  .hm-testi .hm-car-prev {
    transform: translate(-42px, -50%);
  }
  .hm-testi .hm-car-next {
    transform: translate(42px, -50%);
  }
}

@media (max-width: 768px) {
  .hm-car-nav {
    display: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .hm-dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hm-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hm-map-row {
    grid-template-columns: 1fr;
  }
  .hm-map-frame {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .hm-dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hm-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hm-hero-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hm-dept-grid {
    grid-template-columns: 1fr;
  }
  .hm-feat-grid {
    grid-template-columns: 1fr;
  }
  .hm-stats {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HOME REDESIGN v3 â€” permanent doctor gradients + hover fill
   ========================================================= */
/* .hm-doc-card {
  border: 1px solid color-mix(in srgb, var(--hm-doc-g1) 38%, transparent);
} */

.hm-doc-card::before {
  opacity: 1;
  height: 8px;
}

.hm-doc-bg {
  background: linear-gradient(160deg, var(--hm-doc-g1) 0%, var(--hm-doc-g2) 100%);
  opacity: 0.22;
}

[dir="rtl"] .hm-doc-bg {
  background: linear-gradient(20deg, var(--hm-doc-g1), var(--hm-doc-g2));
}

.hm-doc-card:hover {
  border-color: transparent;
  box-shadow: 0 34px 60px -24px color-mix(in srgb, var(--hm-doc-g1) 45%, rgba(6, 28, 48, 0.55));
}

.hm-doc-card:hover .hm-doc-bg {
  opacity: 1;
}

.hm-doc-card:hover .hm-doc-name {
  color: #fff;
}

.hm-doc-card:hover .hm-doc-designation {
  color: rgba(255, 255, 255, 0.88);
}

.hm-doc-card:hover .hm-doc-badge {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.hm-doc-card:hover .hm-doc-stars {
  color: #ffd76a;
}

.hm-doc-card:hover .hm-doc-more {
  background: #fff;
  color: var(--hm-doc-g1);
}

.hm-doc-card:hover .hm-doc-book {
  background: #fff;
  color: var(--hm-doc-g1);
  box-shadow: 0 16px 34px -16px rgba(255, 255, 255, 0.4);
}
/* =========================================================
   HOME REDESIGN v3 - Contact strip + FAQ accordion
   ========================================================= */


/* ---------------- FAQ accordion ---------------- */
.hm-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(24px, 3vw, 46px);
}

.hm-faq-wrap {
  min-width: 0;
}

.hm-faq-item {
  background: var(--hm-card);
  border: 1px solid rgba(11, 51, 83, 0.08);
  border-radius: 18px;
  box-shadow: var(--hm-shadow-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hm-faq-item:last-child {
  margin-bottom: 0;
}

.hm-faq-item:hover {
  box-shadow: var(--hm-shadow);
}

.hm-faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--hm-ink);
  font: inherit;
  font-size: 1.04rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.hm-faq-q:hover {
  color: var(--hm-blue);
}

.hm-faq-q:focus-visible {
  outline: 2px solid var(--hm-blue);
  outline-offset: -2px;
}

.hm-faq-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--hm-grad);
  color: #fff;
}

.hm-faq-ico svg {
  width: 18px;
  height: 18px;
}

.hm-faq-txt {
  flex: 1 1 auto;
  min-width: 0;
}

.hm-faq-tog {
  flex: 0 0 auto;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(42, 147, 201, 0.12);
  color: var(--hm-blue);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hm-faq-tog::before,
.hm-faq-tog::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hm-faq-tog::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.hm-faq-item.hm-open .hm-faq-tog {
  background: var(--hm-grad);
  color: #fff;
  transform: rotate(180deg);
}

.hm-faq-item.hm-open .hm-faq-tog::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.hm-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.hm-faq-item.hm-open .hm-faq-a {
  grid-template-rows: 1fr;
}

.hm-faq-a-in {
  overflow: hidden;
}

.hm-faq-a-body {
  padding: 0 22px 22px 76px;
  color: var(--hm-slate);
  font-size: 0.97rem;
  line-height: 1.75;
}

.hm-faq-a-body > :last-child {
  margin-bottom: 0;
}

/* ---------------- FAQ visual panel ---------------- */
.hm-faq-visual {
  position: relative;
  min-height: 100%;
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: linear-gradient(150deg, #2a93c9 0%, #4a6fd4 45%, #7338dc 100%);
  box-shadow: var(--hm-shadow);
  isolation: isolate;
}

.hm-faq-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
}

.hm-faq-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.3) 0%, transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(115, 56, 220, 0.45) 0%, transparent 48%);
  z-index: 0;
}

.hm-faq-visual-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 440px;
  padding: clamp(32px, 4vw, 52px);
  color: #fff;
}

.hm-faq-visual-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  animation: hmFaqFloat 5s ease-in-out infinite;
}

.hm-faq-visual-ico svg {
  width: 36px;
  height: 36px;
}

.hm-faq-visual h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.hm-faq-visual p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

.hm-faq-visual-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #fff;
  color: #2a93c9;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 38px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.hm-faq-visual-cta:hover {
  color: #7338dc;
  transform: translateY(-3px);
  box-shadow: 0 24px 46px -18px rgba(0, 0, 0, 0.6);
}

.hm-faq-visual-cta svg {
  width: 18px;
  height: 18px;
}

@keyframes hmFaqFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-faq-visual-ico {
    animation: none;
  }
}

/* ---------------- Services ---------------- */
.hm-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.hm-svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hm-card);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 20px 45px -24px rgba(11, 51, 83, 0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

/* keyboard focus for the card link */
.hm-svc-card:focus-visible {
  outline: 3px solid #2a93c9;
  outline-offset: 4px;
}

/* gradient hairline border */
.hm-svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(150deg, rgba(42, 147, 201, 0.55), rgba(115, 56, 220, 0.12) 45%, rgba(42, 147, 201, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hm-svc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 70px -26px rgba(11, 51, 83, 0.42);
}

.hm-svc-card:hover::before {
  opacity: 1;
}

/* soft accent glow behind the card */
.hm-svc-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset-inline-start: 12%;
  bottom: -46px;
  width: 76%;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(115, 56, 220, 0.28), transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.hm-svc-card:hover::after {
  opacity: 1;
  transform: translateY(-6px);
}

.hm-svc-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(150deg, #2a93c9 0%, #7338dc 100%);
}

.hm-svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.hm-svc-card:hover .hm-svc-media img {
  transform: scale(1.1);
  filter: saturate(1.1);
}

.hm-svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 51, 83, 0) 38%, rgba(11, 51, 83, 0.62) 100%),
    linear-gradient(150deg, rgba(42, 147, 201, 0.18), rgba(115, 56, 220, 0.28));
  transition: opacity 0.45s ease;
}

.hm-svc-card:hover .hm-svc-media::after {
  opacity: 0.82;
}

/* shine sweep */
.hm-svc-shine {
  position: absolute;
  z-index: 2;
  top: -60%;
  bottom: -60%;
  width: 46%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-160%) rotate(14deg);
  transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.3, 1);
  pointer-events: none;
}

.hm-svc-card:hover .hm-svc-shine {
  transform: translateX(320%) rotate(14deg);
}

.hm-svc-ico {
  position: absolute;
  z-index: 2;
  bottom: -24px;
  inset-inline-start: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: #fff;
  color: #2a93c9;
  box-shadow: 0 16px 30px -14px rgba(11, 51, 83, 0.55);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, border-radius 0.35s ease;
}

.hm-svc-ico svg {
  width: 26px;
  height: 26px;
  transition: transform 0.35s ease;
}

.hm-svc-card:hover .hm-svc-ico {
  background: linear-gradient(140deg, #2a93c9, #7338dc);
  color: #fff;
  border-radius: 50%;
  transform: translateY(-4px) scale(1.06);
}

.hm-svc-card:hover .hm-svc-ico svg {
  transform: scale(1.08);
}

.hm-svc-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 44px 26px 26px;
}

.hm-svc-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hm-ink);
  transition: color 0.3s ease;
}

.hm-svc-card:hover .hm-svc-body h3 {
  color: #2a93c9;
}

.hm-svc-body p {
  margin: 0;
  color: var(--hm-slate);
  font-size: 0.95rem;
  line-height: 1.72;
}

.hm-svc-more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 51, 83, 0.08);
  color: #2a93c9;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hm-svc-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s ease;
}

.hm-svc-card:hover .hm-svc-more {
  opacity: 1;
  transform: translateY(0);
}

.hm-svc-card:hover .hm-svc-more svg {
  transform: translateX(5px);
}

[dir="rtl"] .hm-svc-card:hover .hm-svc-more svg {
  transform: translateX(-5px) scaleX(-1);
}

@media (max-width: 991.98px) {
  .hm-faq-grid {
    grid-template-columns: 1fr;
  }

  .hm-faq-visual-in {
    min-height: 340px;
  }
}

@media (max-width: 575.98px) {
  .hm-faq-q {
    padding: 16px 16px;
    font-size: 1rem;
    gap: 12px;
  }

  .hm-faq-a-body {
    padding: 0 16px 18px;
  }

  .hm-svc-grid {
    grid-template-columns: 1fr;
  }
}
