/* =========================================================
   Tridentu Course Page - Premium Redesign (NO BG IMAGE)
   Fixes:
   - Hero gradient is full-width and starts smoothly (not “from nothing”)
   - All links/buttons get consistent styling (no unstyled anchors)
   - No overflow (no 100% width + margins conflict)
   - Clean, modern, minimalist, premium feel
   Requirements:
   - general.css stays unchanged
   - your HTML classes: hero, hero-inner, hero-main, hero-aside, panel, badges, badge, cta, level-nav, level-step, map, card, lvl, block, grid-3, takeway, band, etc.
   ========================================================= */

:root {
  --c-text: #0b1220;
  --c-muted: #5b6b82;

  --c-line: rgba(11, 18, 32, 0.1);
  --c-line2: rgba(11, 18, 32, 0.14);

  --c-surface: #ffffff;
  --c-surface2: #fbfdff;

  --c-brand: var(--primary); /* #00bfff from general.css */

  --r-1: 14px;
  --r-2: 18px;
  --r-3: 22px;

  --sh-1: 0 10px 28px rgba(11, 18, 32, 0.08);
  --sh-2: 0 18px 56px rgba(11, 18, 32, 0.12);

  /* same as your general.css section padding */
  --gutter: 15%;
}

/* ---------- hard stop for horizontal scroll (and prevent causes) ---------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
main.f101 {
  color: var(--c-text);
  padding-top: 84px;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  main.f101 {
    overflow-x: hidden;
  }
}

.f101,
.f101 * {
  box-sizing: border-box;
}
.f101 a {
  text-decoration: none;
  color: inherit;
}
.f101 a:hover {
  text-decoration: none;
}

/* general.css applies padding to ALL sections - we disable it here */
main.f101 section {
  padding: 0;
  width: 100%;
}

/* =========================================================
   HERO (full-width premium gradient + subtle “glass” panels)
   ========================================================= */

/* The hero section itself is full-width and owns its background */
.f101 .hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
  isolation: isolate;
}

.f101 .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    /* 1) Hard white guard at the top (kills any blue tint) */
    linear-gradient(
      180deg,
      #ffffff 0%,
      #ffffff 26%,
      rgba(255, 255, 255, 0.98) 34%,
      rgba(255, 255, 255, 0.85) 44%,
      rgba(255, 255, 255, 0) 66%
    ),
    /* 2) Subtle premium “ribbon” that starts inside the hero (not at edges) */
    linear-gradient(
        135deg,
        rgba(0, 191, 255, 0) 0%,
        rgba(0, 191, 255, 0) 35%,
        rgba(0, 191, 255, 0.06) 52%,
        rgba(0, 191, 255, 0) 70%,
        rgba(0, 191, 255, 0) 100%
      ),
    /* 3) Main glow - pushed lower and tighter */
    radial-gradient(
        900px 520px at 48% 72%,
        rgba(0, 191, 255, 0.18) 0%,
        rgba(0, 191, 255, 0.1) 34%,
        rgba(0, 191, 255, 0) 70%
      ),
    /* 4) Small highlight accent - also not touching edges */
    radial-gradient(
        520px 420px at 78% 62%,
        rgba(0, 191, 255, 0.1) 0%,
        rgba(0, 191, 255, 0) 70%
      );
}

/* remove your old after and use a softer, premium transition */
.f101 .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  z-index: 1;
  pointer-events: none;

  /* stays white at the very bottom, but blends softly */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 55%,
    #ffffff 100%
  );
}

/* Inner layout uses padding gutter, not margins (prevents overflow) */
.f101 .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding: 56px var(--gutter) 46px;

  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 26px;
  align-items: start;
}

/* Breadcrumb in hero (make it look intentional) */
.f101 .crumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.92rem;
  color: rgba(11, 18, 32, 0.55);
  margin: 0 0 18px;
}
.f101 .crumb a {
  color: rgba(11, 18, 32, 0.68);
  font-weight: 650;
}
.f101 .crumb a:hover {
  color: rgba(11, 18, 32, 0.88);
}
.f101 .crumb span {
  opacity: 0.6;
}

/* Title + subtitle */
.f101 .hero h1 {
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 10px;
}
.f101 .hero-sub {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--c-muted);
  margin: 0 0 16px;
  max-width: 64ch;
}

/* Badges */
.f101 .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}
.f101 .badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 191, 255, 0.18);
  color: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(10px);
}

/* CTA buttons (scoped, consistent) */
.f101 .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

/* IMPORTANT: style BOTH <a class="btn"> and any other anchor buttons */
.f101 a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 18px;
  border-radius: 14px;

  font-weight: 750;
  border: 1px solid var(--c-line2);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(11, 18, 32, 0.92);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.f101 a.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-1);
  border-color: rgba(0, 191, 255, 0.22);
}

/* Primary */
.f101 a.btn.btn-primary {
  background-color: #00bfff;
  border-color: rgba(0, 191, 255, 0.45);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 191, 255, 0.22);
}
.f101 a.btn.btn-primary:hover {
  box-shadow: 0 20px 52px rgba(0, 191, 255, 0.26);
}

/* Ghost */
.f101 a.btn.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
}

/* Level nav (make it look premium, not random links) */
.f101 .level-nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.f101 .level-step {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 18, 32, 0.1);
  backdrop-filter: blur(10px);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.f101 .level-step:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-1);
  border-color: rgba(0, 191, 255, 0.22);
}
.f101 .level-step .dot {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  color: rgba(0, 191, 255, 1);
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
}
.f101 .level-step .label {
  font-weight: 850;
  font-size: 0.92rem;
  color: rgba(11, 18, 32, 0.82);
  white-space: nowrap;
}

/* Right side panels */
.f101 .hero-aside {
  display: grid;
  gap: 14px;
}
.f101 .panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--sh-1);
  backdrop-filter: blur(12px);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.f101 .panel:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

.f101 .progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.f101 .progress-title {
  font-weight: 900;
}
.f101 .progress-value {
  font-weight: 900;
  color: rgba(11, 18, 32, 0.7);
}
.f101 .demo-tag {
  font-weight: 900;
  color: rgba(11, 18, 32, 0.35);
  margin-left: 6px;
}

.f101 svg#progress {
  width: 100%;
  height: 130px;
  display: block;
}
.f101 #progress .track {
  stroke: #0b1220;
  opacity: 0.12;
}
.f101 #progress .fill {
  stroke: var(--c-brand);
}

.f101 .progress-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(11, 18, 32, 0.55);
}

/* Course info meta */
.f101 .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.f101 .meta .m {
  background: rgba(248, 252, 255, 0.9);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 16px;
  padding: 12px;
}
.f101 .m .k {
  font-size: 0.78rem;
  color: rgba(11, 18, 32, 0.55);
}
.f101 .m .v {
  font-weight: 900;
  color: rgba(11, 18, 32, 0.85);
}

/* =========================================================
   BLOCKS (fix overflow + make them premium cards)
   You must NOT use margin-left/right on width:100% sections.
   Use padding gutters, and put a card inside.
   ========================================================= */

.f101 section.block {
  width: 100%;
  max-width: 100%;
  margin: 26px 0;
  padding: 0 var(--gutter);
}

/* If you do NOT want to change HTML, this will still work:
   it makes the whole section feel like a card */
.f101 section.block {
  padding: 26px var(--gutter);
}

/* optional: make blocks look like premium cards */
.f101 section.block {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 24px;
  box-shadow: var(--sh-1);
}

/* block headings */
.f101 section.block h2 {
  font-size: 1.18rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* grid */
.f101 .grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 18px;
}
.f101 ul.clean {
  margin: 0;
  padding-left: 18px;
}
.f101 ul.clean li {
  margin: 7px 0;
  color: rgba(11, 18, 32, 0.78);
}

/* details */
.f101 details {
  margin-top: 12px;
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--c-surface2);
}
.f101 summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.f101 summary::-webkit-details-marker {
  display: none;
}
.f101 summary::after {
  content: "▾";
  position: absolute;
  right: 4px;
  top: 0;
  color: rgba(11, 18, 32, 0.45);
  transition: transform 0.2s ease;
}
.f101 details[open] summary::after {
  transform: rotate(180deg);
}

/* steps */
.f101 .steps {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.f101 .step {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 18px;
  padding: 12px;
  color: rgba(11, 18, 32, 0.78);
  font-size: 0.94rem;
}
.f101 .step .n {
  font-weight: 950;
  color: var(--c-brand);
  margin-bottom: 6px;
}

/* =========================================================
   Course Map
   ========================================================= */
.f101 .map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.f101 .card {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--sh-1);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.f101 .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: rgba(0, 191, 255, 0.22);
}
.f101 .card h3 {
  margin: 0 0 6px;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
}
.f101 .card p {
  margin: 0;
  color: rgba(11, 18, 32, 0.62);
  line-height: 1.55;
}

/* Make the “Open Level X” link look premium and consistent */
.f101 .card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 900;
  color: rgba(0, 191, 255, 1);
}
.f101 .card a::after {
  content: "→";
  font-weight: 900;
  transition: transform 0.15s ease;
}
.f101 .card a:hover::after {
  transform: translateX(2px);
}

.f101 .lvl {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  color: rgba(0, 191, 255, 1);
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
  margin-bottom: 10px;
}

/* =========================================================
   Why it matters band
   ========================================================= */
.f101 .takeaway {
  border: 1px dashed rgba(11, 18, 32, 0.18);
  background: #fbfdff;
  border-radius: 18px;
  padding: 16px;
  color: rgba(11, 18, 32, 0.78);
}
.f101 .band {
  margin-top: 14px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--sh-1);
}
.f101 .band p {
  margin: 0;
  color: rgba(11, 18, 32, 0.7);
  font-weight: 800;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  :root {
    --gutter: 5%;
  }

  .f101 .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px var(--gutter) 40px;
  }

  .f101 section.block {
    margin: 20px 0;
    padding: 22px var(--gutter);
  }

  .f101 .grid-3 {
    grid-template-columns: 1fr;
  }
  .f101 .map {
    grid-template-columns: 1fr 1fr;
  }
  .f101 .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .f101 .hero h1 {
    font-size: 34px;
  }
  .f101 .map {
    grid-template-columns: 1fr;
  }
  .f101 .steps {
    grid-template-columns: 1fr;
  }
}
