@font-face {
  font-family: 'Lalezar';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/adventure/lalezar-arabic.woff2') format('woff2');
}
/* Keep the shared logo crisp on course and lesson navigation too. */
.brand-name { font-family: 'Lalezar', 'IBM Plex Sans Arabic', Tahoma, sans-serif; font-weight: 400; }
.adventure-logo { display: block; width: 58px; height: auto; flex-shrink: 0; }
.adventure-menu { display: none; }
/* The illustrated learning adventure. All other rules are scoped to the home. */
body.adventure-home {
  --adventure-ink: #073e34;
  --adventure-paper: #fffaf1;
  --adventure-coral: #ff5436;
  --adventure-mint: #bfebd0;
  background: var(--adventure-paper);
  color: var(--adventure-ink);
}
.adventure-home .container { width: min(1240px, calc(100% - 56px)); }
.adventure-home .topbar {
  height: 88px;
  border: 0;
  gap: 26px;
  position: relative;
  z-index: 3;
  background: var(--adventure-paper);
}
.adventure-home .brand { gap: 10px; }
.adventure-home .brand-mark {
  width: 62px;
  height: 55px;
  background: transparent;
  border-radius: 0;
  color: var(--adventure-ink);
}
.adventure-home .brand-mark svg { width: 62px; height: 55px; }
.adventure-home .brand-name {
  font-family: 'Lalezar', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  font-size: 44px;
  font-weight: 400;
}
.adventure-home .brand-caption { display: none; }
.adventure-home .desktop-nav { margin-inline-start: auto; gap: 34px; font-size: 17px; font-weight: 600; }
.adventure-home .desktop-nav .nav-link { display: inline-flex; }
.adventure-home .nav-link { color: var(--adventure-ink); }
.adventure-home .header-progress { border: 0; padding: 10px 0; font-weight: 600; font-size: 17px; margin-inline-start: 0; }
.adventure-home .header-progress svg { display: none; }
.adventure-home .access-header { background: #e9f2e6; font-size: 12px; }
.adventure-home main.adventure-main { padding-bottom: 12px; }
.adventure-hero {
  position: relative;
  isolation: isolate;
  min-height: 514px;
  display: flex;
  align-items: center;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #bce8e9;
}
.adventure-hero-art { position: absolute; inset: 0; z-index: -2; display: block; }
.adventure-hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.adventure-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 36%, #fffaf102 47%, #fffaf175 72%, #fffaf10a);
}
.adventure-hero-copy {
  width: 50%;
  margin: 0 16% 58px 0;
  padding: 30px 30px 30px 40px;
  text-align: center;
  position: relative;
}
.adventure-hero-copy .eyebrow { display: none; }
.adventure-hero h1 {
  font-family: 'Lalezar', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  font-size: clamp(48px, 5.15vw, 72px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
  color: #003c33;
  text-shadow: 0 1px 0 #fffcf4;
  margin: 0 auto 27px;
}
.adventure-hero h1 span { display: block; }
.adventure-hero h1 span:last-child { position: relative; width: fit-content; margin: 0 auto; }
.adventure-hero h1 span:last-child::after {
  content: '';
  position: absolute;
  bottom: -12px;
  height: 8px;
  left: 2%;
  width: 96%;
  background: #ff654b;
  border-radius: 50% 35% 55% 45%;
  transform: rotate(-2deg);
}
.adventure-hero-copy > p { color: #073e34; font-size: 21px; line-height: 1.8; font-weight: 600; margin: 0 auto 19px; }
.adventure-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 57px;
  min-width: 255px;
  padding: 7px 26px 10px;
  border: 2px solid #fff9ed;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff6744, #ff4d2e);
  box-shadow: inset 0 1px 0 #ffad8e, 0 5px 10px #c86d2921;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.adventure-cta svg { width: 29px; height: 29px; stroke-width: 2.3; }
.adventure-cta:hover { transform: translateY(-2px); background: #ef442b; box-shadow: 0 7px 17px #ce582b32; }
.adventure-cta:focus-visible { outline: 3px solid #073e34; outline-offset: 4px; }
.adventure-courses { position: relative; z-index: 2; margin-top: -28px; padding: 0 20px; scroll-margin-top: 22px; }
.adventure-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.adventure-course {
  min-width: 0;
  min-height: 244px;
  position: relative;
  isolation: isolate;
  border: 4px solid #fffcf4;
  border-radius: 26px;
  background: #fff9ed;
  box-shadow: 0 6px 12px #6f522a21;
}
.adventure-course-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  z-index: -2;
}
.adventure-course::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #fffaf1c7 4%, #fffaf175 45%, transparent 78%);
}
.adventure-course-copy { width: 76%; margin-right: auto; margin-left: 0; padding: 24px 19px 12px; text-align: center; }
.adventure-course h2 {
  font-family: 'Lalezar', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  color: var(--adventure-ink);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: balance;
}
.adventure-course-count {
  display: table;
  background: linear-gradient(180deg, #d4f4df, #b5e7c7);
  border-radius: 999px;
  padding: 0 19px 3px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
  color: #104a3b;
  margin: 8px auto 12px;
}
.adventure-course .adventure-cta { min-height: 46px; min-width: 240px; font-size: 23px; padding: 5px 18px 7px; }
.adventure-course .adventure-cta svg { width: 25px; height: 25px; }
.adventure-course-catalog { display: flex; justify-content: center; align-items: center; gap: 3px; width: fit-content; margin: 6px auto 0; padding: 2px 8px; font-size: 11px; font-weight: 600; color: #194f40; border-radius: 9px; background: #fffcf3d9; text-decoration: underline; text-underline-offset: 3px; line-height: 1.6; }
.adventure-course-catalog svg { width: 12px; height: 12px; }
.adventure-course-catalog:hover { background: #fff; }
.adventure-free-badge {
  position: absolute;
  top: -25px;
  left: 8px;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ca432c;
  color: #fff;
  border: 3px solid #fffaf1;
  border-radius: 42%;
  box-shadow: 0 3px 0 #f2886866;
  transform: rotate(-12deg);
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  font-weight: 700;
  z-index: 2;
}
.adventure-free-badge::before, .adventure-free-badge::after { content: ''; position: absolute; inset: -3px; border: 3px solid #fffaf1; border-radius: 39%; z-index: -1; background: inherit; transform: rotate(25deg); }
.adventure-free-badge::after { transform: rotate(55deg); }
.adventure-journey {
  display: grid;
  grid-template-columns: 1.1fr 2.5fr;
  align-items: center;
  gap: 24px;
  padding: 23px 35px 26px;
  margin: 20px 38px 0;
  background: #fffdf6c9;
  border: 1px solid #fff;
  box-shadow: 0 5px 18px #a8894e0b;
  border-radius: 30px;
}
.adventure-journey h2 {
  position: relative;
  isolation: isolate;
  font-family: 'Lalezar', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  font-size: 37px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.adventure-journey h2::before { content: ''; position: absolute; z-index: -1; inset: -7px -9px; background: #d1edda; border-radius: 35% 23% 35% 20%; transform: rotate(-3deg); opacity: .85; }
.adventure-steps { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.adventure-step { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; min-width: 0; }
.adventure-step-icon { width: 80px; height: 72px; object-fit: contain; display: grid; place-items: center; border-radius: 50%; background: #caedda; color: #12614e; }
.adventure-step:nth-of-type(3) .adventure-step-icon { background: #ffdaa0; color: #a86115; }
.adventure-step-icon > svg { width: 49px; height: 49px; stroke-width: 1.5; }
.adventure-step strong { font-family: 'Lalezar', 'IBM Plex Sans Arabic', Tahoma, sans-serif; font-size: 28px; line-height: 1.2; margin-top: 8px; font-weight: 400; }
.adventure-step small { display: block; color: #527160; font-size: 10px; margin-top: 4px; line-height: 1.7; }
.adventure-step-arrow { color: #19a68b; font-size: 34px; line-height: 1; }
.adventure-home .bundle-offer { margin: 42px 20px 26px; background: #fffdf8; border-color: #e8e6d8; }
.adventure-home .bundle-offer h2 { font-family: 'Lalezar', 'IBM Plex Sans Arabic', Tahoma, sans-serif; font-weight: 400; font-size: 35px; }
.adventure-home .bundle-offer .overline { color: #b04b2d; }
.adventure-home .bundle-offer .btn-primary { background: #0e6551; border-radius: 99px; }
.adventure-home .free-access-note { background: #edf5e8; border-color: #d8e8d6; }
.adventure-home .learning-note { margin: 25px 20px; background: #f2efdf; border-color: #e8e4d3; }
.adventure-home .site-footer { border-top-color: #e4dfcc; }
@media (min-width: 1500px) {
  .adventure-hero { min-height: 560px; }
}
@media (max-width: 1050px) and (min-width: 701px) {
  .adventure-home .container { width: calc(100% - 36px); }
  .adventure-home .topbar { gap: 19px; }
  .adventure-home .brand-name { font-size: 38px; }
  .adventure-home .brand-mark, .adventure-home .brand-mark svg { width: 53px; }
  .adventure-hero { min-height: 440px; }
  .adventure-hero-copy { width: 55%; padding-inline: 20px; margin-right: 12%; margin-bottom: 35px; }
  .adventure-hero h1 { font-size: 57px; }
  .adventure-hero-copy > p { font-size: 17px; }
  .adventure-cta { min-width: 220px; font-size: 23px; }
  .adventure-courses { padding-inline: 12px; }
  .adventure-course-grid { gap: 18px; }
  .adventure-course { min-height: 226px; }
  .adventure-course-copy { width: 85%; padding-inline: 13px; padding-top: 29px; }
  .adventure-course h2 { font-size: 29px; }
  .adventure-course .adventure-cta { min-width: 210px; font-size: 20px; }
  .adventure-free-badge { height: 73px; width: 73px; font-size: 15px; left: 6px; }
  .adventure-journey { margin-inline: 20px; padding: 21px; gap: 20px; }
  .adventure-journey h2 { font-size: 30px; }
  .adventure-step-icon { width: 65px; height: 63px; }
  .adventure-step strong { font-size: 25px; }
  .adventure-step-arrow { font-size: 27px; }
}
@media (max-width: 700px) {
  .adventure-logo { width: 46px; }
  .adventure-home .container { width: 100%; }
  .adventure-home .topbar { height: 72px; padding-inline: 19px; gap: 10px; }
  .adventure-home .brand { gap: 6px; }
  .adventure-home .brand-name { font-size: 35px; }
  .adventure-home .brand-mark, .adventure-home .brand-mark svg { width: 47px; height: 43px; }
  .adventure-home .desktop-nav { display: none; }
  .adventure-home .adventure-menu { display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: #073e34; padding: 8px; }
  .adventure-home .adventure-menu svg { width: 26px; height: 26px; stroke-width: 2.2; }
  .adventure-home .header-progress { display: none; }
  .adventure-home .access-header { margin-inline-start: auto; padding: 9px; min-height: 38px; border-radius: 10px; color: #0a5243; background: transparent; }
  .adventure-home .access-header svg { width: 23px; height: 23px; }
  .adventure-home .access-header span { display: none; }
  .adventure-hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; border-radius: 0; overflow: visible; background: var(--adventure-paper); }
  .adventure-hero::after { display: none; }
  .adventure-hero-art { position: relative; height: auto; aspect-ratio: 1.65; width: 100%; z-index: 0; overflow: hidden; }
  .adventure-hero-art img { object-position: center 41%; }
  .adventure-hero-art::after { content: ''; position: absolute; inset: auto 0 -1px; height: 36%; background: linear-gradient(transparent, var(--adventure-paper)); pointer-events: none; }
  .adventure-hero-copy { width: 100%; max-width: 470px; margin: -21px auto 0; padding: 0 23px 24px; }
  .adventure-hero h1 { font-size: clamp(39px, 10.5vw, 51px); line-height: 1.02; margin-bottom: 21px; }
  .adventure-hero h1 span:last-child::after { height: 5px; bottom: -8px; }
  .adventure-hero-copy > p { font-size: clamp(15px, 4.1vw, 19px); margin-bottom: 13px; line-height: 1.75; }
  .adventure-cta { min-height: 47px; min-width: 0; width: 100%; max-width: 340px; font-size: 22px; padding: 6px 20px 9px; gap: 17px; border-width: 1.5px; box-shadow: inset 0 1px 0 #ffac91; }
  .adventure-cta svg { width: 25px; height: 25px; }
  .adventure-courses { margin-top: 6px; padding-inline: 15px; scroll-margin-top: 20px; }
  .adventure-course-grid { grid-template-columns: 1fr; gap: 23px; }
  .adventure-course { min-height: 159px; border-width: 3px; border-radius: 21px; }
  .adventure-course-art { border-radius: 18px; object-position: 72% center; }
  .adventure-course::after { border-radius: 18px; background: linear-gradient(90deg, #fffaf1dc 9%, #fffaf1d9 54%, #fffaf17a 66%, transparent 86%); }
  .adventure-course-copy { width: 78%; max-width: 320px; margin-right: auto; margin-left: 0; padding: 14px 8px 7px 12px; }
  .adventure-course h2 { font-size: clamp(24px, 6.8vw, 29px); line-height: 1.18; }
  .adventure-course-count { font-size: 15px; margin: 4px auto 6px; padding: 0 13px 2px; }
  .adventure-course .adventure-cta { width: 100%; max-width: 245px; min-width: 0; min-height: 44px; font-size: 19px; padding: 3px 15px 5px; gap: 13px; }
  .adventure-course .adventure-cta svg { width: 21px; height: 21px; }
  .adventure-course-catalog { font-size: 10px; line-height: 1.45; padding: 3px 7px; margin-top: 4px; }
  .adventure-free-badge { height: 61px; width: 61px; top: -17px; left: 3px; font-size: 13px; border-width: 2px; }
  .adventure-free-badge::before, .adventure-free-badge::after { inset: -2px; border-width: 2px; }
  .adventure-journey { display: flex; flex-direction: column; gap: 16px; margin: 24px 15px 0; padding: 19px 14px 18px; border-radius: 24px; }
  .adventure-journey h2 { font-size: 29px; }
  .adventure-journey h2::before { inset: -2px -15px; }
  .adventure-steps { width: 100%; gap: 6px; }
  .adventure-step-icon { width: 61px; height: 58px; }
  .adventure-step-icon > svg { width: 39px; height: 39px; }
  .adventure-step strong { font-size: 23px; margin-top: 5px; }
  .adventure-step small { font-size: 9px; margin-top: 3px; }
  .adventure-step-arrow { font-size: 26px; }
  .adventure-home .bundle-offer { margin: 28px 15px 20px; padding: 23px 19px; gap: 20px; }
  .adventure-home .bundle-offer h2 { font-size: 30px; }
  .adventure-home .bundle-offer > div > p:not(.overline) { font-size: 13px; }
  .adventure-home .learning-note { margin: 20px 15px; }
  .adventure-home .site-footer { width: calc(100% - 34px); margin-inline: auto; padding-bottom: 105px; }
  .adventure-home .mobile-nav { background: #fffcf5f0; border-top-color: #e7e0cb; }
  .adventure-home .mobile-nav .active { color: #075e4b; }
}
@media (max-width: 370px) {
  .adventure-home .topbar { padding-inline: 15px; height: 68px; }
  .adventure-home .brand-name { font-size: 33px; }
  .adventure-hero-copy { padding-inline: 21px; padding-bottom: 21px; }
  .adventure-hero h1 { font-size: 39px; }
  .adventure-hero-copy > p { font-size: 15px; }
  .adventure-courses { padding-inline: 12px; }
  .adventure-course { min-height: 154px; }
  .adventure-course-copy { width: 80%; padding-inline: 6px 11px; }
  .adventure-course h2 { font-size: 24px; }
  .adventure-free-badge { height: 55px; width: 55px; font-size: 12px; top: -15px; }
  .adventure-journey { margin-inline: 12px; }
  .adventure-step-icon { width: 54px; height: 52px; }
  .adventure-step strong { font-size: 21px; }
  .adventure-step-arrow { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .adventure-home .adventure-cta { transition: none; }
  .adventure-home .adventure-cta:hover { transform: none; }
}

/* Course titles also open the full curriculum without adding visual clutter. */
.adventure-course h2 a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; }
.adventure-course h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Honest parent progress entry: current local progress + clearly forthcoming alerts. */
.adventure-parent{display:grid;grid-template-columns:1.15fr 1fr;gap:44px;margin:40px 20px 0;padding:35px;border:1px solid #dbe8d9;background:#eff6e9;border-radius:28px;align-items:center}
.adventure-parent h2{font-family:'Lalezar','IBM Plex Sans Arabic',sans-serif;font-weight:400;font-size:36px;line-height:1.25;margin:8px 0 13px;color:#073e34}
.adventure-parent>div>p:not(.overline){font-size:14px;color:#496452;max-width:490px;margin-bottom:18px}
.adventure-parent .overline{color:#426b4e}
.adventure-parent .btn{background:#11634d;border-radius:999px;font-size:13px;min-height:46px}
.adventure-parent-notice{padding:24px;background:#fffaf1;border:1px solid #e4e5cd;border-radius:21px}
.adventure-coming-soon{display:inline-block;font-size:11px;background:#ffe0c4;color:#7b401f;border-radius:20px;padding:3px 12px;margin-bottom:12px}
.adventure-parent-notice h3{font-size:19px;font-weight:700;margin-bottom:7px}
.adventure-parent-notice p{font-size:13px;color:#526354}
.adventure-parent-notice small{display:block;font-size:11px;line-height:1.8;color:#687362;margin-top:10px}
@media(max-width:700px){.adventure-parent{grid-template-columns:1fr;gap:22px;margin:28px 15px 0;padding:24px 20px}.adventure-parent h2{font-size:31px}.adventure-parent-notice{padding:20px}.adventure-parent .btn{font-size:12px;width:100%}}
