/* ==========================================================================
   Learning Centre: library, watch page, cards, player (also used on the homepage)
   ========================================================================== */
/* hero */
.learn-hero { position: relative; overflow: hidden; isolation: isolate; color: #C9D2EA; padding: clamp(60px, 8vw, 104px) 0 clamp(56px, 6vw, 84px);
  background: radial-gradient(900px 420px at 85% 10%, rgba(184, 40, 44, .35), transparent 60%), linear-gradient(160deg, #0A2463, #06173F 70%); }
.learn-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.learn-hero p { font-size: 1.15rem; max-width: 640px; }
.learn-hero .kicker { color: #FF9EA1; }
.learn-hero .ecg-line { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; opacity: .5; }
.learn-hero .ecg-line path { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ecgLong 7s linear infinite; }
.learn-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: end; }
.learn-hero-stats { display: grid; gap: 12px; }
.learn-hero-stats div { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.learn-hero-stats b { font: 800 1.9rem var(--f-head); color: #fff; }
.learn-search { position: relative; display: flex; gap: 8px; margin-top: 26px; max-width: 620px; background: #fff; border-radius: 40px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.learn-search > i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.learn-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.02rem; padding: 0 12px 0 46px; color: var(--ink); background: transparent; }
.learn-search .btn { border-radius: 30px; }

/* filters */
.learn-filters { position: sticky; top: 70px; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.learn-filters .wrap { display: flex; gap: 12px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.learn-chips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.learn-chips::-webkit-scrollbar { display: none; }
.learn-chips a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 30px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .9rem var(--f-head); white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.learn-chips a:hover { border-color: var(--navy); color: var(--ink); }
.learn-chips a i { color: var(--red); }
.learn-chips a small { font-size: .78rem; color: var(--muted); }
.learn-chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.learn-chips a.on i, .learn-chips a.on small { color: #fff; }
.learn-aud select { height: 42px; border-radius: 30px; border: 1px solid var(--line); padding: 0 34px 0 14px; font: 600 .9rem var(--f-head); color: var(--ink); background: #fff; }

/* featured */
.learn-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 50px); align-items: center; padding: clamp(18px, 2.4vw, 28px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.learn-feature-body h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 12px 0 10px; }
.learn-feature-body h2 a { color: var(--ink); }
.learn-feature-body h2 a:hover { color: var(--red); }
.learn-feature-body .vcat { margin-left: 8px; }
.learn-points { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 8px; }
.learn-points li { position: relative; padding-left: 30px; color: var(--ink); font-size: .98rem; }
.learn-points li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--ok); font-size: 1.1rem; }
.learn-resultbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 22px; font-weight: 600; color: var(--ink); }

/* cards */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.vcard { display: flex; flex-direction: column; height: 100%; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; color: var(--body); transition: transform .3s var(--ease), box-shadow .3s; }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); color: var(--body); }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0B1E52; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard:hover .vthumb img { transform: scale(1.05); }
.vthumb.tall img { object-fit: contain; background: radial-gradient(circle at 50% 50%, #13307A, #06173F); }
.vthumb .vph { display: none; }
.vthumb.no-img { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .1), transparent 50%), linear-gradient(135deg, var(--navy), #13307A 55%, var(--red)); }
.vthumb.no-img .vph { display: block; position: absolute; right: -10px; bottom: -18px; font-size: 6.5rem; line-height: 1; color: rgba(255, 255, 255, .08); }
.vcard.compact .vthumb.no-img .vph { display: none; }
.vplay { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--red); font-size: 1.8rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .3s var(--ease), background .3s, color .3s; }
.vplay i { margin-left: 3px; }
.vcard:hover .vplay { transform: scale(1.1); background: var(--red); color: #fff; }
.vdur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .78); color: #fff; font: 700 .78rem var(--f-head); }
.vsrc { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 20px; background: rgba(255, 255, 255, .95); color: var(--ink); font: 700 .72rem var(--f-head); }
.vsrc i { color: var(--src); }
.vbody { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.vcat { display: inline-flex; align-items: center; gap: 6px; font: 800 .72rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.vtitle { font: 700 1.06rem/1.3 var(--f-head); color: var(--ink); }
.vsum { font-size: .93rem; color: var(--muted); line-height: 1.5; }
.vmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--muted); }
.vcard.compact { flex-direction: row; border-radius: 14px; }
.vcard.compact .vthumb { width: 150px; flex: none; aspect-ratio: 16 / 10; }
.vcard.compact .vplay { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: 1.15rem; }
.vcard.compact .vsrc { padding: 3px 6px; }
.vcard.compact .vbody { padding: 10px 12px; gap: 4px; }
.vcard.compact .vtitle { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vcard.compact .vmeta { padding-top: 2px; }

/* player */
.vplayer { position: relative; aspect-ratio: var(--ar, 16 / 9); border-radius: 22px; overflow: hidden; background: #06173F; box-shadow: var(--shadow-l); }
.vplayer.tall { max-width: 400px; margin: 0 auto; max-height: 78vh; }
.vplayer iframe, .vplayer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vposter { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: transparent; }
.vposter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vplayer.tall .vposter img { object-fit: contain; background: radial-gradient(circle, #13307A, #06173F); }
.vposter-ph { display: none; }
.vposter.no-img { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .12), transparent 50%), linear-gradient(135deg, var(--navy), #13307A 55%, var(--red)); }
.vposter.no-img .vposter-ph { display: grid; place-items: center; position: absolute; inset: 0; font-size: 5rem; color: rgba(255, 255, 255, .16); }
.vposter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); }
.vbig { position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 2.6rem; box-shadow: 0 0 0 10px rgba(184, 40, 44, .25), 0 16px 40px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); animation: vPulse 2.4s ease-out infinite; }
.vbig i { margin-left: 5px; }
.vposter:hover .vbig, .vposter:focus-visible .vbig { transform: scale(1.08); }
.vposter:focus-visible { outline: 4px solid #fff; outline-offset: -4px; }
.vposter-src { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: inline-flex; gap: 6px; align-items: center; color: #fff; font: 700 .85rem var(--f-head); }
.vposter-src i { color: var(--src); background: #fff; border-radius: 6px; padding: 2px 5px; }
@keyframes vPulse { 0% { box-shadow: 0 0 0 0 rgba(184, 40, 44, .45), 0 16px 40px rgba(0, 0, 0, .35); } 100% { box-shadow: 0 0 0 22px rgba(184, 40, 44, 0), 0 16px 40px rgba(0, 0, 0, .35); } }
.vplayer .vload { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; z-index: 1; }

/* watch page */
.watch-top { background: var(--navy-d); padding: 18px 0 2px; }
.watch-top .crumbs { margin: 0 0 14px; }
.section.watch { padding-top: 34px; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(26px, 4vw, 48px); align-items: start; }
.watch-head { margin-top: 22px; }
.watch-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 10px 0 14px; }
.watch-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.wtag { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.wbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 30px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .88rem var(--f-head); cursor: pointer; }
.wbtn:hover { border-color: var(--navy); color: var(--ink); }
.wbtn.wa i { color: #25D366; } .wbtn.fb i { color: #1877F2; }
.wbtn.ghost { background: var(--soft); }
.watch-sum { margin: 22px 0; font-size: 1.06rem; color: var(--body); }
.watch-points { margin: 26px 0; padding: 24px 26px; border-radius: 20px; background: linear-gradient(135deg, #FFF8F8, #F5F7FC); border: 1px solid var(--line); }
.watch-points h2 { font-size: 1.2rem; display: flex; gap: 10px; align-items: center; }
.watch-points h2 i { color: var(--red); }
.watch-points ol { counter-reset: kp; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.watch-points li { counter-increment: kp; position: relative; padding-left: 44px; color: var(--ink); line-height: 1.5; }
.watch-points li::before { content: counter(kp); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 800 .85rem var(--f-head); }
.watch-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 26px; padding: 20px 22px; border-radius: 18px; background: var(--navy); color: #C9D2EA; }
.watch-cta strong { display: block; color: #fff; font-family: var(--f-head); font-size: 1.1rem; }
.watch-cta .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.watch-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.watch-disc { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.watch-side { position: sticky; top: 96px; }
.watch-side h2 { font-size: 1.15rem; margin-bottom: 14px; }
.watch-related { display: grid; gap: 12px; }

/* channels */
.learn-channels { background: var(--soft); }
.chan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.chan { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--body); transition: transform .3s var(--ease), box-shadow .3s; }
.chan:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--body); }
.chan-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: var(--navy); }
.chan-youtube .chan-ic { background: #FF0000; } .chan-facebook .chan-ic { background: #1877F2; } .chan-tiktok .chan-ic { background: #111; } .chan-instagram .chan-ic { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.chan-t { flex: 1; min-width: 0; }
.chan-t strong { display: block; color: var(--ink); font-family: var(--f-head); line-height: 1.3; }
.chan-t small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-go { flex: none; font: 700 .85rem var(--f-head); color: var(--navy); white-space: nowrap; }

/* homepage band */
.home-learn { background: linear-gradient(180deg, #fff, var(--soft)); }
.home-learn-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.home-learn-side { display: grid; gap: 12px; }
.home-learn-feat h3 { font-size: 1.25rem; margin: 16px 0 6px; }
.home-learn-feat h3 a { color: var(--ink); }
.home-learn-feat p { margin: 0; color: var(--muted); }
.home-learn-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.home-learn-cats a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 13px; border-radius: 30px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .85rem var(--f-head); }
.home-learn-cats a i { color: var(--red); }
.home-learn-chan { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.home-learn-chan a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; color: #fff; font: 700 .9rem var(--f-head); }
.home-learn-chan a.yt { background: #FF0000; } .home-learn-chan a.fb { background: #1877F2; } .home-learn-chan a.ot { background: var(--navy); }
.home-learn-chan a:hover { color: #fff; filter: brightness(1.08); }

@media (max-width: 1024px) {
  .learn-hero-grid, .learn-feature, .watch-grid, .home-learn-grid { grid-template-columns: 1fr; }
  .learn-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-side { position: static; }
}
@media (max-width: 720px) {
  .learn-filters { top: 60px; }
  .learn-filters .wrap { flex-direction: column; align-items: stretch; }
  .learn-aud select { width: 100%; }
  .vgrid { grid-template-columns: 1fr; }
  .learn-hero-stats div { flex-direction: column; gap: 0; padding: 12px; }
  .learn-hero-stats b { font-size: 1.4rem; }
  .vcard.compact .vthumb { width: 128px; }
  .chan { flex-wrap: wrap; }
  .chan-go { width: 100%; padding-left: 72px; }
  .learn-search .btn { padding: 0 16px; }
  .vbig { width: 68px; height: 68px; margin: -34px 0 0 -34px; font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { .vbig { animation: none; } }
