/* ═══════════════════════════════════════════════════════════════════════════
   Diako Home Hero  —  DB-driven hero: image + video  (dh-hero)
   Requires design-system.css loaded first.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   Hero Unit — single grid component: media (2fr) + promo cards (1fr)
   direction:ltr keeps media LEFT / cards RIGHT on the RTL page.
   ───────────────────────────────────────────────────────────────────────── */
.dh-hero-unit {
  position: relative;
  width: 100%;
  direction: ltr;
  background: #0B1220;
  overflow: hidden;
}
.dh-hero-unit--with-promos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 20vw, 275px);
  gap: 14px;
  height: 620px;
  max-height: 620px;
  padding: 0 14px 0 0;
  box-sizing: border-box;
  align-items: stretch;
}
.dh-hero-unit__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.dh-hero-unit--with-promos .dh-hero-unit__media.dh-hero {
  min-height: 0;
  height: 100%;
  border-radius: 0 16px 16px 0;
}
.dh-hero-unit--with-promos .dh-hero-unit__media.dh-hero::after {
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(11, 18, 32, 0.9));
  border-radius: 0 0 16px 0;
}
.dh-hero-unit--with-promos .dh-hero__body {
  padding: 0 1.5rem 1.25rem;
}

/* Promo column — exactly 4 equal rows locked inside the hero height */
.dh-hero-unit__promos {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 14px 0;
  box-sizing: border-box;
  direction: rtl;
}

/* Premium glass promo cards */
.dh-hero-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(to top,
      color-mix(in srgb, var(--card-c1, #6D28D9) 96%, transparent) 0%,
      color-mix(in srgb, var(--card-c2, #3B1D5F) 88%, transparent) 55%,
      color-mix(in srgb, var(--card-c2, #3B1D5F) 70%, transparent) 100%),
    linear-gradient(to top, var(--card-c1, #6D28D9) 0%, var(--card-c2, #3B1D5F) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}
a.dh-hero-card {
  cursor: pointer;
}
.dh-hero-card--static {
  cursor: default;
}
.dh-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.38);
  filter: brightness(1.07);
  color: #fff;
}
.dh-hero-card--static:hover {
  transform: none;
  filter: none;
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.28);
}
.dh-hero-card--static:hover .dh-hero-card__media img {
  transform: none;
}
.dh-hero-card--static.dh-hero-card--has-image:hover::before {
  opacity: 1;
}
.dh-hero-card__text {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 12px 14px;
  min-width: 0;
  text-align: right;
}
.dh-hero-card__icon {
  width: 19px;
  height: 19px;
  object-fit: contain;
  margin-bottom: 3px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.dh-hero-card__icon--emoji {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  filter: none;
  width: auto;
  height: auto;
}
.dh-hero-card__title {
  margin: 0;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.dh-hero-card__sub {
  margin: 0;
  font-size: clamp(0.68rem, 0.78vw, 0.75rem);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}
.dh-hero-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.dh-hero-card__arrow {
  flex-shrink: 0;
  transition: transform 220ms ease;
}
.dh-hero-card:hover .dh-hero-card__arrow {
  transform: translateX(-3px);
}
/* Uploaded photo fills the whole card */
.dh-hero-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.dh-hero-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 400ms ease;
}
.dh-hero-card:hover .dh-hero-card__media img {
  transform: scale(1.06);
}
/* Gradient scrim: solid at bottom → transparent at top (text sits on bottom) */
.dh-hero-card--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(to top,
      color-mix(in srgb, var(--card-c1, #6D28D9) 94%, transparent) 0%,
      color-mix(in srgb, var(--card-c2, #3B1D5F) 72%, transparent) 42%,
      color-mix(in srgb, var(--card-c2, #3B1D5F) 12%, transparent) 78%,
      transparent 100%);
  transition: opacity 220ms ease;
}
.dh-hero-card--has-image:hover::before {
  opacity: 0.88;
}
/* Text pinned to bottom over the gradient for readability */
.dh-hero-card--has-image .dh-hero-card__text {
  max-width: 100%;
  text-shadow: 0 1px 6px rgba(2, 8, 23, 0.45);
}

/* ─────────────────────────────────────────────────────────────────────────
   Shell
   ───────────────────────────────────────────────────────────────────────── */
.dh-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #0F172A;   /* safe dark fallback while media loads */
  direction: rtl;
}

/* ─────────────────────────────────────────────────────────────────────────
   Background layer
   ───────────────────────────────────────────────────────────────────────── */
.dh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Image */
.dh-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: dh-kenburns 18s ease-in-out infinite alternate;
}
@keyframes dh-kenburns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.06); }
}

/* Video */
.dh-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* No-media fallback — deep navy gradient */
.dh-hero__no-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

/* ─────────────────────────────────────────────────────────────────────────
   Overlay
   ───────────────────────────────────────────────────────────────────────── */
.dh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: var(--overlay-opacity, 0.55);
  mix-blend-mode: var(--overlay-blend, multiply);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 46%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 46%, #000 100%);
}
.dh-hero__overlay--gradient {
  background: linear-gradient(
    var(--overlay-angle, 135deg),
    var(--overlay-color-1, #0F172A) 0%,
    var(--overlay-color-2, #1E293B) 100%
  );
}
.dh-hero__overlay--solid {
  background: var(--overlay-color-1, #0F172A);
}

/* Bottom fade-to-page vignette */
.dh-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg, #F8FAFC));
  z-index: 3;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   Body — text content
   ───────────────────────────────────────────────────────────────────────── */
.dh-hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: clamp(5rem, 16vh, 8rem) 1.5rem clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dh-hero--center .dh-hero__body { align-items: center; text-align: center; }
.dh-hero--right  .dh-hero__body { align-items: flex-end; text-align: right; }

.dh-hero__title {
  font-family: var(--font-body);
  font-size: var(--title-size-desktop, 56px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--title-color, #FFFFFF);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.30);
}

.dh-hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--subtitle-color, #E2E8F0);
  margin: 0 0 24px;
  font-weight: 400;
  max-width: 52ch;
  line-height: 1.85;
  text-shadow: 0 2px 12px rgba(0,0,0,0.20);
}

/* ─────────────────────────────────────────────────────────────────────────
   CTA Buttons
   ───────────────────────────────────────────────────────────────────────── */
.dh-hero__buttons,
.video-hero__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0; /* language cards moved out of Hero */
}

/* Ensure outline hero button is legible on dark backgrounds */
.btn-hero-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,0.60) !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.85) !important;
}

/* Hero CTAs sit side by side (placement + consultation) */
.dh-hero__buttons .btn-hero-outline,
.dh-hero__buttons .btn-hero-primary,
.video-hero__buttons .btn-hero-outline,
.video-hero__buttons .btn-hero-primary {
  min-width: min(200px, 44vw);
  padding-inline: 28px;
}

/* ─────────────────────────────────────────────────────────────────────────
   دوره‌های دیاکو — glass language cards (below class promo; never in Hero)
   ───────────────────────────────────────────────────────────────────────── */
.dh-lang-section {
  position: relative;
  width: 100%;
  padding: 40px 0 52px;
  overflow: hidden;
  background:
    radial-gradient(680px 280px at 90% 12%, rgba(59, 130, 246, 0.09), transparent 68%),
    radial-gradient(620px 260px at 8% 88%, rgba(225, 29, 72, 0.08), transparent 68%),
    var(--bg, #f8fafc);
}
.dh-lang-section__inner {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}
.dh-lang-section__header {
  text-align: center;
  margin-bottom: 22px;
}
.dh-lang-section__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  color: var(--text, #0f172a);
  letter-spacing: -0.02em;
}
.dh-lang-section__sub {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted, #64748b);
  line-height: 1.7;
}

.dh-lang-section__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.dh-lang-card {
  --card-accent: #2563eb;
  position: relative;
  isolation: isolate;
  min-height: 128px;
  border-radius: 20px;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--card-accent) 15%, rgba(255, 255, 255, 0.9)),
      color-mix(in srgb, var(--card-accent) 4%, rgba(255, 255, 255, 0.76)));
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  border: 1px solid color-mix(in srgb, var(--card-accent) 24%, rgba(255, 255, 255, 0.78));
  padding: 18px 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px -18px color-mix(in srgb, var(--card-accent) 45%, rgba(15, 23, 42, 0.3));
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease,
    color 280ms ease;
}
.dh-lang-card__glow {
  position: absolute;
  inset: auto -14% -56% 16%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-accent) 0%, transparent 70%);
  opacity: 0.22;
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
}
.dh-lang-card__flag,
.dh-lang-card__fa,
.dh-lang-card__en {
  position: relative;
  z-index: 1;
}
.dh-lang-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 1.55rem;
  line-height: 1;
  background: color-mix(in srgb, var(--card-accent) 14%, rgba(255, 255, 255, 0.8));
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, rgba(255, 255, 255, 0.8));
  box-shadow: 0 5px 14px -10px color-mix(in srgb, var(--card-accent) 72%, rgba(15, 23, 42, 0.35));
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms ease, background 280ms ease;
}
.dh-lang-card__fa {
  font-size: 0.95rem;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  transition: color 280ms ease;
}
.dh-lang-card__en {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.72;
  letter-spacing: 0.04em;
  direction: ltr;
  transition: opacity 280ms ease, color 280ms ease;
}
.dh-lang-card:hover,
.dh-lang-card:focus-visible {
  transform: translateY(-5px) scale(1.025);
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--card-accent) 20%, rgba(255, 255, 255, 0.96)),
      color-mix(in srgb, var(--card-accent) 7%, rgba(255, 255, 255, 0.86)));
  border-color: color-mix(in srgb, var(--card-accent) 48%, rgba(255, 255, 255, 0.8));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 36px -14px color-mix(in srgb, var(--card-accent) 35%, rgba(15, 23, 42, 0.28)),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 22%, transparent);
  color: #0f172a;
  outline: none;
}
.dh-lang-card:hover .dh-lang-card__glow,
.dh-lang-card:focus-visible .dh-lang-card__glow {
  opacity: 0.38;
  transform: translateY(-8px);
}
.dh-lang-card:hover .dh-lang-card__flag,
.dh-lang-card:focus-visible .dh-lang-card__flag {
  transform: scale(1.12) translateY(-1px);
  background: color-mix(in srgb, var(--card-accent) 23%, rgba(255, 255, 255, 0.92));
  filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--card-accent) 40%, transparent));
}
.dh-lang-card:hover .dh-lang-card__en,
.dh-lang-card:focus-visible .dh-lang-card__en {
  opacity: 0.9;
  color: color-mix(in srgb, var(--card-accent) 70%, #0f172a);
}

/* Legacy in-hero grid — permanently off */
.dh-hero__lang-grid { display: none !important; }

/* ─────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────── */
/* Tablet — narrower promo column */
@media (max-width: 1100px) {
  .dh-hero-unit--with-promos {
    grid-template-columns: minmax(0, 1fr) clamp(200px, 24vw, 240px);
    height: 560px;
    max-height: 560px;
    gap: 12px;
  }
  .dh-hero-card__text { padding: 10px 12px; }
}

@media (max-width: 768px) {
  /* Hero on top, cards below in a 2-column grid */
  .dh-hero-unit--with-promos {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    gap: 0;
    padding: 0;
  }
  .dh-hero-unit__media {
    height: auto;
  }
  .dh-hero-unit--with-promos .dh-hero-unit__media.dh-hero {
    height: auto;
    min-height: calc(100svh - var(--sh-h, 56px) - 140px);
    border-radius: 0;
  }
  .dh-hero-unit--with-promos .dh-hero-unit__media.dh-hero::after {
    border-radius: 0;
    background: linear-gradient(to bottom, transparent, #0B1220);
  }
  .dh-hero-unit__promos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
    max-height: none;
    overflow: visible;
    gap: 10px;
    padding: 12px;
  }
  .dh-hero-card { min-height: 112px; }
  .dh-hero-card__text { padding: 12px 14px; }

  .dh-hero {
    min-height: calc(100svh - var(--sh-h, 56px));
    min-height: calc(100dvh - var(--sh-h, 56px));
  }
  .dh-hero__title {
    font-size: clamp(1.875rem, 7vw, 2.25rem) !important;
  }
  .dh-hero__sub { font-size: 0.95rem; margin-bottom: 18px; }
  .dh-hero__buttons {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .dh-lang-section {
    padding: 32px 0 40px;
  }
  .dh-lang-section__header {
    margin-bottom: 16px;
  }
  .dh-lang-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .dh-lang-card {
    min-height: 112px;
    padding: 14px 10px 12px;
    border-radius: 18px;
  }
  .dh-lang-card__flag {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.4rem;
  }
  .dh-lang-card__fa {
    font-size: 0.88rem;
  }
  .dh-lang-card__en {
    font-size: 0.68rem;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .dh-lang-section__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .dh-lang-card {
    min-height: 104px;
    padding: 14px 8px;
  }
  .dh-lang-card__fa { font-size: 0.88rem; }
}

/* Mobile — single column cards */
@media (max-width: 480px) {
  .dh-hero-unit__promos {
    grid-template-columns: minmax(0, 1fr);
  }
  .dh-hero-card { min-height: 96px; }
  .dh-lang-section {
    padding: 28px 0 36px;
  }
  .dh-lang-section__grid {
    gap: 8px;
  }
  .dh-lang-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 4px);
    justify-self: center;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Lead form page
   ───────────────────────────────────────────────────────────────────────── */
.lead-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  background: var(--bg);
}

.lead-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 560px;
  margin-inline: auto;
}

.lead-page__brand   { text-align: center; }
.lead-page__icon    { font-size: 3rem; display: block; margin-bottom: 12px; }
.lead-page__title   {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}
.lead-page__desc    {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

/* Form card */
.lead-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 40px -12px rgba(15,23,42,0.12);
}

.lead-form          { display: flex; flex-direction: column; gap: 20px; }
.lead-form__group   { display: flex; flex-direction: column; gap: 6px; }
.lead-form__label   { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.lead-form__req     { color: var(--ds-red-600); }
.lead-form__errors  {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  color: var(--ds-red-600);
  font-size: 0.82rem;
}
.lead-form__submit  { margin-top: 8px; width: 100%; justify-content: center; }

/* form-control inputs */
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* Trust signals */
.lead-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Success page */
.lead-success {
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lead-success__icon  { font-size: 4rem; }
.lead-success__title { font-size: 1.8rem; font-weight: 800; color: var(--text); margin: 0; }
.lead-success__desc  { color: var(--text-muted); line-height: 1.85; margin: 0; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   Promo Section — HeroBelowCards  (حضوری / آنلاین / خصوصی)
   Compact 3-card cluster: tighter gaps, larger cards, one row on desktop
   ═══════════════════════════════════════════════════════════════════════════ */

.promo-section {
  padding: 36px 0 48px;
  background: var(--bg);
}

.promo-section + .section,
.promo-section + section {
  margin-top: 0;
  padding-top: 56px;
}

.promo-section__inner {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}

.promo-section__header {
  text-align: center;
  margin-bottom: 18px;
}
.promo-section__title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}
.promo-section__sub {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tight cluster — 3 equal cards, small gutters */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.promo-grid--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 360px;
  margin-inline: auto;
}
.promo-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 700px;
  margin-inline: auto;
}

/* Larger, squarer cards — better photo framing */
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: none;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--card-text, #fff);
  cursor: pointer;
  box-shadow: 0 8px 28px -10px rgba(15, 23, 42, 0.22);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  isolation: isolate;
}
.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.32);
  color: var(--card-text, #fff);
}

.promo-card--align-right  .promo-card__body { text-align: right; align-items: flex-end; }
.promo-card--align-left   .promo-card__body { text-align: left;  align-items: flex-start; }
.promo-card--align-center .promo-card__body { text-align: center; align-items: center; }

.promo-card__media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.40s ease;
}
.promo-card:hover .promo-card__media-bg {
  transform: scale(1.045);
}

.promo-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ds-navy-800, #0f172a);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  transition: transform 0.40s ease;
}
.promo-card:hover .promo-card__bg {
  transform: scale(1.045);
}

/* Soft bottom-weighted overlay for readable text */
.promo-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--overlayTop, var(--card-color-2, #111827)) 35%, transparent) 0%,
    color-mix(in srgb, var(--overlayTop, var(--card-color-2, #111827)) 55%, transparent) 38%,
    var(--overlayBottom, var(--card-color-1, #0F172A)) 100%
  );
  opacity: max(0.62, var(--overlayOpacity, var(--card-opacity, 0.55)));
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.26s ease;
}
.promo-card:hover .promo-card__overlay {
  opacity: min(0.92, calc(max(0.62, var(--overlayOpacity, var(--card-opacity, 0.55))) + 0.06));
}

.promo-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.promo-card__badge--inperson {
  background: rgba(124, 58, 237, 0.72);
  color: #fff;
}
.promo-card__badge--online {
  background: rgba(29, 78, 216, 0.72);
  color: #fff;
}
.promo-card__badge--private {
  background: rgba(13, 148, 136, 0.72);
  color: #fff;
}

.promo-card__body {
  position: relative;
  z-index: 2;
  padding: 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-card__title {
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  color: var(--card-text, #fff);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.promo-card__subtitle {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--card-text, #fff) 92%, transparent);
  margin: 0;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.20s ease, border-color 0.20s ease, color 0.20s ease;
}
.promo-card:hover .btn-promo,
.btn-promo:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.88);
  color: #fff;
}

@media (max-width: 1100px) {
  .promo-section__inner {
    max-width: 960px;
  }
  .promo-grid,
  .promo-grid--3 {
    gap: 7px;
  }
}

@media (max-width: 900px) {
  .promo-section__inner {
    max-width: 860px;
  }
  .promo-grid,
  .promo-grid--2,
  .promo-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .promo-card {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }
  .promo-card__body {
    padding: 16px 12px 16px;
    gap: 6px;
  }
  .promo-card__title {
    font-size: clamp(0.95rem, 2.1vw, 1.08rem);
  }
  .promo-card__subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .btn-promo {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.8rem;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .promo-section {
    padding: 28px 0 40px;
  }
  .promo-section__inner {
    max-width: 520px;
    padding-inline: 16px;
  }
  .promo-grid,
  .promo-grid--2,
  .promo-grid--3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .promo-card {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .promo-card__badge {
    top: 12px;
    right: 12px;
    font-size: 0.72rem;
    padding: 4px 10px;
    z-index: 4;
  }
  .promo-card__body {
    padding: 36px 16px 18px;
    align-items: center;
    text-align: center;
    gap: 7px;
  }
  .promo-card--align-right .promo-card__body,
  .promo-card--align-left .promo-card__body {
    align-items: center;
    text-align: center;
  }
  .promo-card__title {
    font-size: 1.15rem;
  }
  .promo-card__subtitle {
    font-size: 0.88rem;
  }
  .btn-promo {
    margin-inline: auto;
    min-height: 42px;
    padding: 9px 18px;
    font-size: 0.86rem;
    border-radius: 12px;
  }
}
