.videos-section { background: var(--bg); }

.grade-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.grade-tab  { padding: 10px 22px; border-radius: 50px; border: 2px solid rgba(0,120,180,0.2); background: #fff; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.grade-tab:hover  { border-color: var(--teal); color: var(--teal); }
.grade-tab.active.gtab-g4 { background: linear-gradient(135deg, #0097a7, #1565c0); border-color: transparent; color: #fff; }
.grade-tab.active.gtab-g5 { background: linear-gradient(135deg, #7c3aed, #a855f7); border-color: transparent; color: #fff; }
.grade-tab.active.gtab-g6 { background: linear-gradient(135deg, #f59e0b, #f97316); border-color: transparent; color: #fff; }
.grade-tab.active.gtab-g7 { background: linear-gradient(135deg, #dc2626, #f97316); border-color: transparent; color: #fff; }
.grade-tab.active.gtab-g8 { background: linear-gradient(135deg, #1565c0, #7c3aed); border-color: transparent; color: #fff; }

.videos-grade-header { background: #fff; border-radius: 16px; padding: 20px 24px; margin-bottom: 28px; box-shadow: 0 2px 10px rgba(0,80,140,0.07); }
.vgh-title { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 20px; color: var(--navy); }
.vgh-sub   { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ── Grade 4 intro panel ── */
.g4-intro { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }

.g4-feature-row { display: flex; flex-wrap: wrap; gap: 10px; }
.g4-feature-pill { display: flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid rgba(0,151,167,0.22); border-radius: 50px; padding: 8px 16px; box-shadow: 0 2px 8px rgba(0,80,140,0.06); }
.g4-pill-icon  { font-size: 16px; line-height: 1; }
.g4-pill-label { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; color: #0e5a6a; letter-spacing: 0.01em; }

.g4-passive-box { display: flex; align-items: flex-start; gap: 14px; background: linear-gradient(135deg, #e0f7fa, #e8f4fd); border-left: 4px solid #0097a7; border-radius: 12px; padding: 18px 20px; }
.g4-passive-icon { font-size: 26px; flex-shrink: 0; margin-top: 1px; }
.g4-passive-text { font-size: 14px; font-weight: 600; color: #1e3a4a; line-height: 1.65; }
.g4-passive-text strong { color: #0d3a50; font-weight: 800; }

.g4-highlight-banner { display: flex; align-items: stretch; background: linear-gradient(135deg, #0d2d4a 0%, #0a4a5a 55%, #0e6674 100%); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,80,140,0.18); }
.g4-hlb-left  { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px 32px; flex-shrink: 0; }
.g4-hlb-num   { font-family: 'Baloo 2', cursive; font-weight: 900; font-size: 52px; color: #fff; line-height: 1; }
.g4-hlb-numlabel { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-top: 2px; margin-bottom: 14px; }
.g4-hlb-cred  { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 220px; }
.g4-hlb-cred strong { color: #fff; font-weight: 800; }
.g4-cred-badge { display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; border-radius: 50px; padding: 3px 10px; margin-right: 6px; margin-bottom: 6px; vertical-align: middle; }

.g4-hlb-divider { width: 1px; background: rgba(255,255,255,0.12); margin: 20px 0; flex-shrink: 0; }

.g4-hlb-right { display: flex; flex-direction: column; justify-content: center; padding: 28px 28px 28px 24px; flex: 1; }
.g4-hlb-curated { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.g4-hlb-comps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.g4-hlb-comps li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #fff; }
.g4-hlb-comps li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5dd8e8; flex-shrink: 0; }

@media (max-width: 640px) {
  .g4-highlight-banner { flex-direction: column; }
  .g4-hlb-divider { width: auto; height: 1px; margin: 0 20px; }
  .g4-hlb-num { font-size: 42px; }
}

.videos-list { list-style: none; padding: 0; margin: 0 0 40px; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,80,140,0.07); overflow: hidden; }
.videos-list li { border-bottom: 1px solid rgba(0,80,140,0.07); }
.videos-list li:last-child { border-bottom: none; }
.videos-list li a { display: flex; align-items: center; gap: 10px; padding: 14px 24px; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 600; color: #0097a7; text-decoration: none; transition: background 0.15s, color 0.15s; }
.videos-list li a:hover { background: #f0fafc; color: #00788a; text-decoration: underline; }
.yt-icon { width: 24px; height: 17px; flex-shrink: 0; fill: #ff0000; border-radius: 4px; }

.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-bottom: 40px; }
.video-card  { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,80,140,0.08); border-top: 4px solid transparent; transition: transform 0.22s, box-shadow 0.22s; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 12px 34px rgba(0,80,140,0.14); }
.vcard-g4 { border-top-color: #0097a7; }
.vcard-g5 { border-top-color: #7c3aed; }
.vcard-g6 { border-top-color: #f59e0b; }
.vcard-g7 { border-top-color: #dc2626; }
.vcard-g8 { border-top-color: #1565c0; }

.video-thumb { background: linear-gradient(145deg, #0d2545, #0a3a5a); position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video-emoji  { font-size: 48px; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.2s; font-size: 36px; color: #fff; }
.video-thumb:hover .play-overlay { opacity: 1; }

.video-body   { padding: 18px; }
.video-tag    { display: inline-block; background: #e0f7fa; color: #0e7490; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; margin-bottom: 8px; }
.video-card h3 { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 15px; color: var(--navy); margin-bottom: 6px; line-height: 1.35; }
.video-card p  { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.6; margin-bottom: 10px; }
.coming-soon-label { font-size: 11px; font-weight: 700; color: var(--muted); background: #f0f9ff; border-radius: 8px; padding: 5px 10px; display: inline-block; }

.videos-info-box { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid rgba(0,150,200,0.15); border-radius: 16px; padding: 20px 24px; font-size: 14px; color: var(--muted); font-weight: 600; line-height: 1.65; }
.videos-info-box span { font-size: 24px; flex-shrink: 0; }
.videos-info-box strong { color: var(--navy); }
.info-link { color: var(--teal); font-weight: 800; text-decoration: none; }
.info-link:hover { text-decoration: underline; }
