/* ===== C.O.R.E. — Cyber Operational Risk Education ===== */
/* Background e palette = colori del logo (tutti presenti) */
:root {
  /* Palette allineata al nuovo visual (owl cyber) */
  --logo-teal: #0c1d4f;
  --logo-teal-light: #15357a;
  --logo-gold: #31b8ff;
  --logo-gold-pale: #cdefff;
  --logo-cream: #ffffff;
  --logo-blue: #2896ff;
  --logo-blue-medium: #1f6ed3;
  --logo-gold-border: rgba(88, 171, 255, 0.55);
  /* UI */
  --bg-dark: #08143a;
  --bg-card: rgba(8, 22, 63, 0.5);
  --bg-elevated: rgba(8, 22, 63, 0.62);
  --border: rgba(106, 196, 255, 0.38);
  --border-gold: rgba(106, 196, 255, 0.28);
  --text: #ffffff;
  --text-muted: #cfe3ff;
  --accent: #7ad8ff;
  --accent-dim: #55c3ff;
  --accent-glow: rgba(122, 216, 255, 0.35);
  --accent-gold: #c8edff;
  --accent-gold-dim: #8dd9ff;
  --accent-blue: #9f7dff;
  --accent-blue-dim: #7e5dff;
  --danger: #ffffff;
  --warning: #d7e8ff;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-glow: rgba(85, 195, 255, 0.22);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  background: #08143a;
}
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* Animated activity background — replaces video on activity pages */
.activity-bg {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,255,170,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(168,85,247,0.04) 0%, transparent 50%),
              linear-gradient(180deg, #060e24 0%, #0a1628 40%, #0d1a30 100%);
  overflow: hidden;
}
.activity-bg::before,
.activity-bg::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: actBgDrift 20s ease-in-out infinite alternate;
}
.activity-bg::before {
  width: 600px; height: 600px; top: -10%; left: -5%;
  background: radial-gradient(circle, rgba(0,255,170,0.08), transparent 70%);
}
.activity-bg::after {
  width: 500px; height: 500px; bottom: -10%; right: -5%;
  background: radial-gradient(circle, rgba(59,130,246,0.07), transparent 70%);
  animation-delay: -10s; animation-direction: alternate-reverse;
}
@keyframes actBgDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
body.has-section-bgs .bg-video { display: none; }
body.has-section-bgs::before { display: none; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 38, 0.18) 0%, rgba(7, 14, 38, 0.42) 100%);
  pointer-events: none;
  z-index: 0;
}
body > * {
  position: relative;
  z-index: 1;
}

/* ===== Page color themes ===== */
body.theme-cyan {
  background: linear-gradient(170deg, #06101e 0%, #0a1a3a 30%, #0d2248 55%, #0a1e42 80%, #060e1e 100%);
}
body.theme-cyan::before {
  background: linear-gradient(180deg, rgba(10,26,58,0.15) 0%, rgba(13,34,72,0.35) 100%);
}

body.theme-gold {
  background: linear-gradient(175deg, #3a3015 0%, #504420 30%, #5e5028 55%, #504420 80%, #3a3015 100%);
}
body.theme-gold::before {
  background: linear-gradient(180deg, rgba(80,68,30,0.04) 0%, rgba(90,76,32,0.08) 100%);
}

body.theme-green {
  background: linear-gradient(170deg, #060e0a 0%, #0a1e14 30%, #0d2a1a 55%, #0a2016 80%, #060e08 100%);
}
body.theme-green::before {
  background: linear-gradient(180deg, rgba(10,30,20,0.15) 0%, rgba(13,42,26,0.35) 100%);
}

/* Theme accent overrides */
body.theme-cyan {
  --accent: #7ad8ff;
  --accent-dim: #55c3ff;
  --accent-glow: rgba(122,216,255,0.35);
  --border: rgba(74,158,255,0.3);
  --bg-card: rgba(8,22,63,0.55);
}
body.theme-gold {
  --accent: #ffe44d;
  --accent-dim: #ffd700;
  --accent-glow: rgba(255,228,77,0.5);
  --accent-gold: #fff2a0;
  --border: rgba(255,228,77,0.35);
  --bg-card: rgba(70,60,25,0.55);
  --text: #fff8e0;
  --text-muted: rgba(255,245,200,0.75);
}
body.theme-green {
  --accent: #27c46b;
  --accent-dim: #1fa85a;
  --accent-glow: rgba(39,196,107,0.3);
  --accent-gold: #5aeaa0;
  --border: rgba(39,196,107,0.3);
  --bg-card: rgba(10,30,20,0.55);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-dim);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header & Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 16, 46, 0.44);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(6, 16, 46, 0.22);
  overflow: visible;
  transition: transform 0.3s ease, opacity 0.25s ease, border-bottom-color var(--transition), box-shadow var(--transition);
}

.header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: none;
}

.header.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(88px - 0.5cm);
}

.header .container {
  max-width: none;
  padding-left: 1cm;
  padding-right: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
  transform: translateY(calc(8px + 0.5cm));
}
.logo-text {
  letter-spacing: 0.02em;
  transform: translateY(0.5cm);
  display: inline-block;
}
.footer .logo-img {
  width: 50px;
  height: 50px;
  transform: none;
}
.footer .logo-text {
  transform: none;
}
.footer-tagline {
  margin-top: 0.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--accent-gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: rgba(122, 216, 255, 0.92);
  color: #071739;
}
.btn-primary:hover {
  background: rgba(85, 195, 255, 0.96);
  box-shadow: 0 0 24px rgba(85, 195, 255, 0.42);
}
.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}
.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}
/* ── Exam Ready Banner ── */
.exam-ready-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(39,196,107,0.15), rgba(122,216,255,0.1));
  border-bottom: 1px solid rgba(39,196,107,0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: examBannerSlide 0.5s ease-out;
}
@keyframes examBannerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.exam-ready-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.exam-ready-icon {
  width: 28px; height: 28px;
  color: #27c46b;
  flex-shrink: 0;
}
.exam-ready-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}
.exam-ready-text strong {
  display: block;
  color: #27c46b;
  font-size: 0.95rem;
}
.exam-ready-text span {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.exam-ready-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, #27c46b, #1a8a4a);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.exam-ready-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(39,196,107,0.3);
}
.exam-ready-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.exam-ready-close:hover { opacity: 1; }
@media (max-width: 600px) {
  .exam-ready-inner { flex-wrap: wrap; gap: 0.6rem; }
  .exam-ready-btn { width: 100%; justify-content: center; }
}

.final-test-locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: auto;
  position: relative;
}
.final-test-locked .lock-icon { display: none; }
.final-test-unlocked {
  cursor: pointer;
  pointer-events: auto;
}
.final-test-unlocked:hover {
  color: var(--accent) !important;
  color: var(--bg-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost-border {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost-border:hover {
  color: var(--text);
  border-color: rgba(122,216,255,0.5);
}

/* ===== Section backgrounds ===== */
.hero {
  background: #08143a;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 38, 0.15) 0%, rgba(7, 14, 38, 0.55) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero-content { z-index: 1; position: relative; }

.section.courses {
  background: linear-gradient(175deg, #060e2a 0%, #0c1a42 40%, #0f1f4d 100%);
  position: relative;
}
#lessons-section {
  background: linear-gradient(170deg, #06101e 0%, #0a1a3a 30%, #0d2248 55%, #0a1e42 80%, #060e1e 100%);
}
#videos-section {
  background: linear-gradient(175deg, #0e0a06 0%, #1a1408 30%, #221a0a 55%, #1a150a 80%, #0e0a04 100%);
}
#handson-section {
  background: linear-gradient(170deg, #060e0a 0%, #0a1e14 30%, #0d2a1a 55%, #0a2016 80%, #060e08 100%);
}
.collab-section {
  background: linear-gradient(180deg, #060c24 0%, #0a1232 100%);
}
.footer {
  background: #050a1e;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}
.glow-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  bottom: -50px;
  left: -50px;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  justify-items: start;
  margin: 0;
}

.hero-copy {
  max-width: 760px;
  text-align: left;
}

/* ===== Nav mini owl ===== */
.nav-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: -0.9rem;
}
.nav-home-text {
  line-height: 1;
  transform: translateY(2px);
  display: inline-block;
}
.nav-owl-icon {
  width: 36px;
  height: 38px;
  flex-shrink: 0;
}
.nav-owl-icon .owl-wing-left {
  transform-origin: 50px 110px;
  animation: flapLeft 1s ease-in-out infinite;
}
.nav-owl-icon .owl-wing-right {
  transform-origin: 150px 110px;
  animation: flapRight 1s ease-in-out infinite;
}

@keyframes flapLeft {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-25deg); }
}
@keyframes flapRight {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(25deg); }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  color: var(--accent-gold);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.35);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: flex-end;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

/* ===== Sections ===== */
.section {
  padding: calc(5rem - 1.5cm) 0 5rem;
  border-top: 1px solid var(--border);
  border-top-color: var(--border-gold);
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
  max-width: 560px;
}

/* ===== Course overview (index page) ===== */
.courses .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.courses .section-title {
  text-align: left;
  width: 100%;
}
.course-overview {
  max-width: 100%;
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: left;
}
.course-overview p {
  color: var(--text-muted);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.8;
  margin: 0 0 1.25rem;
}
.course-overview strong { color: var(--text); }
.course-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.course-highlights li {
  color: var(--text-muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  padding: 0.6rem 0 0.6rem 2.2rem;
  position: relative;
  text-align: left;
}
.course-highlights li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #27c46b;
  font-weight: 700;
  font-size: 1.3rem;
}
@media (max-width: 768px) {
  .course-overview { max-width: 100%; }
}

/* ===== Full-page sections ===== */
.fullpage-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.fullpage-section::before {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  animation: sectionOrbFloat 14s ease-in-out infinite alternate;
}
.fullpage-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(44vw, 560px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,0.04), transparent 55%),
    repeating-linear-gradient(90deg, rgba(122,216,255,0.10) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(122,216,255,0.08) 0 1px, transparent 1px 26px);
  background-size: 100% 100%, 26px 26px, 26px 26px;
  animation: sectionGridDrift 16s linear infinite;
}
#lessons-section::before {
  background: rgba(74, 158, 255, 0.5);
  top: -100px;
  right: -150px;
}
#lessons-section::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black 58%, transparent 100%);
  mask-image: linear-gradient(to left, black 58%, transparent 100%);
}
#videos-section::before {
  background: rgba(255, 200, 50, 0.4);
  bottom: -120px;
  left: -150px;
}
#videos-section::after {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, black 58%, transparent 100%);
  mask-image: linear-gradient(to right, black 58%, transparent 100%);
}
#handson-section::before {
  background: rgba(39, 196, 107, 0.45);
  top: -80px;
  right: -150px;
}
#handson-section::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black 58%, transparent 100%);
  mask-image: linear-gradient(to left, black 58%, transparent 100%);
}

@keyframes sectionOrbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-26px, 18px, 0) scale(1.08); }
}
@keyframes sectionGridDrift {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 70px 0, 0 70px; }
}
.fullpage-content { position: relative; z-index: 1; }
.fullpage-content {
  max-width: 720px;
}
.fullpage-label {
  color: var(--accent);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.2rem;
}
.fullpage-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 2rem;
  color: var(--text);
  line-height: 1.15;
}
.fullpage-desc {
  color: var(--text-muted);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 2;
  margin: 0 0 2rem;
  text-align: justify;
}
.fullpage-desc strong { color: var(--text); }
.fullpage-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 2rem;
}
.fullpage-list li {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  padding: 0.45rem 0 0.45rem 2rem;
  position: relative;
}
.fullpage-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #27c46b;
  font-weight: 700;
  font-size: 1.1rem;
}
.fullpage-list--play li::before {
  content: '\25B6';
  color: rgba(122,216,255,0.85);
  font-size: 0.8rem;
  top: 0.55rem;
}
.fullpage-list--tool li::before {
  content: '\2699';
  color: var(--accent-gold);
  font-size: 1.1rem;
}
/* Animated illustrations */
.fp-illustration {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(50vw, 620px);
  max-height: 90vh;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}
.fp-illustration svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 30px rgba(122,216,255,0.15));
}
#videos-section .fp-illustration svg {
  filter: drop-shadow(0 0 30px rgba(200,168,78,0.15));
}
#handson-section .fp-illustration svg {
  filter: drop-shadow(0 0 30px rgba(39,196,107,0.15));
}
.fp-illustration--right {
  right: 1vw;
}
.fp-illustration--left {
  left: 1vw;
}
@media (max-width: 768px) {
  .fp-illustration {
    position: relative;
    top: auto;
    transform: none;
    width: 90%;
    max-width: 400px;
    margin: 2rem auto 0;
  }
  .fp-illustration--right,
  .fp-illustration--left {
    right: auto;
    left: auto;
  }
}

.fullpage-section .btn { margin-top: 1rem; }
.fullpage-content {
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
}
.fp-content-right {
  margin-left: auto;
  margin-right: 0;
}
@media (max-width: 768px) {
  .fullpage-section { min-height: auto; padding: 4rem 0; }
  .fullpage-content { max-width: 100%; }
  .fp-content-right { margin-left: 0; }
}

/* ===== Courses grid ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}
.card:hover {
  border-color: rgba(122, 216, 255, 0.58);
  box-shadow: 0 12px 32px rgba(10, 30, 79, 0.32);
  transform: translateY(-2px);
}

.course-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.course-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
  line-height: 1.4;
}
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
}
.card-link:hover { text-decoration: underline; }

/* ===== Paths ===== */
.paths-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .path-card {
    grid-template-columns: 140px 1fr auto;
    align-items: start;
  }
}

.path-level {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  width: fit-content;
}

.path-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.path-card > p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .path-card > p { grid-column: 2 / -1; }
}

.path-topics {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .path-topics { grid-column: 2 / -1; }
}

.path-card .btn {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (min-width: 768px) {
  .path-card .btn { grid-column: 3; grid-row: 1 / 4; align-self: center; }
}

/* ===== Resources ===== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.resource-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
  color: inherit;
}
.resource-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.resource-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  display: block;
}
.resource-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.resource-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== Interactive video ===== */
.video-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  aspect-ratio: auto;
}

.video-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.video-actions {
  margin-top: 1rem;
  text-align: center;
}

.video-progress {
  max-width: 400px;
  margin: 0.9rem auto 0;
}

.video-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.video-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 25, 68, 0.48);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.video-progress-fill {
  width: 0%;
  height: 100%;
  background: rgba(122, 216, 255, 0.96);
  transition: width var(--transition);
}

@media (max-width: 768px) {
  .video-container {
    min-height: 0;
  }
}

/* ===== About ===== */
.about {
  padding-bottom: 0.5cm !important;
}
.about-text .section-title {
  margin-bottom: 0.75rem;
}
.about .about-row.container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: none;
  padding-left: 0.5cm;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.about-photo img {
  display: block;
  width: calc(92px + 3cm);
  height: auto;
  object-fit: cover;
}
.about-text p {
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}
.about-text p + p { margin-top: 0.35rem; }

@media (max-width: 600px) {
  .about-row {
    flex-direction: column;
  }
}

.about-features {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.about-features li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: 700;
}

/* ===== Collaborations (marquee) ===== */
.collab-section {
  padding: 1.1rem 0 1.35rem;
}
.collab-heading {
  text-align: center;
  font-size: 1.3rem !important;
  margin-top: 0.45rem;
  padding: 0 1.5rem;
}
.collab-marquee {
  margin-top: 0.12rem;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}
.collab-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}
.collab-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  padding-right: 2rem;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.collab-logo {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.45rem;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.collab-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
}
.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}
.code-comment { color: var(--text-muted); }
.code-keyword { color: #dfe7f2; }
.code-string { color: var(--accent); }

/* ===== Footer ===== */
.footer {
  padding: calc(0.25rem + 0.5cm) 0 0.25rem;
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: rgba(6, 16, 46, 0.42);
}

.footer .container {
  max-width: none;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-brand .footer-tagline,
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  margin-right: 2rem;
}
.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  position: relative;
}
.footer-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 1px solid var(--border);
}

/* ===== Mobile nav ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: rgba(6, 16, 46, 0.8);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
