/* lessons.css — shared styling for ccplanning Academy lessons (player + quiz)
   and the Academy hub / track listing pages. */

.lesson-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }

/* ---- Academy hub + track pages ---- */
.academy-hero { background: #0f1f44; color: #fff; border-radius: 12px; padding: 36px 32px; margin-bottom: 28px; box-shadow: 0 12px 36px rgba(20,40,80,0.22); }
.academy-hero h1 { color: #fff; margin: 0 0 10px; }
.academy-hero p { color: #dce6fb; max-width: 62ch; margin: 6px 0; }
.academy-hero .pill { display: inline-block; background: rgba(46,173,73,0.22); color: #9ff0b6; border: 1px solid rgba(46,173,73,0.5); border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 14px; text-transform: uppercase; }
.track-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.track-head .count { color: var(--muted); font-size: 0.9rem; }

/* track overview cards (hub) */
.track-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 18px; }
.track-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 20px; background: #fff; box-shadow: var(--shadow); border-top: 5px solid var(--navy, #1F3F8C); }
.track-card.live-soon { opacity: 0.92; border-top-color: #9aa3b2; }
.track-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.track-card .lead { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.track-card .meta { color: var(--muted); font-size: 0.82rem; margin: 0 0 14px; }
.track-card .spacer { flex: 1 1 auto; }
.track-card .badge-soon { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px dashed var(--border); border-radius: 6px; padding: 3px 9px; }

/* lesson list (track pages) */
.lessons { list-style: none; padding: 0; margin: 16px 0 0; }
.lessons li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); margin: 10px 0; background: #fff; box-shadow: var(--shadow); transition: border-color .15s; }
.lessons li:hover { border-color: var(--brand-blue, #2F5DC0); }
.lessons .n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--navy, #1F3F8C); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.lessons .body { flex: 1 1 auto; min-width: 0; }
.lessons .body h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.lessons .body h3 a { text-decoration: none; }
.lessons .body p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.lessons .tags { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 5px; padding: 2px 8px; }
.tag.micro { background: #eaf1fb; color: #2F5DC0; }
.tag.deep { background: #fdeede; color: #b5701a; }
.tag.time { background: var(--bg-tint); color: var(--muted); }
.exam-cta { margin-top: 22px; background: linear-gradient(135deg, #1F3F8C, #2EAD49); color: #fff; border-radius: var(--radius); padding: 24px 26px; }
.exam-cta h2 { color: #fff; margin: 0 0 6px; }
.exam-cta p { color: #eaf1fb; margin: 0 0 14px; max-width: 60ch; }

/* ---- player ---- */
.player {
  position: relative; background: #0f1f44; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; box-shadow: 0 12px 36px rgba(20,40,80,0.28); color: #fff;
}
.slide {
  position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center;
  padding: 6% 7%; box-sizing: border-box;
}
.slide.active { display: flex; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slide .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(0.6rem, 1.4vw, 0.85rem); font-weight: 700; color: #8fb0f0; margin: 0 0 12px; }
.slide h2 { font-size: clamp(1.3rem, 4.2vw, 2.6rem); line-height: 1.12; margin: 0 0 14px; color: #fff; }
.slide p { font-size: clamp(0.85rem, 2.2vw, 1.25rem); line-height: 1.5; margin: 6px 0; color: #dce6fb; max-width: 92%; }
.slide .big { font-size: clamp(2.4rem, 9vw, 5rem); font-weight: 800; color: #fff; }
.slide .accent { color: #7fd49a; }
.slide .warn { color: #ffd27f; }
.slide .blocks { display: flex; gap: 3%; align-items: stretch; margin-top: 10px; flex-wrap: wrap; }
.slide .block { flex: 1 1 0; background: rgba(255,255,255,0.08); border-radius: 10px; padding: 3% 3.5%; min-width: 120px; }
.slide .block .n { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800; }
.slide .block .l { font-size: clamp(0.7rem, 1.8vw, 1rem); color: #cfe; margin-top: 4px; }
.slide img { max-width: 100%; max-height: 62%; object-fit: contain; align-self: center; background: #fff; border-radius: 8px; padding: 1.5%; }
.slide svg { max-width: 100%; max-height: 60%; align-self: center; display: block; }
.slide .cap { font-size: clamp(0.7rem, 1.6vw, 0.95rem); color: #aebfe0; margin-top: 8px; align-self: center; text-align: center; }
.slide.titleslide { text-align: center; align-items: center; }
.slide.titleslide .logo { width: 64px; height: 48px; margin-bottom: 18px; }
.progress { position: absolute; top: 0; left: 0; height: 5px; background: #2EAD49; width: 0; transition: width .25s linear; z-index: 3; }
.controls {
  position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: linear-gradient(transparent, rgba(8,16,38,0.85)); z-index: 2;
}
.controls button { background: rgba(255,255,255,0.16); color: #fff; border: none; border-radius: 6px; padding: 7px 12px; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
.controls button:hover { background: rgba(255,255,255,0.28); }
.controls button:disabled { opacity: 0.35; cursor: default; }
.controls button:disabled:hover { background: rgba(255,255,255,0.16); }
.controls .count { color: #cdd9f4; font-size: 0.85rem; margin-left: auto; }

/* ---- in-depth prose section (expanded lessons) ---- */
.lesson-depth { margin-top: 38px; }
.lesson-depth > .depth-intro { color: var(--muted); font-size: 0.95rem; margin: 0 0 6px; }
.lesson-depth h2 { font-size: 1.5rem; margin: 0 0 4px; }
.lesson-depth h3 { font-size: 1.12rem; margin: 26px 0 6px; color: var(--navy, #1F3F8C); }
.lesson-depth p { line-height: 1.62; margin: 10px 0; max-width: 70ch; }
.lesson-depth ul { line-height: 1.6; max-width: 70ch; padding-left: 22px; }
.lesson-depth li { margin: 6px 0; }
.lesson-depth .key-takeaway { background: var(--bg-tint, #eef3fb); border-left: 4px solid #2EAD49; border-radius: 8px; padding: 14px 18px; margin: 22px 0 4px; }
.lesson-depth .key-takeaway strong { color: var(--navy, #1F3F8C); }

/* ---- related reading box ---- */
.lesson-related { margin-top: 30px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.lesson-related h2 { font-size: 1.15rem; margin: 0 0 4px; }
.lesson-related > p { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.lesson-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lesson-related li { margin: 0; }
.lesson-related a { display: block; text-decoration: none; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, background .15s; height: 100%; box-sizing: border-box; }
.lesson-related a:hover { border-color: var(--brand-blue, #2F5DC0); background: var(--bg-tint, #eef3fb); }
.lesson-related a .rl-title { display: block; font-weight: 600; color: var(--navy, #1F3F8C); }
.lesson-related a .rl-blurb { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 3px; }

/* ---- quiz ---- */
.quiz { margin-top: 40px; }
.quiz-q { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--navy, #1F3F8C); border-radius: var(--radius); padding: 18px 22px; margin: 14px 0; box-shadow: var(--shadow); }
.quiz-q .qtext { font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.quiz-q label { display: block; margin: 7px 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.quiz-q label:hover { background: var(--bg-tint); }
.quiz-q label.correct { background: #e9f8ee; border-color: #2EAD49; }
.quiz-q label.wrong { background: #fbeaea; border-color: #9C1F23; }
.quiz-q .fb { font-size: 0.88rem; margin-top: 8px; display: none; }
.quiz-q .fb.show { display: block; }
.quiz-result { background: var(--bg-tint); border-radius: var(--radius); padding: 20px 24px; margin-top: 18px; display: none; }
.quiz-result.show { display: block; }
.quiz-result .score { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
