:root[data-project="boj"] {
  --green: #1ca94e;
  --green-dark: #08783d;
  --green-light: #e8f9e9;
  --blue: #168eea;
  --blue-dark: #0756a5;
  --yellow: #ffd43b;
  --orange: #ff9418;
  --ink: #123b61;
  --cream: #f6fbff;
  --boj-shadow: 0 18px 42px rgba(19, 83, 128, 0.15);
}

[data-project="boj"] body {
  color: var(--ink);
  background: linear-gradient(180deg, #e7f8ff 0, #f8fcff 42%, #f6fff1 100%);
  background-attachment: fixed;
  font-family: "Baloo 2", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
}

[data-project="boj"] .site-topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #cdeaf7;
}
[data-project="boj"] .site-brand-partners { gap: 3px; }
[data-project="boj"] .site-partner { gap: 1px; }
[data-project="boj"] .site-partner-label { display: none; }
[data-project="boj"] .campaign-topbar { max-width: 1180px; }
[data-project="boj"] .site-brand-campaign .campaign-brand-logo {
  width: 58px;
  height: 48px;
}
[data-project="boj"] .site-games-tab { background: #eaf7ff; color: #0756a5; }
[data-project="boj"] .site-games-tab:hover { background: #d7effd; }
[data-project="boj"] .hamburger-btn span { background: #0756a5; }
[data-project="boj"] .btn-primary {
  background: linear-gradient(135deg, #ffb31a, #ff7b16);
  box-shadow: 0 5px 0 #cc5c08;
}
[data-project="boj"] .card {
  border: 1px solid rgba(22, 142, 234, 0.12);
  box-shadow: 0 14px 34px rgba(18, 82, 126, 0.12);
}
[data-project="boj"] .site-footer { background: linear-gradient(135deg, #0756a5, #08a47a); }

.boj-page { padding-bottom: 56px; }
.boj-container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

/* Shared illustrated hero used by home, games, and dashboard. */
.boj-field-hero {
  position: relative;
  min-height: clamp(340px, 32vw, 430px);
  overflow: hidden;
  isolation: isolate;
  background: #8edaf4;
  border-radius: 0 0 38px 38px;
  box-shadow: var(--boj-shadow);
}
.boj-field-hero.is-contained { margin-top: 26px; border-radius: 36px; }
.boj-field-bg {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.boj-field-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 66, 129, 0.82) 0%, rgba(9, 103, 164, 0.53) 43%, rgba(11, 120, 99, 0.08) 76%);
}
.boj-hero-copy {
  position: relative;
  z-index: 2;
  width: min(55%, 650px);
  padding: clamp(32px, 4vw, 54px);
  color: #fff;
}
.boj-hero-logo {
  display: block;
  width: min(310px, 92%);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 7px 10px rgba(3, 42, 83, 0.28));
}
.boj-field-hero.is-home .boj-hero-logo { width: min(270px, 88%); }
.boj-hero-kicker {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0756a5;
  font-weight: 800;
}
.boj-hero-tagline {
  display: inline-flex;
  margin: 0;
  padding: 8px 15px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(7, 86, 165, 0.78);
  color: #fff;
  font-size: clamp(0.88rem, 1.4vw, 1.08rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: none;
}
.boj-hero-copy h1 {
  margin: 13px 0 10px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  text-shadow: 0 3px 10px rgba(4, 53, 94, 0.35);
}
.boj-hero-copy p {
  max-width: 470px;
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(1.04rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.42;
  text-shadow: 0 2px 8px rgba(4, 53, 94, 0.45);
}
.boj-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.boj-hero-actions .btn { width: auto; min-width: 132px; margin: 0; padding: 12px 22px; }
.boj-hero-actions .btn-secondary { background: rgba(255, 255, 255, 0.95); }
.boj-hero-kids {
  position: absolute;
  z-index: 1;
  right: clamp(2%, 7vw, 10%);
  bottom: -2%;
  width: min(41%, 470px);
  height: auto;
  filter: drop-shadow(0 18px 12px rgba(6, 58, 82, 0.2));
}

.boj-quick-actions { position: relative; z-index: 4; margin-top: -24px; }
.boj-quick-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--boj-shadow);
}
.boj-quick-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}
.boj-quick-link:hover { background: #eaf8ff; transform: translateY(-2px); }
.boj-quick-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e9f7ff;
  font-size: 1.45rem;
}

.boj-section { padding-top: 48px; }
.boj-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.boj-eyebrow { color: #08783d; font-weight: 800; }
.boj-section-head h2 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.boj-section-head p { margin: 8px 0 0; font-size: 1.05rem; }
.boj-view-all { color: #0756a5; font-weight: 800; text-decoration: none; white-space: nowrap; }

.boj-game-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  justify-content: start;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 3px 18px;
  scroll-snap-type: x mandatory;
}
.boj-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding: 4px 3px 10px;
}
.boj-game-rail::-webkit-scrollbar { height: 8px; }
.boj-game-rail::-webkit-scrollbar-thumb { background: #b8dbeb; border-radius: 999px; }
[data-project="boj"] .boj-play-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: 0 16px 32px rgba(18, 82, 126, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-project="boj"] .boj-play-card:hover { transform: translateY(-5px); box-shadow: 0 22px 38px rgba(18, 82, 126, 0.22); }
.boj-play-card.is-thali { background: linear-gradient(145deg, #ffc62d 0%, #ff8c1d 58%, #f2671a 100%); }
.boj-play-card.is-yoga { background: linear-gradient(145deg, #7d5ce5 0%, #b24ed0 52%, #ee5c9e 100%); }
.boj-play-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 43%, rgba(12, 36, 70, 0.8) 100%);
}
[data-project="boj"] .boj-play-card img {
  position: absolute;
  inset: 18px 4% auto auto;
  width: 72%;
  height: 68%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 12px 8px rgba(50, 37, 73, 0.2));
}
.boj-play-card .game-badge { top: 16px; left: 16px; }
.boj-play-card-copy { position: absolute; z-index: 2; right: 18px; bottom: 18px; left: 18px; }
.boj-play-card h3,
.boj-play-card h4 { margin: 0 0 5px; color: #fff; font-size: 1.75rem; line-height: 1.02; }
.boj-play-card p { max-width: 84%; margin: 0; color: #fff; font-size: 0.95rem; line-height: 1.35; }
.boj-play-card .game-arrow {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 17px;
}

.boj-programme-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 34px;
  background: linear-gradient(125deg, #0756a5, #168eea 54%, #16a45c);
  color: #fff;
  box-shadow: var(--boj-shadow);
}
.boj-programme-band h2 { margin: 5px 0 9px; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.boj-programme-band p { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: 1.08rem; }
.boj-programme-band .boj-hero-actions { justify-content: end; margin: 0; }

/* Dashboard */
.boj-dashboard { padding-top: 26px; }
.boj-dashboard .boj-field-hero { min-height: 370px; }
.boj-dashboard .boj-hero-copy { width: min(57%, 650px); }
.boj-dashboard .boj-hero-copy h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.boj-dashboard .boj-hero-kids { width: min(36%, 410px); }
.boj-dash-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.boj-dash-chip {
  padding: 10px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #123b61;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(6, 64, 104, 0.16);
}
.boj-dashboard-actions { margin-top: 18px; }
.boj-dashboard-section {
  margin-top: 22px;
  padding: 25px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 70, 100, 0.1);
}
.boj-dashboard-section h2 { margin-top: 0; }
.boj-mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px; border-bottom: 1px solid #edf1f4; }
.boj-mini-row:last-child { border-bottom: 0; }

/* Existing informational pages. */
.boj-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #fff; padding: 24px 0; }
.boj-info-hero { padding: 72px 0 58px; position: relative; overflow: hidden; }
.boj-info-hero::after { content: ""; position: absolute; width: 230px; height: 230px; right: 7%; top: 22px; border: 28px solid rgba(255,255,255,.35); border-radius: 50%; }
.boj-info-hero .container { position: relative; z-index: 1; }
.boj-info-hero h1 { max-width: 760px; margin: 10px 0 14px; color: #0756a5; font-size: clamp(2.35rem,6vw,4.6rem); line-height: 1.02; }
.boj-info-hero p { max-width: 680px; margin: 0; color: #245779; font-size: 1.12rem; font-weight: 600; }
.boj-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.boj-info-card { min-height: 210px; padding: 26px; border-radius: 28px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 14px 30px rgba(18,82,126,.13); }
.boj-info-card:nth-child(3n+1) { background: linear-gradient(145deg,#168eea,#0663bd); }
.boj-info-card:nth-child(3n+2) { background: linear-gradient(145deg,#ffae16,#ff7618); }
.boj-info-card:nth-child(3n) { background: linear-gradient(145deg,#2dbb69,#078755); }
.boj-info-card-icon { font-size: 3.4rem; }
.boj-info-card h2 { margin: 14px 0 4px; color: inherit; font-size: 1.5rem; }
.boj-info-card p { margin: 0; color: rgba(255,255,255,.9); }
.boj-pending-band { margin-top: 24px; padding: 20px 24px; border: 2px dashed #8dcbe9; border-radius: 22px; background: rgba(255,255,255,.72); color: #245779; text-align: center; font-weight: 700; }
.boj-journey { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; counter-reset: boj-step; }
.boj-journey-step { counter-increment: boj-step; padding: 24px 18px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 10px 24px rgba(18,82,126,.1); font-weight: 800; }
.boj-journey-step::before { content: counter(boj-step); width: 42px; height: 42px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #168eea; }

/* About / Philosophy pages — client-provided programme copy. */
.boj-prose-card { padding: 28px 30px; border-radius: 28px; background: #fff; box-shadow: 0 12px 30px rgba(18,82,126,.1); }
.boj-prose-card h2 { margin: 0 0 12px; color: #0756a5; font-size: 1.6rem; }
.boj-prose-card p { margin: 0 0 14px; color: var(--ink); font-size: 1.06rem; line-height: 1.62; }
.boj-prose-card p:last-child { margin-bottom: 0; }
.boj-goal-band { margin-top: 18px; }
.boj-goal-card { display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: 28px; background: linear-gradient(145deg,#168eea,#0663bd); box-shadow: 0 14px 30px rgba(18,82,126,.13); }
.boj-goal-icon { font-size: 3rem; flex: 0 0 auto; }
.boj-goal-card h2 { margin: 0 0 4px; color: #fff; font-size: 1.5rem; }
.boj-goal-card p { margin: 0; color: rgba(255,255,255,.92); }
.boj-philosophy-section { margin-top: 40px; padding: 52px 0 64px; background: linear-gradient(180deg, #eaf8ff, #e8f9e9); border-radius: 40px; }
.boj-philosophy-section .boj-eyebrow { display: inline-block; }
.boj-philosophy-heading { margin: 6px 0 22px; color: #0756a5; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; }
.boj-approach-label { color: #08783d !important; font-weight: 800; }
.boj-loop { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 8px 0 18px; }
.boj-loop-step { flex: 1 1 96px; min-width: 96px; padding: 14px 10px; border-radius: 18px; background: linear-gradient(145deg, #168eea, #0663bd); color: #fff; text-align: center; box-shadow: 0 10px 22px rgba(18,82,126,.18); }
.boj-loop-step strong { display: block; width: 30px; height: 30px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; color: #0756a5; background: #ffd43b; }
.boj-loop-step span { font-weight: 800; }
.boj-loop-arrow { align-self: center; color: #ff8c1d; font-size: 1.5rem; font-weight: 800; }
.boj-closing-line { margin-top: 8px; padding: 16px 20px; border-radius: 20px; background: #ffd43b; color: #123b61 !important; font-weight: 800; font-size: 1.12rem !important; }

@media (max-width: 900px) {
  .boj-quick-panel { grid-template-columns: 1fr 1fr; }
  .boj-programme-band { grid-template-columns: 1fr; }
  .boj-programme-band .boj-hero-actions { justify-content: start; }
}

@media (max-width: 700px) {
  [data-project="boj"] .site-brand-campaign .campaign-brand-logo { width: 46px; height: 38px; }
  [data-project="boj"] .site-brand-partners { gap: 2px; }
  [data-project="boj"] .site-partner { gap: 0; }
  .boj-field-hero,
  .boj-field-hero.is-contained { min-height: 570px; margin-top: 0; border-radius: 0 0 30px 30px; }
  .boj-field-hero.is-home { min-height: 540px; }
  .boj-field-hero::after { background: linear-gradient(180deg, rgba(5,66,129,.84) 0%, rgba(9,103,164,.55) 52%, rgba(11,120,99,.08) 82%); }
  .boj-hero-copy,
  .boj-dashboard .boj-hero-copy { width: 100%; padding: 35px 25px; }
  .boj-hero-logo { width: min(250px, 80%); }
  .boj-field-hero.is-home .boj-hero-logo { width: min(220px, 76%); }
  .boj-hero-copy h1 { font-size: 2.55rem; }
  .boj-hero-kids,
  .boj-dashboard .boj-hero-kids { right: 50%; bottom: -1%; width: min(70%, 350px); transform: translateX(50%); }
  .boj-field-hero.is-home .boj-hero-kids { right: 5%; width: min(56%, 280px); transform: none; }
  .boj-hero-actions .btn { flex: 1 1 90px; min-width: 0; }
  .boj-quick-actions { margin-top: -18px; }
  .boj-section { padding-top: 38px; }
  .boj-section-head { align-items: start; }
  .boj-game-rail { grid-auto-columns: min(82vw, 340px); }
  .boj-info-hero { padding: 46px 0 34px; }
  .boj-info-hero::after { width: 150px; height: 150px; right: -55px; top: 20px; }
  .boj-info-grid { grid-template-columns: 1fr; }
  .boj-info-card { min-height: 170px; }
  .boj-journey { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 480px) {
  [data-project="boj"] .site-brand-campaign .campaign-brand-logo { width: 40px; height: 33px; }
  [data-project="boj"] .site-brand-partners { gap: 1px; }
  .boj-container { width: min(100% - 22px, 1160px); }
  .boj-field-hero { min-height: 550px; }
  .boj-field-hero.is-home { min-height: 520px; }
  .boj-dashboard .boj-field-hero { min-height: 620px; }
  .boj-hero-actions .btn { padding: 11px 13px; }
  .boj-quick-panel { gap: 5px; padding: 9px; }
  .boj-quick-link { gap: 7px; padding: 8px; font-size: 0.88rem; }
  .boj-quick-icon { width: 39px; height: 39px; font-size: 1.2rem; }
  .boj-section-head { display: block; }
  .boj-view-all { display: inline-block; margin-top: 10px; }
  .boj-programme-band { padding: 27px 23px; }
  .boj-dashboard-section { padding: 18px; }
}

@media (max-width: 380px) {
  [data-project="boj"] .site-brand-campaign .campaign-brand-logo { width: 35px; height: 29px; }
  .boj-hero-copy { padding-right: 18px; padding-left: 18px; }
  .boj-field-hero { min-height: 530px; }
  .boj-field-hero.is-home { min-height: 500px; }
  .boj-dashboard .boj-field-hero { min-height: 600px; }
}
