/* e-Tasmi LearnHub landing (home.jsp): layout + tie-in to html[data-theme]. */

html {
  scroll-behavior: smooth;
}

/* Hero: Cloudinary image scales with column; avoid stretch (intrinsic ratio from transforms + width/height hints) */
.etasmi-landing-hero-photo {
  width: 100%;
  height: auto;
  max-height: clamp(260px, 52vw, min(720px, 70vh));
  object-fit: contain;
  background-color: rgba(15, 23, 42, 0.04);
}

:root[data-theme="dark"] .etasmi-landing-hero-photo {
  background-color: rgba(226, 232, 240, 0.06);
}

/* Navbar: keep three bands clear on large screens */
@media (min-width: 992px) {
  .etasmi-landing-navbar .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
  }

  .etasmi-landing-navbar .etasmi-landing-navbar__nav {
    flex-grow: 1;
    justify-content: center;
  }
}

:root[data-theme="dark"] .etasmi-landing-navbar.navbar {
  background-color: var(--theme-surface, #111b32) !important;
  border-bottom: 1px solid var(--theme-border, #1f2c48);
  box-shadow: var(--theme-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.45));
}

:root[data-theme="dark"] .etasmi-landing-navbar .navbar-brand,
:root[data-theme="dark"] .etasmi-landing-navbar .navbar-brand .fw-bold {
  color: var(--theme-text, #e6eaf3) !important;
}

:root[data-theme="dark"] .etasmi-landing-navbar .navbar-toggler {
  border-color: var(--theme-border, #1f2c48);
  filter: invert(0.92);
}

:root[data-theme="dark"] .etasmi-landing-navbar .nav-link {
  color: var(--theme-text-soft, #b7c1d4) !important;
}

:root[data-theme="dark"] .etasmi-landing-navbar .nav-link:hover,
:root[data-theme="dark"] .etasmi-landing-navbar .nav-link:focus {
  color: var(--theme-primary, #2dd4bf) !important;
}

/* Theme toggle inherits .etasmi-theme-toggle from etasmi-theme.css; subtle contrast on Bootstrap bar */
.etasmi-landing-navbar .etasmi-theme-toggle {
  color: var(--theme-text-soft, #475569);
}
:root[data-theme="dark"] .etasmi-landing-navbar .etasmi-theme-toggle:hover,
:root[data-theme="dark"] .etasmi-landing-navbar .etasmi-theme-toggle:focus-visible {
  background: var(--theme-surface-hover, #18243f);
}

/* Testimonials: soft mint tint, teal glow, smooth hover lift */
.etasmi-testimonial-card {
  border-color: rgba(45, 212, 191, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.55) 0%, #ffffff 42%);
  box-shadow: 0 0.5rem 1.25rem -0.5rem rgba(15, 118, 110, 0.18) !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease, border-color 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .etasmi-testimonial-card {
    transition: none;
  }

  .etasmi-testimonial-card:hover {
    transform: none;
  }
}

.etasmi-testimonial-card:hover {
  transform: translateY(-4px);
  border-color: #0f766e !important;
  box-shadow: 0 1rem 2.25rem -0.75rem rgba(15, 118, 110, 0.4),
    0 0 0 1px rgba(15, 118, 110, 0.18) !important;
}

:root[data-theme="dark"] .etasmi-testimonial-card {
  border-color: rgba(45, 212, 191, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.06) 0%, var(--theme-surface, #111b32) 45%);
  box-shadow: 0 0.5rem 1.25rem -0.5rem rgba(0, 0, 0, 0.5) !important;
}

:root[data-theme="dark"] .etasmi-testimonial-card:hover {
  border-color: #2dd4bf !important;
  box-shadow: 0 1rem 2.25rem -0.75rem rgba(45, 212, 191, 0.28),
    0 0 0 1px rgba(45, 212, 191, 0.22) !important;
}

.etasmi-testimonial-stars svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

/* Landing footer legal line: centred, readable, no overlays */
.etasmi-landing-footer-bottom {
  text-align: center;
}

.etasmi-landing-footer-bottom p {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .etasmi-landing-footer-bottom p {
    font-size: 0.875rem;
  }
}

:root[data-theme="dark"] .etasmi-landing-footer-bottom {
  border-top-color: var(--theme-border, #1f2c48) !important;
}

:root[data-theme="dark"] .etasmi-landing-footer-bottom p {
  color: var(--theme-text-soft, #94a3b8) !important;
}

/* Sessions (#courses): high-contrast lead/guide paragraph (fixes washed-out copy) */
.etasmi-session-lead {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

:root[data-theme="dark"] .etasmi-session-lead {
  color: var(--theme-text, #e8edf7);
}

/* Sessions (#courses): landing-style category cards (not dashboard/course catalogue) */
.etasmi-session-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  .etasmi-session-card,
  .etasmi-session-card-img {
    transition: none;
  }

  .etasmi-session-card:hover {
    transform: none;
  }

  .etasmi-session-card:hover .etasmi-session-card-img {
    transform: none;
  }

  .etasmi-session-card:hover .etasmi-session-card-img--contain {
    transform: none;
  }
}

.etasmi-session-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.1) !important;
}

:root[data-theme="dark"] .etasmi-session-card:hover {
  box-shadow: 0 0.65rem 1.5rem rgba(0, 0, 0, 0.48) !important;
}

.etasmi-session-card-cover {
  aspect-ratio: 4 / 3;
  background-color: rgba(15, 23, 42, 0.06);
}

:root[data-theme="dark"] .etasmi-session-card-cover {
  background-color: rgba(226, 232, 240, 0.06);
}

.etasmi-session-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.32s ease;
}

.etasmi-session-card:hover .etasmi-session-card-img {
  transform: scale(1.035);
}

/* Tajweed card only: landscape infographic — show full art without aggressive crop */
.etasmi-session-card-cover--infographic {
  background: linear-gradient(165deg, #f0fdfa 0%, #ecfeff 45%, #f8fafc 100%);
}

.etasmi-session-card-img--contain {
  object-fit: contain;
}

:root[data-theme="dark"] .etasmi-session-card-cover--infographic {
  background: linear-gradient(165deg, rgba(15, 118, 110, 0.18) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.etasmi-session-card:hover .etasmi-session-card-img--contain {
  transform: scale(1.02);
}

.etasmi-session-card-body {
  /* Slight separation from image for reading comfort */
  padding-top: 1.35rem !important;
}

.etasmi-session-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.etasmi-session-card-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  font-weight: 400;
  color: #334155;
  margin-bottom: 0;
}

:root[data-theme="dark"] .etasmi-session-card-title {
  color: var(--theme-text, #e8edf7);
}

:root[data-theme="dark"] .etasmi-session-card-desc {
  color: var(--theme-text-soft, #c5d0e3);
}

:root[data-theme="dark"] .etasmi-session-card-body {
  background: transparent;
}

.etasmi-session-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  background: rgba(248, 250, 252, 0.95);
}

:root[data-theme="dark"] .etasmi-session-tag {
  color: var(--theme-text-soft, #94a3b8);
  background: rgba(24, 36, 63, 0.55);
  border-color: var(--theme-border, #1f2c48);
}

/* Instructors (#mentor): image-led cards, name and country at bottom */
.etasmi-instructor-card {
  display: flex;
  flex-direction: column;
}

.etasmi-instructor-card-media {
  flex: 1 1 auto;
  aspect-ratio: 4 / 5;
  max-height: clamp(260px, 42vw, 420px);
  overflow: hidden;
  background-color: rgba(15, 23, 42, 0.06);
}

:root[data-theme="dark"] .etasmi-instructor-card-media {
  background-color: rgba(226, 232, 240, 0.08);
}

.etasmi-instructor-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.etasmi-instructor-card:hover .etasmi-instructor-card-img,
.etasmi-instructor-card:focus-visible .etasmi-instructor-card-img {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  .etasmi-instructor-card-img {
    transition: none;
  }

  .etasmi-instructor-card:hover .etasmi-instructor-card-img,
  .etasmi-instructor-card:focus-visible .etasmi-instructor-card-img {
    transform: scale(1);
  }
}

.etasmi-instructor-card-footer {
  flex: 0 0 auto;
  padding: 0.875rem 1rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: inherit;
}

:root[data-theme="dark"] .etasmi-instructor-card-footer {
  border-top-color: var(--theme-border, #1f2c48);
}

.etasmi-instructor-card-name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #0f172a;
}

:root[data-theme="dark"] .etasmi-instructor-card-name {
  color: var(--theme-text, #e8edf7);
}

.etasmi-instructor-card-country {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root[data-theme="dark"] .etasmi-instructor-card-country {
  color: var(--theme-text-soft, #cbd5e1);
}

/* =====================================================================
 * COMMUNITY SECTION — animated CSS/SVG "live recitation" graphic
 * Replaces the generic circular stock-photo grid. Brand-true,
 * lightweight (no images), and respectful Islamic illustration.
 * ===================================================================== */
.etasmi-community-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  padding: 2.5rem 1.5rem;
}

/* Ambient glowing rings = live audio streaming pulse */
.etasmi-community-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.etasmi-community-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 118, 110, 0.35);
  transform: translate(-50%, -50%) scale(0.45);
  opacity: 0;
  animation: etasmiAudioPulse 3.4s ease-out infinite;
}

.etasmi-community-rings span:nth-child(2) {
  animation-delay: 1.13s;
}

.etasmi-community-rings span:nth-child(3) {
  animation-delay: 2.26s;
}

/* Dashboard-style window */
.etasmi-community-window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  box-shadow: 0 32px 70px -36px rgba(15, 118, 110, 0.45), 0 8px 24px -16px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.etasmi-community-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.85) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.etasmi-community-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d9e0;
}

.etasmi-community-window__dot:nth-child(1) { background: #f87171; }
.etasmi-community-window__dot:nth-child(2) { background: #fbbf24; }
.etasmi-community-window__dot:nth-child(3) { background: #34d399; }

.etasmi-community-window__title {
  margin-left: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.01em;
}

.etasmi-community-window__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
}

.etasmi-community-window__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: etasmiLiveBlink 1.4s ease-in-out infinite;
}

.etasmi-community-window__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.5rem 2rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(45, 212, 191, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fdfb 100%);
}

/* Student illustration — gentle float */
.etasmi-community-figure {
  width: clamp(180px, 60%, 230px);
  animation: etasmiFloat 5.5s ease-in-out infinite;
}

.etasmi-community-figure__svg {
  width: 100%;
  height: auto;
  display: block;
}

.etasmi-community-figure .ec-halo { fill: url(#ecHaloGrad); }
.etasmi-community-figure .ec-robe {
  fill: url(#ecRobeGrad);
  filter: drop-shadow(0 6px 14px rgba(4, 120, 87, 0.32));
}
.etasmi-community-figure .ec-robe-cuff { fill: #065f46; }
.etasmi-community-figure .ec-skin { fill: #f4dcc0; }
.etasmi-community-figure .ec-cap { fill: url(#ecCapGrad); }
.etasmi-community-figure .ec-cap-band { fill: #0b5b54; }
.etasmi-community-figure .ec-book-page {
  fill: #fdfbf2;
  stroke: #cbb98a;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.etasmi-community-figure .ec-book-line {
  stroke: #c0a96a;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.etasmi-community-figure .ec-book-spine {
  stroke: #0b5b54;
  stroke-width: 2;
}

/* Rhythmic recitation waveform */
.etasmi-community-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  margin-top: 1.25rem;
}

.etasmi-community-wave span {
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #6ee7b7 0%, #2dd4bf 38%, #0f766e 100%);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.55), 0 0 2px rgba(110, 231, 183, 0.9);
  transform: scaleY(0.3);
  transform-origin: center;
  animation: etasmiWave 1.2s ease-in-out infinite;
}

.etasmi-community-wave span:nth-child(odd) { animation-duration: 1s; }
.etasmi-community-wave span:nth-child(3n) { animation-duration: 1.45s; }
.etasmi-community-wave span:nth-child(1)  { animation-delay: -0.9s; }
.etasmi-community-wave span:nth-child(2)  { animation-delay: -0.2s; }
.etasmi-community-wave span:nth-child(3)  { animation-delay: -0.6s; }
.etasmi-community-wave span:nth-child(4)  { animation-delay: -1.1s; }
.etasmi-community-wave span:nth-child(5)  { animation-delay: -0.35s; }
.etasmi-community-wave span:nth-child(6)  { animation-delay: -0.75s; }
.etasmi-community-wave span:nth-child(7)  { animation-delay: -0.15s; }
.etasmi-community-wave span:nth-child(8)  { animation-delay: -1s; }
.etasmi-community-wave span:nth-child(9)  { animation-delay: -0.5s; }
.etasmi-community-wave span:nth-child(10) { animation-delay: -0.85s; }
.etasmi-community-wave span:nth-child(11) { animation-delay: -0.25s; }
.etasmi-community-wave span:nth-child(12) { animation-delay: -0.65s; }
.etasmi-community-wave span:nth-child(13) { animation-delay: -1.05s; }
.etasmi-community-wave span:nth-child(14) { animation-delay: -0.4s; }
.etasmi-community-wave span:nth-child(15) { animation-delay: -0.8s; }
.etasmi-community-wave span:nth-child(16) { animation-delay: -0.3s; }
.etasmi-community-wave span:nth-child(17) { animation-delay: -0.7s; }

.etasmi-community-caption {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0f766e;
}

/* Floating info badges (kept from the original design) */
.etasmi-community-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 190px;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 14px 32px -18px rgba(15, 23, 42, 0.35);
  animation: etasmiBadgeFloat 4.5s ease-in-out infinite;
}

.etasmi-community-badge--tr {
  top: 8%;
  right: 2%;
}

.etasmi-community-badge--bl {
  bottom: 8%;
  left: 2%;
  animation-delay: -2.25s;
}

.etasmi-community-badge__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.etasmi-community-badge__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.etasmi-community-badge__copy .fw-bold {
  font-size: 0.85rem;
  color: #0f172a;
}

.etasmi-community-badge__copy small {
  font-size: 0.72rem;
  color: #64748b;
}

@media (max-width: 575.98px) {
  .etasmi-community-badge {
    width: 168px;
  }
  .etasmi-community-badge--tr { right: -0.5%; }
  .etasmi-community-badge--bl { left: -0.5%; }
}

/* Dark mode for the community graphic */
:root[data-theme="dark"] .etasmi-community-window {
  background: var(--theme-surface, #111b32);
  border-color: var(--theme-border, #1f2c48);
  box-shadow: 0 32px 70px -36px rgba(0, 0, 0, 0.7);
}

:root[data-theme="dark"] .etasmi-community-window__bar {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.08) 0%, var(--theme-surface, #111b32) 100%);
  border-bottom-color: var(--theme-border, #1f2c48);
}

:root[data-theme="dark"] .etasmi-community-window__title {
  color: var(--theme-text-soft, #b7c1d4);
}

:root[data-theme="dark"] .etasmi-community-window__body {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(45, 212, 191, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--theme-surface, #111b32) 0%, var(--theme-surface-raised, #17223d) 100%);
}

:root[data-theme="dark"] .etasmi-community-figure .ec-robe {
  fill: url(#ecRobeGrad);
  filter: drop-shadow(0 6px 16px rgba(16, 185, 129, 0.4));
}
:root[data-theme="dark"] .etasmi-community-figure .ec-robe-cuff { fill: #0f766e; }
:root[data-theme="dark"] .etasmi-community-figure .ec-cap { fill: url(#ecCapGrad); }
:root[data-theme="dark"] .etasmi-community-figure .ec-cap-band { fill: #0f766e; }

:root[data-theme="dark"] .etasmi-community-rings span {
  border-color: rgba(45, 212, 191, 0.4);
}

:root[data-theme="dark"] .etasmi-community-caption {
  color: #5eead4;
}

:root[data-theme="dark"] .etasmi-community-badge {
  background: var(--theme-surface-raised, #17223d);
  border-color: var(--theme-border, #1f2c48);
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.7);
}

:root[data-theme="dark"] .etasmi-community-badge__icon {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}

:root[data-theme="dark"] .etasmi-community-badge__copy .fw-bold {
  color: var(--theme-text, #e6eaf3);
}

:root[data-theme="dark"] .etasmi-community-badge__copy small {
  color: var(--theme-text-muted, #8592aa);
}

@keyframes etasmiAudioPulse {
  0%   { transform: translate(-50%, -50%) scale(0.45); opacity: 0.55; }
  70%  { opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

@keyframes etasmiWave {
  0%, 100% { transform: scaleY(0.28); }
  50%      { transform: scaleY(1); }
}

@keyframes etasmiFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes etasmiBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes etasmiLiveBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .etasmi-community-rings span,
  .etasmi-community-figure,
  .etasmi-community-wave span,
  .etasmi-community-window__live-dot,
  .etasmi-community-badge {
    animation: none !important;
  }
  .etasmi-community-wave span {
    transform: scaleY(0.6);
  }
  .etasmi-community-rings span {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* =====================================================================
 * TESTIMONIALS — minimal static quote cards (no avatars, no stars)
 * ===================================================================== */
.etasmi-testimonial-card .card-body {
  display: flex;
  flex-direction: column;
}

.etasmi-quote-card__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 0.7;
  font-weight: 700;
  color: #0f766e;
  opacity: 0.28;
  margin-bottom: 0.35rem;
}

.etasmi-quote-card__body {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
  flex: 1 1 auto;
}

.etasmi-quote-card__cite {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.etasmi-quote-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
}

.etasmi-quote-card__role {
  font-size: 0.78rem;
  color: #64748b;
}

:root[data-theme="dark"] .etasmi-quote-card__mark {
  color: #5eead4;
  opacity: 0.32;
}

:root[data-theme="dark"] .etasmi-quote-card__body {
  color: var(--theme-text-soft, #b7c1d4);
}

:root[data-theme="dark"] .etasmi-quote-card__cite {
  border-top-color: var(--theme-border, #1f2c48);
}

:root[data-theme="dark"] .etasmi-quote-card__name {
  color: var(--theme-text, #e6eaf3);
}

:root[data-theme="dark"] .etasmi-quote-card__role {
  color: var(--theme-text-muted, #8592aa);
}

/* Bootstrap section bands on home.jsp */
:root[data-theme="dark"] section.bg-light,
:root[data-theme="dark"] section[class*="bg-light"],
:root[data-theme="dark"] footer.bg-light {
  background-color: var(--theme-surface-muted) !important;
}

:root[data-theme="dark"] #hero.bg-white,
:root[data-theme="dark"] section.bg-white {
  background-color: var(--theme-bg) !important;
}

:root[data-theme="dark"] .text-muted {
  color: var(--theme-text-muted) !important;
}

:root[data-theme="dark"] .rounded-5.border.bg-light {
  background-color: var(--theme-surface) !important;
  border-color: var(--theme-border) !important;
}

:root[data-theme="dark"] body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
}

/* =====================================================================
 * FOOTER — neutralised structural links (no dead jumps)
 * ===================================================================== */
.etasmi-footer-link--inert {
  cursor: default;
}
