/* ============================================================
   Superbook Israel — static site stylesheet
   Faithful rebuild of the old WP theme (wp-bootstrap-starter
   child theme "superbook") in plain CSS. RTL, no frameworks.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "g_l_alef";
  src: url("../assets/fonts/g_l_alef.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Alef";
  src: url("../assets/fonts/alef-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Alef";
  src: url("../assets/fonts/alef-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --red: #f91a07;
  --red-soft: #f65548;
  --blue-dark: #014485;
  --blue-shadow: #608ab3;
  --blue-img-bg: #23679e;
  --sky: #7dc5e2;
  --lavender: #b2c7da;
  --lavender-alt: #b3c8da;
  --light-blue: #d8e2ec;
  --yellow: #fef5b5;
  --cream: #e7e7c0;
  --ink: #212529;
  --footer-bg: var(--lavender);
  --container: 1140px;
  --text-scale: 1;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  font-size: calc(16px * var(--text-scale));
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "g_l_alef", "Alef", sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--red); }

a { color: var(--red); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 15px;
}

/* Page-specific body backgrounds (mirrors old theme) */
body.page-shop,
body.page-coloring {
  background-image: url("../assets/img/shop_backgrd.jpg");
  background-size: cover;
  background-attachment: fixed;
}
body.page-episode { background-color: var(--lavender); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 99;
  background: transparent;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 15px;
  max-width: var(--container); /* old theme: Bootstrap container, 1140px */
  margin-inline: auto;
}

body.page-home .site-header { position: absolute; inset-inline: 0; top: 0; }
body:not(.page-home) .site-header { background-color: var(--lavender-alt); }

.site-header .logo img { width: 220px; }

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav {
  order: -1; /* menu on the right edge, logo on the left — like the old site */
}

.main-nav a {
  display: block;
  padding: 10px 15px;
  color: var(--red);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.8rem;
  text-decoration: none;
  text-align: center;
}

.main-nav a:hover,
.main-nav a.active { text-decoration: underline; }

.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--lavender);
  border-radius: 6px;
  font-size: 1.6rem;
  color: var(--red);
  padding: 6px 14px;
  cursor: pointer;
}

/* ---------- Buttons (replica of theme buttons) ---------- */
.btn {
  display: inline-block;
  background-color: #fff;
  border-radius: 10px;
  color: var(--red);
  padding: 15px 50px;
  font-size: 1.5rem;
  font-family: inherit;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid #fff;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background-color: var(--red); color: #fff; }

.btn-blue {
  color: var(--blue-dark);
  background-color: #fff;
  border: 1px solid #928985;
  border-radius: 0;
  box-shadow: -3px -3px 5px 1px #848484;
  font-weight: bold;
}
.btn-blue:hover { background-color: #fff; color: var(--red); box-shadow: -3px -3px 5px 1px #848484; }

.btn-red {
  background-color: var(--red);
  border: 1px solid var(--red);
  color: #fff;
}
.btn-red:hover { background-color: #fff; color: var(--red); }

.btn-red.btn-small { font-size: 1rem; padding: 10px 30px; }

/* ---------- Home page sections ---------- */
/* Looping intro video — its own full-viewport section above #home_characters
   (the old site's Revolution Slider), header floats transparently over it */
#home_video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
#home_video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#home_characters {
  background-image: url("../assets/img/home_characters_top_4.png"), url("../assets/img/home_characters_backgrd.jpg");
  background-repeat: no-repeat;
  background-size: auto 100%, cover;
  background-position: left bottom, center;
  display: flex;
  align-items: center;
  direction: ltr; /* art left, text right — like the original */
  color: var(--red); /* old theme: all section text is red, not body black */
}
#home_characters .row-2 { max-width: none; } /* container-fluid, like the original */
/* The characters art is a background layer; this column only reserves its area */
#home_characters .col-img { flex: 1.25 1 380px; aspect-ratio: 737 / 473; }
#home_characters .col-img img { display: none; }

#home_characters .row-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 15px;
}

#home_characters .col-img { flex: 1 1 380px; }
#home_characters .col-img img { width: 100%; }

#home_characters .col-text {
  flex: 1 1 380px;
  direction: rtl;
}

.home_characters_text { max-width: 550px; margin-inline: auto; }
.home_characters_text h1 {
  font-size: 2.375rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  text-align: right;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.85), 0 0 22px rgba(255, 255, 255, 0.6);
}
.home_characters_text p {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  text-align: right;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 255, 255, 0.65);
}
.enter_button { text-align: left; padding: 20px 0; direction: ltr; }

#home_videos {
  background-image: url("../assets/img/backgrd_thelet.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.vod_button { text-align: center; padding: 75px 20px 100px; }
.vod_button .btn { font-size: 1.5rem; }
#home_videos img { width: 100%; display: block; }

#home_characters_two {
  background-image: url("../assets/img/home_characters_two_bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left top; /* old theme default: white top of the image must stay visible */
  direction: ltr;
}
#home_characters_two .row-2 { max-width: none; }
#home_characters_two .col-img {
  flex: 0 0 50%; /* devices image takes exactly half the section, like the original */
  max-width: 50%;
  padding-top: 200px;
  padding-inline: 20px;
}
#home_characters_two .col-img img { width: 100%; }

#home_robot { background-color: var(--yellow); direction: ltr; }
#home_robot .row-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: none; /* container-fluid, like the original */
  padding: 0 15px;
}
#home_robot .col-text {
  flex: 1 1 380px;
  align-self: center;
  direction: rtl;
  text-align: center;
  color: var(--red);
}
#home_robot h2 { font-size: 1.9rem; margin: 0 0 0.3rem; }
#home_robot p { font-size: 1.6rem; margin: 0 0 1rem; color: var(--red); }
#home_robot .col-img {
  flex: 1 1 380px;
  align-self: stretch; /* span the full section height… */
  display: flex;
  align-items: flex-end; /* …anchored to the bottom, like the original */
}
#home_robot .col-img img { width: 100%; height: auto; }

.home_social_icons { direction: ltr; } /* icon order Facebook → Instagram → YouTube, like the original */
.home_social_icons a {
  color: var(--red);
  padding-inline-start: 15px;
  font-size: 1.2em;
  text-decoration: none;
}
.home_social_icons a:hover { text-decoration: underline; }
.home_social_icons svg { width: 1.2em; height: 1.2em; fill: currentColor; vertical-align: -0.15em; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--footer-bg);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  padding-block: 18px;
}
body.page-episode .site-footer { background-color: #608ab2; margin-top: 50px; }
.site-footer a { color: #fff; }
.site-footer .sep { margin-inline: 8px; }

/* ---------- Generic sub-header (inner pages) ---------- */
.page-sub-header,
#page-sub-header {
  background-color: var(--lavender);
  padding: 30px 15px 30px;
}
.page-sub-header h1 { margin: 0; }

/* ---------- Shop (episodes) ---------- */
.shop-search {
  display: flex;
  justify-content: center;
  padding: 20px 15px 0;
}
.shop-search form {
  display: flex;
  gap: 8px;
  width: min(420px, 100%);
}
.shop-search input {
  flex: 1;
  border: 2px solid var(--sky);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.1rem;
  font-family: inherit;
}
.shop-search button {
  background: var(--sky);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1rem;
  padding: 8px 18px;
  cursor: pointer;
  font-family: inherit;
}
.shop-search button:hover { background: var(--blue-dark); }

/* Banner carousel */
.carousel { position: relative; max-width: 1100px; margin: 25px auto 5px; padding: 0 15px; }
.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 103 / 35; /* uniform frame for all slides — source banners vary (851×315…1024×320) */
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}
.carousel-dots button {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.active { background: #fff; }

/* Episodes grid */
.episodes-grid {
  list-style: none;
  margin: 0;
  padding: 30px 15px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: var(--container);
  margin-inline: auto;
}

.episode-card {
  position: relative;
  text-align: center;
  margin: 0;
  padding: 0;
}

.episode-card .card-link { text-decoration: none; display: block; }

.episode-card h2 {
  color: var(--blue-dark);
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1.4rem;
  min-height: 2.8rem;
  margin: 0 0 10px;
  padding: 0;
}

.episode-card h2 a { color: inherit; text-decoration: none; }
.episode-card h2 a:hover { text-decoration: underline; }

.episode-card .thumb {
  display: block;
  margin: 0 auto 14px;
  width: 92%;
  background: #fff;
}

.episode-card .btn-blue { font-size: 1.15rem; padding: 10px 34px; }

/* hover description tooltip (desktop) */
.episode-card .desc-show { display: none; }
@media (hover: hover) and (min-width: 601px) {
  .episode-card:hover .desc-show {
    display: block;
    position: absolute;
    top: 50px;
    left: 160px;
    background-color: #014485d4;
    color: #fff;
    padding: 10px;
    z-index: 10;
    width: 250px;
    box-shadow: 1px 1px 15px 3px #08285f;
    font-size: 0.9rem;
    text-align: right;
    direction: rtl;
  }
}

.no-results {
  display: none;
  text-align: center;
  color: var(--blue-dark);
  font-size: 1.4rem;
  padding: 30px 0 60px;
}

/* ---------- Episode (product) page ---------- */
.episode-hero {
  max-width: 100%;
  padding-top: 20px;
}
.episode-hero .inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 15px;
}
.episode-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: flex-start;
}
.episode-cols .col-video { flex: 1 1 560px; min-width: 0; }
.episode-cols .col-side { flex: 1 1 260px; }

.episode-image {
  background: #fff;
  box-shadow: 15px 15px 2px var(--blue-shadow);
  width: 95%;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  margin-top: 18px;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.episode-title {
  color: var(--blue-dark);
  font-weight: bold;
  font-size: 1.9rem;
  text-align: center;
  margin: 0 0 0.8rem;
}

.episode-desc {
  text-align: center;
  font-size: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}

.episode-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: var(--container);
  margin: 30px auto 0;
  padding-inline: 15px;
}
.episode-nav .btn { font-size: 1.1rem; padding: 10px 26px; }

/* "recommended" side column (prev/next shortcuts) */
.side-chapters h3 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--red);
  font-weight: bold;
}
.side-chapters .item {
  text-align: center;
  margin-bottom: 15px;
}
.side-chapters .item .tile {
  color: var(--blue-dark);
  font-size: 1.1rem;
  line-height: 1.2rem;
  font-weight: bold;
}
.side-chapters .item .num {
  color: var(--blue-dark);
  font-size: 1.1rem;
  font-weight: bold;
}
.side-chapters .item .go {
  display: inline-block;
  margin-top: 6px;
  background: #fff;
  color: var(--red-soft);
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}
.side-chapters .item .go:hover { filter: drop-shadow(2px -2px 5px #595959); }

/* Episode coloring boxes */
.episode-coloring { text-align: center; margin-top: 3rem; }
.episode-coloring h2 { font-size: 2.5rem; margin: 0 0 1.5rem; }
.tzvia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
}
.tzvia-box .preview {
  display: block;
  margin: 0 auto;
  max-width: 210px;
  background: #fff;
}
.tzvia-box .btn-red.btn-small { margin-top: 14px; }

/* ---------- Coloring page ---------- */
.coloring-groups { max-width: var(--container); margin-inline: auto; padding: 0 15px 60px; }
.coloring-groups .page-title { text-align: center; font-size: 2rem; }
.daf-category { margin-bottom: 3rem; }
.daf-category > h2 { text-align: right; }
.daf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.daf-box { text-align: center; }
.daf-box h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 400;
}
.daf-box img {
  width: 85%;
  background: #fff;
  margin-bottom: 4px;
}

/* ---------- About page ---------- */
.about-section-one-title { padding: 30px 10px 30px; }
.about-section-one-title h1 {
  margin: 0 auto;
  color: var(--red) !important;
  font-weight: bold;
  font-size: 6rem;
  text-shadow: 4px 4px 1px #828282;
  text-align: center;
}
.about-section-one {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 15px;
}
.about-section-one .col-video { flex: 1 1 460px; }
.about-section-one .col-text { flex: 1 1 380px; }

.about-top-p {
  direction: rtl;
  text-align: right;
  padding: 20px;
  color: var(--red) !important;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  font-size: 1.5rem;
}

.about-section-two-title {
  text-align: center;
  padding: 25px 15px;
  background-image: linear-gradient(to bottom, var(--lavender) 0%, var(--lavender) 50%, var(--light-blue) 50%, var(--light-blue) 100%);
}
.about-section-two-title h1 {
  margin: 0;
  color: var(--blue-dark);
  font-weight: bold;
  font-size: 5rem;
  text-shadow: 4px 4px 1px #c6d5e5;
}
#about_section_two { background-color: var(--light-blue); }
#about_section_two .characters-text {
  max-width: 570px;
  margin-inline: auto;
  padding: 30px 15px 50px;
}
#about_section_two p {
  text-align: center;
  color: var(--red);
  font-weight: bold;
  font-size: 2rem;
  margin: 0 0 75px;
}

/* Characters cover image in its own lavender band (old #about_section_three) */
#about_section_three {
  background-color: var(--lavender);
  padding: 50px 20px;
}
#about_section_three img {
  display: block;
  width: 66%;
  max-width: 900px;
  margin-inline: auto;
}

.about-section-four-title {
  text-align: center;
  padding: 25px 15px;
  background-image: linear-gradient(to bottom, var(--lavender) 0%, var(--lavender) 50%, var(--cream) 50%, var(--cream) 100%);
}
.about-section-four-title h1 {
  margin: 0;
  color: var(--red);
  font-weight: bold;
  font-size: 5rem;
  text-shadow: 4px 4px 1px #828282;
}
#about_section_four { background-color: var(--cream); }
#about_section_four .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1140px;
  margin-inline: auto;
  padding: 20px 15px 40px;
  direction: ltr; /* old theme: text column left, image right */
  background-image: url("../assets/img/about_robot_bottom.jpg");
  background-repeat: no-repeat;
  background-position: left bottom;
}
#about_section_four .col-text { flex: 2 1 320px; direction: rtl; padding: 20px; }
#about_section_four .col-img { flex: 1 1 240px; padding: 20px; }
#about_section_four .col-img img { width: 100%; }
#about_section_four p {
  text-align: center;
  color: var(--blue-dark);
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 50px;
}

/* ---------- Accessibility toolbar (replica of Pojo widget) ---------- */
.a11y-toolbar {
  position: fixed;
  top: 40%;
  left: 0; /* matches the old site's widget position (opposite the RTL logo) */
  z-index: 999;
}
.a11y-toolbar > button {
  display: block;
  width: 48px;
  height: 48px;
  border: none;
  background: #4054b2;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}
.a11y-toolbar > button:hover { background: #1e6ee0; }
.a11y-toolbar .actions {
  display: none;
  flex-direction: column;
}
.a11y-toolbar.open .actions { display: flex; }
.a11y-toolbar .actions button {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  background: #4054b2;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 12px;
  cursor: pointer;
  text-align: start;
  white-space: nowrap;
}
.a11y-toolbar .actions button:hover { background: #1e6ee0; }
.a11y-toolbar .actions button[aria-pressed="true"] { background: #1e6ee0; }

/* Accessibility modes */
html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-contrast body { filter: contrast(1.25) saturate(1.3); }
html.a11y-invert body { filter: invert(1) hue-rotate(180deg); }
html.a11y-light-bg body { background: #fff !important; background-image: none !important; }
html.a11y-light-bg body * { background-image: none !important; }
html.a11y-links a { text-decoration: underline !important; }
html.a11y-readable body,
html.a11y-readable body p,
html.a11y-readable body h1,
html.a11y-readable body h2,
html.a11y-readable body h3,
html.a11y-readable body .episode-card h2 {
  font-family: "Alef", Arial, sans-serif !important;
}

/* ---------- Events page ---------- */
body.page-events {
  background-image: url("../assets/img/shop_backgrd.jpg");
  background-size: cover;
  background-attachment: fixed;
}
.events-gallery { max-width: var(--container); margin-inline: auto; padding: 30px 15px 60px; }
.events-gallery .page-title { text-align: center; font-size: 2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.gallery-item { display: block; cursor: zoom-in; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #fff;
}
.gallery-item:hover img { filter: brightness(1.05); }

/* Lightbox (events gallery) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  z-index: 1000;
  place-items: center;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  background: #fff;
}
.lightbox .lightbox-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox .lightbox-prev,
.lightbox .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 10px;
}
.lightbox .lightbox-prev { inset-inline-start: 16px; }
.lightbox .lightbox-next { inset-inline-end: 16px; }
.lightbox button:hover { opacity: 0.75; }

/* ---------- 404 ---------- */
.body-404 {
  display: grid;
  place-items: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--light-blue);
  padding: 20px;
}
.body-404 h1 { font-size: 5rem; margin: 0; }
.body-404 p { font-size: 1.5rem; color: var(--blue-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  body:not(.page-home) .site-header { background-color: var(--lavender-alt); }
  .home_characters_text { padding-inline-start: 10px; padding-top: 20px; }
}

@media (max-width: 991px) {
  .episodes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; order: 0; }
  .main-nav.open {
    display: block;
    order: 1; /* open menu drops below the toggle+logo row */
    width: 100%;
    background: var(--lavender-alt);
  }
  .main-nav.open ul { flex-direction: column; align-items: stretch; }
  .main-nav.open a { font-size: 1.4rem; }
  .nav-toggle { display: inline-block; order: -2; } /* hamburger at the right edge */

  #home_video { height: 70vh; }
  /* Mobile: real stacked image above the text (background art layer off) */
  #home_characters {
    padding: 20px 0;
    background-image: url("../assets/img/home_characters_backgrd.jpg");
    background-size: cover;
    background-position: center;
  }
  #home_characters .col-img { aspect-ratio: auto; }
  #home_characters .col-img img { display: block; width: 100%; }
  .home_characters_text h1 { font-size: 2rem; }
  .home_characters_text p { font-size: 1.15rem; }
  .enter_button { text-align: center; }
  .enter_button .btn { background-color: #ceebfc; }
  #home_characters_two .col-img { padding-top: 75px; }

  .episodes-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .episode-card h2 { font-size: 1.1rem; }

  .about-section-one-title h1 { font-size: 4rem; }
  #about_section_four .row { background: none; }
  #about_section_three img { width: 100%; }

  .episode-nav { flex-direction: column; }

  .daf-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .episodes-grid { grid-template-columns: 1fr; }
  .vod_button { padding: 45px 10px 60px; }
  .site-header .logo img { max-width: 150px; padding-top: 10px; }
}

/* Reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Shop, coloring & events pages: header must match the purple page background (#c1bad4).
   Placed after the media queries so it wins at every viewport width. */
body.page-shop .site-header,
body.page-coloring .site-header,
body.page-events .site-header {
  background-color: #c1bad4;
}
