/* ==========================================================================
   SysLabs Academy — design system (v2, refined premium)
   Restrained enterprise aesthetic: airy spacing, hairline borders, soft
   shadows, tinted (not gradient-filled) icons, one confident accent per
   surface. Namespaced under .academy; global style.css is untouched.
   Class names are unchanged from v1 so no page markup breaks.
   ========================================================================== */

.academy {
  /* Brand-aligned neutrals + accent */
  --ac-ink: #0d1526;
  --ac-ink-soft: #1e2a44;
  --ac-body: #515c72;
  --ac-muted: #8b93a6;
  --ac-line: #e8ecf3;
  --ac-line-soft: #f0f3f8;
  --ac-surface: #f7f9fc;
  --ac-surface-2: #eef2f9;
  --ac-white: #fff;

  --ac-blue: #2f7ed8;
  --ac-blue-600: #2568bb;
  --ac-blue-050: #eaf3fd;
  --ac-navy-900: #0b1b34;
  --ac-navy-800: #12294a;

  /* Per-track accent (overridable inline via --accent / --accent-2) */
  --accent: #2f7ed8;
  --accent-2: #1f5fb0;

  --ac-r-sm: 12px;
  --ac-r: 16px;
  --ac-r-lg: 22px;
  --ac-r-xl: 28px;

  /* Soft, layered shadows — no more giant blurs */
  --ac-sh-xs:
    0 1px 2px rgba(13, 21, 38, 0.04), 0 1px 3px rgba(13, 21, 38, 0.05);
  --ac-sh-sm:
    0 2px 4px rgba(13, 21, 38, 0.04), 0 6px 16px rgba(13, 21, 38, 0.06);
  --ac-sh-md:
    0 8px 20px rgba(13, 21, 38, 0.07), 0 2px 6px rgba(13, 21, 38, 0.05);
  --ac-sh-lg: 0 18px 44px rgba(13, 21, 38, 0.12);

  --ac-hero:
    radial-gradient(
      1100px 520px at 78% -10%,
      rgba(84, 150, 232, 0.35),
      transparent 60%
    ),
    radial-gradient(
      760px 460px at 8% 110%,
      rgba(120, 108, 240, 0.28),
      transparent 55%
    ),
    linear-gradient(160deg, #0b1b34 0%, #10254a 45%, #163a6b 100%);

  font-family:
    "SUSE",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--ac-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.academy h1,
.academy h2,
.academy h3,
.academy h4,
.academy h5,
.academy h6 {
  font-family: inherit;
  color: var(--ac-ink);
  letter-spacing: -0.02em;
}
.academy p {
  color: var(--ac-body);
}
.academy a {
  text-decoration: none;
}
.academy strong {
  color: var(--ac-ink);
}
.academy .text-grad {
  background: linear-gradient(120deg, var(--ac-blue) 10%, #6f74f0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rhythm */
.academy .section {
  padding: 96px 0;
}
.academy .section-sm {
  padding: 60px 0;
}
.academy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac-blue-600);
  background: var(--ac-blue-050);
  padding: 7px 14px;
  border-radius: 999px;
}
.academy .section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 750;
  line-height: 1.12;
}
.academy .section-lead {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ac-muted);
  max-width: 660px;
}

/* ── Academy sub-nav ── */
.ac-subnav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ac-line);
}
.ac-subnav .ac-subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 11px 0;
}
.ac-subnav .ac-subnav-inner::-webkit-scrollbar {
  display: none;
}
.ac-subnav .ac-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ac-ink);
  margin-right: 16px;
  white-space: nowrap;
  font-size: 1.05rem;
}
.ac-subnav .ac-brand span {
  color: var(--ac-blue);
}
.ac-subnav a.ac-link {
  white-space: nowrap;
  color: var(--ac-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 9px;
  transition:
    background 0.16s,
    color 0.16s;
}
.ac-subnav a.ac-link:hover {
  background: var(--ac-surface-2);
  color: var(--ac-ink);
}
.ac-subnav a.ac-link.active {
  background: var(--ac-ink);
  color: #fff;
}
.ac-subnav .ac-cta {
  margin-left: auto;
  white-space: nowrap;
}

/* ── Hero ── */
.ac-hero {
  position: relative;
  overflow: hidden;
  background: var(--ac-hero);
  color: #fff;
  padding: 108px 0 112px;
}
.ac-hero .container {
  position: relative;
  z-index: 2;
}
.ac-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.ac-hero p.lead {
  color: rgba(233, 240, 251, 0.8);
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 600px;
}
.ac-hero .ac-hero-eyebrow {
  color: #bfd8f7;
  background: rgba(255, 255, 255, 0.1);
}
.ac-hero strong {
  color: #eaf2fd;
}
.ac-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 72% 26%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 72% 26%, #000, transparent 72%);
}

/* Hero product/terminal card — glassy, restrained */
.ac-hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--ac-r-lg);
  box-shadow: 0 24px 60px rgba(4, 12, 28, 0.45);
  padding: 20px 22px;
  backdrop-filter: blur(6px);
}
.ac-hero-card .ac-code-line {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  color: #d6e6fb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
}
.ac-hero-card .ac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.ac-hero-card hr {
  border-color: rgba(255, 255, 255, 0.14);
}
.ac-hero-card .ac-tag {
  display: inline-block;
  padding: 4px 10px;
  margin: 5px 6px 0 0;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: #e6f0fd;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.academy .ac-hero .btn-light {
  border-radius: 11px;
  font-weight: 650;
  padding: 13px 26px;
}

/* ── Stat strip ── */
.ac-stats {
  background: #fff;
  border-bottom: 1px solid var(--ac-line-soft);
}
.ac-stat {
  text-align: center;
  padding: 12px;
}
.ac-stat .ac-stat-num {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.03em;
}
.ac-stat .ac-stat-label {
  color: var(--ac-muted);
  font-size: 0.88rem;
  margin-top: 8px;
  display: block;
  font-weight: 500;
}

/* ── Cards ── */
.ac-card {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-r);
  box-shadow: var(--ac-sh-xs);
  height: 100%;
  padding: 28px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.ac-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ac-sh-md);
  border-color: #d8e0ec;
}
.ac-card h3,
.ac-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
}
.ac-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Tinted icon (no more heavy gradient blocks) */
.ac-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--ac-blue);
  background: var(--ac-blue-050);
  margin-bottom: 18px;
  border: 1px solid rgba(47, 126, 216, 0.12);
}

/* ── Learning journey timeline (single spine, left aligned — robust) ── */
.ac-journey {
  position: relative;
  padding-left: 8px;
}
.ac-journey .ac-jline {
  position: absolute;
  left: 29px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--ac-blue), rgba(47, 126, 216, 0.12));
}
.ac-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 16px;
  padding-left: 0;
  justify-content: flex-start !important;
}
.ac-step .ac-step-node {
  position: static;
  transform: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--ac-blue);
  border: 1.5px solid var(--ac-line);
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: var(--ac-sh-xs);
  z-index: 2;
}
.ac-step .ac-step-body {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-r);
  box-shadow: var(--ac-sh-xs);
  padding: 18px 22px;
  width: auto;
  flex: 1;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.ac-step:hover .ac-step-body {
  box-shadow: var(--ac-sh-sm);
  transform: translateX(3px);
}
.ac-step:hover .ac-step-node {
  border-color: var(--ac-blue);
}
.ac-step h4 {
  font-size: 1.02rem;
  margin-bottom: 3px;
}
.ac-step p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--ac-muted);
  line-height: 1.55;
}

/* ── Track cards ── */
.ac-track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-r-lg);
  box-shadow: var(--ac-sh-sm);
  overflow: hidden;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}
.ac-track-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 3;
}
.ac-track-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ac-sh-lg);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--ac-line));
}
.ac-track-card .ac-track-head {
  padding: 30px 26px 20px;
  position: relative;
}
.ac-track-card .ac-track-head .ac-track-no {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.ac-track-card .ac-track-head h3 {
  color: var(--ac-ink);
  font-size: 1.4rem;
  font-weight: 770;
  margin: 8px 0 0;
  letter-spacing: -0.02em;
}
.ac-track-card .ac-track-level {
  position: absolute;
  top: 28px;
  right: 26px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  padding: 5px 11px;
  border-radius: 999px;
}
.ac-track-card .ac-track-body {
  padding: 4px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ac-track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.85rem;
  color: var(--ac-muted);
  margin-bottom: 14px;
}
.ac-track-meta b {
  color: var(--ac-ink);
  font-weight: 650;
}

/* ── Badges ── */
.ac-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ac-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ac-ink-soft);
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  padding: 6px 11px;
  border-radius: 8px;
}
.ac-badge i {
  color: var(--accent);
  font-size: 0.7rem;
}

/* ── Module accordion ── */
.ac-accordion .ac-acc-item {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: var(--ac-sh-xs);
  overflow: hidden;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.ac-accordion .ac-acc-item:hover {
  border-color: #d8e0ec;
}
.ac-accordion .ac-acc-item:has(.ac-acc-btn[aria-expanded="true"]) {
  border-color: color-mix(in srgb, var(--ac-blue) 35%, var(--ac-line));
  box-shadow: var(--ac-sh-sm);
}
.ac-accordion .ac-acc-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--ac-ink);
  font-size: 1rem;
}
.ac-accordion .ac-acc-btn .ac-acc-idx {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ac-blue-050);
  color: var(--ac-blue-600);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}
.ac-accordion .ac-acc-btn[aria-expanded="true"] .ac-acc-idx {
  background: var(--ac-blue);
  color: #fff;
}
.ac-accordion .ac-acc-btn .ac-acc-chev {
  margin-left: auto;
  transition: transform 0.25s;
  color: var(--ac-muted);
}
.ac-accordion .ac-acc-btn[aria-expanded="true"] .ac-acc-chev {
  transform: rotate(180deg);
  color: var(--ac-blue);
}
.ac-accordion .ac-acc-btn .ac-acc-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ac-surface-2);
  color: var(--ac-muted);
}
.ac-accordion .ac-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ac-accordion .ac-acc-panel.open {
  max-height: 1600px;
}
.ac-accordion .ac-acc-panel-inner {
  padding: 4px 22px 22px 68px;
}
.ac-topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
}
.ac-topics li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.92rem;
  color: var(--ac-body);
}
.ac-topics li::before {
  content: "\F26A";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--ac-blue);
  font-size: 0.82rem;
  top: 6px;
}
@media (max-width: 575.98px) {
  .ac-topics {
    grid-template-columns: 1fr;
  }
  .ac-accordion .ac-acc-panel-inner {
    padding-left: 22px;
  }
}

/* ── Phase header ── */
.ac-phase {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ac-line);
}
.ac-phase .ac-phase-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-blue-600);
  background: var(--ac-blue-050);
  padding: 6px 11px;
  border-radius: 8px;
}
.ac-phase h3 {
  margin: 0;
  font-size: 1.14rem;
}
.ac-phase .ac-phase-dur {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--ac-muted);
  font-weight: 500;
}

/* ── Lab / project cards ── */
.ac-lab {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-left: 3px solid var(--ac-blue);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--ac-sh-xs);
  height: 100%;
}
.ac-lab .ac-lab-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac-blue-600);
}
.ac-lab h4 {
  font-size: 1rem;
  margin: 4px 0 6px;
}
.ac-lab p {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

.ac-project {
  position: relative;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-r);
  box-shadow: var(--ac-sh-xs);
  padding: 24px;
  height: 100%;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
  overflow: hidden;
}
.ac-project:hover {
  transform: translateY(-4px);
  box-shadow: var(--ac-sh-md);
  border-color: #d8e0ec;
}
.ac-project .ac-project-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ac-blue-600);
  background: var(--ac-blue-050);
  padding: 4px 10px;
  border-radius: 999px;
}
.ac-project h4 {
  font-size: 1.08rem;
  padding-right: 84px;
}
.ac-project p {
  line-height: 1.55;
}

/* ── Dark feature banner (was “capstone”, gradient used sparingly) ── */
.ac-capstone {
  background: var(--ac-hero);
  color: #fff;
  border-radius: var(--ac-r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ac-sh-lg);
}
.ac-capstone::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 85% 15%, #000, transparent 60%);
  mask-image: radial-gradient(circle at 85% 15%, #000, transparent 60%);
  pointer-events: none;
}
.ac-capstone > * {
  position: relative;
  z-index: 1;
}
.ac-capstone h2,
.ac-capstone h3 {
  color: #fff;
}
.ac-capstone p {
  color: rgba(233, 240, 251, 0.82);
  line-height: 1.6;
}
.ac-capstone .ac-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #cfe2fb;
  border-color: rgba(255, 255, 255, 0.16);
}
.academy .ac-capstone .btn-light {
  border-radius: 11px;
  font-weight: 650;
}

/* ── Mentor cards ── */
.ac-mentor {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-r);
  box-shadow: var(--ac-sh-xs);
  padding: 30px 22px;
  height: 100%;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.ac-mentor:hover {
  transform: translateY(-4px);
  box-shadow: var(--ac-sh-md);
}
.ac-avatar {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--ac-blue), #6f74f0);
  box-shadow: 0 10px 22px rgba(47, 126, 216, 0.28);
}
.ac-mentor h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.ac-mentor .ac-role {
  color: var(--ac-blue-600);
  font-weight: 650;
  font-size: 0.84rem;
}

/* ── Testimonials ── */
.ac-quote {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-r);
  box-shadow: var(--ac-sh-xs);
  padding: 28px;
  height: 100%;
}
.ac-quote .bi-quote {
  font-size: 2rem;
  color: var(--ac-blue);
  opacity: 0.4;
}
.ac-quote p {
  font-size: 1rem;
  color: var(--ac-ink-soft);
  line-height: 1.6;
}
.ac-quote .ac-quote-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.ac-quote .ac-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1rem;
  margin: 0;
}

/* ── FAQ accordion ── */
.ac-faq .ac-faq-item {
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: var(--ac-sh-xs);
  overflow: hidden;
  transition: border-color 0.18s;
}
.ac-faq .ac-faq-item:has(.ac-faq-btn[aria-expanded="true"]) {
  border-color: color-mix(in srgb, var(--ac-blue) 35%, var(--ac-line));
}
.ac-faq .ac-faq-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  color: var(--ac-ink);
  font-size: 1.02rem;
}
.ac-faq .ac-faq-btn .ac-faq-chev {
  margin-left: auto;
  transition: transform 0.25s;
  color: var(--ac-blue);
  flex: 0 0 auto;
}
.ac-faq .ac-faq-btn[aria-expanded="true"] .ac-faq-chev {
  transform: rotate(45deg);
}
.ac-faq .ac-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ac-faq .ac-faq-panel.open {
  max-height: 640px;
}
.ac-faq .ac-faq-panel-inner {
  padding: 0 22px 22px;
  color: var(--ac-body);
  line-height: 1.6;
}

/* ── Sticky sidebar ── */
.ac-sidebar {
  position: sticky;
  top: 88px;
}
.ac-sidebar .ac-side-card {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-r);
  box-shadow: var(--ac-sh-xs);
  padding: 22px;
}
.ac-sidebar .ac-side-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ac-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.ac-sidebar .ac-side-nav a:hover {
  background: var(--ac-surface);
  color: var(--ac-ink);
}
.ac-sidebar .ac-side-nav a.active {
  background: var(--ac-blue-050);
  color: var(--ac-blue-600);
  border-left-color: var(--ac-blue);
}

/* ── Reading progress ── */
.ac-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1100;
  background: linear-gradient(90deg, var(--ac-blue), #6f74f0);
  transition: width 0.1s linear;
}

/* ── Breadcrumbs ── */
.ac-crumbs {
  font-size: 0.84rem;
  color: var(--ac-muted);
  background: #fff;
  border-bottom: 1px solid var(--ac-line-soft);
}
.ac-crumbs a {
  color: var(--ac-muted);
}
.ac-crumbs a:hover {
  color: var(--ac-blue-600);
}
.ac-crumbs .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ── Surfaces & misc ── */
.ac-bg-soft {
  background: var(--ac-surface);
}
.ac-bg-surface {
  background: var(--ac-surface);
}
.ac-list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ac-list-check li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--ac-body);
  line-height: 1.5;
}
.ac-list-check li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--ac-blue);
  background: var(--ac-blue-050);
  width: 21px;
  height: 21px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

/* Buttons */
.academy .btn-ac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ac-ink);
  color: #fff;
  border: 0;
  font-weight: 650;
  padding: 12px 24px;
  border-radius: 11px;
  box-shadow: var(--ac-sh-sm);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.academy .btn-ac:hover {
  transform: translateY(-2px);
  background: var(--ac-navy-800);
  color: #fff;
  box-shadow: var(--ac-sh-md);
}
/* On dark surfaces (hero / feature banners) the primary button flips to light for contrast */
.academy .ac-hero .btn-ac,
.academy .ac-capstone .btn-ac {
  background: #fff;
  color: var(--ac-navy-900);
}
.academy .ac-hero .btn-ac:hover,
.academy .ac-capstone .btn-ac:hover {
  background: #eaf3fd;
  color: var(--ac-navy-900);
}
.academy .btn-ac-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-weight: 650;
  padding: 12px 24px;
  border-radius: 11px;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.academy .btn-ac-outline:hover {
  background: #fff;
  color: var(--ac-navy-900);
  border-color: #fff;
}
.academy .btn-ac-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--ac-line);
  color: var(--ac-ink);
  font-weight: 650;
  padding: 12px 24px;
  border-radius: 11px;
  transition:
    border-color 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
.academy .btn-ac-ghost:hover {
  border-color: var(--ac-blue);
  color: var(--ac-blue-600);
  box-shadow: var(--ac-sh-xs);
}

/* ── Search ── */
.ac-search-input {
  width: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 15px 18px 15px 48px;
  font-size: 1.02rem;
}
.ac-search-input::placeholder {
  color: rgba(233, 240, 251, 0.6);
}
.ac-search-input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}
.academy section:not(.ac-hero) .ac-search-input {
  border-color: var(--ac-line);
  background: #fff;
  color: var(--ac-ink);
}
.academy section:not(.ac-hero) .ac-search-input:focus {
  border-color: var(--ac-blue);
  box-shadow: 0 0 0 4px var(--ac-blue-050);
}
.ac-search-wrap {
  position: relative;
}
.ac-search-wrap .bi-search {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(233, 240, 251, 0.7);
  z-index: 2;
}
.academy section:not(.ac-hero) .ac-search-wrap .bi-search {
  color: var(--ac-muted);
}
.ac-result {
  display: block;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--ac-sh-xs);
  transition:
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.ac-result:hover {
  border-color: var(--ac-blue);
  transform: translateX(3px);
  box-shadow: var(--ac-sh-sm);
}
.ac-result .ac-result-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ac-blue-600);
}
.ac-result h4 {
  font-size: 1rem;
  margin: 3px 0;
}
.ac-result p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--ac-muted);
}

/* Tables */
.academy .table {
  border-color: var(--ac-line);
}
.academy .table th,
.academy .table td {
  border-color: var(--ac-line);
}

/* Forms */
.academy .form-control,
.academy .form-select {
  border: 1.5px solid var(--ac-line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--ac-ink);
}
.academy .form-control:focus,
.academy .form-select:focus {
  border-color: var(--ac-blue);
  box-shadow: 0 0 0 4px var(--ac-blue-050);
}
.academy .form-label {
  color: var(--ac-ink);
}

/* Accessibility */
.academy a:focus-visible,
.academy button:focus-visible,
.ac-subnav a:focus-visible,
.academy input:focus-visible,
.academy select:focus-visible,
.academy textarea:focus-visible {
  outline: 3px solid rgba(47, 126, 216, 0.5);
  outline-offset: 2px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .academy *,
  .ac-progress {
    transition: none !important;
    animation: none !important;
  }
}

/* Fallback for browsers without color-mix (older) — keep readable */
@supports not (background: color-mix(in srgb, red, blue)) {
  .ac-track-card .ac-track-level {
    color: var(--accent);
    background: var(--ac-blue-050);
    border-color: var(--ac-line);
  }
}
