.ela-video-library-page {
  margin: 0 !important;
  background: #f4f7fb !important;
  color: #14213d;
}

.ela-video-library-page * { box-sizing: border-box; }
.ela-video-library-page #wpadminbar { position: fixed; }
.ela-page { --navy:#0d2854; --navy-deep:#081c3b; --blue:#1769e0; --gold:#f5b928; --ink:#14213d; --muted:#64718a; --line:#dfe6f0; --paper:#fff; --canvas:#f4f7fb; min-height:100vh; overflow-x:hidden; background:var(--canvas); color:var(--ink); font-family:"Segoe UI",Arial,Helvetica,sans-serif; font-size:16px; line-height:1.5; }
.ela-page *, .ela-page *::before, .ela-page *::after { box-sizing:border-box; }
.ela-page a { color:inherit; text-decoration:none; }
.ela-page button, .ela-page input { font:inherit; }
.ela-page button { cursor:pointer; }
.ela-page svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ela-container { width:min(1180px,calc(100% - 40px)); margin-inline:auto; }

.ela-masthead { position:relative; overflow:hidden; background:linear-gradient(112deg,var(--navy-deep),var(--navy) 62%,#154886); color:#fff; }
.ela-masthead::before,.ela-masthead::after { content:""; position:absolute; border-radius:999px; border:1px solid rgba(88,161,255,.22); pointer-events:none; }
.ela-masthead::before { width:430px; height:430px; right:-130px; top:-300px; }
.ela-masthead::after { width:310px; height:310px; right:22%; bottom:-285px; }
.ela-masthead-glow { position:absolute; inset:0; background:radial-gradient(circle at 76% 10%,rgba(41,126,255,.24),transparent 28%); }
.ela-masthead-inner { min-height:100px; display:flex; align-items:center; justify-content:space-between; gap:24px; position:relative; z-index:1; }
.ela-brand { display:inline-flex; align-items:center; gap:14px; min-width:0; color:#fff !important; }
.ela-brand-mark { width:52px; height:52px; border-radius:14px; display:grid; place-items:center; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); }
.ela-brand-mark svg { width:28px; height:28px; }
.ela-brand strong { display:block; color:#fff; font-size:clamp(1.2rem,2.2vw,1.75rem); letter-spacing:-.025em; line-height:1.15; }
.ela-brand small { display:block; margin-top:7px; color:#cbd9ef; font-size:.86rem; letter-spacing:.02em; }
.ela-header-actions { display:flex; align-items:center; gap:18px; }
.ela-live-badge { display:inline-flex; align-items:center; gap:8px; color:#d8e3f5; font-size:.82rem; }
.ela-live-badge > span { width:8px; height:8px; border-radius:50%; background:#4de0a2; box-shadow:0 0 0 5px rgba(77,224,162,.12); }
.ela-button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; border:0; border-radius:9px; font-size:.88rem; font-weight:750; transition:transform .2s,background .2s; }
.ela-button:hover { transform:translateY(-1px); }
.ela-button svg { width:17px; height:17px; }
.ela-button-gold { background:var(--gold); color:var(--navy-deep) !important; }
.ela-button-gold:hover { background:#ffd365; }
.ela-menu-button { display:none; width:44px; height:44px; padding:0; place-items:center; border:0; border-radius:9px; background:rgba(255,255,255,.08); color:#fff; }
.ela-menu-close { display:none; }
.ela-menu-button[aria-expanded="true"] .ela-menu-open { display:none; }
.ela-menu-button[aria-expanded="true"] .ela-menu-close { display:block; }

.ela-primary-nav { background:#fff; border-bottom:1px solid var(--line); box-shadow:0 4px 15px rgba(20,33,61,.035); }
.ela-nav-inner { height:64px; display:flex; align-items:stretch; gap:4px; }
.ela-nav-inner a { display:flex; align-items:center; justify-content:center; min-width:112px; padding:0 19px; color:#47536a; font-size:.8rem; font-weight:750; letter-spacing:.035em; text-transform:uppercase; border-bottom:3px solid transparent; transition:color .2s,background .2s,border-color .2s; }
.ela-nav-inner a:hover { color:var(--blue); background:#f7faff; }
.ela-nav-inner a.is-active { color:var(--blue); border-color:var(--blue); background:#f8fbff; }
.ela-announcement { background:#fff6d7; border-bottom:1px solid #f1dfa5; color:#624b0a; }
.ela-announcement-inner { min-height:44px; display:flex; align-items:center; gap:16px; font-size:.88rem; }
.ela-announcement strong { flex:none; padding-right:16px; border-right:1px solid #d8c174; color:#493500; }

.ela-library-intro { color:#fff; background:linear-gradient(135deg,#0c2f67,#1357aa); position:relative; overflow:hidden; }
.ela-library-intro::after { content:""; position:absolute; width:520px; height:520px; right:-230px; bottom:-420px; border:80px solid rgba(255,255,255,.045); border-radius:50%; }
.ela-intro-grid { min-height:300px; padding-block:58px; display:grid; grid-template-columns:1fr .92fr; align-items:center; gap:68px; position:relative; z-index:1; }
.ela-eyebrow { margin:0 0 10px; color:var(--blue); font-size:.76rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.ela-library-intro .ela-eyebrow { color:#96c1ff; }
.ela-library-intro h1 { margin:0; color:#fff; font-size:clamp(2.45rem,5vw,4.25rem); line-height:.98; letter-spacing:-.055em; font-weight:760; }
.ela-library-intro h1 span { color:var(--gold); }
.ela-intro-copy { max-width:480px; margin:19px 0 0; color:#d5e4f9; font-size:1.05rem; line-height:1.7; }
.ela-search-panel { margin:0; padding:26px; border-radius:18px; background:#fff; color:var(--ink); box-shadow:0 26px 60px rgba(5,22,50,.24); }
.ela-search-panel label { display:block; margin-bottom:12px; color:var(--ink); font-size:.95rem; font-weight:750; }
.ela-search-control { display:flex; align-items:center; position:relative; }
.ela-search-control > svg { position:absolute; z-index:1; left:15px; width:19px; color:#71809a; }
.ela-search-control input { width:100%; height:52px; margin:0; padding:0 104px 0 45px; border:1px solid #d5deeb; border-radius:10px; background:#f7f9fc; color:var(--ink); font-size:.95rem; outline:none; }
.ela-search-control input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(23,105,224,.15); }
.ela-search-control button { position:absolute; right:5px; height:42px; padding:0 18px; border:0; border-radius:8px; background:var(--blue); color:#fff; font-weight:700; }
.ela-search-panel > p { margin:10px 0 0; color:#77849a; font-size:.76rem; }

.ela-content-section { padding:58px 0 76px; }
.ela-content-grid { display:grid; grid-template-columns:minmax(0,1fr) 330px; align-items:start; gap:30px; }
.ela-subject-browser { min-width:0; }
.ela-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.ela-section-heading h2 { margin:0; color:var(--navy); font-size:clamp(1.55rem,3vw,2.05rem); letter-spacing:-.035em; }
.ela-subject-count { flex:none; margin-bottom:3px; padding:7px 11px; border-radius:999px; background:#e7eef8; color:#536178; font-size:.76rem; font-weight:700; }
.ela-subject-list { display:grid; gap:12px; }
.ela-subject-item { overflow:hidden; border:1px solid var(--line); border-radius:13px; background:var(--paper); box-shadow:0 8px 24px rgba(25,45,79,.04); }
.ela-subject-item h3 { margin:0; }
.ela-subject-trigger { width:100%; padding:17px 20px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:0; background:#fff; color:var(--ink); text-align:left; }
.ela-subject-trigger:hover { background:#fbfcfe; }
.ela-subject-trigger:focus-visible { outline:3px solid rgba(23,105,224,.3); outline-offset:-3px; }
.ela-subject-title { display:flex; align-items:center; gap:15px; }
.ela-subject-title > span:last-child { display:grid; gap:4px; }
.ela-subject-title strong { color:var(--navy); font-size:1.05rem; }
.ela-subject-title small { color:#78859a; font-size:.76rem; font-weight:500; }
.ela-subject-icon { width:47px; height:47px; border-radius:11px; display:grid; place-items:center; flex:none; background:var(--ela-subject-soft); color:var(--ela-subject-colour); font-size:.76rem; font-weight:850; letter-spacing:-.02em; }
.ela-chevron { display:grid; place-items:center; color:#7a879b; transition:transform .2s; }
.ela-chevron svg { width:20px; }
.ela-subject-trigger[aria-expanded="true"] .ela-chevron { transform:rotate(180deg); }
.ela-subject-panel { padding:0 20px 18px 82px; }
.ela-topic-list { border-top:1px solid #e8edf4; }
.ela-topic-row { display:grid; grid-template-columns:minmax(180px,.72fr) 1.28fr; gap:18px; padding:14px 8px; border-bottom:1px solid #edf1f6; }
.ela-topic-row:last-child { border-bottom:0; }
.ela-topic-name { display:flex; align-items:flex-start; gap:10px; color:#26354f; }
.ela-topic-name strong { font-size:.87rem; line-height:1.5; }
.ela-topic-number { width:24px; height:24px; flex:none; display:grid; place-items:center; border-radius:6px; background:#eef3fa; color:#65748b; font-size:.68rem; font-weight:800; }
.ela-topic-actions { display:grid; gap:7px; }
.ela-video-link { display:grid; grid-template-columns:32px 1fr auto; align-items:center; gap:10px; padding:8px; border-radius:9px; transition:background .2s; }
.ela-video-link:hover { background:#f4f8fe; }
.ela-play-icon { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:#eaf2ff; color:var(--blue); }
.ela-play-icon svg { width:13px; height:13px; fill:currentColor; stroke-width:0; }
.ela-video-link > span:nth-child(2) { display:grid; gap:1px; }
.ela-video-link strong { color:#23314b; font-size:.82rem; line-height:1.35; }
.ela-video-link small { color:#8792a5; font-size:.69rem; }
.ela-video-link > svg { width:16px; color:#8a96a9; }
.ela-coming-soon { align-self:start; justify-self:start; padding:5px 9px; border-radius:999px; background:#f0f3f7; color:#7b8799; font-size:.68rem; font-weight:700; }
.ela-empty-state { padding:54px 24px; text-align:center; border:1px dashed #bfcadb; border-radius:14px; background:#fff; }
.ela-empty-state > svg { width:34px; height:34px; color:#91a0b7; }
.ela-empty-state h3 { margin:12px 0 5px; color:var(--navy); }
.ela-empty-state p { margin:0 0 18px; color:var(--muted); }
.ela-clear-search { padding:9px 14px; border:1px solid #c8d2e1; border-radius:8px; background:#fff; color:var(--navy); font-weight:700; }

.ela-sidebar { display:grid; gap:16px; }
.ela-tuition-card { padding:29px; border-radius:17px; color:#fff; background:linear-gradient(155deg,#102f67,#0c234b); box-shadow:0 20px 45px rgba(16,47,103,.18); }
.ela-tuition-icon { width:48px; height:48px; display:grid; place-items:center; margin-bottom:22px; border-radius:12px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.13); }
.ela-tuition-card .ela-eyebrow { color:#8dbaff; }
.ela-tuition-card h2 { margin:0; color:#fff; font-size:1.55rem; line-height:1.22; letter-spacing:-.035em; }
.ela-tuition-card > p:not(.ela-eyebrow) { margin:15px 0 21px; color:#c7d6ea; font-size:.9rem; line-height:1.65; }
.ela-wide-button { width:100%; }
.ela-text-link { margin-top:17px; display:inline-flex; align-items:center; gap:8px; color:#d9e6f6 !important; font-size:.79rem; font-weight:650; }
.ela-text-link:hover { color:#fff !important; }
.ela-text-link svg { width:16px; }
.ela-help-card { display:flex; gap:14px; padding:19px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.ela-help-card > svg { flex:none; width:21px; color:var(--blue); }
.ela-help-card strong { display:block; margin-bottom:4px; color:var(--navy); font-size:.87rem; }
.ela-help-card p { margin:0; color:#78859a; font-size:.76rem; line-height:1.5; }
.ela-footer { padding:24px 0; background:#081b39; color:#abbcd5; }
.ela-footer-inner { display:flex; justify-content:space-between; gap:20px; font-size:.78rem; }

@media (max-width:900px) {
  .ela-header-actions { display:none; }
  .ela-menu-button { display:grid; }
  .ela-primary-nav { max-height:0; overflow:hidden; transition:max-height .25s ease; }
  .ela-primary-nav.is-open { max-height:360px; }
  .ela-nav-inner { height:auto; padding:9px 0 15px; display:grid; }
  .ela-nav-inner a { min-width:0; min-height:45px; padding:0 14px; justify-content:flex-start; border:0; border-radius:8px; }
  .ela-nav-inner a.is-active { background:#edf4ff; }
  .ela-intro-grid { grid-template-columns:1fr; gap:34px; padding-block:46px; }
  .ela-content-grid { grid-template-columns:1fr; }
  .ela-sidebar { grid-template-columns:1.4fr 1fr; }
}

@media (max-width:680px) {
  .ela-container { width:min(100% - 28px,1180px); }
  .ela-masthead-inner { min-height:82px; }
  .ela-brand-mark { width:43px; height:43px; border-radius:11px; }
  .ela-brand-mark svg { width:23px; }
  .ela-brand strong { font-size:1.03rem; }
  .ela-brand small { margin-top:4px; font-size:.71rem; }
  .ela-announcement-inner { padding-block:10px; align-items:flex-start; gap:8px; flex-direction:column; font-size:.77rem; line-height:1.45; }
  .ela-announcement strong { padding:0; border:0; }
  .ela-intro-grid { min-height:auto; padding-block:40px; }
  .ela-library-intro h1 { font-size:2.65rem; }
  .ela-intro-copy { font-size:.92rem; }
  .ela-search-panel { padding:18px; border-radius:14px; }
  .ela-search-control input { padding-right:47px; }
  .ela-search-control button { width:41px; padding:0; font-size:0; }
  .ela-search-control button::after { content:"→"; font-size:1.15rem; }
  .ela-content-section { padding:42px 0 58px; }
  .ela-section-heading { align-items:flex-start; }
  .ela-subject-trigger { padding:14px; }
  .ela-subject-icon { width:42px; height:42px; }
  .ela-subject-title strong { font-size:.94rem; }
  .ela-subject-panel { padding:0 13px 15px; }
  .ela-topic-row { grid-template-columns:1fr; gap:8px; padding:13px 5px; }
  .ela-sidebar { grid-template-columns:1fr; }
  .ela-tuition-card { padding:24px; }
  .ela-footer-inner { flex-direction:column; gap:7px; }
}

@media (prefers-reduced-motion:reduce) {
  .ela-page *, .ela-page *::before, .ela-page *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}
