.float {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main p {
  color: #18120c !important;
}

.orange-text {
  color: #ef8500;
  text-shadow: 0 8px 24px rgba(239, 133, 0, .12);
}

.home-hero .photo {
  position: relative;
  z-index: 2;
}

.home-hero .photo > img {
  object-position: 57% center;
}

.paper-planes {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.paper-planes i {
  position: absolute;
  width: 44px;
  height: 38px;
  background: linear-gradient(145deg, #fff 0 52%, #ff9d00 53% 62%, #fff2cd 63%);
  clip-path: polygon(0 42%, 100% 0, 69% 100%, 53% 61%, 26% 78%);
  filter: drop-shadow(0 9px 9px rgba(112, 66, 0, .22));
}

.paper-planes i:nth-child(1) {
  left: 51%;
  top: 16%;
  animation: planeOne 8s ease-in-out infinite;
}

.paper-planes i:nth-child(2) {
  right: 5%;
  top: 26%;
  scale: .78;
  animation: planeTwo 10s ease-in-out infinite;
}

.paper-planes i:nth-child(3) {
  left: 47%;
  bottom: 10%;
  scale: .62;
  animation: planeThree 9s ease-in-out infinite;
}

@keyframes planeOne {
  0%, 100% { translate: 0 0; rotate: -12deg; }
  50% { translate: 42px -34px; rotate: 12deg; }
}

@keyframes planeTwo {
  0%, 100% { translate: 0 0; rotate: 15deg; }
  50% { translate: -46px 38px; rotate: -8deg; }
}

@keyframes planeThree {
  0%, 100% { translate: 0 0; rotate: -18deg; }
  50% { translate: 55px -30px; rotate: 9deg; }
}

.original-logo {
  min-width: 260px;
  height: 70px;
  overflow: hidden;
}

.original-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.footer-logo {
  width: min(320px, 100%);
  min-width: 0;
  height: 72px;
  padding: 7px 12px;
  border-radius: 14px;
  background: #fff;
}

header nav {
  gap: 14px;
  font-size: 13px;
}

header nav a {
  white-space: nowrap;
}

.btn,
.gold {
  min-height: 52px;
  align-items: center;
  animation: buttonFloat 3.4s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn:hover,
.gold:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(150, 77, 0, .22);
  filter: saturate(1.08);
}

.actions .btn {
  min-width: 245px;
}

@keyframes buttonFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.hero > div:not(.float):not(.paper-planes):not(.school-route),
.pagehero > *:not(.float) {
  position: relative;
  z-index: 1;
}

.home-hero > .paper-planes {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.school-route {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 82px;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.school-bus {
  position: absolute;
  left: -180px;
  bottom: 16px;
  width: 144px;
  height: 62px;
  border: 4px solid #6d3b00;
  border-radius: 14px 20px 9px 9px;
  background: linear-gradient(#ffb600 0 72%, #ed7f00 73%);
  box-shadow: 0 12px 20px rgba(111, 54, 0, .18);
  animation: busDrive 16s linear infinite;
}

.school-bus::before {
  content: "LEARN";
  position: absolute;
  left: 12px;
  bottom: 8px;
  color: #472500;
  font: 900 10px/1 Nunito, Arial, sans-serif;
  letter-spacing: .08em;
}

.school-bus::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 34px;
  width: 9px;
  height: 13px;
  border-radius: 0 5px 5px 0;
  background: #fff3b7;
  box-shadow: 0 0 14px #fff3b7;
}

.bus-window,
.bus-door {
  position: absolute;
  top: 9px;
  height: 22px;
  border: 3px solid #6d3b00;
  background: linear-gradient(145deg, #dff5ff, #71b9d6);
}

.bus-window.one {
  left: 12px;
  width: 31px;
  border-radius: 7px 2px 2px 2px;
}

.bus-window.two {
  left: 49px;
  width: 31px;
}

.bus-door {
  right: 12px;
  width: 24px;
  height: 41px;
  border-radius: 2px 9px 2px 2px;
}

.school-bus .wheel {
  position: absolute;
  bottom: -12px;
  width: 24px;
  height: 24px;
  border: 5px solid #2d210f;
  border-radius: 50%;
  background: #fff;
  animation: wheelTurn .75s linear infinite;
}

.school-bus .wheel.left {
  left: 23px;
}

.school-bus .wheel.right {
  right: 24px;
}

@keyframes busDrive {
  0% { left: -180px; translate: 0 0; }
  48% { translate: 0 -3px; }
  50% { translate: 0 1px; }
  100% { left: calc(100% + 30px); translate: 0 0; }
}

@keyframes wheelTurn {
  to { rotate: 360deg; }
}

.photo {
  overflow: visible;
  background: #e9c28d;
}

.photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
}

.product .cover {
  overflow: hidden;
  background: #eee9df;
}

.product .cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .45s ease;
}

.product:hover .cover img {
  transform: scale(1.035);
}

.learning-gallery {
  background: #fff;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
  align-items: stretch;
}

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 25px;
  background: #fff7e8;
  box-shadow: 0 16px 42px #24160014;
  display: grid;
  grid-template-rows: 310px auto;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.photo-grid figure:nth-child(2) img {
  object-position: center;
}

.photo-grid figcaption {
  padding: 18px 20px 20px;
  font-weight: 800;
  font-family: Nunito, Arial, sans-serif;
  display: flex;
  align-items: center;
  min-height: 76px;
}

.product {
  height: 100%;
  display: grid;
  grid-template-rows: 245px 1fr;
}

.product > div:last-child {
  display: flex;
  flex-direction: column;
}

.product > div:last-child > p {
  min-height: 82px;
}

.product .tags {
  margin-top: auto;
}

.product .btn {
  min-height: 54px;
}

.binder-showcase > h2 {
  max-width: 780px;
}

.binder-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 45px;
}

.binder-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px #3d2a0d12;
}

@media (max-width: 800px) {
  .photo-grid,
  .binder-strip {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: 300px;
  }

  .photo-grid figure {
    grid-template-rows: 300px auto;
  }

  .paper-planes i:nth-child(1) {
    left: 8%;
    top: 48%;
  }

  .paper-planes i:nth-child(2) {
    right: 8%;
    top: 58%;
  }

  .paper-planes i:nth-child(3) {
    left: 70%;
    bottom: 6%;
  }
}

@media (max-width: 1000px) {
  .original-logo {
    min-width: 230px;
  }
}

.pagehero.full-hero {
  min-height: calc(100vh - 123px);
  padding: clamp(54px, 7vw, 105px) 7vw;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(42px, 6vw, 90px);
  align-items: center;
  text-align: left;
  isolation: isolate;
}

.btn.orange {
  background: linear-gradient(135deg, #ff9d00, #ffbe2e);
  color: #3b2100;
  box-shadow: 0 12px 28px rgba(196, 101, 0, .22);
}

.pagehero.full-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(255,250,237,.98) 0%, rgba(255,232,173,.92) 56%, rgba(255,170,23,.76) 100%),
    var(--hero-image) center/cover;
  z-index: -2;
}

.pagehero.full-hero.immersive {
  min-height: calc(100vh - 123px);
  grid-template-columns: minmax(0, 780px);
  align-content: center;
  justify-content: start;
  padding-left: 8vw;
  color: #342000;
}

.pagehero.full-hero.immersive::before {
  background: linear-gradient(90deg, rgba(255,247,225,.97) 0%, rgba(255,223,143,.86) 35%, rgba(255,165,15,.34) 58%, rgba(255,143,0,.03) 100%);
  z-index: 1;
}

.pagehero.full-hero.immersive .hero-content {
  padding: clamp(34px, 5vw, 64px);
  border-radius: 32px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 70px rgba(125,67,0,.14);
  backdrop-filter: blur(7px);
  z-index: 3;
}

.pagehero.full-hero.immersive .hero-image {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
  background: var(--hero-image) center / cover no-repeat;
}

.pagehero.full-hero.immersive .hero-image > img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  object-position: center;
  opacity: 0;
}

.pagehero.full-hero.immersive .floating-binders {
  inset: 0;
  z-index: 4;
}

.pagehero.full-hero.immersive .float-binder.one {
  left: auto;
  right: 9%;
  top: 19%;
}

.pagehero.full-hero.immersive .float-binder.two {
  right: 3%;
  top: 53%;
}

.pagehero.full-hero.immersive .float-binder.three {
  right: 17%;
  bottom: 5%;
}

.steps {
  background: linear-gradient(120deg, #ff9d00, #ffc53d);
  color: #3c2400;
}

.steps .card > b {
  background: #f39a00;
  color: #fff;
}

footer {
  background: linear-gradient(120deg, #8f4800, #db7900 58%, #ff9d00);
  color: #fff4df;
}

footer h4 {
  color: #fff;
}

.footer-book {
  grid-column: 1 / -1;
  min-height: 118px;
  display: grid;
  place-items: center;
  perspective: 800px;
}

.book-cover {
  position: relative;
  width: 112px;
  height: 76px;
  border-radius: 8px 3px 3px 8px;
  background: linear-gradient(145deg, #ffb319, #ed7c00);
  border: 4px solid rgba(255,255,255,.82);
  box-shadow: 0 16px 28px rgba(73, 31, 0, .24);
  transform: rotate(-4deg);
}

.book-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: rgba(92, 42, 0, .28);
}

.book-cover > b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  color: #442100;
  font: 900 14px/1 Nunito, Arial, sans-serif;
  letter-spacing: .06em;
}

.book-page {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 48%;
  height: 62px;
  transform-origin: left center;
  border-radius: 1px 6px 6px 1px;
  background: linear-gradient(90deg, #fff3c9, #fff);
  box-shadow: 3px 4px 9px rgba(79, 36, 0, .15);
}

.page-one { animation: flipPage 3.4s ease-in-out infinite; }
.page-two { animation: flipPage 3.4s .55s ease-in-out infinite; }
.page-three { animation: flipPage 3.4s 1.1s ease-in-out infinite; }

@keyframes flipPage {
  0%, 20% { transform: rotateY(0deg); opacity: 1; }
  62%, 100% { transform: rotateY(-178deg); opacity: .45; }
}

.pagehero.full-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(173,105,0,.15) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: -1;
  opacity: .35;
}

.full-hero .hero-content {
  max-width: 720px;
}

.full-hero .hero-content h1 {
  font-size: clamp(54px, 5.5vw, 86px);
}

.full-hero .hero-content p {
  margin: 0 0 30px;
  font-size: 19px;
  line-height: 1.75;
  color: #4f473e;
}

.full-hero .hero-image {
  position: relative;
  min-height: clamp(490px, 62vh, 680px);
  border: 10px solid rgba(255,255,255,.94);
  border-radius: 38px;
  box-shadow: 0 30px 70px rgba(116,70,16,.22);
}

.full-hero .hero-image > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  border-radius: 28px;
}

.floating-binders {
  position: absolute;
  inset: -60px;
  pointer-events: none;
}

.float-binder {
  position: absolute;
  width: clamp(105px, 10vw, 165px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(36,22,0,.24);
}

.float-binder.one {
  left: -35px;
  top: 18%;
  transform: rotate(-8deg);
  animation: floatBookOne 6s ease-in-out infinite;
}

.float-binder.two {
  right: -28px;
  top: 7%;
  transform: rotate(7deg);
  animation: floatBookTwo 7s ease-in-out infinite;
}

.float-binder.three {
  right: 5%;
  bottom: -24px;
  transform: rotate(-4deg);
  animation: floatBookThree 6.5s ease-in-out infinite;
}

@keyframes floatBookOne {
  50% { translate: 9px -24px; rotate: 4deg; }
}

@keyframes floatBookTwo {
  50% { translate: -12px 22px; rotate: -4deg; }
}

@keyframes floatBookThree {
  50% { translate: -8px -25px; rotate: 6deg; }
}

@media (max-width: 980px) {
  .pagehero.full-hero {
    grid-template-columns: 1fr;
    padding: 70px 7vw 90px;
    text-align: center;
  }

  .full-hero .hero-content {
    margin: 0 auto;
  }

  .full-hero .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .full-hero .hero-image {
    width: min(720px, 88%);
    min-height: 500px;
    margin: 0 auto;
  }

  .pagehero.full-hero.immersive {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
  }

  .pagehero.full-hero.immersive .hero-content {
    width: min(720px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .pagehero.full-hero {
    min-height: auto;
    padding: 58px 22px 78px;
  }

  .full-hero .hero-content h1 {
    font-size: clamp(43px, 13vw, 60px);
  }

  .full-hero .hero-content p {
    font-size: 17px;
  }

  .full-hero .hero-image {
    width: 92%;
    min-height: 385px;
    border-width: 7px;
  }

  .floating-binders {
    inset: -32px;
  }

  .float-binder {
    width: 100px;
    border-width: 5px;
  }

  .float-binder.one {
    left: -20px;
  }

  .float-binder.two {
    right: -16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-binder,
  .paper-planes i,
  .school-bus,
  .school-bus .wheel,
  .book-page,
  .btn,
  .gold {
    animation: none !important;
  }
}

/* LearnU UAE virtual programmes */
.metallic-orange {
  position: relative;
  overflow: hidden;
  border: 1px solid #d76800;
  border-radius: 999px;
  background: linear-gradient(115deg, #8f3600 0%, #e56600 18%, #ffb52f 44%, #fff0a3 52%, #ff9821 64%, #ba4700 100%);
  color: #331400;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 5px rgba(99,31,0,.28), 0 13px 28px rgba(181,72,0,.22);
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  cursor: pointer;
}

.metallic-orange::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -45%;
  width: 32%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
  animation: metallicShine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes metallicShine {
  0%, 55% { left: -45%; }
  78%, 100% { left: 125%; }
}

.virtual-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(115deg, #ef7300, #ff9e12 48%, #ffc244);
  color: #321600;
  box-shadow: 0 15px 40px rgba(162,64,0,.18);
}

.virtual-trust div {
  min-height: 118px;
  padding: 26px 22px;
  display: grid;
  place-content: center;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.45);
}

.virtual-trust b,
.virtual-trust span { display: block; }
.virtual-trust b { font: 900 21px/1.2 Nunito, Arial, sans-serif; }
.virtual-trust span { margin-top: 8px; font-size: 13px; font-weight: 700; }

.programs-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,171,30,.2), transparent 22%),
    linear-gradient(#fff, #fff9ef);
}

.programs-heading {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.programs-heading h2 { margin-bottom: 18px; }
.programs-heading > p { max-width: 760px; margin: 0 auto; line-height: 1.8; }

.program-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-top: 55px;
}

.program-product-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 245px 1fr;
  border: 1px solid #eed8bb;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(96,47,0,.11);
  transition: transform .3s ease, box-shadow .3s ease;
}

.program-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(132,59,0,.18);
}

.program-photo { overflow: hidden; background: #ffd99c; }
.program-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.program-product-card:hover .program-photo img { transform: scale(1.045); }

.program-body {
  padding: 27px;
  display: flex;
  flex-direction: column;
}

.program-grade {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff1d7;
  color: #a84600;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.program-body h3 { margin: 15px 0 8px; font-size: 25px; line-height: 1.15; }
.program-body p { margin: 0 0 19px; line-height: 1.7; }

.program-format {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: auto 0 20px;
  padding-top: 16px;
  border-top: 1px solid #f0dfc8;
  color: #5d2a00;
  font-size: 13px;
  font-weight: 800;
}

.program-format i { color: #f47a00; font-style: normal; }

.virtual-process { background: #fff3dc; }
.process-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.process-line article { position: relative; padding: 30px 25px; border-radius: 24px; background: #fff; box-shadow: 0 15px 36px rgba(93,45,0,.09); }
.process-line article::after { content: "→"; position: absolute; top: 30px; right: -18px; z-index: 2; color: #ed7800; font-size: 28px; font-weight: 900; }
.process-line article:last-child::after { display: none; }
.process-line b { color: #ef7800; font: 900 34px/1 Nunito, Arial, sans-serif; }
.process-line h3 { margin: 16px 0 8px; }
.process-line p { margin: 0; line-height: 1.7; }

.zoom-band,
.grownup-tip {
  padding: 68px 8vw;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 45px;
  align-items: center;
  background: linear-gradient(120deg, #7c2c00, #ce5700 52%, #ff970d);
  color: #fff;
}

.zoom-band span,
.grownup-tip span { color: #ffd071; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.zoom-band h2,
.grownup-tip h2 { max-width: 800px; margin: 12px 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; }
.zoom-band p { max-width: 790px; color: #fff !important; line-height: 1.75; }

.virtual-spotlight {
  background:
    radial-gradient(circle at 12% 5%, rgba(237,123,0,.2), transparent 26%),
    linear-gradient(145deg, #fff8e9, #fff);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 28px;
  margin-top: 50px;
}

.spotlight-grid article {
  overflow: hidden;
  display: grid;
  grid-template-rows: 330px 1fr;
  border: 1px solid #e8c990;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(22,56,95,.12);
}

.spotlight-grid img { width: 100%; height: 100%; display: block; object-fit: cover; }
.spotlight-grid article > div { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.spotlight-grid span { color: var(--brand-orange); font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.spotlight-grid h3 { margin: 11px 0 8px; color: var(--navy); font-size: 31px; }
.spotlight-grid p { margin: 0 0 24px; line-height: 1.75; }
.spotlight-grid .btn { margin-top: auto; }

/* Literacy Lab */
.lab-library { background: linear-gradient(180deg, #fff 0%, #fff5e4 100%); }
.level-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 38px auto 52px; }
.level-tabs button { padding: 11px 17px; border: 1px solid #e7c99d; border-radius: 999px; background: #fff; color: #512500; font-weight: 900; cursor: pointer; }
.level-tabs button.active { background: #ed7300; border-color: #ed7300; color: #fff; box-shadow: 0 10px 24px rgba(206,85,0,.24); }

.lab-book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.lab-book-card { overflow: hidden; display: grid; grid-template-rows: 390px 1fr; border-radius: 25px; background: #fff; box-shadow: 0 18px 50px rgba(72,35,0,.14); }
.lab-book-cover { position: relative; padding: 26px 24px 22px 38px; display: grid; grid-template-rows: 1fr auto auto; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--cover), white 18%), var(--cover)); isolation: isolate; }
.lab-book-cover::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; width: 8px; background: rgba(0,0,0,.13); box-shadow: 3px 0 0 rgba(255,255,255,.12); }
.lab-book-cover img { width: 100%; height: 230px; object-fit: cover; border-radius: 17px; box-shadow: 0 14px 28px rgba(0,0,0,.2); }
.lab-book-cover h3 { margin: 18px 0 5px; font-size: 27px; line-height: 1.08; }
.lab-book-cover small { color: rgba(255,255,255,.82); font-weight: 700; }
.book-level { position: absolute; z-index: 2; top: 38px; right: 35px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: #311300; font-size: 10px; font-weight: 900; }
.lab-book-info { padding: 23px; display: flex; flex-direction: column; }
.lab-book-info > span { color: #d85f00; font-size: 12px; font-weight: 900; }
.lab-book-info p { min-height: 64px; line-height: 1.55; font-size: 14px; }
.lab-book-info .open-book { width: 100%; margin-top: auto; padding: 14px; }
.loading-books,.library-error { grid-column: 1/-1; text-align: center; padding: 30px; font-weight: 800; }

.lab-games { background: #fff; }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.game-panel { min-width: 0; padding: 30px; border: 1px solid #efd7b7; border-radius: 25px; background: #fffaf1; box-shadow: 0 16px 42px rgba(92,42,0,.09); }
.game-number { color: #dd6200; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.game-panel h3 { margin: 10px 0; font-size: 29px; }
.built-word { display: flex; justify-content: center; gap: 8px; margin: 25px 0; }
.built-word span { width: 43px; height: 49px; display: grid; place-items: center; border-bottom: 4px solid #e46b00; font: 900 24px/1 Nunito, Arial, sans-serif; }
.letter-bank,.rhyme-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.letter-bank button,.rhyme-choices button { min-width: 48px; padding: 12px; border: 1px solid #e3ba83; border-radius: 12px; background: #fff; font-weight: 900; cursor: pointer; }
.game-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.game-actions button,.sequence-game button,.game-panel > .metallic-orange { padding: 12px 16px; }
.rhyme-word { margin: 20px auto; width: fit-content; padding: 15px 23px; border-radius: 15px; background: #fff; color: #d85e00; font: 900 35px/1 Nunito,Arial,sans-serif; }
.sequence-list { display: grid; gap: 9px; margin: 20px 0; }
.sequence-list > div { display: grid; grid-template-columns: 29px 1fr 32px 32px; gap: 7px; align-items: center; padding: 10px; border-radius: 12px; background: #fff; }
.sequence-list button { width: 31px; height: 31px; border: 1px solid #e8c79a; border-radius: 8px; background: #fff7e8; cursor: pointer; }
.game-message { margin-top: 15px; padding: 12px; border-radius: 12px; background: #ffe2c2; font-weight: 800; }
.game-message.success { background: #dff6df; color: #185b24; }
.game-message button { margin-left: 8px; border: 0; background: transparent; text-decoration: underline; font-weight: 900; cursor: pointer; }

.grownup-tip { grid-template-columns: 1fr 1fr auto; }
.grownup-tip h2 { font-size: clamp(32px,3.5vw,50px); }
.grownup-tip p { color: #fff !important; line-height: 1.75; }

.reader-open { overflow: hidden; }
.reader-overlay[hidden] { display: none; }
.reader-overlay { position: fixed; inset: 0; z-index: 100; padding: 25px; display: grid; place-items: center; background: rgba(39,16,0,.76); backdrop-filter: blur(9px); }
.reader-modal { position: relative; width: min(1050px, 100%); max-height: 92vh; overflow: auto; padding: 34px; border-radius: 28px; background: #fffaf2; box-shadow: 0 35px 100px rgba(0,0,0,.38); }
.reader-close { position: absolute; top: 15px; right: 17px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #301500; color: #fff; font-size: 27px; cursor: pointer; }
.reader-top { display: flex; justify-content: space-between; gap: 25px; align-items: end; padding-right: 46px; }
.reader-level { color: #d55a00; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.reader-title { margin: 7px 0 0; font-size: clamp(30px,4vw,48px); }
.listen-button,.reader-next { padding: 13px 18px; }
.page-progress { display: flex; gap: 5px; margin: 23px 0; }
.page-progress span { flex: 1; height: 5px; border-radius: 99px; background: #eadbc8; }
.page-progress span.done { background: linear-gradient(90deg,#e45e00,#ffb01c); }
.reader-page { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 430px; overflow: hidden; border-radius: 23px; background: #fff; box-shadow: 0 15px 40px rgba(65,29,0,.11); }
.reader-story { padding: 36px; display: grid; align-content: center; }
.reader-story .page-number { color: #d95d00; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.reader-story p { white-space: pre-line; font: 800 clamp(20px,2.2vw,30px)/1.55 Nunito,Arial,sans-serif; }
.page-photo img { width: 100%; height: 100%; min-height: 430px; display: block; object-fit: cover; }
.comprehension { margin-top: 22px; padding: 24px; border-radius: 18px; background: #fff0d6; }
.comprehension h3 { margin-top: 0; }
.comprehension li { margin: 9px 0; }
.reader-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; margin-top: 22px; }
.reader-nav button { padding: 13px 18px; border-radius: 999px; border: 1px solid #ddb980; font-weight: 900; cursor: pointer; }
.reader-next { justify-self: end; }
.reader-count { font-weight: 900; color: #6b4c32; }

@media (max-width: 1180px) {
  header .menu { display: block; margin-left: auto; }
  header nav { display: none; position: absolute; top: 84px; left: 0; right: 0; max-height: calc(100vh - 84px); overflow: auto; padding: 20px 7vw 28px; flex-direction: column; align-items: stretch; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.16); }
  header nav.open { display: flex; }
}

@media (max-width: 980px) {
  .program-product-grid,.lab-book-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-line { grid-template-columns: repeat(2,1fr); }
  .process-line article:nth-child(2)::after { display: none; }
  .games-grid { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .grownup-tip { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .virtual-trust { grid-template-columns: repeat(2,1fr); }
  .program-product-grid,.lab-book-grid,.process-line { grid-template-columns: 1fr; }
  .process-line article::after { display: none; }
  .zoom-band { grid-template-columns: 1fr; }
  .lab-book-card { grid-template-rows: 360px 1fr; }
  .reader-overlay { padding: 10px; }
  .reader-modal { padding: 25px 17px; border-radius: 20px; }
  .reader-top { display: grid; padding-right: 46px; }
  .reader-page { grid-template-columns: 1fr; }
  .page-photo img { min-height: 280px; }
  .reader-story { padding: 28px 22px; }
  .reader-nav { grid-template-columns: 1fr 1fr; }
  .reader-count { grid-column: 1/-1; grid-row: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .metallic-orange::after { animation: none !important; }
  .program-product-card { transition: none; }
}

/* One consistent LearnU metallic-orange treatment for every action button. */
.btn,
.gold,
main button,
.reader-close,
.reader-nav button {
  position: relative;
  overflow: hidden;
  border: 1px solid #d76800 !important;
  background: linear-gradient(115deg, #a83f00 0%, #ed7100 19%, #ffb52f 43%, #fff0a3 52%, #ff9821 64%, #c44b00 100%) !important;
  color: #000 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 5px rgba(99,31,0,.25), 0 12px 27px rgba(181,72,0,.22) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  font-weight: 900;
}

.btn::after,
.gold::after,
main button::after,
.reader-close::after,
.reader-nav button::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -45%;
  width: 30%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  animation: metallicShine 4.5s ease-in-out infinite;
  pointer-events: none;
}

main button:disabled,
.reader-nav button:disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: grayscale(.28);
}

.form-error {
  color: #8e2500 !important;
  padding: 12px 15px;
  border: 1px solid #e7a06e;
  border-radius: 12px;
  background: #fff1e7;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .btn::after,
  .gold::after,
  main button::after,
  .reader-close::after,
  .reader-nav button::after { animation: none !important; }
}
/* LearnU Math Lab, binder interiors, and character covers */
.character-strip {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}
.character-strip img {
  min-height: 250px;
  object-fit: cover;
}

.math-lab {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,185,48,.26), transparent 24rem),
    linear-gradient(180deg, #fffdf9, #fff4df);
}
.math-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin-top: 48px;
}
.math-game {
  min-width: 0;
  padding: 32px;
  border: 1px solid #efc38d;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(91,39,0,.11);
}
.math-game h3 {
  margin: 9px 0 8px;
  font-size: clamp(27px, 3vw, 36px);
}
.math-instruction,
.math-game > p {
  color: #000 !important;
  line-height: 1.65;
}
.marble-equation,
.make-ten-total {
  margin: 22px auto;
  color: #000;
  font: 900 clamp(32px, 4vw, 52px)/1 Nunito, Arial, sans-serif;
  text-align: center;
}
.marble-tray {
  min-height: 145px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 13px;
  padding: 22px;
  border: 3px solid #dc7100;
  border-radius: 70px 70px 30px 30px;
  background: linear-gradient(180deg, #fff8e8, #f3c47d);
  box-shadow: inset 0 -13px 22px rgba(117,56,0,.16);
}
main .marble {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0 !important;
  border: 2px solid #bd5000 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 30% 25%, #fff 0 5%, #ffd471 7%, #ff8b12 28%, #d14e00 68%, #712000 100%) !important;
  box-shadow: inset -6px -8px 12px rgba(88,21,0,.42), inset 6px 6px 10px rgba(255,255,255,.55), 0 6px 10px rgba(88,36,0,.24) !important;
  transition: transform .22s ease, opacity .22s ease;
}
main .marble::after,
main .shape-choices button::after,
main .flip-dots button::after {
  display: none !important;
}
main .marble:hover {
  transform: translateY(-5px) scale(1.06);
}
main .marble.removed {
  opacity: .2;
  transform: translateY(38px) scale(.62);
}
.marble-progress {
  margin-top: 15px;
  text-align: center;
  color: #7d3700;
  font-weight: 900;
}
.math-game .game-actions button,
.math-choices button {
  padding: 12px 17px;
  border-radius: 999px;
  cursor: pointer;
}
.math-message {
  min-height: 46px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff0d1;
  color: #000;
  font-weight: 850;
}
.math-message:empty {
  visibility: hidden;
}
.math-message.success {
  background: #e8f8db;
  color: #184d17;
}
.pattern-row,
.math-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}
.pattern-row {
  margin: 27px 0 20px;
}
.pattern-row b {
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff1b7, #ffab25);
  color: #000;
  font: 900 25px/1 Nunito, Arial, sans-serif;
  box-shadow: 0 8px 18px rgba(190,80,0,.18);
}
.shape-choices {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 27px 0 19px;
}
main .shape-choices button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding: 12px !important;
  border-radius: 24px !important;
}
.shape {
  display: block;
  width: 48px;
  height: 48px;
}
.shape.circle {
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 5px #000;
}
.shape.square {
  background: #fff;
  box-shadow: inset 0 0 0 5px #000;
}
.shape.triangle {
  width: 0;
  height: 0;
  border-left: 27px solid transparent;
  border-right: 27px solid transparent;
  border-bottom: 49px solid #000;
}
.ten-choices button.selected {
  outline: 4px solid #000;
  outline-offset: 3px;
  transform: translateY(-4px);
}
.math-parent-band {
  margin: 0;
  padding: 65px 8vw;
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: center;
  gap: 42px;
  background: linear-gradient(110deg, #dc5c00, #ff9d16 54%, #ffd15a);
  color: #000;
}
.math-parent-band span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.math-parent-band h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 52px);
}
.math-parent-band p {
  color: #000 !important;
  line-height: 1.7;
}

.binder-inside {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,181,47,.2), transparent 42%),
    #fffaf0;
}
.binder-flipbook {
  max-width: 1120px;
  margin: 48px auto 0;
  perspective: 1800px;
}
.flipbook-stage {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 18px;
  align-items: center;
}
main .flip-arrow {
  width: 58px;
  height: 58px;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 25px;
  cursor: pointer;
}
.flip-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(245px, .6fr);
  min-height: 520px;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(92,37,0,.22);
  transform-origin: center;
}
.flip-page::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: calc(70% - 5px);
  width: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.9), rgba(0,0,0,.1));
  pointer-events: none;
}
.flip-page img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}
.flip-caption {
  padding: 38px 30px;
  display: grid;
  align-content: center;
  background: linear-gradient(165deg, #fff9e8, #ffc55b);
}
.flip-count {
  color: #8f3900;
  font-weight: 900;
  letter-spacing: .1em;
}
.flip-caption h3 {
  margin: 13px 0;
  font-size: clamp(28px, 3vw, 41px);
}
.flip-caption p {
  color: #000 !important;
  line-height: 1.7;
}
.flip-page.turn-right {
  animation: flipRight .42s ease;
}
.flip-page.turn-left {
  animation: flipLeft .42s ease;
}
.flip-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
main .flip-dots button {
  width: 13px;
  height: 13px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #d88927 !important;
  box-shadow: none !important;
  opacity: .38;
  cursor: pointer;
}
main .flip-dots button.active {
  width: 34px;
  border-radius: 99px !important;
  opacity: 1;
  background: #ed7100 !important;
}
@keyframes flipRight {
  0% { transform: rotateY(0deg) scale(1); }
  48% { transform: rotateY(-10deg) scale(.98); }
  100% { transform: rotateY(0deg) scale(1); }
}
@keyframes flipLeft {
  0% { transform: rotateY(0deg) scale(1); }
  48% { transform: rotateY(10deg) scale(.98); }
  100% { transform: rotateY(0deg) scale(1); }
}

@media (max-width: 980px) {
  .math-game-grid { grid-template-columns: 1fr; }
  .math-parent-band { grid-template-columns: 1fr; }
  .flip-page { grid-template-columns: 1fr; }
  .flip-page::before { display: none; }
  .flip-page img { min-height: 410px; }
}
@media (max-width: 700px) {
  .math-game { padding: 25px 18px; }
  .marble-tray { border-radius: 42px 42px 22px 22px; padding: 17px; }
  main .marble { width: 37px; height: 37px; flex-basis: 37px; }
  .flipbook-stage { grid-template-columns: 1fr; }
  main .flip-arrow { position: absolute; z-index: 5; margin-top: -140px; }
  main .flip-prev { left: 30px; }
  main .flip-next { right: 30px; }
  .flip-page { min-height: 0; }
  .flip-page img { min-height: 0; aspect-ratio: 4/3; }
  .flip-caption { padding: 27px 22px; }
  .shape-choices { gap: 8px; }
  main .shape-choices button { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-page,
  main .marble { animation: none !important; transition: none !important; }
}


/* Mobile hero visibility: keep every full photo visible above the copy. */
@media (max-width: 980px) {
  .pagehero.full-hero,
  .pagehero.full-hero.immersive {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 30px;
    padding-top: 30px;
  }

  .pagehero.full-hero .hero-image,
  .pagehero.full-hero.immersive .hero-image {
    position: relative;
    inset: auto;
    order: -1;
    width: min(760px, 100%);
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    overflow: hidden;
    border: 7px solid #fff;
    border-radius: 28px;
    background: #fff2d7;
    box-shadow: 0 18px 45px rgba(116,70,16,.2);
    z-index: 2;
  }

  .pagehero.full-hero .hero-image > img,
  .pagehero.full-hero.immersive .hero-image > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: contain;
    object-position: center top;
    border-radius: 19px;
    opacity: 1;
  }

  .pagehero.full-hero.immersive::before {
    background: linear-gradient(180deg, #fff4dc 0%, #ffc65d 100%);
  }

  .pagehero.full-hero.immersive .hero-content {
    width: min(720px, 100%);
    padding: clamp(27px, 6vw, 46px);
  }

  .pagehero.full-hero.immersive .floating-binders {
    inset: -18px;
  }
}

@media (max-width: 600px) {
  .home-hero {
    gap: 30px;
    padding-top: 28px !important;
  }

  .home-hero .photo {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    overflow: hidden;
    border-width: 7px;
    border-radius: 27px;
  }

  .home-hero .photo > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    border-radius: 18px;
  }

  .home-hero .photo::after {
    display: none;
  }

  .pagehero.full-hero,
  .pagehero.full-hero.immersive {
    padding: 24px 16px 62px;
  }

  .pagehero.full-hero .hero-image,
  .pagehero.full-hero.immersive .hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-width: 6px;
    border-radius: 24px;
  }

  .pagehero.full-hero .hero-image > img,
  .pagehero.full-hero.immersive .hero-image > img {
    border-radius: 16px;
  }

  .pagehero.full-hero .floating-binders,
  .pagehero.full-hero.immersive .floating-binders {
    display: none;
  }

  .pagehero.full-hero .hero-content {
    width: 100%;
  }
}


/* Centered LearnU emblem navigation */
.centered-logo-header {
  height: 138px;
  padding: 0 2.2vw;
  overflow: visible;
}

.centered-logo-header nav {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
  align-items: center;
  font-size: clamp(11px, .82vw, 13px);
}

.nav-cluster {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.logo-crop {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #ef8500;
  box-shadow:
    0 0 0 4px #fff,
    0 14px 34px rgba(128,55,0,.24);
}

.logo-crop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.58);
  transform-origin: center center;
}

.desktop-center-logo {
  width: 126px;
  height: 126px;
  justify-self: center;
  padding: 0 !important;
  transition: transform .25s ease, box-shadow .25s ease;
}

.desktop-center-logo:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 4px #fff,
    0 19px 40px rgba(128,55,0,.29);
}

.mobile-center-logo {
  display: none;
}

.centered-logo-header .gold {
  min-height: 46px;
  padding: 12px 16px;
}

@media (max-width: 1180px) {
  .centered-logo-header {
    height: 108px;
    justify-content: center;
    padding: 0 18px;
  }

  .mobile-center-logo {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 96px;
    height: 96px;
    display: block;
    transform: translateX(-50%);
    z-index: 3;
  }

  .centered-logo-header .menu {
    position: absolute;
    right: 20px;
    margin: 0;
    display: block;
    z-index: 4;
  }

  .centered-logo-header nav {
    display: none;
    position: absolute;
    top: 108px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 108px);
    overflow: auto;
    padding: 22px 24px 30px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,.16);
    z-index: 30;
  }

  .centered-logo-header nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .desktop-center-logo {
    display: none;
  }

  .centered-logo-header .nav-cluster {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .centered-logo-header nav a {
    width: 100%;
    padding: 14px 7px;
    text-align: center;
    border-bottom: 1px solid #f0dfc7;
  }

  .centered-logo-header nav .gold {
    width: min(340px, 100%);
    margin: 16px auto 0;
    border-bottom: 1px solid #d76800;
  }
}

@media (max-width: 600px) {
  .centered-logo-header {
    height: 100px;
  }

  .mobile-center-logo {
    top: 6px;
    width: 88px;
    height: 88px;
  }

  .centered-logo-header nav {
    top: 100px;
    max-height: calc(100vh - 100px);
  }
}


/* Animated icons for the four homepage feature cards */
.feature-icon {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: block;
  margin: -64px 0 19px;
  overflow: visible;
  border: 3px solid #fff;
  border-radius: 22px;
  background: linear-gradient(135deg, #a84000 0%, #ed7100 30%, #ffb52f 58%, #d65300 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 13px 28px rgba(145,54,0,.28);
  animation: featureIconFloat 3.5s ease-in-out infinite;
  z-index: 2;
}

.spotlight-grid article:nth-child(2) .feature-icon {
  animation-delay: .35s;
}

.spotlight-grid article:nth-child(3) .feature-icon {
  animation-delay: .7s;
}

.spotlight-grid article:nth-child(4) .feature-icon {
  animation-delay: 1.05s;
}

.icon-video::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 21px;
  width: 32px;
  height: 25px;
  border: 4px solid #000;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #ffbd45;
}

.icon-video::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 25px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 0;
  border-left: 13px solid #000;
  animation: videoLensPulse 1.8s ease-in-out infinite;
}

.icon-literacy::before,
.icon-literacy::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 25px;
  height: 37px;
  background: #fff;
  border: 3px solid #000;
  box-shadow: inset 0 -7px 0 #ffd066;
}

.icon-literacy::before {
  left: 9px;
  border-radius: 7px 2px 2px 7px;
  transform-origin: right bottom;
  transform: skewY(-8deg);
  animation: leftPageTurn 2.8s ease-in-out infinite;
}

.icon-literacy::after {
  right: 9px;
  border-radius: 2px 7px 7px 2px;
  transform-origin: left bottom;
  transform: skewY(8deg);
  animation: rightPageTurn 2.8s .25s ease-in-out infinite;
}

.icon-math::before {
  content: "1+2";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #000;
  font: 900 25px/1 Nunito, Arial, sans-serif;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
  animation: mathNumberPulse 2.2s ease-in-out infinite;
}

.icon-binder::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 11px;
  width: 38px;
  height: 48px;
  border: 4px solid #000;
  border-radius: 4px 9px 9px 4px;
  background: #fff;
  box-shadow: inset 8px 0 0 #ffc14f;
  animation: binderOpen 2.9s ease-in-out infinite;
}

.icon-binder::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 11px 0 #000, 0 22px 0 #000;
}

@keyframes featureIconFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes videoLensPulse {
  0%, 100% { transform: scale(.88); opacity: .75; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes leftPageTurn {
  0%, 100% { transform: skewY(-8deg) rotateY(0); }
  50% { transform: skewY(-3deg) rotateY(-22deg); }
}

@keyframes rightPageTurn {
  0%, 100% { transform: skewY(8deg) rotateY(0); }
  50% { transform: skewY(3deg) rotateY(22deg); }
}

@keyframes mathNumberPulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(-4deg); }
  65% { transform: scale(1.08) rotate(3deg); }
}

@keyframes binderOpen {
  0%, 100% { transform: perspective(100px) rotateY(0); }
  50% { transform: perspective(100px) rotateY(-14deg); }
}

@media (max-width: 600px) {
  .feature-icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    margin-top: -57px;
    transform: scale(.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-icon,
  .feature-icon::before,
  .feature-icon::after {
    animation: none !important;
  }
}


/* Real downloadable worksheet library */
.worksheet-library {
  background:
    radial-gradient(circle at 88% 4%, rgba(255,180,40,.22), transparent 24rem),
    #fffaf0;
}

.worksheet-library.compact {
  background: #fff;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px;
  margin-top: 48px;
}

.worksheet-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 295px 1fr;
  border: 1px solid #ecc998;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 17px 43px rgba(94,41,0,.1);
}

.worksheet-preview {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 16px;
  background: linear-gradient(145deg, #ffd373, #fff3d1);
}

.worksheet-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 11px 25px rgba(55,25,0,.15);
  transition: transform .35s ease;
}

.worksheet-preview:hover img {
  transform: scale(1.035);
}

.worksheet-preview > span {
  position: absolute;
  right: 25px;
  top: 25px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.worksheet-card > div {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.worksheet-card small {
  color: #ca5300;
  font-weight: 900;
  letter-spacing: .1em;
}

.worksheet-card h3 {
  margin: 10px 0 8px;
  font-size: 25px;
}

.worksheet-card p {
  margin: 0 0 23px;
  line-height: 1.65;
}

.worksheet-card .btn {
  margin-top: auto;
}

.worksheet-all {
  margin-top: 34px;
  text-align: center;
}

.worksheet-cta > *:not(.float) {
  position: relative;
  z-index: 2;
}

.quick-worksheet-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.quick-worksheet-grid > a {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px;
  align-items: center;
  padding: 11px;
  border: 2px solid rgba(0,0,0,.11);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  color: #000;
  box-shadow: 0 10px 23px rgba(93,38,0,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.quick-worksheet-grid > a:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 28px rgba(93,38,0,.18);
}

.quick-worksheet-grid img {
  width: 72px;
  height: 86px;
  display: block;
  object-fit: cover;
  object-position: top;
  border-radius: 9px;
  background: #fff;
}

.quick-worksheet-grid span,
.quick-worksheet-grid b,
.quick-worksheet-grid small {
  min-width: 0;
  display: block;
}

.quick-worksheet-grid b {
  font-size: 14px;
  line-height: 1.25;
}

.quick-worksheet-grid small {
  margin-top: 7px;
  color: #a84400;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}

@media (max-width: 1180px) {
  .worksheet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-worksheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .worksheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .worksheet-grid,
  .quick-worksheet-grid {
    grid-template-columns: 1fr;
  }

  .worksheet-card {
    grid-template-rows: 315px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .worksheet-preview img,
  .quick-worksheet-grid > a {
    transition: none !important;
  }
}
