:root {
  --ink: #21325b;
  --muted: #677788;
  --blue: #377dff;
  --blue-dark: #1164ff;
  --indigo: #6772e5;
  --line: #dce6f7;
  --soft: #f8fafd;
  --soft-blue: #e4f1ff;
  --shadow: 0 12px 30px rgba(55, 125, 255, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.55 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 10; top: 0; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 5px 18px rgba(33, 50, 91, .055); backdrop-filter: blur(10px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 164px; height: auto; }
.brand small { margin-left: 13px; padding: 5px 9px; border-radius: 999px; background: var(--soft-blue); color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.header-inner nav { display: flex; gap: 22px; font-size: 14px; font-weight: 650; }
.header-inner nav a:hover { color: var(--blue); }
.header-search { display: flex; margin-left: auto; width: min(360px, 35vw); border: 1px solid #c7dbff; border-radius: 10px; overflow: hidden; background: #fff; }
.header-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55, 125, 255, .12); }
.header-search input, .hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; font: inherit; }
.header-search input { padding: 10px 13px; }
.header-search button, .hero-search button { border: 0; background: var(--blue); color: #fff; font-weight: 700; padding: 0 18px; cursor: pointer; transition: background .2s; }
.header-search button:hover, .hero-search button:hover { background: var(--blue-dark); }

.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #e4f1ff 0%, #f4f8ff 55%, #dcecff 100%); color: var(--ink); }
.hero:before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; left: -160px; bottom: -230px; background: rgba(55, 125, 255, .09); }
.hero:after { content: ""; position: absolute; width: 460px; height: 460px; border: 100px solid rgba(55, 125, 255, .075); border-radius: 50%; right: -130px; top: -230px; }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 82px 20px 94px; }
.hero-label, .kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-label { color: var(--blue); }
.hero h1, .page-head h1 { margin: .2em 0; font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -.045em; }
.hero p { margin: 0 auto 30px; max-width: 670px; color: var(--muted); font-size: 18px; }
.hero-search { display: flex; width: min(720px, 100%); height: 62px; margin: auto; background: #fff; border: 1px solid rgba(55, 125, 255, .18); border-radius: 13px; box-shadow: 0 18px 44px rgba(55, 125, 255, .16); overflow: hidden; }
.hero-search:focus-within { border-color: var(--blue); }
.hero-search input { padding: 0 22px; font-size: 17px; }
.hero-search button { padding: 0 28px; font-size: 16px; }

.section { padding-top: 64px; padding-bottom: 64px; }
.section-muted { background: var(--soft); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 27px; }
.section-heading h2, .section > h2 { margin: 3px 0 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.section-heading > a { font-weight: 700; color: var(--blue); }
.section-heading > span { color: var(--muted); }
.kicker, .eyebrow { color: var(--blue); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 24px; }
.category-card { display: flex; align-items: center; gap: 14px; min-height: 95px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: .2s; }
.category-card:hover { transform: translateY(-2px); border-color: #97bbff; box-shadow: var(--shadow); }
.category-icon { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 11px; background: var(--soft-blue); color: var(--blue); font-size: 20px; font-weight: 800; }
.category-card > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.category-card strong { font-size: 17px; }
.category-card small { margin-top: 3px; color: var(--muted); }
.category-card b { color: var(--blue); }

.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: .2s; }
.video-card:hover { transform: translateY(-3px); border-color: #c7dbff; box-shadow: var(--shadow); }
.thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--soft-blue); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.video-card:hover .thumb img { transform: scale(1.025); }
.play { position: absolute; left: 50%; top: 50%; display: grid; width: 45px; height: 45px; place-items: center; padding-left: 3px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--blue); transform: translate(-50%, -50%); box-shadow: 0 5px 18px rgba(33, 50, 91, .18); }
.duration { position: absolute; right: 9px; bottom: 8px; padding: 3px 7px; border-radius: 5px; background: rgba(33, 50, 91, .88); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.card-body { padding: 16px 17px 19px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.card-body h3 { margin: 5px 0 0; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }

.page-head { padding: 52px 0; background: linear-gradient(120deg, var(--soft-blue), var(--soft)); border-bottom: 1px solid #d7e7ff; }
.page-head h1 { font-size: clamp(34px, 5vw, 50px); }
.page-head p { max-width: 700px; margin: 10px 0 0; color: var(--muted); font-size: 18px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; overflow: hidden; margin-bottom: 18px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.breadcrumbs a { color: var(--blue); font-weight: 650; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
.search-head .hero-search { margin: 28px 0 0; border: 1px solid #c7dbff; box-shadow: 0 10px 28px rgba(55, 125, 255, .12); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 38px; }
.pagination a { padding: 10px 16px; border: 1px solid #c7dbff; border-radius: 8px; color: var(--blue); font-weight: 700; }
.pagination a:hover { background: var(--soft-blue); }
.pagination span { color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px dashed #97bbff; border-radius: 12px; background: var(--soft); }
.empty h3 { margin: 0; }
.empty p, .muted { color: var(--muted); }

.video-page { padding: 34px 0 58px; background: var(--soft); }
.player-shell { overflow: hidden; background: #07141d; border-radius: 14px; box-shadow: 0 18px 45px rgba(33, 50, 91, .2); }
.player-shell video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16/9; background: #07141d; }
.video-copy { display: grid; grid-template-columns: 1fr auto; gap: 35px; margin-top: 28px; }
.video-copy h1 { margin: 7px 0 12px; max-width: 850px; font-size: clamp(28px, 4vw, 42px); line-height: 1.13; letter-spacing: -.035em; }
.description { max-width: 800px; color: #43576a; }
.video-copy aside { display: flex; flex-direction: column; gap: 8px; min-width: 130px; padding: 16px 0; color: var(--muted); font-size: 13px; }
.video-copy aside span { display: flex; justify-content: space-between; gap: 12px; }
.video-copy aside strong { color: var(--ink); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 35px; padding-top: 24px; border-top: 1px solid var(--line); }
.prev-next a { display: flex; flex-direction: column; }
.prev-next a:hover strong { color: var(--blue); }
.prev-next small { color: var(--blue); font-weight: 750; }
.prev-next .next { text-align: right; }

footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 14px; }
footer .container { display: flex; justify-content: space-between; }
.footer-brand { font-weight: 800; color: var(--indigo); }

@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner nav { display: none; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 67px; gap: 12px; }
  .brand img { width: 128px; }
  .brand small { display: none; }
  .header-search { width: auto; flex: 1; }
  .header-search button { padding: 0 11px; font-size: 0; }
  .header-search button:after { content: "⌕"; font-size: 20px; }
  .hero-content { padding: 62px 0 70px; }
  .hero-search { height: 56px; }
  .hero-search input { padding: 0 16px; }
  .hero-search button { padding: 0 18px; }
  .section { padding-top: 45px; padding-bottom: 45px; }
  .category-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { gap: 14px; }
  .category-card { padding: 13px; }
  .category-icon { display: none; }
  .video-copy { grid-template-columns: 1fr; }
  .video-copy aside { flex-direction: row; padding: 0; }
  .page-head { padding: 38px 0; }
}

@media (max-width: 480px) {
  .category-grid, .video-grid { grid-template-columns: 1fr; }
  .hero-search button { padding: 0 15px; }
  .section-heading { align-items: start; }
  .section-heading > span { font-size: 13px; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .next { text-align: left; }
  footer .container { gap: 8px; flex-direction: column; }
}
