:root {
    --video-ink: #142128;
    --video-muted: #64747b;
    --video-brand: #087f75;
    --video-brand-dark: #063f42;
    --video-accent: #f4a228;
    --video-paper: #f5f8f7;
    --video-line: #e3eae8;
}

.video-hub, .video-watch { direction: rtl; text-align: right; color: var(--video-ink); background: #fff; font-family: inherit; }
.video-hub *, .video-watch * { direction: rtl !important; text-align: right !important; }
.video-empty, .video-empty *,
.video-hero__chips small,
.video-featured__play, .video-featured__fallback,
.video-card__play, .video-card__fallback,
.video-toast,
.video-watch__all { text-align: center !important; }
.video-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

/* The legacy theme styles every h2/h3 as an article-content callout. Reset
   that rule only for headings that belong to this UI. Rich article content
   inside .video-rich-content intentionally keeps the site typography. */
.video-hub h2,
.video-hub h3,
.video-watch__content > header h2,
.video-watch__aside h2,
.video-watch .video-card h3 { box-sizing: border-box !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: inherit !important; }

.video-hero { position: relative; padding: 58px 0 54px; color: #fff; background: radial-gradient(circle at 12% 18%, rgba(28,181,165,.25), transparent 32%), linear-gradient(125deg, #052f33, #064e52 55%, #073a3d); overflow: hidden; }
.video-hero::before { content: ''; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,.18) 49%, rgba(255,255,255,.18) 51%, transparent 52%); background-size: 34px 34px; }
.video-hero .video-shell { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: center; }
.video-hero__intro > span { display: inline-flex; align-items: center; gap: 8px; color: #7de3d8; font-size: 13px; font-weight: 800; }
.video-hero__intro h1 { max-width: 460px; margin: 12px 0 14px; color: #fff; font-size: clamp(29px, 4vw, 45px); line-height: 1.35; font-weight: 900; }
.video-hero__intro > p { max-width: 490px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 2; }
.video-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.video-hero__chips a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #e8fffc; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; font-size: 11px; transition: .2s; }
.video-hero__chips a:hover { color: #fff; background: rgba(255,255,255,.15); transform: translateY(-2px); }
.video-hero__chips i { width: 7px; height: 7px; background: var(--chip-color); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.video-hero__chips small { min-width: 18px; padding: 1px 5px; text-align: center; color: #c8faf4; background: rgba(0,0,0,.2); border-radius: 8px; }

.video-featured { overflow: hidden; background: #fff; border-radius: 19px; box-shadow: 0 25px 70px rgba(0,0,0,.28); }
.video-featured__media { display: block; aspect-ratio: 16 / 8.65; position: relative; overflow: hidden; background: #123c3d; }
.video-featured__media img, .video-featured__fallback { width: 100%; height: 100%; transition: transform .55s ease; }
.video-featured__media img { object-fit: cover; }
.video-featured__fallback { display: grid; place-items: center; color: rgba(255,255,255,.4); background: linear-gradient(135deg, #1d6462, #0a3035); font-size: 62px; }
.video-featured:hover .video-featured__media img { transform: scale(1.035); }
.video-featured__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.46), transparent 55%); }
.video-featured__play { position: absolute; inset: 0; display: grid; place-items: center; margin: auto; width: 70px; height: 70px; color: #fff; background: rgba(9,143,130,.9); border: 5px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 19px; transition: .2s; }
.video-featured__play i { margin-left: 3px; }
.video-featured:hover .video-featured__play { background: var(--video-accent); transform: scale(1.08); }
.video-featured__media > small { position: absolute; bottom: 13px; left: 13px; padding: 4px 8px; color: #fff; background: rgba(0,0,0,.75); border-radius: 6px; font-size: 11px; direction: ltr; }
.video-featured__content { padding: 20px 23px 21px; color: var(--video-ink); }
.video-featured__label { display: inline-flex; align-items: center; gap: 6px; color: #b36e09; font-size: 10px; font-weight: 800; }
.video-featured__content h2 { margin: 7px 0 6px !important; font-size: 20px !important; line-height: 1.65 !important; font-weight: 900; }
.video-featured__content h2 a { color: inherit; }
.video-featured__content > p { margin: 0; color: var(--video-muted); font-size: 12px; line-height: 1.85; }
.video-featured__content > div { display: flex; gap: 16px; padding-top: 13px; margin-top: 13px; color: #7b878d; border-top: 1px solid var(--video-line); font-size: 10px; }
.video-featured__content > div span { display: flex; align-items: center; gap: 5px; }

.video-section { padding: 56px 0; background: #fff; }
.video-section--latest { background: #f7f9f8; }
.video-section--tinted { position: relative; color: #fff; background: linear-gradient(125deg, color-mix(in srgb, var(--section-color) 60%, #041f25), #061f25); }
.video-section--tinted::before { content: ''; position: absolute; inset: 0; opacity: .08; background: radial-gradient(circle at 20% 50%, #fff 0 1px, transparent 2px); background-size: 22px 22px; }
.video-section--tinted .video-shell { position: relative; }
.video-section__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.video-section__header > div > span { display: block; color: var(--section-color, var(--video-brand)); font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.video-section__header h2 { margin: 5px 0 0 !important; color: inherit; font-size: clamp(21px, 3vw, 28px) !important; line-height: 1.45 !important; font-weight: 900; }
.video-section__header p { max-width: 650px; margin: 6px 0 0; color: var(--video-muted); font-size: 12px; line-height: 1.8; }
.video-section__header > i { display: grid; place-items: center; width: 40px; height: 40px; color: #bd7507; background: #fff0d8; border-radius: 13px; }
.video-section__header > a { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--section-color, var(--video-brand)); font-size: 12px; font-weight: 900; }
.video-section--tinted .video-section__header > div > span, .video-section--tinted .video-section__header > a { color: #7ce1d8; }
.video-section--tinted .video-section__header p { color: rgba(255,255,255,.62); }

.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.video-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--video-line); border-radius: 14px; box-shadow: 0 9px 24px rgba(24,48,48,.055); transition: transform .25s, box-shadow .25s; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(19,57,55,.12); }
.video-card__media { display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #0a3e42; }
.video-card__media img, .video-card__fallback { width: 100%; height: 100%; transition: transform .45s ease; }
.video-card__media img { object-fit: cover; }
.video-card:hover .video-card__media img { transform: scale(1.05); }
.video-card__fallback { display: grid; place-items: center; color: rgba(255,255,255,.36); background: linear-gradient(135deg, #1a7770, #0a3035); font-size: 38px; }
.video-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.42), transparent 58%); }
.video-card__play { position: absolute; inset: 0; display: grid; place-items: center; width: 45px; height: 45px; margin: auto; color: #fff; background: rgba(5,135,123,.88); border: 3px solid rgba(255,255,255,.35); border-radius: 50%; opacity: 0; transform: scale(.75); transition: .25s; }
.video-card__play i { margin-left: 2px; font-size: 12px; }
.video-card:hover .video-card__play { opacity: 1; transform: scale(1); }
.video-card__duration { position: absolute; bottom: 8px; left: 8px; padding: 3px 6px; color: #fff; background: rgba(0,0,0,.78); border-radius: 5px; font-size: 9px; direction: ltr; }
.video-card__category { position: absolute; top: 8px; right: 8px; padding: 4px 8px; color: #fff; background: var(--video-category, var(--video-brand)); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.17); font-size: 9px; font-weight: 800; }
.video-card__body { padding: 13px 14px 14px; }
.video-card__body h3 { min-height: 47px; margin: 0 !important; font-size: 13px !important; line-height: 1.8 !important; font-weight: 900; }
.video-card__body h3 a { color: var(--video-ink); }
.video-card__body > p { min-height: 43px; margin: 5px 0 10px; color: var(--video-muted); font-size: 10px; line-height: 1.9; }
.video-card__meta { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; color: #869198; border-top: 1px solid #edf1f0; font-size: 9px; }
.video-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.video-section--tinted .video-card { border-color: rgba(255,255,255,.09); box-shadow: 0 12px 28px rgba(0,0,0,.2); }

.video-cta { padding: 20px 0 60px; background: #fff; }
.video-cta .video-shell > div { display: flex; align-items: center; gap: 15px; padding: 28px 32px; color: #fff; background: linear-gradient(120deg, #063f42, #087f75); border-radius: 19px; }
.video-cta .video-shell > div > span { display: grid; place-items: center; width: 51px; height: 51px; flex: 0 0 51px; color: #fff; background: rgba(255,255,255,.12); border-radius: 14px; font-size: 20px; }
.video-cta small { color: #9de7df; font-size: 10px; }
.video-cta h2 { margin: 4px 0 0 !important; color: #fff !important; font-size: 18px !important; line-height: 1.55 !important; }
.video-cta a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 17px; margin-right: auto; color: #59400c; background: #ffc75b; border-radius: 11px; font-size: 12px; font-weight: 900; white-space: nowrap; }

.video-empty { padding: 80px 20px; text-align: center; }
.video-empty > .video-shell > i, .video-empty > i { display: inline-grid; place-items: center; width: 74px; height: 74px; color: #0b8b7f; background: #e9f7f5; border-radius: 23px; font-size: 28px; }
.video-empty h2 { margin: 17px 0 8px !important; font-size: 21px !important; line-height: 1.5 !important; font-weight: 900; }
.video-empty p { color: var(--video-muted); }
.video-empty a { display: inline-block; margin-top: 9px; padding: 10px 16px; color: #fff; background: var(--video-brand); border-radius: 10px; font-size: 12px; font-weight: 800; }

.video-category-hero { padding: 48px 0; color: #fff; background: linear-gradient(120deg, color-mix(in srgb, var(--section-color) 62%, #041f25), #062e32); }
.video-category-hero nav, .video-breadcrumb { display: flex; align-items: center; gap: 9px; color: #8ca0a1; font-size: 10px; }
.video-category-hero nav a { color: #bfcece; }
.video-category-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: #a6eee7; font-size: 11px; font-weight: 800; }
.video-category-hero__eyebrow i { width: 9px; height: 9px; background: var(--section-color); border: 2px solid rgba(255,255,255,.5); border-radius: 50%; }
.video-category-hero h1 { margin: 8px 0; color: #fff; font-size: 36px; font-weight: 900; }
.video-category-hero p { max-width: 670px; margin: 0; color: rgba(255,255,255,.68); line-height: 1.9; }
.video-category-hero small { display: inline-block; margin-top: 14px; padding: 5px 10px; background: rgba(255,255,255,.1); border-radius: 7px; }
.video-pagination { margin-top: 30px; }

.video-watch { padding: 28px 0 70px; background: #f5f7f7; }
.video-breadcrumb { margin-bottom: 18px; }
.video-breadcrumb a { color: #566e70; }
.video-breadcrumb span { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-watch__layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.video-watch__main { min-width: 0; }
.video-player-shell { overflow: hidden; background: #071213; border-radius: 16px 16px 5px 5px; box-shadow: 0 15px 40px rgba(8,39,40,.14); }
.video-player-shell .plyr { --plyr-color-main: #0c9c8d; --plyr-video-background: #071213; border-radius: inherit; }
.video-player-shell video { width: 100%; aspect-ratio: 16 / 9; background: #071213; }
.video-watch__header, .video-watch__content, .video-watch__aside { background: #fff; border: 1px solid var(--video-line); box-shadow: 0 8px 25px rgba(22,50,50,.045); }
.video-watch__header { padding: 24px 27px 26px; border-radius: 5px 5px 16px 16px; }
.video-watch__categories { display: flex; flex-wrap: wrap; gap: 6px; }
.video-watch__categories a { padding: 5px 9px; color: #fff; background: var(--video-category); border-radius: 6px; font-size: 9px; font-weight: 800; }
.video-watch__header h1 { margin: 12px 0 10px; font-size: clamp(22px, 3vw, 29px); line-height: 1.55; font-weight: 900; }
.video-watch__header > p { margin: 16px 0 0; padding-top: 16px; color: #56676d; border-top: 1px solid var(--video-line); font-size: 13px; line-height: 2; }
.video-watch__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; color: #7c8a8e; font-size: 10px; }
.video-watch__meta span { display: inline-flex; align-items: center; gap: 5px; }
.video-watch__meta button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; margin-right: auto; color: #087f75; background: #e9f7f5; border: 0; border-radius: 8px; font: inherit; font-weight: 800; }
.video-watch__content { padding: 27px; margin-top: 20px; border-radius: 16px; }
.video-watch__content > header span { color: var(--video-brand); font-size: 10px; font-weight: 900; }
.video-watch__content > header h2 { margin: 5px 0 20px !important; font-size: 21px !important; line-height: 1.55 !important; font-weight: 900; }
.video-rich-content { color: #46585e; font-size: 13px; line-height: 2.15; }
.video-rich-content img { max-width: 100%; height: auto; border-radius: 12px; }
.video-rich-content h2, .video-rich-content h3 { color: var(--video-ink); line-height: 1.7; }

.video-watch__aside { position: sticky; top: 92px; padding: 17px; border-radius: 16px; }
.video-watch__aside > header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--video-line); }
.video-watch__aside > header > span { display: grid; place-items: center; width: 38px; height: 38px; color: #087f75; background: #e9f7f5; border-radius: 11px; }
.video-watch__aside h2, .video-watch__aside p { margin: 0; }
.video-watch__aside h2 { font-size: 14px !important; line-height: 1.5 !important; font-weight: 900; }
.video-watch__aside p { margin-top: 2px; color: #899496; font-size: 9px; }
.video-watch__related { display: grid; gap: 12px; }
.video-card--compact { display: grid; grid-template-columns: 112px minmax(0, 1fr); border: 0; border-radius: 10px; box-shadow: none; }
.video-card--compact:hover { transform: none; box-shadow: none; }
.video-card--compact .video-card__media { width: 112px; border-radius: 9px; }
.video-card--compact .video-card__play, .video-card--compact .video-card__category { display: none; }
.video-card--compact .video-card__body { min-width: 0; padding: 3px 10px 2px 0; }
.video-card--compact .video-card__body h3 { min-height: 0; font-size: 10px !important; line-height: 1.75 !important; }
.video-card--compact .video-card__meta { justify-content: flex-start; padding-top: 6px; margin-top: 5px; border: 0; }
.video-card--compact .video-card__meta span:last-child { display: none; }
.video-watch__all { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; padding: 10px; color: #087f75; background: #eef8f6; border-radius: 9px; font-size: 10px; font-weight: 900; }
.video-watch__no-related { display: flex; align-items: center; gap: 8px; padding: 14px; color: #748185; background: #f5f8f7; border-radius: 10px; font-size: 10px; }
.video-toast { position: fixed; right: 50%; bottom: 28px; z-index: 9999; padding: 10px 17px; color: #fff; background: #153d3c; border-radius: 9px; box-shadow: 0 8px 25px rgba(0,0,0,.2); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(50%, 12px); transition: .25s; }
.video-toast.is-visible { opacity: 1; transform: translate(50%, 0); }

@media (max-width: 1050px) {
    .video-hero .video-shell { grid-template-columns: 1fr 1.25fr; gap: 28px; }
    .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .video-watch__layout { grid-template-columns: minmax(0, 1fr) 280px; }
    .video-card--compact { grid-template-columns: 96px minmax(0, 1fr); }
    .video-card--compact .video-card__media { width: 96px; }
}

@media (max-width: 840px) {
    .video-hero { padding: 42px 0; }
    .video-hero .video-shell { grid-template-columns: 1fr; }
    .video-hero__intro h1, .video-hero__intro > p { max-width: 100%; }
    .video-featured { max-width: 680px; }
    .video-grid, .video-grid--six, .video-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-watch__layout { grid-template-columns: 1fr; }
    .video-watch__aside { position: static; }
    .video-watch__related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .video-shell { width: min(100% - 24px, 1180px); }
    .video-hero { padding: 32px 0; }
    .video-hero__intro h1 { font-size: 28px; }
    .video-hero__chips { flex-wrap: nowrap; margin-left: -12px; padding-left: 12px; overflow-x: auto; scrollbar-width: none; }
    .video-hero__chips a { flex: 0 0 auto; }
    .video-featured__content { padding: 16px; }
    .video-featured__content h2 { font-size: 16px !important; }
    .video-featured__play { width: 55px; height: 55px; }
    .video-section { padding: 38px 0; }
    .video-section__header { align-items: flex-start; }
    .video-section__header p { display: none; }
    .video-grid, .video-grid--six, .video-grid--archive { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
    .video-card { border-radius: 11px; }
    .video-card__body { padding: 10px; }
    .video-card__body h3 { min-height: 57px; font-size: 11px !important; line-height: 1.75 !important; }
    .video-card__body > p { display: none; }
    .video-card__meta { display: block; }
    .video-card__meta span:last-child { display: none; }
    .video-card__play { width: 38px; height: 38px; opacity: 1; transform: scale(1); }
    .video-card__category { max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .video-cta .video-shell > div { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
    .video-cta h2 { font-size: 14px !important; line-height: 1.7 !important; }
    .video-cta a { width: 100%; justify-content: center; margin: 4px 0 0; }
    .video-category-hero { padding: 33px 0; }
    .video-category-hero h1 { font-size: 28px; }
    .video-watch { padding-top: 18px; }
    .video-watch .video-shell { width: 100%; }
    .video-breadcrumb { padding: 0 13px; }
    .video-player-shell { border-radius: 0; }
    .video-watch__header, .video-watch__content, .video-watch__aside { margin-left: 12px; margin-right: 12px; }
    .video-watch__header { padding: 18px; border-radius: 0 0 13px 13px; }
    .video-watch__header h1 { font-size: 20px; }
    .video-watch__meta button { margin-right: 0; }
    .video-watch__content { padding: 19px; }
    .video-watch__related { grid-template-columns: 1fr; }
    .video-card--compact { grid-template-columns: 116px minmax(0, 1fr); }
    .video-card--compact .video-card__media { width: 116px; }
}
