/* Reference-inspired navy, cobalt and gold. Decorative art has no text. */
body{background:#04152f;color:#f5f8fd;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(ellipse at 85% 0%,#174b8255,transparent 52%),radial-gradient(ellipse at 0 65%,#0d3c6a88,transparent 55%),linear-gradient(150deg,#061b3a,#041329 65%,#0b2c50)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.52;background:url('/assets/fes-gold-orbits.svg') center top/cover no-repeat}
header{background:#061a33ef;border-color:#d4ab5740;box-shadow:0 8px 28px #0002}
header .brand strong,header .links a{color:#f4f7fc}header .brand small{color:#e6c987}
header .lang-toggle,header .nav>.btn{color:#f2d28a;background:#102c49;border-color:#c9a35c70}
header .brand-logo{box-shadow:0 0 24px #edc57314}
.hero{position:relative;isolation:isolate;padding-top:76px;min-height:720px;column-gap:55px}
.hero::before{content:"";position:absolute;inset:-55px calc((1180px - 100vw)/2) -50px;z-index:-1;pointer-events:none;background:linear-gradient(0deg,#04152f 0%,transparent 20%),linear-gradient(90deg,#04152f1a,transparent 70%),url('/assets/fes-globe-background.webp') center center/cover no-repeat;opacity:.95}
.hero>div:first-child{padding:25px;border:1px solid #f2cf7d26;border-radius:24px;background:linear-gradient(140deg,#06172ebf,#071d39a6);backdrop-filter:blur(3px);box-shadow:0 18px 50px #0001}
.hero h1{color:#fff}.hero h1 span{color:#f0cc7b;background:linear-gradient(110deg,#ffedb6,#d8a442);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hero p,.hero .tiny,.hero .daily-intro-note{color:#d3e1f0}.hero .eyebrow{color:#f2d38b}
.hero .hero-library{background:linear-gradient(145deg,#0b2b4ba6,#071b34c7);border-color:#e7bd665c;box-shadow:0 22px 65px #0003;backdrop-filter:blur(5px);margin-top:210px}
.ribbon{background:#0b2743d9;color:#e2edf7;border-color:#d8b36355}.ribbon-title,.ribbon span:before{color:#f0cc7b}
.sectionhead h2,#fes-journey .fj-heading h2,#reviews>h2{color:#fff}.sectionhead p,#fes-journey .fj-heading p,#books>.note,#free-lessons>.note,#learn>.quote p{color:#c0d1e3}
main>.hero~section>.sectionhead .eyebrow{color:#f0cc7b}
#fes-journey .fj-card,#fes-journey [data-stage],#fes-journey .fj-purchase{color:#092e50}
#fes-journey .fj-purchase{background:#f7f9fc;border:1px solid #e0c58d;border-radius:18px;padding:24px}
/* Explicit text colors for the light purchase panel in both languages. */
#fes-journey .fj-purchase h3,#fes-journey .fj-purchase ol{color:#092e50}
#fes-journey .fj-purchase p{color:#435b6f}
#fes-journey .fj-purchase li::marker{color:#805a19;font-weight:700}
#fes-daily-inline{border:1px solid #dfbd784d;border-radius:24px;overflow:hidden;box-shadow:0 20px 55px #0002}
#fes-life{background:linear-gradient(130deg,#0d2d4ac9,#061a32a6);border:1px solid #dfbd784d;border-radius:24px}
.filter{color:#e5edf7;border-color:#c7d5e160;background:#0d2946aa}.filter.active{background:linear-gradient(110deg,#f2d38a,#d4a349);color:#082541;border-color:#e8c576}.filter:hover{border-color:#ebc778}
.product{background:#f8fafc;color:#092e50;border:1px solid #d8b56d55;border-radius:20px;padding:13px 13px 20px;box-shadow:0 16px 40px #0002;transition:transform .2s,border-color .2s}
.product:hover{transform:translateY(-4px);border-color:#edc573}.product .meta,.product p{color:#536a7f}.product h3{color:#092e50}.product .book-price{color:#092e50}.product .textbtn{color:#0c527b}
.product .book-actions{border-color:#d4dfe8}.product .price-link{color:#174d70}
.format-notice{color:#173e5e}.class-panel,.achievement-panel{border-color:#d8b56d75;box-shadow:0 24px 60px #0003}
.teacher-panel,.contact,.review-form,.published-reviews,.review-card,.free-lesson-card,.kids-game-panel{color:#092e50}
.lessons{border-color:#d9b66c66}.lesson{border-color:#d9b66c40}.lesson h3{color:#fff}.lesson p,.quote p{color:#c8d7e7}.num{color:#e8c67d}.quote strong{color:#f3d38b}
#reviews>.reviews-intro p,#reviews>.reviews-intro .review-intro,#reviews>.reviews-intro h2{color:#e3ecf6}
#contact>.sectionhead p{color:#c8d7e7}
main>section:not([id]) details{color:#f5f8fc;border-color:#d9b66c44}main>section:not([id]) details p{color:#c8d7e7}
footer{background:#041226b0;border-color:#d9b66c44}footer .foot,footer p{color:#bdcede}
#parent-progress-entry{color:#092e50}
dialog{background:#fbfcfe;color:#092e50}dialog .close{color:#092e50}
@media(min-width:1500px){.hero::before{inset-inline:-12vw;background-position:center 42%;background-size:cover}}
@media(max-width:1180px){.hero::before{inset:-40px -28px -50px}}
@media(max-width:850px){.hero{gap:25px}.hero>div:first-child{padding:22px}.hero .hero-library{margin-top:180px}}
@media(max-width:600px){body::after{opacity:.35}.hero{padding-top:220px;gap:22px;min-height:0}.hero::before{inset:-12px -20px 0;background-size:auto 630px;background-position:70% top;background-repeat:no-repeat;opacity:1}.hero>div:first-child{padding:24px 20px;background:linear-gradient(145deg,#06172eea,#071d39e0);backdrop-filter:none}.hero h1{font-size:39px}.hero .hero-library{margin-top:0;backdrop-filter:none}.ribbon{padding:18px 14px}#fes-journey .fj-purchase{padding:20px}.product{padding:12px 12px 20px}}
@media(prefers-reduced-motion:reduce){.product{transition:none}.product:hover{transform:none}}

/* Leave the globe unobscured and keep the existing book collection below. */
.hero{direction:ltr;align-items:center;min-height:780px;grid-template-columns:1fr 1fr}
.hero>div:first-child{direction:rtl}
html[dir="ltr"] .hero>div:first-child{direction:ltr}
.hero-globe-space{min-height:540px;pointer-events:none}
.featured-library{max-width:650px;margin:38px auto 0;box-shadow:0 22px 60px #0003;border-color:#d5ae6266}
@media(max-width:850px) and (min-width:601px){.hero{gap:15px}.hero::before{background-position:62% center}.hero>div:first-child{padding:22px 17px}.hero h1{font-size:39px}}
@media(max-width:600px){.hero{display:block;padding-top:435px;min-height:0}.hero::before{background-size:auto 550px;background-position:82% -20px}.hero-globe-space{display:none}.hero>div:first-child{padding:24px 20px}.featured-library{margin-top:28px}}
/* Final contrast and viewport polish. */
html,body{overflow-x:clip}
.hero .eyebrow{background:#113451;color:#f7dc98;border:1px solid #d0aa5b66}
.goals-head h2,.goals-head .eyebrow{color:#f5d18a}.goals-head p{color:#c8d7e7}

/* Match foregrounds to their actual surfaces, in Arabic and English. */
.learning-goals article,.learning-goals h3,.class-form,.review-empty,.reviews-summary>div,.published-review-card{color:#092e50}
.learning-goals p,.class-form .form-intro,.review-empty p,.published-review-card p{color:#435b6f}
.free-lessons-intro p,.review-process p{color:#c8d7e7}
.free-lessons-intro .eyebrow,.free-course-actions .textbtn{color:#f0cc7b}
.free-course-actions .textbtn{border-bottom-color:#c9a35c}
.learning-goals article>div{color:#315c7b}
.product .book-actions .price-link{color:#fff}
.lesson:hover h3{color:#092e50}.lesson:hover p{color:#435b6f}
header{background:#061a33}
