:root {
  --navy-950: #071729;
  --navy-900: #0b2038;
  --navy-800: #123452;
  --blue-700: #075985;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --mint-100: #ccfbf1;
  --mint-50: #f0fdfa;
  --gold-400: #f5bd4f;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --radius-sm: .75rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow-sm: 0 8px 30px rgba(7, 23, 41, .07);
  --shadow: 0 20px 55px rgba(7, 23, 41, .12);
}

html { scroll-behavior: smooth; }

body {
  color: var(--navy-950);
  background: var(--surface);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .brand {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -.025em;
}

a { color: var(--teal-700); }
a:hover { color: var(--navy-800); }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 1100;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--navy-950);
  border-radius: .5rem;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--navy-950) !important;
}

.container { max-width: 1200px; }
.py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.section-space { padding: 7rem 0; }
.bg-soft { background: var(--soft); }
.text-secondary { color: var(--slate-600) !important; }

.btn {
  border-radius: .75rem;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: .72rem 1.15rem;
}

.btn-lg { padding: .95rem 1.35rem; font-size: 1rem; }
.btn-primary { background: var(--teal-700); border-color: var(--teal-700); }
.btn-primary:hover, .btn-primary:focus { background: #0b5f59; border-color: #0b5f59; }
.btn-outline-primary { color: var(--teal-700); border-color: var(--teal-700); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--teal-700); border-color: var(--teal-700); }
.btn-light { color: var(--navy-950); background: #fff; border-color: #fff; }
.btn-light:hover { color: var(--navy-950); background: var(--mint-100); border-color: var(--mint-100); }

.site-header {
  z-index: 1020;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(203, 213, 225, .75);
  backdrop-filter: blur(16px);
}

.navbar { min-height: 80px; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy-950); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.brand > span:last-child > span { color: var(--teal-700); }
.brand-mark { display: inline-grid; width: 2.35rem; height: 2.35rem; place-items: center; color: #fff; background: linear-gradient(145deg, var(--teal-500), var(--teal-700)); border-radius: .72rem; box-shadow: 0 8px 18px rgba(15, 118, 110, .2); }
.brand-mark i { font-size: 1.45rem; line-height: 1; }
.navbar .nav-link { position: relative; padding: .6rem .85rem !important; color: var(--slate-700); font-weight: 700; }
.navbar .nav-link::after { position: absolute; right: .85rem; bottom: .24rem; left: .85rem; height: 2px; content: ""; background: var(--teal-600); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--navy-950); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 1px solid var(--slate-300); border-radius: .65rem; }

.hero-section {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(20, 184, 166, .28), transparent 30%),
    linear-gradient(130deg, var(--navy-950), var(--navy-800));
}

.hero-section .container { z-index: 1; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.hero-orb-one { right: -7rem; bottom: -7rem; width: 22rem; height: 22rem; border: 1px solid rgba(255, 255, 255, .12); }
.hero-orb-two { right: 9rem; bottom: 3rem; width: 11rem; height: 11rem; border: 1px solid rgba(255, 255, 255, .09); }
.hero-section h1 { max-width: 820px; font-weight: 800; line-height: 1.08; }
.hero-copy { max-width: 720px; color: #dbeafe; }
.hero-note { color: #d8f7f2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #d7fffa;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--teal-700); }

.hero-panel {
  overflow: hidden;
  color: var(--navy-950);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel-top { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.25rem; color: var(--slate-600); background: var(--slate-100); border-bottom: 1px solid var(--slate-200); font-size: .82rem; font-weight: 700; }
.status-dot { width: .6rem; height: .6rem; background: var(--teal-500); border-radius: 50%; box-shadow: 0 0 0 4px rgba(20, 184, 166, .15); }
.topic-chip { display: inline-flex; padding: .35rem .65rem; color: #115e59; background: var(--mint-100); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.path-list { display: grid; gap: .75rem; }
.path-item { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .85rem; align-items: center; padding: .9rem; color: var(--slate-500); background: var(--soft); border: 1px solid var(--slate-200); border-radius: .85rem; }
.path-item > span { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; background: #fff; border-radius: .6rem; font-size: .72rem; font-weight: 800; }
.path-item strong, .path-item small { display: block; }
.path-item strong { color: var(--slate-700); font-size: .9rem; }
.path-item small { margin-top: .15rem; font-size: .75rem; }
.path-item.active { color: var(--teal-700); background: var(--mint-50); border-color: #99f6e4; }
.path-item.active strong { color: var(--navy-950); }

.stat-strip { background: #fff; border-bottom: 1px solid var(--slate-200); }
.stat-item { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 1.6rem 1rem; border-right: 1px solid var(--slate-200); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { color: var(--teal-700); font-family: "Manrope", sans-serif; font-size: 1.55rem; }
.stat-item span { color: var(--slate-600); font-size: .9rem; }

.section-heading { max-width: 760px; }
.section-heading h2, .curriculum-section h2 { font-weight: 800; }
.section-heading p, .section-copy { color: var(--slate-600); font-size: 1.08rem; }
.feature-card { padding: 2rem; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card h3 { font-weight: 800; }
.feature-card p { margin-bottom: 0; color: var(--slate-600); }
.icon-box { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; color: var(--teal-700); background: var(--mint-100); border-radius: 1rem; font-size: 1.3rem; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.topic-grid a { display: flex; align-items: center; gap: 1rem; min-height: 105px; padding: 1.25rem; color: var(--navy-900); background: #fff; border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); font-weight: 700; text-decoration: none; transition: color .2s ease, background .2s ease; }
.topic-grid a:nth-child(4n) { border-right: 0; }
.topic-grid a:nth-child(n+5) { border-bottom: 0; }
.topic-grid a:hover { color: #fff; background: var(--teal-700); }
.topic-grid a span { display: grid; min-width: 2.5rem; height: 2.5rem; place-items: center; color: var(--teal-700); background: var(--mint-100); border-radius: .7rem; font-family: "Manrope", sans-serif; font-size: .78rem; }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 3.5rem; color: #fff; background: linear-gradient(125deg, var(--teal-700), var(--navy-800)); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.cta-panel h2 { font-weight: 800; }
.cta-panel p { color: #d7fffa; }

.page-hero, .library-hero { color: #fff; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.page-hero h1, .library-hero h1 { font-weight: 800; }
.page-hero .lead, .library-hero .lead { max-width: 740px; color: #dbeafe; }
.breadcrumb { --bs-breadcrumb-divider-color: #94a3b8; --bs-breadcrumb-item-active-color: #cbd5e1; margin-bottom: 1.5rem; }
.breadcrumb a { color: #99f6e4; }
.curriculum-note { display: inline-flex; max-width: 360px; align-items: flex-start; gap: .7rem; padding: 1rem 1.15rem; color: #dbeafe; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 1rem; text-align: left; }

.library-section { min-height: 800px; }
.filter-panel { padding: 1.5rem; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-label { color: var(--navy-900); font-weight: 700; }
.form-control, .form-select, .input-group-text { min-height: 3.2rem; border-color: var(--slate-300); border-radius: .75rem; }
.input-group .input-group-text { color: var(--slate-500); background: #fff; border-right: 0; }
.input-group .form-control { border-left: 0; }
.form-control:focus, .form-select:focus { border-color: var(--teal-600); box-shadow: 0 0 0 .22rem rgba(13, 148, 136, .16); }
.topic-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.topic-shortcuts > span { margin-right: .25rem; color: var(--slate-600); font-size: .85rem; font-weight: 700; }
.topic-pill { padding: .45rem .75rem; color: var(--slate-700); background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 999px; font-size: .82rem; font-weight: 700; }
.topic-pill:hover, .topic-pill.active { color: #fff; background: var(--teal-700); border-color: var(--teal-700); }

.results-animated .tutorial-item {
  opacity: 0;
  transform: translateY(16px);
  animation: tutorial-result-fade .45s ease-out forwards;
  animation-delay: calc(var(--result-index, 0) * 45ms);
}

@keyframes tutorial-result-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tutorial-card { overflow: hidden; height: 100%; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(7, 23, 41, .055); transition: transform .2s ease, box-shadow .2s ease; }
.tutorial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.video-card-link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.video-card-link:hover { color: inherit; text-decoration: none; }
.video-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; color: #fff; background: linear-gradient(140deg, var(--navy-900), var(--blue-700)); text-decoration: none; isolation: isolate; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 23, 41, .05), rgba(7, 23, 41, .4)); }
.video-thumb:hover { color: #fff; }
.video-thumb:hover img { transform: scale(1.025); }
.video-thumb .play-button { position: absolute; top: 50%; left: 50%; display: grid; width: 3.4rem; height: 3.4rem; place-items: center; color: var(--navy-950); background: #fff; border-radius: 50%; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transform: translate(-50%, -50%); transition: transform .2s ease, background .2s ease; }
.video-thumb:hover .play-button { background: var(--mint-100); transform: translate(-50%, -50%) scale(1.08); }
.video-thumb .play-button i { margin-left: .12rem; font-size: 1.3rem; }
.tutorial-card-body { display: flex; min-height: 200px; flex-direction: column; padding: 1.25rem; }
.lesson-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.lesson-code { color: var(--teal-700); font-size: .78rem; font-weight: 800; }
.lesson-topic { overflow: hidden; color: var(--slate-500); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.tutorial-card-title { display: block; margin-bottom: .65rem; font-size: 1.05rem; font-weight: 800; line-height: 1.4; }
.tutorial-card-description { display: block; margin-bottom: 1rem; color: var(--slate-600); font-size: .88rem; line-height: 1.55; }
.tutorial-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-size: .86rem; font-weight: 800; text-decoration: none; }
.video-card-link:hover .tutorial-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.filter-help { color: var(--slate-600); font-size: .86rem; }
.empty-state { padding: 6rem 1rem; }

.support-band { color: #fff; background: var(--teal-700); }
.support-band p { color: #d7fffa; }
.contact-aside, .contact-card { padding: 2rem; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-aside > p, .contact-card > p { color: var(--slate-600); }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-200); }
.contact-detail > i { color: var(--teal-700); font-size: 1.2rem; }
.contact-detail strong, .contact-detail span, .contact-detail a { display: block; }
.contact-detail a { text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
.contact-detail strong { margin-bottom: .15rem; font-size: .82rem; }

.site-footer { color: #cbd5e1; background: var(--navy-950); }
.footer-brand { color: #fff; }
.footer-brand:hover { color: #fff; }
.site-footer p { max-width: 430px; color: #94a3b8; }
.footer-title { color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-links li + li { margin-top: .55rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #99f6e4; }
.site-footer hr { margin: 2rem 0; border-color: #334155; opacity: 1; }

.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1000; display: grid; width: 3rem; height: 3rem; place-items: center; color: #fff; background: var(--navy-900); border: 0; border-radius: 50%; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(.75rem); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-700); }

.glightbox-clean .gslide-description { background: var(--navy-950); }
.glightbox-clean .gslide-title { color: #fff; font-family: "Manrope", sans-serif; }

@media (max-width: 991.98px) {
  .py-lg-6 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
  .section-space { padding: 5rem 0; }
  .navbar-collapse { padding: 1rem 0 .35rem; }
  .navbar .nav-link { padding: .7rem 0 !important; }
  .navbar .nav-link::after { right: auto; bottom: .35rem; left: 0; width: 2rem; }
  .navbar .btn { width: 100%; margin-top: .7rem; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid a:nth-child(4n) { border-right: 1px solid var(--slate-200); }
  .topic-grid a:nth-child(2n) { border-right: 0; }
  .topic-grid a:nth-child(n+5) { border-bottom: 1px solid var(--slate-200); }
  .topic-grid a:nth-child(n+7) { border-bottom: 0; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 2.5rem; }
}

@media (max-width: 575.98px) {
  .display-3 { font-size: 2.65rem; }
  .display-4 { font-size: 2.35rem; }
  .display-6 { font-size: 2rem; }
  .stat-item { flex-direction: column; gap: .1rem; padding: 1.15rem .4rem; text-align: center; }
  .stat-item strong { font-size: 1.25rem; }
  .stat-item span { font-size: .72rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-grid a, .topic-grid a:nth-child(2n), .topic-grid a:nth-child(4n), .topic-grid a:nth-child(n+5), .topic-grid a:nth-child(n+7) { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--slate-200); }
  .topic-grid a:last-child { border-bottom: 0; }
  .cta-panel { padding: 2rem; }
  .filter-panel { padding: 1.1rem; }
  .contact-aside, .contact-card { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .results-animated .tutorial-item { opacity: 1; transform: none; animation: none; }
}

@media (forced-colors: active) {
  .brand-mark,
  .icon-box,
  .play-button,
  .topic-pill.active {
    border: 2px solid ButtonText;
  }
}
