/* videos.html: free lessons (v3, hand-built). Scoped to the page class on <html>. */

:root.page-videos body > section { padding: 100px 0; }
:root.page-videos body > section.vd-top { padding: 56px 0 96px; background: var(--paper) !important; border: 0 !important; position: relative; overflow: hidden; }
:root.page-videos body > section.vd-start { background: #fff !important; border-top: 1px solid var(--rule) !important; border-bottom: 1px solid var(--rule) !important; }
:root.page-videos body > section.vd-read {
    background: radial-gradient(1000px 420px at 88% 0%, rgba(47,128,237,.22), transparent 60%), var(--navy) !important;
    border: 0 !important; color: #fff; padding: 88px 0;
}

:root.page-videos body .vd-i { display: block; width: 20px; height: 20px; }
:root.page-videos body h2 em, :root.page-videos body .vd-title em { font-style: italic; color: var(--blue); }
:root.page-videos body .vd-risk { font-size: 13px; color: var(--ink-3); margin: 18px 0 0; }
:root.page-videos body .vd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
:root.page-videos body .vd-head { max-width: 44em; margin: 0 0 52px; }
:root.page-videos body .vd-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 16px 0 14px; }
:root.page-videos body .vd-head p { font-size: 18px; margin: 0; }

/* ---------- hero ---------- */
:root.page-videos body .vd-top::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(7,24,39,.04) 1px, transparent 1px) 0 0 / 100% 64px; }
:root.page-videos body .vd-top-in { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
:root.page-videos body .vd-title { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.06; margin: 18px 0 18px; }
:root.page-videos body .vd-top .lede { margin: 0 0 28px; }
:root.page-videos body .vd-player { display: block; background: #fff; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(7,24,39,.55), 0 2px 6px rgba(7,24,39,.06); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
:root.page-videos body .vd-player:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -40px rgba(7,24,39,.6); color: var(--ink); }
:root.page-videos body .vd-player:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
:root.page-videos body .vd-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--cloud); }
:root.page-videos body .vd-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE4; }
:root.page-videos body .vd-bar span { margin-left: 12px; font-size: 12px; color: var(--ink-3); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 12px; }
:root.page-videos body .vd-screen { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 100% at 30% 0%, #4a3a17, #1a1408 70%); }
:root.page-videos body .vd-screen img { position: absolute; right: 8%; top: 12%; height: 108%; width: auto; transform: rotate(6deg); box-shadow: 0 24px 48px rgba(0,0,0,.55); transition: transform .8s var(--ease); }
:root.page-videos body .vd-player:hover .vd-screen img { transform: rotate(2deg) translateY(-8px); }
:root.page-videos body .vd-bigplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 74px; height: 74px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; animation: pulse 2.6s infinite; z-index: 2; }
:root.page-videos body .vd-bigplay .vd-i { width: 28px; height: 28px; margin-left: 4px; }
:root.page-videos body .vd-screen-title { position: absolute; left: 24px; bottom: 22px; max-width: 13em; color: #fff; font-family: var(--serif); font-size: 24px; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.6); z-index: 2; }
:root.page-videos body .vd-screen-title small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #E9C988; margin-bottom: 6px; }
:root.page-videos body .vd-cap { display: block; padding: 18px 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
:root.page-videos body .vd-cap b { display: block; color: var(--navy); font-size: 15px; margin-bottom: 2px; }

/* ---------- where to start ---------- */
:root.page-videos body .vd-list { display: grid; gap: 24px; }
:root.page-videos body .vd-item { --lv: var(--level-1); --bg: #0d2a52; display: grid; grid-template-columns: 300px 1fr; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--lv); transition: box-shadow .45s var(--ease); }
:root.page-videos body .vd-item.l2 { --lv: var(--level-2); --bg: #0c3a33; }
:root.page-videos body .vd-item.l3 { --lv: var(--level-3); --bg: #3a2c12; }
:root.page-videos body .vd-item:hover { box-shadow: 0 28px 48px -30px rgba(7,24,39,.45); }
:root.page-videos body .vd-thumb { position: relative; min-height: 210px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 110%, rgba(255,255,255,.18), transparent 60%), var(--bg); }
:root.page-videos body .vd-thumb img { height: 230px; width: auto; transform: translateY(40px) rotate(-4deg); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }
:root.page-videos body .vd-thumb-three img { position: absolute; height: 170px; top: 40px; }
:root.page-videos body .vd-thumb-three img:nth-child(1) { transform: translateX(-62px) rotate(-8deg); }
:root.page-videos body .vd-thumb-three img:nth-child(2) { transform: translateY(-6px); z-index: 2; }
:root.page-videos body .vd-thumb-three img:nth-child(3) { transform: translateX(62px) rotate(8deg); }
:root.page-videos body .vd-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 3; }
:root.page-videos body .vd-play .vd-i { width: 22px; height: 22px; margin-left: 3px; }
:root.page-videos body .vd-where { position: absolute; left: 14px; top: 14px; z-index: 3; background: rgba(255,255,255,.92); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; }
:root.page-videos body .vd-item-body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
:root.page-videos body .vd-level { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lv); display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
:root.page-videos body .vd-level::before { content: ""; width: 22px; height: 3px; background: currentColor; }
:root.page-videos body .vd-item h3 { font-size: 25px; margin: 0 0 8px; }
:root.page-videos body .vd-item p { font-size: 16px; margin: 0 0 20px; max-width: 40em; }
:root.page-videos body .vd-links { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
:root.page-videos body .vd-links .btn { padding: 12px 18px; font-size: 14.5px; }

/* ---------- prefer to read (navy) ---------- */
:root.page-videos body .vd-read-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
:root.page-videos body .vd-read .eyebrow { color: var(--blue-light); }
:root.page-videos body .vd-read h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); margin: 16px 0 12px; }
:root.page-videos body .vd-read h2 em { color: var(--blue-light); }
:root.page-videos body .vd-read p { color: #C7D6E2; font-size: 17px; margin: 0; }
:root.page-videos body .vd-read .vd-risk { color: #9FB0C2; font-size: 13px; margin-top: 14px; }
:root.page-videos body .vd-read-act { justify-self: end; }
:root.page-videos body .vd-read .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
:root.page-videos body .vd-read .btn-ghost:hover { background: #fff; color: var(--navy); }
:root.page-videos body .btn-light { background: #fff; color: var(--navy); border-color: #fff; }
:root.page-videos body .btn-light:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    :root.page-videos body .vd-top-in, :root.page-videos body .vd-read-in { grid-template-columns: 1fr; gap: 48px; }
    :root.page-videos body .vd-player { max-width: 640px; }
    :root.page-videos body .vd-read-act { justify-self: start; }
}
@media (max-width: 860px) {
    :root.page-videos body > section { padding: 72px 0; }
    :root.page-videos body > section.vd-top { padding: 36px 0 64px; }
    :root.page-videos body .wrap { padding: 0 16px; }
    :root.page-videos body .vd-head { margin-bottom: 32px; }
    :root.page-videos body .vd-item { grid-template-columns: 1fr; border-left: 1px solid var(--rule); border-top: 3px solid var(--lv); }
    :root.page-videos body .vd-item-body { padding: 24px 22px 26px; }
}
@media (max-width: 560px) {
    :root.page-videos body .vd-actions .btn, :root.page-videos body .vd-links .btn { width: 100%; justify-content: center; }
    :root.page-videos body .vd-screen-title { font-size: 19px; left: 18px; bottom: 16px; }
    :root.page-videos body .vd-bigplay { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    :root.page-videos body .vd-player:hover { transform: none; }
    :root.page-videos body .vd-player:hover .vd-screen img { transform: rotate(6deg); }
}
/* fixes after first look */
:root.page-videos body .vd-screen img { right: 5%; top: 14%; height: 100%; }
:root.page-videos body .vd-screen-title { max-width: 9.5em; }
:root.page-videos body .vd-bigplay { left: 34%; }
:root.page-videos body :is(h1, h2, h3) { font-variant-numeric: lining-nums; }
:root.page-videos body .vd-screen-title { max-width: 62%; }
