/* Histudy-inspired education UI (ThemeForest #42846507 palette & patterns)
   Loaded after main.css. Learning roadmap (#roadmap) stays on legacy tokens in main.css. */

:root {
  --hs-primary: #2f57ef;
  --hs-primary-dark: #2446d4;
  --hs-primary-darker: #1c38b0;
  --hs-secondary: #b966e7;
  --hs-heading: #192335;
  --hs-body: #6b7385;
  --hs-border: #e6e3f1;
  --hs-canvas: #f9f9ff;
  --hs-canvas-2: #f5f7fa;
  --hs-white: #ffffff;
  --hs-primary-light: #f1f7ff;
  --hs-primary-opacity: rgba(47, 87, 239, 0.12);
  --hs-secondary-opacity: rgba(185, 102, 231, 0.12);

  --dm-blue-600: var(--hs-primary);
  --dm-blue-500: #4a6af3;
  --dm-blue-700: var(--hs-primary-dark);
  --dm-blue-800: var(--hs-primary-darker);
  --dm-blue-900: #152a66;
  --dm-blue-400: #6b86f5;
  --dm-blue-200: #c7d4fc;
  --dm-blue-100: #e8edfe;
  --dm-blue-50: var(--hs-primary-light);

  --dm-play-violet: var(--hs-secondary);
  --dm-play-violet-dark: #a855d6;

  --dm-slate-900: var(--hs-heading);
  --dm-slate-800: #2c3544;
  --dm-slate-700: #3d4654;
  --dm-slate-600: var(--hs-body);
  --dm-slate-400: #9ca3b0;
  --dm-slate-200: var(--hs-border);
  --dm-slate-100: var(--hs-canvas-2);
  --dm-slate-50: var(--hs-canvas);

  --bs-primary: var(--hs-primary);
  --bs-primary-rgb: 47, 87, 239;
  --bs-link-color: var(--hs-primary);
  --bs-link-hover-color: var(--hs-primary-dark);

  --pl-primary: var(--hs-primary);
  --pl-primary-dark: var(--hs-primary-dark);
  --pl-secondary: var(--hs-body);
  --pl-body: var(--hs-heading);
  --pl-muted-gray: var(--hs-body);
  --pl-surface: var(--hs-canvas-2);
  --pl-nav: var(--hs-heading);
  --pl-navy-outline: var(--hs-heading);
  --pl-outline-border: var(--hs-border);
  --pl-warning: var(--hs-primary);
  --pl-warning-hover: var(--hs-primary-dark);
  --pl-warning-border: var(--hs-primary-darker);

  --dm-text: var(--hs-heading);
  --dm-text-soft: #4b5568;
  --dm-muted: var(--hs-body);
  --dm-primary: var(--hs-primary);
  --dm-primary-dark: var(--hs-primary-dark);
  --dm-border: rgba(25, 35, 53, 0.1);

  --dm-blue-soft: var(--hs-primary-opacity);
  --dm-red-soft: var(--hs-secondary-opacity);
  --dm-yellow-soft: rgba(185, 102, 231, 0.1);
  --dm-green-soft: rgba(62, 183, 94, 0.12);

  --pl-card-border: var(--hs-border);
  --radius-card: 1rem;
  --shadow-card: 0 4px 20px rgba(25, 35, 53, 0.06);
  --shadow-card-hover: 0 16px 48px rgba(47, 87, 239, 0.12);

  --dm-canvas-base: var(--hs-canvas-2);
  --dm-canvas-top: var(--hs-canvas);
  --dm-canvas-bottom: #eef1f8;
  --dm-canvas-glow-blue: rgba(47, 87, 239, 0.07);
  --dm-canvas-glow-cyan: rgba(185, 102, 231, 0.06);
  --dm-canvas-glow-indigo: rgba(47, 87, 239, 0.04);

  --dm-glass-nav: rgba(255, 255, 255, 0.92);
  --dm-glass-nav-border: var(--hs-border);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --radius: 6px;
}

html {
  font-size: 16px;
}

body {
  color: var(--hs-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--hs-canvas);
  background-image:
    radial-gradient(ellipse 100% 60% at 90% -10%, rgba(185, 102, 231, 0.09), transparent 50%),
    radial-gradient(ellipse 80% 50% at 0% 20%, rgba(47, 87, 239, 0.06), transparent 48%),
    linear-gradient(180deg, var(--hs-canvas) 0%, var(--hs-canvas-2) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Home: stronger blue / violet-pink wash (matches hero blobs + brand gradient) */
body.dm-page-home {
  background-image:
    radial-gradient(ellipse 105% 62% at 88% -6%, rgba(185, 102, 231, 0.16), transparent 54%),
    radial-gradient(ellipse 88% 52% at 0% 18%, rgba(47, 87, 239, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 40% at 72% 92%, rgba(91, 74, 232, 0.07), transparent 48%),
    linear-gradient(188deg, var(--hs-canvas) 0%, var(--hs-canvas-2) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--hs-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* —— Top announcement bar (Histudy header campaign) —— */
.dm-topbar {
  position: relative;
  z-index: 1030;
  background: linear-gradient(90deg, var(--hs-primary) 0%, #5a45e8 45%, var(--hs-secondary) 100%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
  font-weight: 500;
}

.dm-topbar[hidden] {
  display: none !important;
}

.dm-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  min-height: 2.75rem;
}

.dm-topbar__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.dm-topbar__text {
  text-align: center;
  flex: 1 1 auto;
}

.dm-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.dm-topbar__link:hover {
  text-decoration: underline;
  color: #fff !important;
}

.dm-topbar__close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.dm-topbar__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* —— Navbar —— */
.navbar.dm-navbar {
  background: var(--hs-white) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--hs-border) !important;
  box-shadow: 0 4px 24px rgba(25, 35, 53, 0.04);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  overflow: visible;
}

@media (min-width: 992px) {
  .navbar.dm-navbar .navbar-collapse {
    overflow: visible;
  }
}

.dm-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--hs-heading) !important;
}

.dm-brand span {
  background: linear-gradient(90deg, var(--hs-primary) 0%, var(--hs-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dm-nav-link {
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  color: var(--hs-heading) !important;
  padding: 0.5rem 0.85rem !important;
}

.dm-nav-link:hover,
.dm-nav-link:focus,
.dm-nav-link.active {
  color: var(--hs-primary) !important;
}

/* —— Buttons (Histudy rbt-btn feel) —— */
.btn-dm-primary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(90deg, var(--hs-primary) 0%, #4f64f0 50%, var(--hs-secondary) 135%);
  background-size: 200% 100%;
  box-shadow: 0 8px 24px rgba(47, 87, 239, 0.28);
  transition:
    background-position 0.45s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.btn-dm-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 12px 32px rgba(47, 87, 239, 0.35);
  transform: translateY(-2px);
  color: var(--pl-white) !important;
}

.btn-dm-primary.btn-lg {
  min-height: 56px;
  padding: 0 2rem;
  font-size: 1rem;
}

/* Transformer-style self-attention icon (navbar Research Lab) */
.dm-nav-transformer-icon {
  display: block;
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
}

/* Navbar: Research Lab — light tinted pill; slightly richer (still light) when on /research-lab */
.btn-dm-research-lab {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1.35rem;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid rgba(47, 87, 239, 0.22);
  background: linear-gradient(135deg, var(--dm-blue-100) 0%, #f0edff 55%, #eef5ff 100%);
  color: var(--hs-primary-dark) !important;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(47, 87, 239, 0.08);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn-dm-research-lab:hover,
.btn-dm-research-lab:focus-visible {
  background: linear-gradient(135deg, var(--dm-blue-200) 0%, #e8e2fc 50%, #dce6fe 100%);
  color: var(--hs-primary-darker) !important;
  border-color: rgba(47, 87, 239, 0.35);
  box-shadow: 0 4px 18px rgba(47, 87, 239, 0.12);
  transform: translateY(-1px);
}

.btn-dm-research-lab--active {
  background: linear-gradient(135deg, #d9e4ff 0%, #e6d9fc 45%, #e0ebff 100%);
  color: var(--hs-primary-darker) !important;
  border-color: rgba(47, 87, 239, 0.4);
  box-shadow:
    0 2px 14px rgba(47, 87, 239, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.btn-dm-research-lab--active:hover,
.btn-dm-research-lab--active:focus-visible {
  background: linear-gradient(135deg, #cdd9fc 0%, #dcccf8 45%, #d4e2fd 100%);
  border-color: rgba(47, 87, 239, 0.48);
  box-shadow: 0 4px 20px rgba(47, 87, 239, 0.14);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-dm-research-lab,
  .btn-dm-research-lab:hover,
  .btn-dm-research-lab:focus-visible,
  .btn-dm-research-lab--active:hover,
  .btn-dm-research-lab--active:focus-visible {
    transition: none;
    transform: none;
  }
}

.btn-dm-ghost {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid var(--hs-border);
  border-radius: var(--radius);
  color: var(--hs-heading) !important;
  background: transparent;
}

.btn-dm-ghost:hover {
  border-color: var(--hs-primary);
  background: var(--hs-primary);
  color: #fff !important;
}

.btn-dm-outline,
.dm-play-btn {
  color: var(--hs-primary) !important;
  font-weight: 600;
}

.btn-dm-outline:hover,
.dm-play-btn:hover {
  color: var(--hs-secondary) !important;
}

/* —— Hero —— */
.dm-hero {
  position: relative;
  padding-top: 3.5rem !important;
  padding-bottom: 4rem !important;
  background: transparent;
  overflow: hidden;
}

/* Shorter first fold: no full-viewport centering, tighter type + form */
.dm-hero.dm-hero--compact {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 1.5rem !important;
  padding-bottom: 1.25rem !important;
  min-height: 0;
}

.dm-hero--compact__title {
  margin-bottom: 0.65rem !important;
  font-size: clamp(1.65rem, 4vw, 2.35rem) !important;
  line-height: 1.18 !important;
}

.dm-hero--compact__lead {
  font-size: 1rem !important;
  line-height: 1.55 !important;
  max-width: 36rem;
}

.dm-hero--compact__btn {
  padding: 0.55rem 1rem !important;
  font-size: 0.9375rem !important;
}

@media (min-width: 576px) {
  .dm-hero--compact__btn {
    padding: 0.65rem 1.15rem !important;
    font-size: 1rem !important;
  }
}

.dm-hero--compact .dm-hero-badge {
  margin-bottom: 0.6rem !important;
}

.dm-hero__blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dm-hero__blobs::before,
.dm-hero__blobs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.dm-hero__blobs::before {
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  background: var(--hs-secondary);
  top: -15%;
  right: -8%;
}

.dm-hero__blobs::after {
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  background: var(--hs-primary);
  bottom: 0;
  left: -12%;
}

.dm-hero-content {
  z-index: 2;
}

.dm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--hs-primary-light);
  color: var(--hs-primary);
  border: 1px solid rgba(47, 87, 239, 0.15);
  margin-bottom: 1.25rem;
}

.dm-hero h1 {
  font-size: clamp(2.125rem, 5vw, 3.15rem);
  line-height: 1.15;
  color: var(--hs-heading);
  margin-bottom: 1.25rem;
}

.dm-hero .lead {
  color: var(--hs-body) !important;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 500;
  max-width: 34rem;
}

.dm-hero-meta {
  margin-top: 0.5rem;
}

.dm-hero-meta li {
  color: var(--hs-body);
  font-weight: 500;
}

.dm-hero-meta .bi {
  color: var(--hs-primary);
  font-size: 1.1rem;
}

.dm-hero-meta strong {
  color: var(--hs-heading);
  font-weight: 700;
}

.dm-hero-card {
  border-radius: 1rem;
  border: 1px solid var(--hs-border);
  background: var(--hs-white);
  box-shadow: var(--shadow-card-hover);
  padding: 2rem 1.75rem;
}

.dm-hero-card .stat {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--hs-primary), var(--hs-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dm-hero-card .stat-label {
  color: var(--hs-body);
  font-weight: 600;
  font-size: 0.8125rem;
}

.dm-hero-card .small {
  color: var(--hs-body) !important;
}

/* Hero — horizontal outcomes strip + compact enquiry */
.dm-hero-strip {
  border-radius: 12px;
  border: 1px solid var(--hs-border);
  background: var(--hs-white);
  box-shadow: var(--shadow-card);
  padding: 0.65rem 0.85rem;
}

@media (min-width: 768px) {
  .dm-hero-strip {
    padding: 0.75rem 1.15rem;
  }
}

.dm-hero-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.5rem;
  row-gap: 0.85rem;
}

.dm-hero-strip__item {
  flex: 1 1 auto;
  min-width: 5.5rem;
  text-align: center;
  padding: 0.15rem 0.35rem;
}

.dm-hero-strip__item--since {
  flex: 0 0 auto;
  min-width: 4.5rem;
  text-align: left;
  padding-left: 0.25rem;
}

.dm-hero-strip__since-line {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-body);
  line-height: 1.2;
}

.dm-hero-strip__since-year {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  font-family: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  letter-spacing: -0.03em;
  color: var(--hs-heading);
  line-height: 1.1;
}

.dm-hero-strip__value {
  display: block;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--hs-primary), var(--hs-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1.15;
}

.dm-hero-strip__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hs-body);
  line-height: 1.25;
}

.dm-hero-strip__rule {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 2.25rem;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(15, 23, 42, 0.12) 15%,
    rgba(15, 23, 42, 0.12) 85%,
    transparent
  );
}

@media (max-width: 575.98px) {
  .dm-hero-strip__rule {
    display: none;
  }

  .dm-hero-strip__inner {
    justify-content: center;
  }

  .dm-hero-strip__item--since {
    flex: 1 1 100%;
    text-align: center;
    padding-left: 0;
  }

  .dm-hero-strip__rule--before-review {
    display: none;
  }
}

.dm-hero-strip__review {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 6.5rem;
  padding: 0 0.25rem;
}

.dm-hero-strip__review-cap {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hs-body);
  text-align: center;
  line-height: 1.2;
}

.dm-hero-review-img {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-left: 0.7rem;
}

.dm-hero-review-img__face {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  margin-left: -0.7rem;
  border: 2px solid var(--hs-white);
  box-shadow: 0 2px 8px rgba(25, 35, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative;
}

.dm-hero-review-img__face:first-child {
  margin-left: 0;
}

.dm-hero-review-img__face:nth-child(1) {
  z-index: 5;
}
.dm-hero-review-img__face:nth-child(2) {
  z-index: 4;
}
.dm-hero-review-img__face:nth-child(3) {
  z-index: 3;
}
.dm-hero-review-img__face:nth-child(4) {
  z-index: 2;
}
.dm-hero-review-img__face:nth-child(5) {
  z-index: 1;
}

.dm-hero-review-img__photo.dm-hero-review-img__face {
  padding: 0;
  object-fit: cover;
  object-position: center;
  background: var(--hs-canvas-2);
  font-size: 0;
  line-height: 0;
}

.dm-hero-review-img__face--t1 {
  background: linear-gradient(145deg, #2f57ef, #5b7cff);
}

.dm-hero-review-img__face--t2 {
  background: linear-gradient(145deg, #b966e7, #7c5cff);
}

.dm-hero-review-img__face--t3 {
  background: linear-gradient(145deg, #1ba8d9, #2f57ef);
}

.dm-hero-review-img__face--t4 {
  background: linear-gradient(145deg, #3eb75e, #1ba8d9);
}

.dm-hero-review-img__face--t5 {
  background: linear-gradient(145deg, #e85a9b, #b966e7);
}

.dm-hero-review-img__face--1 {
  background: linear-gradient(145deg, #2f57ef, #6b8cff);
}

.dm-hero-review-img__face--2 {
  background: linear-gradient(145deg, #b966e7, #8b5cf6);
}

.dm-hero-review-img__face--3 {
  background: linear-gradient(145deg, #0ea5e9, #2f57ef);
}

.dm-hero-review-img__face--4 {
  background: linear-gradient(145deg, #22c55e, #0ea5e9);
}

.dm-hero-enquiry {
  border-radius: 12px;
  border: 1px solid var(--hs-border);
  background: var(--hs-white);
  box-shadow: var(--shadow-card-hover);
  padding: 1.15rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .dm-hero-enquiry {
    padding: 1.25rem 1.25rem 1.35rem;
  }
}

.dm-hero-enquiry__head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dm-hero-enquiry__kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hs-primary);
  margin-bottom: 0.35rem;
}

.dm-hero-enquiry__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--hs-heading);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.dm-hero-enquiry__lead {
  color: var(--hs-body) !important;
  font-weight: 500;
  line-height: 1.55;
}

.dm-hero-enquiry__form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dm-hero-enquiry__form .form-label {
  color: var(--hs-heading);
}

.dm-hero-enquiry__input {
  border-radius: 10px;
  border-color: rgba(15, 23, 42, 0.12);
  font-size: 0.9375rem;
  padding: 0.55rem 0.85rem;
}

.dm-hero-enquiry__input:focus {
  border-color: var(--hs-primary);
  box-shadow: 0 0 0 0.2rem rgba(47, 87, 239, 0.15);
}

.dm-hero-enquiry textarea.dm-hero-enquiry__input {
  min-height: 5.5rem;
  resize: vertical;
}

/* Enquiry — compact card, Histudy palette (light surface, primary accent) */
.dm-hero-enquiry--focused {
  width: 100%;
  max-width: 22.5rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--hs-border);
  background: linear-gradient(
    155deg,
    var(--hs-white) 0%,
    var(--hs-primary-light) 42%,
    rgba(255, 255, 255, 0.97) 100%
  );
  box-shadow: var(--shadow-card-hover);
}

@media (min-width: 992px) {
  .dm-hero-enquiry--focused {
    margin-left: auto;
    max-width: 23.25rem;
  }
}

@media (max-width: 991.98px) {
  .dm-hero-enquiry--focused {
    max-width: none;
  }
}

.dm-hero-enquiry--focused .dm-hero-enquiry__head {
  margin-bottom: 0.65rem;
  padding-bottom: 0.6rem;
  border-bottom-color: rgba(47, 87, 239, 0.12);
}

.dm-hero-enquiry--focused .dm-hero-enquiry__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--hs-heading);
  letter-spacing: -0.02em;
}

.dm-hero-enquiry--focused .dm-hero-enquiry__lead {
  margin-top: 0.2rem !important;
  color: var(--hs-body) !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}

.dm-hero-enquiry--focused .dm-hero-enquiry__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  color: var(--hs-heading);
}

.dm-hero-enquiry__optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--hs-body);
  font-size: 0.65rem;
}

.dm-hero-enquiry--focused .dm-hero-enquiry__input {
  font-size: 0.8125rem !important;
  padding: 0.4rem 0.65rem !important;
  border-radius: 8px;
  border-color: rgba(230, 227, 241, 0.95);
  background: var(--hs-white);
  color: var(--hs-heading);
}

.dm-hero-enquiry--focused .dm-hero-enquiry__input::placeholder {
  color: #9ca3b0;
}

.dm-hero-enquiry--focused .dm-hero-enquiry__input:focus {
  border-color: var(--hs-primary);
  background: var(--hs-white);
  box-shadow: 0 0 0 0.2rem rgba(47, 87, 239, 0.15);
  color: var(--hs-heading);
}

.dm-hero-enquiry--focused textarea.dm-hero-enquiry__input {
  min-height: 3.75rem;
  resize: vertical;
}

.dm-hero-enquiry--focused .dm-hero-enquiry__input:-webkit-autofill,
.dm-hero-enquiry--focused .dm-hero-enquiry__input:-webkit-autofill:hover,
.dm-hero-enquiry--focused .dm-hero-enquiry__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--hs-heading);
  transition: background-color 9999s ease-out;
  box-shadow: 0 0 0 1000px var(--hs-white) inset !important;
}

.dm-hero-enquiry__submit {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  font-size: 0.8125rem !important;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(47, 87, 239, 0.22);
}

.dm-hero-enquiry__submit:hover {
  box-shadow: 0 6px 18px rgba(47, 87, 239, 0.3);
}

.dm-hero-enquiry__msg {
  line-height: 1.4;
}

.dm-hero-enquiry__msg--ok {
  color: #15803d !important;
}

.dm-hero-enquiry__msg--err {
  color: #dc2626 !important;
}

/* —— Section titles (Histudy section-title) —— */
.dm-section {
  padding: 3.75rem 0;
}

.dm-kicker {
  color: var(--hs-primary) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.65rem !important;
  text-align: center;
  display: block;
}

.dm-section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--hs-heading);
  margin-bottom: 1rem !important;
}

.dm-phase-intro {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--hs-body) !important;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.65;
}

/* —— Course / bundle cards (Histudy rbt-card / variation-02) —— */
.dm-course-card-popular {
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 30px rgba(25, 35, 53, 0.07);
}

.dm-course-card-popular:hover {
  box-shadow: 0 22px 50px rgba(47, 87, 239, 0.12);
}

.dm-course-card-popular__thumb {
  border-radius: 10px 10px 0 0;
}

.dm-course-card-popular__thumb--1 {
  background: linear-gradient(135deg, rgba(47, 87, 239, 0.2) 0%, rgba(185, 102, 231, 0.28) 100%);
}

.dm-course-card-popular__thumb--2 {
  background: linear-gradient(135deg, rgba(47, 87, 239, 0.15) 0%, rgba(62, 183, 94, 0.2) 100%);
}

.dm-course-card-popular__thumb--3 {
  background: linear-gradient(135deg, rgba(185, 102, 231, 0.22) 0%, rgba(47, 87, 239, 0.18) 100%);
}

.dm-course-card-popular__thumb--4 {
  background: linear-gradient(135deg, rgba(27, 162, 219, 0.18) 0%, rgba(47, 87, 239, 0.2) 100%);
}

/* Photo covers (bundles + catalog courses) */
.dm-course-card-popular__thumb--has-photo {
  overflow: hidden;
}

.dm-course-card-popular__thumb--has-photo::after {
  display: none;
}

.dm-course-card-popular__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.45s ease;
}

.dm-course-card-popular:hover .dm-course-card-popular__photo {
  transform: scale(1.05);
}

.dm-course-card-popular__photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 35, 53, 0) 35%, rgba(25, 35, 53, 0.38) 100%);
}

.dm-course-card-popular__thumb--has-photo .dm-course-card-popular__thumb-badge {
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .dm-course-card-popular:hover .dm-course-card-popular__photo {
    transform: none;
  }
}

.dm-course-card-popular__thumb-badge {
  color: var(--hs-heading);
  background: #fff;
  border: 1px solid var(--hs-border);
}

.dm-course-card-popular__title {
  color: var(--hs-heading);
}

.dm-course-card-popular:hover .dm-course-card-popular__title {
  color: var(--hs-primary);
}

.dm-course-card-popular__summary {
  color: var(--hs-body) !important;
}

.dm-course-card-popular__meta li {
  color: var(--hs-body);
}

.dm-course-card-popular__meta li .bi {
  color: var(--hs-primary);
}

.dm-course-card-popular__price-num {
  color: var(--hs-primary);
}

.dm-course-card-popular__price-label {
  color: var(--hs-body);
}

.dm-course-card-popular__link {
  color: var(--hs-primary) !important;
  font-weight: 600;
  font-size: 0.875rem;
}

.dm-course-card-popular:hover .dm-course-card-popular__link {
  color: var(--hs-secondary) !important;
}

.dm-course-card-popular__footer {
  border-top-color: var(--hs-border);
}

/* —— Generic cards —— */
.dm-card {
  border-radius: 1rem;
  border-color: var(--hs-border);
}

/* —— Logo marquee —— */
.dm-logo-marquee {
  background: transparent;
  border-top: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dm-logo-marquee__title {
  color: var(--hs-heading);
}

.dm-logo-marquee__brand {
  border-color: var(--hs-border);
  background: var(--hs-white);
  box-shadow: var(--shadow-card);
}

.dm-logo-marquee__name {
  color: var(--hs-heading);
}

.dm-logo-marquee__item:hover .dm-logo-marquee__brand {
  box-shadow: var(--shadow-card-hover);
}

/* —— Features —— */
#features .dm-feature-tag {
  color: var(--hs-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
}

#features h3 {
  color: var(--hs-heading);
  font-size: 1.15rem;
}

#features .text-muted {
  color: var(--hs-body) !important;
  line-height: 1.6;
}

#features .dm-feature-icon {
  box-shadow: 0 8px 28px rgba(47, 87, 239, 0.15);
}

/* —— CTA band —— */
.dm-cta-band {
  background: linear-gradient(120deg, var(--hs-primary) 0%, #5b4ae8 42%, var(--hs-secondary) 100%);
  border: none;
  color: #fff;
  padding: 4.5rem 0;
}

.dm-cta-band__title {
  color: #fff !important;
}

.dm-cta-band__text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.dm-cta-band .btn-dm-primary {
  background: #fff;
  color: var(--hs-primary) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.dm-cta-band .btn-dm-primary:hover {
  background: var(--hs-heading);
  color: #fff !important;
  background-position: 0 0;
}

/* —— Testimonials —— */
.dm-testimonial {
  border-radius: 1rem;
  border: 1px solid var(--hs-border);
  border-left-width: 4px;
  border-left-color: var(--hs-primary);
  background: var(--hs-white);
  box-shadow: var(--shadow-card);
}

.dm-tc__btn {
  border-color: var(--hs-border);
  color: var(--hs-primary);
}

.dm-tc__btn:hover {
  border-color: var(--hs-primary);
  background: var(--hs-primary-light);
  color: var(--hs-primary-dark);
}

.dm-testimonial-course {
  color: var(--hs-secondary) !important;
}

.dm-testimonial-quote {
  color: var(--hs-body) !important;
}

/* —— Histudy-style “What Our Learners Say” floating marquee —— */
.dm-hs-testimonial-section {
  overflow: hidden;
}

.dm-hs-testimonial-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hs-primary);
  background: rgba(47, 87, 239, 0.1);
}

.dm-hs-testimonial-lead {
  max-width: 32rem;
}

.dm-hs-scroll-outer {
  position: relative;
  margin-top: 0.5rem;
}

.dm-hs-scroll-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}

.dm-hs-scroll-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--hs-canvas) 0%, transparent 100%);
}

.dm-hs-scroll-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--hs-canvas) 0%, transparent 100%);
}

@media (max-width: 767.98px) {
  .dm-hs-scroll-fade {
    width: 40px;
  }
}

.dm-hs-scroll-viewport {
  overflow: hidden;
  width: 100%;
}

.dm-hs-scroll-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: dm-hs-marquee 72s linear infinite;
  will-change: transform;
}

.dm-hs-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes dm-hs-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.dm-hs-testimonial-static {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .dm-hs-scroll-outer {
    display: none;
  }

  .dm-hs-testimonial-static {
    display: block;
    padding: 0 1rem 1.5rem;
  }

  .dm-hs-testimonial-static__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
  }

  .dm-hs-testimonial-static__grid .dm-hs-test-col {
    flex: 1 1 280px;
    max-width: 380px;
    width: auto;
    padding: 0;
    padding-top: 0 !important;
  }
}

.dm-hs-test-col {
  flex: 0 0 auto;
  width: min(420px, 88vw);
  padding: 0 12px;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .dm-hs-test-col {
    width: min(310px, 90vw);
    padding: 0 8px;
  }
}

.dm-hs-test-col:nth-child(odd) {
  padding-top: 0.35rem;
}

.dm-hs-test-col:nth-child(even) {
  padding-top: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .dm-hs-test-col {
    flex: 1 1 280px;
    max-width: 380px;
    padding-top: 0 !important;
  }
}

.dm-hs-test-card {
  position: relative;
  z-index: 1;
  height: 100%;
}

.dm-hs-test-card__inner {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.75rem 2rem;
  background: var(--hs-white);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(47, 87, 239, 0.06);
  border: 1px solid rgba(47, 87, 239, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dm-hs-test-card__inner::before {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 48px;
  height: 40px;
  z-index: 0;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232f57ef'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  pointer-events: none;
}

.dm-hs-test-card:hover .dm-hs-test-card__inner {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(47, 87, 239, 0.1);
}

.dm-hs-test-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.dm-hs-test-card__icon .bi {
  font-size: 2rem;
  color: var(--hs-primary);
  opacity: 0.9;
}

.dm-hs-test-card__course {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hs-secondary);
  margin-bottom: 0.65rem;
}

.dm-hs-test-card__quote {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--hs-body);
  margin: 0;
}

.dm-hs-test-card__person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1.35rem;
  position: relative;
  z-index: 1;
}

.dm-hs-test-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hs-primary-dark, #1e3bb8);
  background: linear-gradient(135deg, rgba(47, 87, 239, 0.15) 0%, rgba(91, 74, 232, 0.12) 100%);
  border: 2px solid rgba(47, 87, 239, 0.2);
}

.dm-hs-test-card__meta {
  text-align: left;
  padding-left: 0.85rem;
}

.dm-hs-test-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--hs-heading);
  line-height: 1.3;
}

.dm-hs-test-card__role {
  font-size: 0.85rem;
  color: var(--hs-muted, #64748b);
}

@media (max-width: 767.98px) {
  .dm-hs-test-card__inner {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .dm-hs-test-card__inner::before {
    right: 1rem;
    top: 1rem;
    width: 40px;
    height: 34px;
  }

  .dm-hs-test-card__person {
    flex-direction: column;
    text-align: center;
  }

  .dm-hs-test-card__meta {
    padding-left: 0;
    margin-top: 0.65rem;
    text-align: center;
  }
}

/* —— Footer (Histudy dark footer) —— */
.dm-footer {
  background: var(--hs-heading);
  color: rgba(255, 255, 255, 0.72);
  border-top: none;
}

.dm-footer .border-secondary,
.dm-footer .border-top {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.dm-footer__brand {
  color: #fff !important;
  font-weight: 800 !important;
}

.dm-footer .fs-5.fw-bold {
  color: #fff !important;
  font-size: 1.05rem !important;
}

.dm-footer .text-secondary,
.dm-footer .fw-medium.text-secondary {
  color: rgba(255, 255, 255, 0.65) !important;
}

.dm-footer__link {
  color: rgba(255, 255, 255, 0.7) !important;
}

.dm-footer__link:hover {
  color: #fff !important;
}

.dm-footer .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.dm-footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.dm-footer .form-control:focus {
  border-color: var(--hs-secondary);
  box-shadow: 0 0 0 3px rgba(185, 102, 231, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.dm-footer .btn-dm-primary {
  background: linear-gradient(90deg, var(--hs-primary), var(--hs-secondary));
  color: #fff !important;
}

.dm-footer .btn-dm-primary:hover {
  color: #fff !important;
}

.dm-footer a.text-secondary {
  color: rgba(255, 255, 255, 0.65) !important;
}

.dm-footer a.text-secondary:hover {
  color: #fff !important;
}

.dm-footer .dm-msg-ok {
  color: var(--pl-success) !important;
}

/* —— Auth —— */
.dm-auth-card {
  border-radius: 1rem;
  border: 1px solid var(--hs-border);
  background: var(--hs-white);
  box-shadow: var(--shadow-card-hover);
}

.dm-auth-title {
  color: var(--hs-heading);
}

.dm-auth-subtitle {
  color: var(--hs-body) !important;
}

/* —— Nav user menu (Histudy rbt-user-wrapper: hover + focus-within) —— */
.dm-rbt-user {
  position: relative;
  z-index: 20;
}

.dm-rbt-user__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  margin: 0;
  border: 2px solid var(--hs-border);
  border-radius: var(--radius);
  background: var(--hs-white);
  color: var(--hs-heading) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dm-rbt-user__trigger:hover,
.dm-rbt-user__trigger:focus-visible {
  border-color: var(--hs-primary);
  background: var(--hs-primary-light);
  outline: none;
  box-shadow: 0 4px 16px rgba(47, 87, 239, 0.12);
}

.dm-rbt-user__trigger .bi-person {
  font-size: 1.15rem;
  color: var(--hs-primary);
}

.dm-rbt-user__trigger-text {
  max-width: 9rem;
  text-align: left;
}

.dm-rbt-user__trigger-caret {
  font-size: 0.65rem;
  opacity: 0.65;
  margin-left: 0.1rem;
}

.dm-rbt-user__panel {
  position: absolute;
  /* Slight overlap + padding = hover bridge (margin was a dead zone: menu closed before pointer reached it) */
  top: calc(100% - 6px);
  right: 0;
  left: auto;
  z-index: 1060;
  margin-top: 0;
  padding-top: 0.5rem;
  min-width: 17.5rem;
  max-width: min(20rem, calc(100vw - 2rem));
  visibility: hidden;
  opacity: 0;
  clip: rect(0px, 200vw, 0, 0px);
  transform: translateZ(0);
  transition:
    opacity 0.35s linear,
    clip 0.5s linear,
    visibility 0s 0.35s;
  pointer-events: none;
}

.dm-rbt-user:hover .dm-rbt-user__panel,
.dm-rbt-user:focus-within .dm-rbt-user__panel {
  visibility: visible;
  opacity: 1;
  clip: rect(0px, 100vw, 220vh, -40px);
  transition:
    clip 0.5s linear,
    opacity 0.35s linear;
  pointer-events: auto;
}

.dm-rbt-user__inner {
  padding: 1.15rem 1.25rem;
  background: var(--hs-white);
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(230, 227, 241, 0.55);
  border-top: 1px solid rgba(230, 227, 241, 0.85);
  box-shadow: 0 12px 40px rgba(25, 35, 53, 0.12);
}

.dm-rbt-user__profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
}

.dm-rbt-user__thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--hs-primary-opacity);
  padding: 3px;
  box-shadow: 0 4px 14px rgba(25, 35, 53, 0.08);
  overflow: hidden;
  background: var(--hs-white);
}

.dm-rbt-user__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dm-rbt-user__thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-primary-light);
  color: var(--hs-primary);
  font-size: 1.35rem;
  border-radius: 50%;
}

.dm-rbt-user__info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dm-rbt-user__name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--hs-heading);
  line-height: 1.25;
}

.dm-rbt-user__email {
  display: block;
  font-size: 0.75rem;
  color: var(--hs-body);
  line-height: 1.3;
}

.dm-rbt-user__profile-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hs-primary) !important;
  text-decoration: none;
  margin-top: 0.2rem;
  width: fit-content;
}

.dm-rbt-user__profile-link:hover {
  text-decoration: underline;
}

.dm-rbt-user__rule {
  margin: 0.65rem -1.25rem;
  border: 0;
  border-top: 1px solid var(--hs-border);
  opacity: 1;
}

.dm-rbt-user__list {
  margin: 0 -0.75rem;
  padding: 0;
}

.dm-rbt-user__list li {
  margin: 0;
}

.dm-rbt-user__list a,
.dm-rbt-user__logout button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--hs-body) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.dm-rbt-user__list a:hover,
.dm-rbt-user__list a:focus-visible,
.dm-rbt-user__logout button:hover,
.dm-rbt-user__logout button:focus-visible {
  color: var(--hs-primary) !important;
  background: rgba(25, 35, 53, 0.04);
  outline: none;
}

.dm-rbt-user__list a .bi,
.dm-rbt-user__logout button .bi {
  font-size: 1.05rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.dm-rbt-user__logout {
  margin: 0;
}

@media (max-width: 991.98px) {
  .dm-rbt-user {
    width: 100%;
  }

  .dm-rbt-user__trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .dm-rbt-user__trigger-text {
    max-width: none;
    flex: 1;
  }

  .dm-rbt-user__panel {
    position: static;
    margin-top: 0;
    padding-top: 0.5rem;
    min-width: 0;
    max-width: none;
    visibility: visible;
    opacity: 1;
    clip: auto;
    pointer-events: auto;
    display: none;
  }

  .dm-rbt-user:hover .dm-rbt-user__panel,
  .dm-rbt-user:focus-within .dm-rbt-user__panel {
    display: block;
    clip: auto;
  }

  .dm-rbt-user__inner {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-rbt-user__panel {
    transition: none;
  }
}

/* —— Utilities —— */
.text-secondary {
  color: var(--hs-body) !important;
}

.border-secondary {
  border-color: var(--hs-border) !important;
}

.dm-section .text-muted,
.dm-hero .text-muted {
  color: var(--hs-body) !important;
}

.card {
  --bs-card-border-color: var(--hs-border);
  border-radius: var(--radius-card);
}

@media (prefers-reduced-motion: reduce) {
  .btn-dm-primary,
  .btn-dm-primary:hover {
    transition: none;
    transform: none;
    background-position: 0 0;
  }

  .dm-course-card-popular:hover {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar.dm-navbar {
    background: #fff !important;
  }

  .dm-auth-card {
    background: #fff;
  }
}

/* —— Home: research papers floating band —— */
.dm-papers-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 87, 239, 0.07), transparent 58%),
    radial-gradient(ellipse 60% 45% at 100% 80%, rgba(185, 102, 231, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 40%);
}

.dm-papers-section__head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.dm-papers-section__lede {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.dm-papers-topten {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.dm-paper-card {
  background: var(--hs-white, #fff);
  border: 1px solid var(--hs-border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1rem 1.125rem;
  text-align: left;
}

.dm-paper-card__rank {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--hs-primary);
  opacity: 0.55;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.dm-paper-card__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hs-primary);
  margin-bottom: 0.35rem;
}

.dm-paper-card__label--key {
  color: #b91c1c;
}

.dm-paper-card__title {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  font-weight: 700;
  line-height: 1.42;
  margin: 0 0 0.4rem;
  color: var(--hs-heading);
}

.dm-paper-card--grid h3.dm-paper-card__title {
  font-size: clamp(0.9375rem, 1.65vw, 1.0625rem);
}

.dm-paper-card__meta {
  font-size: 0.6875rem;
  color: var(--hs-body);
  margin: 0;
  line-height: 1.45;
}

.dm-paper-card__focus {
  margin: 0.75rem 0 0;
  padding-top: 0.25rem;
}

.dm-paper-card__focus-text {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hs-heading);
  line-height: 1.45;
}

.dm-paper-card__focus-line {
  display: block;
  height: 3px;
  margin-top: 6px;
  max-width: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #f87171 55%, #fca5a5 100%);
  border-radius: 2px;
  transform-origin: left center;
  animation: dm-paper-underline 2.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes dm-paper-underline {
  0%,
  100% {
    transform: scaleX(0.12);
    opacity: 0.55;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.dm-paper-card--grid {
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.dm-paper-card--grid:hover {
  border-color: rgba(47, 87, 239, 0.22);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.dm-paper-card--grid.dm-paper-card--key {
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow:
    0 4px 6px rgba(25, 35, 53, 0.04),
    0 16px 36px rgba(47, 87, 239, 0.12),
    0 0 0 1px rgba(220, 38, 38, 0.08);
}

.dm-paper-card--grid.dm-paper-card--key:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow:
    0 8px 24px rgba(47, 87, 239, 0.14),
    0 0 0 1px rgba(220, 38, 38, 0.14);
}

.dm-papers-topten__note {
  padding-top: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Home: floating paper collage (5 cards — classic corners + center key) */
.dm-papers-float__stage {
  position: relative;
  min-height: 26rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.dm-paper-card--float {
  position: absolute;
  z-index: 2;
  width: min(260px, 42vw);
  padding: 1rem 1.125rem;
  pointer-events: none;
}

.dm-paper-card__title--float {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.dm-paper-card__meta--float {
  font-size: 0.625rem;
  line-height: 1.45;
  margin: 0;
}

.dm-paper-card__title--key-float {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.dm-paper-card--float.dm-paper-card--key {
  top: 50%;
  left: 50%;
  width: min(292px, 88vw);
  z-index: 15;
  pointer-events: auto;
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow:
    0 4px 6px rgba(25, 35, 53, 0.04),
    0 16px 36px rgba(47, 87, 239, 0.12),
    0 0 0 1px rgba(220, 38, 38, 0.08);
  animation: dm-paper-float-key 5.2s ease-in-out infinite;
}

.dm-paper-card--float.dm-paper-card--key .dm-paper-card__focus {
  margin-top: 0.65rem;
}

.dm-paper-card--float.dm-paper-card--key .dm-paper-card__focus-text {
  font-size: 0.75rem;
}

.dm-paper-card--a {
  top: 2%;
  left: 0;
  animation: dm-paper-float-a 6s ease-in-out infinite;
}

.dm-paper-card--b {
  top: 4%;
  right: 0;
  animation: dm-paper-float-b 5.5s ease-in-out infinite 0.4s;
}

.dm-paper-card--c {
  bottom: 6%;
  left: 4%;
  animation: dm-paper-float-c 6.5s ease-in-out infinite 0.2s;
}

.dm-paper-card--d {
  bottom: 4%;
  right: 2%;
  animation: dm-paper-float-d 5.8s ease-in-out infinite 0.6s;
}

@keyframes dm-paper-float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(-5deg);
  }
}

@keyframes dm-paper-float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(5deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(4deg);
  }
}

@keyframes dm-paper-float-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(4deg);
  }

  50% {
    transform: translate3d(0, -11px, 0) rotate(3.5deg);
  }
}

@keyframes dm-paper-float-d {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }

  50% {
    transform: translate3d(0, -9px, 0) rotate(-3deg);
  }
}

@keyframes dm-paper-float-key {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-1deg);
  }

  50% {
    transform: translate(-50%, calc(-50% - 14px)) rotate(-0.5deg);
  }
}

.dm-papers-float__cta {
  padding-top: 2rem;
}

.dm-papers-section--lab .dm-papers-topten__note {
  padding-top: 1rem;
}

/* Research Lab page — AI research hub (hero + section framing) */
.dm-research-lab-page {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(3.25rem, 7vw, 4.75rem);
}

.dm-research-lab-page::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 48% at 18% 35%, rgba(47, 87, 239, 0.1), transparent 58%),
    radial-gradient(ellipse 45% 40% at 88% 25%, rgba(185, 102, 231, 0.09), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.dm-research-lab-page .container {
  position: relative;
  z-index: 1;
}

/* Float collage occupies its own strip at the top; headline and copy stack below (no overlay). */
.dm-research-lab-page__float-hero {
  position: relative;
  margin: 0 -0.75rem clamp(1.25rem, 3.5vw, 2.25rem);
  padding: 0 0.75rem;
  pointer-events: none;
  overflow: hidden;
}

.dm-research-lab-page__float-hero .dm-research-lab-page__float-stage.dm-papers-float__stage {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  max-width: 72rem;
  margin: 0 auto;
  min-height: clamp(21rem, 36vw, 27rem);
}

.dm-paper-card--float.dm-paper-card--lab-icon {
  width: min(220px, 40vw);
  padding: 0.85rem 1rem 0.95rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(47, 87, 239, 0.14);
  box-shadow:
    0 4px 6px rgba(25, 35, 53, 0.04),
    0 14px 32px rgba(47, 87, 239, 0.08);
  backdrop-filter: blur(8px);
}

.dm-paper-card--float.dm-paper-card--lab-icon .dm-paper-card__label {
  margin-bottom: 0.25rem;
}

.dm-paper-card__title--lab-float {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-paper-card--lab-icon .dm-paper-card__meta--float {
  font-size: 0.6rem;
  line-height: 1.4;
  opacity: 0.92;
}

.dm-rlab-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--hs-primary, #2f57ef);
  filter: drop-shadow(0 2px 8px rgba(47, 87, 239, 0.2));
}

/* Center cluster: small floating cards + animated wires (data pipeline). */
.dm-rlab-float-pipeline-cluster.dm-paper-card--float {
  top: 50%;
  left: 50%;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem 0.2rem;
  width: auto;
  max-width: min(100%, 26rem);
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
  animation: dm-paper-float-key 5.2s ease-in-out infinite;
}

.dm-rlab-pipeline-float-chip {
  margin: 0;
  padding: 0.45rem 0.55rem 0.5rem;
  text-align: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 87, 239, 0.16);
  box-shadow:
    0 3px 8px rgba(25, 35, 53, 0.05),
    0 10px 24px rgba(47, 87, 239, 0.08);
}

.dm-rlab-pipeline-float-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--hs-primary, #2f57ef);
}

.dm-rlab-pipeline-float-chip__label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-heading, #1a1f36);
  line-height: 1.2;
}

.dm-rlab-float-pipeline-cluster__wire {
  flex: 0 0 auto;
  width: clamp(0.85rem, 2.5vw, 1.35rem);
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--hs-primary, #2f57ef) 0,
    var(--hs-primary, #2f57ef) 5px,
    transparent 5px,
    transparent 9px
  );
  background-size: 9px 100%;
  animation: dm-rlab-pipe-flow 0.75s linear infinite;
  opacity: 0.65;
}

.dm-rlab-float-pipeline-cluster__wire:nth-of-type(1) {
  animation-delay: 0s;
}

.dm-rlab-float-pipeline-cluster__wire:nth-of-type(2) {
  animation-delay: -0.18s;
}

.dm-rlab-float-pipeline-cluster__wire:nth-of-type(3) {
  animation-delay: -0.36s;
}

.dm-rlab-float-pipeline-cluster__wire:nth-of-type(4) {
  animation-delay: -0.54s;
}

/* Data-flow strip — in flow below pillars (readable above decorative layer) */
.dm-rlab-pipeline-row {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
  padding-bottom: 0.15rem;
}

.dm-rlab-pipeline {
  position: relative;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.18rem 0.08rem;
  max-width: min(100%, 28rem);
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 87, 239, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(47, 87, 239, 0.06);
}

.dm-rlab-pipeline__node {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-heading, #1a1f36);
  padding: 0.25rem 0.5rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 87, 239, 0.18);
  box-shadow: 0 2px 8px rgba(47, 87, 239, 0.06);
  white-space: nowrap;
}

.dm-rlab-pipeline__wire {
  width: clamp(1rem, 3.5vw, 2.25rem);
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--hs-primary, #2f57ef) 0,
    var(--hs-primary, #2f57ef) 6px,
    transparent 6px,
    transparent 11px
  );
  background-size: 11px 100%;
  animation: dm-rlab-pipe-flow 0.85s linear infinite;
  opacity: 0.55;
}

.dm-rlab-pipeline > .dm-rlab-pipeline__wire:nth-child(2) {
  animation-delay: -0.2s;
}

.dm-rlab-pipeline > .dm-rlab-pipeline__wire:nth-child(4) {
  animation-delay: -0.4s;
}

.dm-rlab-pipeline > .dm-rlab-pipeline__wire:nth-child(6) {
  animation-delay: -0.55s;
}

.dm-rlab-pipeline > .dm-rlab-pipeline__wire:nth-child(8) {
  animation-delay: -0.7s;
}

@keyframes dm-rlab-pipe-flow {
  to {
    background-position: 11px 0;
  }
}

@media (max-width: 575.98px) {
  .dm-rlab-pipeline {
    max-width: calc(100% - 1.25rem);
    padding: 0.28rem 0.45rem;
  }

  .dm-rlab-pipeline__node {
    font-size: 0.5rem;
    padding: 0.2rem 0.35rem;
  }

  .dm-rlab-pipeline__wire {
    width: 0.65rem;
  }
}

.dm-research-lab-page__intro {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}

.dm-research-lab-page__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--hs-heading);
}

.dm-research-lab-page__tagline {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.65;
  color: var(--hs-body);
}

.dm-research-lab-page__pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  list-style: none;
  padding: 0 0 0.25rem;
  margin: 0;
}

.dm-research-lab-page__pillar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hs-heading);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 87, 239, 0.14);
  box-shadow: 0 2px 12px rgba(47, 87, 239, 0.06);
}

.dm-research-lab-page__pillar .bi {
  font-size: 1.05rem;
  color: var(--hs-primary, #2f57ef);
  opacity: 0.92;
}

.dm-papers-section--lab__intro {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.dm-papers-section--lab__intro .dm-papers-section--lab__lede {
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .dm-research-lab-page {
    overflow: visible;
  }

  .dm-research-lab-page__float-hero {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
  }

  .dm-research-lab-page__float-hero .dm-research-lab-page__float-stage.dm-papers-float__stage {
    min-height: 0;
  }

  .dm-papers-float__stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.25rem;
  }

  .dm-research-lab-page__float-stage.dm-papers-float__stage {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .dm-paper-card--float {
    position: static;
    width: 100% !important;
    max-width: 22rem;
    animation: none !important;
    transform: none !important;
    pointer-events: auto;
  }

  .dm-paper-card--float.dm-paper-card--key {
    order: -1;
  }

  .dm-rlab-float-pipeline-cluster.dm-paper-card--float {
    order: -1;
    max-width: 100%;
    justify-content: center;
  }

  .dm-paper-card__title--float,
  .dm-paper-card__title--key-float,
  .dm-paper-card__title--lab-float {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-paper-card--grid {
    transition: none;
  }

  .dm-paper-card--grid:hover {
    transform: none;
  }

  .dm-paper-card--float {
    animation: none !important;
  }

  .dm-paper-card__focus-line {
    animation: none !important;
    transform: scaleX(1);
    opacity: 1;
  }

  .dm-rlab-pipeline__wire,
  .dm-rlab-float-pipeline-cluster__wire {
    animation: none !important;
    background-position: 0 0;
  }
}

/* —— Home: philosophy — horizontal spiral path + checkpoints on path —— */
.dm-philosophy {
  position: relative;
  overflow: visible;
  padding-top: 4.25rem !important;
  padding-bottom: clamp(3rem, 5vw, 4rem) !important;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(47, 87, 239, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 45% at 15% 60%, rgba(185, 102, 231, 0.1), transparent 50%),
    linear-gradient(180deg, #fbfcff 0%, #f4f2ff 42%, #f8fafc 100%) !important;
}

.dm-philosophy__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(129, 140, 248, 0.12), transparent 42%);
  animation: dm-ph-bg-float 18s ease-in-out infinite alternate;
}

@keyframes dm-ph-bg-float {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.85;
    transform: scale(1.06) translate(2%, -1%);
  }
}

.dm-philosophy__head {
  max-width: 44rem;
  margin-bottom: clamp(0.85rem, 2vw, 1.35rem);
  position: relative;
  z-index: 5;
}

.dm-philosophy__title {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hs-heading);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.dm-philosophy__lede {
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.dm-philosophy__cta {
  margin-top: clamp(0.5rem, 1.1vw, 0.9rem);
}

.dm-philosophy__stage {
  position: relative;
  /* Tighter headline ↔ spiral than legacy, but enough room so above-path cards don’t crowd the lede */
  margin-top: clamp(1.5rem, 3.2vw, 3rem);
  padding-top: clamp(1.25rem, 2.8vw, 2.65rem);
  overflow: visible;
}

@media (min-width: 992px) {
  .dm-philosophy__stage {
    margin-top: clamp(1.75rem, 3.5vw, 3.5rem);
    padding-top: clamp(1.4rem, 3.1vw, 3.1rem);
  }
}

@media (min-width: 1200px) {
  .dm-philosophy__stage {
    margin-top: clamp(2rem, 3.75vw, 4rem);
    padding-top: clamp(1.5rem, 3.25vw, 3.5rem);
  }
}

/* Wide horizontal band: SVG + checkpoints share the same coordinate box */
.dm-philosophy__track-board {
  position: relative;
  width: 100%;
  height: clamp(240px, 34vw, 360px);
  /* Space for cards below path; balance vs CTA — tight but no overlap with bottom cards */
  margin-bottom: clamp(8.75rem, 14.5vw, 10.75rem);
  overflow: visible;
}

/* Vertical rail (mobile only; hidden on desktop) */
.dm-philosophy__mobile-rail {
  display: none;
}

.dm-philosophy__svg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.dm-philosophy__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dm-philosophy__path--under {
  opacity: 1;
}

.dm-philosophy__path--line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.dm-philosophy.is-visible .dm-philosophy__path--line {
  animation: dm-ph-draw 2.6s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@keyframes dm-ph-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.dm-philosophy__steps {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  margin: 0;
  list-style: none;
  pointer-events: none;
  overflow: visible;
}

/* Spiral + pins share the track box; nudge both up together on desktop */
@media (min-width: 768px) {
  .dm-philosophy__track-board > .dm-philosophy__svg-wrap,
  .dm-philosophy__track-board > .dm-philosophy__steps {
    transform: translateY(calc(-1 * clamp(10px, 1.25vw, 18px)));
  }
}

.dm-philosophy__step {
  position: absolute;
  left: var(--ph-l);
  top: var(--ph-t);
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 3;
}

.dm-philosophy__hitbox {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 172px;
  max-width: min(172px, 19vw);
  pointer-events: auto;
  opacity: 1;
}

.dm-philosophy__step--above .dm-philosophy__hitbox {
  flex-direction: column-reverse;
}

/* Tighter cards + spacing for crowded right-hand checkpoints (6 & 7) */
@media (min-width: 768px) {
  .dm-philosophy__step--compact .dm-philosophy__hitbox {
    width: 136px;
    max-width: 136px;
    gap: 0.35rem;
  }

  .dm-philosophy__step--compact .dm-philosophy__card {
    padding: 0.55rem 0.45rem 0.45rem;
  }

  .dm-philosophy__step--compact .dm-philosophy__card-title {
    font-size: 0.74rem;
  }

  .dm-philosophy__step--compact .dm-philosophy__card-text {
    font-size: 0.65rem;
    line-height: 1.45;
  }

  .dm-philosophy__step--compact .dm-philosophy__ico {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
  }

}

.dm-philosophy__pin {
  position: relative;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--hs-primary) 0%, #6366f1 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow:
    0 4px 14px rgba(47, 87, 239, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.95);
  z-index: 2;
}

.dm-philosophy__step--finale .dm-philosophy__pin {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 0.95rem;
  background: linear-gradient(145deg, #2f57ef 0%, #b966e7 100%);
  box-shadow:
    0 6px 22px rgba(185, 102, 231, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.95);
}

.dm-philosophy__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(47, 87, 239, 0.45);
  opacity: 0;
}

.dm-philosophy.is-visible .dm-philosophy__pulse {
  animation: dm-ph-pulse-ring 2.2s ease-out infinite;
}

.dm-philosophy__step:nth-child(2) .dm-philosophy__pulse {
  animation-delay: 0.35s;
}

.dm-philosophy__step:nth-child(3) .dm-philosophy__pulse {
  animation-delay: 0.55s;
}

.dm-philosophy__step:nth-child(4) .dm-philosophy__pulse {
  animation-delay: 0.75s;
}

.dm-philosophy__step:nth-child(5) .dm-philosophy__pulse {
  animation-delay: 0.95s;
}

.dm-philosophy__step:nth-child(6) .dm-philosophy__pulse {
  animation-delay: 1.15s;
}

.dm-philosophy__step:nth-child(7) .dm-philosophy__pulse {
  animation-delay: 1.35s;
}

@keyframes dm-ph-pulse-ring {
  0% {
    transform: scale(0.75);
    opacity: 0.65;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.dm-philosophy__card {
  text-align: center;
  padding: 0.65rem 0.55rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 87, 239, 0.14);
  box-shadow: 0 6px 24px rgba(25, 35, 53, 0.07);
  backdrop-filter: blur(8px);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.dm-philosophy__step:hover .dm-philosophy__card {
  border-color: rgba(47, 87, 239, 0.28);
  box-shadow: 0 12px 36px rgba(47, 87, 239, 0.12);
  transform: translateY(-2px);
}

.dm-philosophy__ico {
  display: block;
  font-size: 1.35rem;
  color: var(--hs-primary);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.dm-philosophy__card-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hs-heading);
  margin: 0 0 0.3rem;
  line-height: 1.25;
  font-family: var(--font-display, inherit);
}

.dm-philosophy__card-text {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--hs-body);
  margin: 0;
}

.dm-philosophy__step--finale .dm-philosophy__card {
  border-color: rgba(185, 102, 231, 0.25);
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
}

@media (max-width: 1199.98px) {
  .dm-philosophy__hitbox {
    width: 150px;
    max-width: min(150px, 22vw);
  }

  .dm-philosophy__card-title {
    font-size: 0.76rem;
  }

  .dm-philosophy__card-text {
    font-size: 0.66rem;
  }

  .dm-philosophy__track-board {
    margin-bottom: clamp(9.25rem, 15.5vw, 11.25rem);
  }
}

@media (max-width: 991.98px) {
  .dm-philosophy__track-board {
    height: clamp(205px, 36vw, 280px);
    margin-bottom: clamp(9.75rem, 18vw, 12.25rem);
  }

  .dm-philosophy__hitbox {
    width: 132px;
    max-width: min(132px, 24vw);
  }
}

@media (max-width: 767.98px) {
  .dm-philosophy__bg {
    animation: none;
  }

  .dm-philosophy__track-board {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0 0.85rem;
    align-items: start;
    height: auto;
    margin-bottom: 0;
  }

  .dm-philosophy__mobile-rail {
    display: block;
    position: relative;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    align-self: stretch;
    min-height: 8rem;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(47, 87, 239, 0.06) 0%, rgba(185, 102, 231, 0.05) 100%);
  }

  .dm-philosophy__mobile-rail-track {
    position: absolute;
    left: 50%;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 4px;
    transform: translateX(-50%);
    border-radius: 4px;
    background: rgba(47, 87, 239, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  /* Pulse motion disabled on mobile — static vertical line only (.mobile-rail-track) */
  .dm-philosophy__mobile-rail-flow {
    display: none !important;
  }

  .dm-philosophy__svg-wrap {
    display: none !important;
  }

  .dm-philosophy__steps {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    pointer-events: auto;
    z-index: 2;
  }

  .dm-philosophy__step {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    height: auto;
  }

  .dm-philosophy__hitbox {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    animation: none !important;
    opacity: 1;
  }

  .dm-philosophy__step--compact .dm-philosophy__hitbox {
    width: 100%;
    max-width: none;
  }

  .dm-philosophy__hitbox .dm-philosophy__pin {
    order: 0;
  }

  .dm-philosophy__hitbox .dm-philosophy__card {
    order: 1;
    flex: 1;
    text-align: left;
    padding: 0.75rem 0.85rem;
    min-width: 0;
  }

  .dm-philosophy__ico {
    display: block;
    margin-bottom: 0.35rem;
  }

  .dm-philosophy__card-title {
    font-size: 0.88rem;
  }

  .dm-philosophy__card-text {
    font-size: 0.8rem;
    margin-top: 0.35rem;
  }

  .dm-philosophy__pulse {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-philosophy__bg {
    animation: none;
  }

  .dm-philosophy.is-visible .dm-philosophy__path--line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .dm-philosophy__pulse {
    display: none;
  }

  .dm-philosophy__step:hover .dm-philosophy__card {
    transform: none;
  }
}

/* —— Student hub / account (match Histudy) —— */
.dm-hub {
  --dm-hub-border: var(--hs-border);
  --dm-hub-title: var(--hs-heading);
  --dm-hub-muted: var(--hs-body);
  --dm-hub-surface: #ffffff;
}

/* —— Blog listing uses same components as courses (dm-course-card-popular); optional page head width —— */
.dm-blog-page__head {
  max-width: 42rem;
}

/* Education-style blog sidebar (popular posts, categories, newsletter, tags) */
.dm-blog-sidebar-sticky {
  position: sticky;
  top: 5.5rem;
}

@media (max-width: 991.98px) {
  .dm-blog-sidebar-sticky {
    position: static;
  }
}

.dm-blog-filter-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 87, 239, 0.12);
  box-shadow: 0 4px 20px rgba(25, 35, 53, 0.06);
}

.dm-blog-filter-banner__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hs-body);
}

.dm-blog-filter-banner__value {
  color: var(--hs-heading);
  font-weight: 800;
}

.dm-blog-filter-banner__clear {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hs-primary);
  text-decoration: none;
}

.dm-blog-filter-banner__clear:hover {
  text-decoration: underline;
}

.dm-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dm-blog-sidebar__widget {
  background: var(--hs-white, #fff);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(47, 87, 239, 0.08);
  box-shadow: 0 8px 32px rgba(25, 35, 53, 0.06);
}

.dm-blog-sidebar__widget--newsletter {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.dm-blog-sidebar__widget-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--hs-heading);
  margin: 0 0 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hs-border);
  letter-spacing: -0.02em;
}

.dm-blog-sidebar__pop-list li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(47, 87, 239, 0.08);
}

.dm-blog-sidebar__pop {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.dm-blog-sidebar__pop:hover {
  opacity: 0.92;
}

.dm-blog-sidebar__pop:hover .dm-blog-sidebar__pop-title {
  color: var(--hs-primary);
}

.dm-blog-sidebar__pop:focus-visible {
  outline: 2px solid var(--hs-primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.dm-blog-sidebar__pop-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8edfc 0%, #f2e8ff 100%);
  box-shadow: 0 2px 10px rgba(25, 35, 53, 0.08);
}

.dm-blog-sidebar__pop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-blog-sidebar__pop-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dm-blog-sidebar__pop-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hs-heading);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s ease;
}

.dm-blog-sidebar__pop-meta {
  font-size: 0.75rem;
  color: var(--hs-body);
}

.dm-blog-sidebar__pop-meta .bi {
  margin-right: 0.2rem;
  color: var(--hs-primary);
}

.dm-blog-sidebar__cat-list li + li {
  margin-top: 0.35rem;
}

.dm-blog-sidebar__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--hs-body);
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.dm-blog-sidebar__cat:hover {
  background: rgba(47, 87, 239, 0.06);
  color: var(--hs-heading);
}

.dm-blog-sidebar__cat.is-active {
  background: rgba(47, 87, 239, 0.12);
  color: var(--hs-primary);
}

.dm-blog-sidebar__cat-label {
  flex: 1;
  min-width: 0;
}

.dm-blog-sidebar__cat-num {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--hs-heading);
  opacity: 0.85;
  min-width: 1.5rem;
  text-align: right;
}

.dm-blog-sidebar__cat.is-active .dm-blog-sidebar__cat-num {
  color: var(--hs-primary);
}

.dm-blog-sidebar__cat:focus-visible {
  outline: 2px solid var(--hs-primary);
  outline-offset: 2px;
}

.dm-blog-sidebar__newsletter-lede {
  line-height: 1.55;
}

.dm-blog-sidebar__newsletter-input {
  border-radius: 8px;
  border: 1px solid var(--hs-border);
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
}

.dm-blog-sidebar__newsletter-input:focus {
  border-color: rgba(47, 87, 239, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 87, 239, 0.12);
}

.dm-blog-sidebar__newsletter-note {
  line-height: 1.45;
}

.dm-blog-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}

.dm-blog-sidebar__tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hs-body);
  background: rgba(47, 87, 239, 0.06);
  border: 1px solid rgba(47, 87, 239, 0.1);
  border-radius: 999px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.dm-blog-sidebar__tag:hover {
  background: rgba(47, 87, 239, 0.14);
  color: var(--hs-primary);
  border-color: rgba(47, 87, 239, 0.25);
}

.dm-blog-sidebar__tag.is-active {
  background: rgba(47, 87, 239, 0.2);
  color: var(--hs-primary);
  border-color: rgba(47, 87, 239, 0.38);
  font-weight: 800;
}

.dm-blog-sidebar__tag:focus-visible {
  outline: 2px solid var(--hs-primary);
  outline-offset: 2px;
}

.dm-blog-single-hero .dm-blog-article {
  max-width: 46rem;
}

.dm-blog-single-layout .dm-blog-article {
  max-width: none;
}

/* Article body on single post: white panel on tint (sidebar strip matches /blogs) */
.dm-blog-article-sheet {
  background: var(--hs-white, #fff);
  border-radius: 10px;
  border: none;
  box-shadow: 0 6px 30px rgba(25, 35, 53, 0.07);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.dm-blog-article__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-primary);
}

.dm-blog-article__title {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hs-heading);
  line-height: 1.2;
}

.dm-blog-article__hero {
  margin: 0;
}

.dm-blog-article__hero-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 40px rgba(25, 35, 53, 0.1);
}

.dm-blog-article__content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--hs-body);
}

.dm-blog-article__content .lead {
  font-size: 1.08rem;
  color: var(--hs-heading);
  font-weight: 500;
}

.dm-blog-article__content h2 {
  color: var(--hs-heading);
}
