/* LEARNING ROADMAP - TryHackMe-style paths */
#pathsSection {
  background-color: #04070b;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,212,255,0.04) 0%, rgba(0,212,255,0.012) 50%, transparent 100%),
    radial-gradient(ellipse at 60% 0%, rgba(0,212,255,0.05) 0%, transparent 55%);
  background-size: 50px 50px, 50px 50px, auto, auto;
  border-top: 1px solid rgba(0,212,255,0.1);
  border-bottom: 1px solid rgba(0,212,255,0.1);
  padding-bottom: 4rem;
}
#foundational-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 1;
}
.rm-head { text-align: center; max-width: 680px; margin-bottom: 2rem; }
.rm-title-main {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 .6rem;
}
.rm-title-main .accent { color: var(--accent); }
.rm-sub { color: #aab5c6; font-size: 1rem; line-height: 1.7; margin: 0; }

.rm-node,
#pathsSection .section-header.rm-node {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: #1b2434;
  border: 1px solid #2b3850;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
#pathsSection .section-header.rm-node { margin: 0 auto 3.5rem; }
.rm-node-title,
#pathsSection .rm-node .section-title {
  display: block;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 .35rem;
}
.rm-node .rm-node-desc { display: block; font-size: .85rem; line-height: 1.55; color: #aab5c6; }

.rm-link { width: 3px; height: 28px; background: #3a4558; margin: 0 auto; flex-shrink: 0; }
.rm-link-arrow { position: relative; height: 34px; }
.rm-link-arrow::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 14px solid #3a4558;
}

#pathsSection #pathsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem 1.25rem;
}
.rm-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 84px;
  background: #1b2434;
  border: 1px solid #2b3850;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  animation: rmIn .5s ease both;
}
.rm-card:hover {
  border-color: var(--pc-accent, #00d4ff);
  background: #202b3f;
  transform: translateY(-2px);
}
.rm-card-feat { width: 100%; max-width: 380px; border-color: var(--pc-accent, #00d4ff); }
.rm-card-feat .rm-thumb { width: 96px; }
.rm-progress-ring {
  position: absolute;
  top: 6px; right: 6px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: conic-gradient(var(--pc-accent, #00d4ff) var(--pct-deg, 0deg), rgba(255,255,255,.12) 0deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  z-index: 2;
}
.rm-progress-ring span {
  width: 27px; height: 27px;
  border-radius: 50%;
  background: #1b2434;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: .58rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
}
.rm-thumb { width: 84px; flex-shrink: 0; position: relative; overflow: hidden; background: #111827; }
.rm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-thumb-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.rm-body { flex: 1; min-width: 0; padding: .8rem 1rem; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.rm-title { font-size: .98rem; font-weight: 600; line-height: 1.3; color: #f0f4fa; }
.rm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.rm-bars { width: 14px; height: 14px; flex-shrink: 0; }
.rm-pill { font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: #25345a; color: #cfd8ee; white-space: nowrap; }
.rm-pill.rm-soon { background: rgba(255,255,255,.07); color: #9aa7ba; }
@keyframes rmIn { from { opacity: 0; } to { opacity: 1; } }

.path-connector-line { fill: none; stroke: #3a4558; stroke-width: 3; }

@media (max-width: 1000px) {
  #pathsSection #pathsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #pathsSection #pathsGrid { grid-template-columns: 1fr; }
}

/* HERO FIT (no banner slider) */
body:not(.has-banner-slider) .hero { min-height: 0; padding-bottom: 1.5rem; }
body:not(.has-banner-slider) .hero-content { padding-top: 3rem; padding-bottom: 1rem; }
@media (min-width: 769px) {
  body:not(.has-banner-slider) .hero .container { align-items: center; }
  body:not(.has-banner-slider) .hero-stats-card { margin-top: 0; }
  body:not(.has-banner-slider) .hero-right-col { margin-top: 0; }
}
#pathsSection.section-paths { padding-top: 3rem; }

/* HERO OVER SLIDER (desktop) */
@media (min-width: 1025px) {
  body.has-banner-slider #heroBannerSlider { height: 280px; }
  body.has-banner-slider .hero {
    margin-top: -280px !important;
    min-height: 280px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(4,7,11,.92) 0%, rgba(4,7,11,.78) 45%, rgba(4,7,11,.45) 100%),
      linear-gradient(180deg, transparent 55%, #04070b 100%) !important;
  }
  body.has-banner-slider .hero a,
  body.has-banner-slider .hero button,
  body.has-banner-slider .hero input,
  body.has-banner-slider .hero .hero-stats-card,
  body.has-banner-slider .hero .xeri-hero-bubble,
  body.has-banner-slider .hero .xeri-hero-widget { pointer-events: auto; }
  body.has-banner-slider .hero .container { align-items: center; }
  body.has-banner-slider .hero-content { padding-top: 0 !important; padding-bottom: 0 !important; }
  body.has-banner-slider .hero-stats-card,
  body.has-banner-slider .hero-right-col { margin-top: 0; }
  body.has-banner-slider #heroParticles,
  body.has-banner-slider .hero-grid-overlay,
  body.has-banner-slider .hero-scan-line { top: 0; }
}
#pathsSection.section-paths { padding-top: 1.75rem; }

/* HERO OVER SLIDER FIX */
@media (min-width: 1025px) {
  body.has-banner-slider .hero { background: none !important; }
  body.has-banner-slider #heroBannerSlider {
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
            mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  }
  body.has-banner-slider #heroBannerSlider::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(4,7,11,.86) 0%, rgba(4,7,11,.58) 45%, rgba(4,7,11,.4) 100%);
  }
  body.has-banner-slider .banner-arrow,
  body.has-banner-slider #bannerDots { z-index: 5; }
  body.has-banner-slider #bannerDots { bottom: 34px; }
  body.has-banner-slider .hero-content { padding-left: 0 !important; }
  body.has-banner-slider .hero-badge { margin-bottom: 1.4rem !important; }
}

/* HERO STRIP BELOW BANNER */
@media (min-width: 1025px) {
  body.has-banner-slider .hero {
    min-height: 0 !important;
    align-items: flex-start !important;
    padding-bottom: 1.25rem !important;
  }
  body.has-banner-slider .hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 280px auto;
    align-items: center;
    gap: 0;
  }
  body.has-banner-slider .hero-content { grid-row: 1; align-self: center; }
  body.has-banner-slider .hero-right-col {
    grid-row: 2;
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.1rem 0 .25rem;
  }
  body.has-banner-slider .hero-right-col .hero-cta {
    justify-content: flex-end;
    margin: 0 !important;
  }
  body.has-banner-slider #heroBannerSlider::after { display: none; }
  body.has-banner-slider .banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(4,7,11,.9) 0%, rgba(4,7,11,.72) 50%, rgba(4,7,11,.45) 100%);
  }
  body.has-banner-slider .banner-slide img { filter: brightness(.85); }
}

/* BANNER FULL BRIGHTNESS */
@media (min-width: 1025px) {
  body.has-banner-slider .banner-slide::after { display: none !important; }
  body.has-banner-slider .banner-slide img { filter: none !important; }
  body.has-banner-slider .hero-title {
    text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 28px rgba(0,0,0,.7);
  }
  body.has-banner-slider .hero-badge {
    background: rgba(4,7,11,.72) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
  }
}

/* HERO TITLE AND CTA */
body .hero .hero-title {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 34px rgba(0,0,0,.6);
}
body .hero .hero-title .title-accent.glitch {
  background-image: linear-gradient(90deg, #8ff3ff 0%, #00d4ff 55%, #4aa8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.85));
}
body .hero .hero-title .glitch::before,
body .hero .hero-title .glitch::after { display: none !important; }

body .hero .hero-content .hero-subtitle {
  display: block;
  max-width: 560px;
  margin: .5rem 0 0 !important;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
  color: #e6edf5;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.7);
}

body .hero .hero-cta .btn {
  padding: .8rem 1.6rem !important;
  font-size: .95rem !important;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  border-radius: 999px !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
body .hero .hero-cta .btn-primary {
  box-shadow: 0 0 0 1px rgba(0,212,255,.5), 0 8px 28px rgba(0,212,255,.35);
}
body .hero .hero-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0,212,255,.8), 0 12px 34px rgba(0,212,255,.5);
}
body .hero .hero-cta .btn-outline {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  box-shadow: none;
}
body .hero .hero-cta .btn-outline:hover {
  border-color: var(--accent, #00d4ff);
  color: var(--accent, #00d4ff);
  background: rgba(0,212,255,.08);
  transform: translateY(-2px);
}

/* HERO STRIP AND SLIDER POLISH */
@media (min-width: 1025px) {
  body.has-banner-slider .hero-right-col {
    border-bottom: 1px solid rgba(0,212,255,.14);
    padding-bottom: 1.1rem;
  }
  body .hero .hero-stats-card { gap: 0; }
  body .hero .hero-stats-card .stat + .stat {
    margin-left: 2.25rem;
    padding-left: 2.25rem;
    border-left: 1px solid rgba(0,212,255,.22);
  }
  body .hero .hero-stats-card .stat-number { font-size: 2.3rem; }
  body .hero .hero-stats-card .stat-label { font-size: .88rem; color: #aab5c6; }
}

body.has-banner-slider #heroBannerSlider .banner-arrow {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(4,7,11,.55) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  color: #fff !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
body.has-banner-slider #heroBannerSlider:hover .banner-arrow,
body.has-banner-slider #heroBannerSlider .banner-arrow:focus-visible { opacity: 1; }
body.has-banner-slider #heroBannerSlider .banner-arrow:hover {
  background: #00d4ff !important;
  border-color: #00d4ff !important;
  color: #04121a !important;
}
@media (hover: none) {
  body.has-banner-slider #heroBannerSlider .banner-arrow { opacity: .75; }
}

body.has-banner-slider #bannerDots {
  padding: 6px 12px;
  background: rgba(4,7,11,.5);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body.has-banner-slider #bannerDots .banner-dot {
  width: 8px !important;
  height: 8px !important;
  padding: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.5) !important;
  box-shadow: none !important;
  transition: width .25s ease, background .25s ease;
}
body.has-banner-slider #bannerDots .banner-dot.active {
  width: 26px !important;
  background: #00d4ff !important;
}

#pathsSection.section-paths { border-top: 0; }
#pathsSection.section-paths::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,212,255,.07), transparent);
  pointer-events: none;
}

/* MOBILE HERO */
@media (max-width: 768px) {
  #heroBannerSlider {
    height: 210px !important;
    -webkit-mask-image: linear-gradient(to bottom, black 88%, transparent 100%) !important;
            mask-image: linear-gradient(to bottom, black 88%, transparent 100%) !important;
  }
  body.has-banner-slider #heroBannerSlider .banner-arrow { display: none !important; }
  body.has-banner-slider #bannerDots { bottom: 12px; }

  body.has-banner-slider .hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 5rem !important;
    min-height: 0 !important;
    align-items: flex-start !important;
  }
  body.has-banner-slider #heroParticles,
  body.has-banner-slider .hero-grid-overlay,
  body.has-banner-slider .hero-scan-line { top: 0 !important; }
  body.has-banner-slider .hero-content { padding: 1.25rem 0 .5rem !important; max-width: 100% !important; }

  body .hero .hero-title {
    font-size: clamp(1.5rem, 8.4vw, 2.3rem) !important;
    line-height: 1.12;
    margin-bottom: .9rem !important;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  body.has-banner-slider .hero-right-col { margin-top: .6rem !important; gap: 1rem !important; width: 100%; }

  body .hero .hero-stats-card {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: .85rem .25rem !important;
    gap: 0 !important;
    background: rgba(255,255,255,.03) !important;
    border: 1px solid rgba(0,212,255,.16) !important;
    border-radius: 16px !important;
  }
  body .hero .hero-stats-card .stat {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: baseline;
    column-gap: .1rem;
    margin: 0;
    padding: 0 .25rem;
    text-align: center;
  }
  body .hero .hero-stats-card .stat + .stat { border-left: 1px solid rgba(0,212,255,.2); }
  body .hero .hero-stats-card .stat-number { font-size: 1.8rem !important; }
  body .hero .hero-stats-card .stat-plus { font-size: 1.1rem !important; margin-left: 0 !important; }
  body .hero .hero-stats-card .stat-label {
    grid-column: 1 / -1;
    margin-top: .15rem !important;
    font-size: .78rem !important;
    text-align: center;
  }

  body .hero .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .7rem !important;
    width: 100%;
    margin: 0 !important;
  }
  body .hero .hero-cta .btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    padding: .85rem .5rem !important;
    font-size: .95rem !important;
  }
  body .hero .hero-cta .btn-primary {
    grid-column: 1 / -1;
    padding: 1rem !important;
    font-size: 1.05rem !important;
  }
}
