/* EIAST glass theme (2026-10): a layer on top of platform.css that restyles the site without removing
   anything. The logo's five colours become soft gradients, surfaces become frosted glass, buttons become
   pills, and the home page opens with a video banner that glows under the pointer.
   The yellow offer strip (site.css .offer-strip) is left exactly as it is. */
:root {
  --g-brand: linear-gradient(110deg, #5aa9ff 0%, #2fd5c0 52%, #9be37a 100%);
  --g-sky: linear-gradient(135deg, #6db4ff, #3fd0c8);
  --g-leaf: linear-gradient(135deg, #b4ec7c, #39cf9e);
  --g-warm: linear-gradient(135deg, #ffc983, #ff8f6e);
  --g-coral: linear-gradient(135deg, #ff9a8b, #ff6f7d);
  --g-night: linear-gradient(135deg, #3b4a6b, #0f1a33);
  --night: #070d1f;
  --glass: rgba(255, 255, 255, .08);
  --glass-2: rgba(255, 255, 255, .14);
  --stroke: rgba(255, 255, 255, .18);
  --glass-light: rgba(255, 255, 255, .66);
  --stroke-light: rgba(255, 255, 255, .92);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --blur: blur(20px) saturate(165%);
}

/* A soft colour wash behind light pages */
body.p {
  background:
    radial-gradient(60vw 40vw at 100% 0%, rgba(90, 169, 255, .14), transparent 70%),
    radial-gradient(50vw 40vw at 0% 40%, rgba(47, 213, 192, .10), transparent 70%),
    radial-gradient(50vw 40vw at 70% 100%, rgba(255, 201, 131, .10), transparent 70%),
    #f4f7fc;
}
.p :focus-visible { outline: 3px solid #2fd5c0; outline-offset: 3px; border-radius: 10px; }

/* Header: a floating glass bar */
.p header#site-header {
  top: 10px; margin: 10px clamp(8px, 1.4vw, 18px) 0; border-radius: 22px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--stroke-light);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 18px 40px -26px rgba(11, 19, 38, .45), inset 0 1px 0 #fff;
}
.p .bar { height: 70px; }
.p .logo img { height: 50px; border-radius: 10px; }
.p nav { gap: 4px; }
.p nav a { border-radius: 999px; padding: 8px 14px; white-space: nowrap; transition: background .2s, color .2s; }
.p .bar .go, .p .lang { white-space: nowrap; }
.p nav a:hover { background: rgba(28, 95, 184, .08); }
.p nav a.on { color: #0b1326; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(28, 95, 184, .18), 0 6px 14px -8px rgba(11, 19, 38, .35); }
.p .lang, .p .menu-btn { border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(11, 19, 38, .08); }
.p .lang:hover { background: #fff; }
@media (max-width: 1499px) {
  .p #nav { border-radius: 22px; margin-top: 8px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
}
/* The yellow strip keeps its colour; it only gets rounded to sit under the floating bar. */
.p .offer-strip { margin: 8px clamp(8px, 1.4vw, 18px) 0; border-radius: 14px; }

/* Buttons: gradient pills */
.btn-p {
  border-radius: 999px; padding: 17px 28px; color: #06122a;
  background: var(--g-brand); background-size: 170% 100%; background-position: 0 0;
  box-shadow: 0 12px 28px -14px rgba(47, 160, 200, .75), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: background-position .5s var(--ease), transform .25s var(--ease), box-shadow .25s;
}
.btn-p:hover { background: var(--g-brand); background-size: 170% 100%; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(47, 200, 190, .85), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-p:active { transform: translateY(1px) scale(.98); }
.btn-p.dark { background: #0b1326; color: #fff; box-shadow: 0 12px 28px -16px rgba(7, 13, 31, .7); }
.btn-p.dark:hover { background: #1a2a52; }
.btn-p.light { background: rgba(255, 255, 255, .78); color: #0b1326; box-shadow: 0 0 0 1px rgba(11, 19, 38, .08), 0 10px 24px -16px rgba(11, 19, 38, .4); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-p.light:hover { background: #fff; }
.btn-p.ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-p.ghost:hover { background: rgba(255, 255, 255, .24); }
.link-p { color: #1468c8; }

/* ===== Home: the video banner ===== */
.hero-p { background: var(--night); padding: 10px; overflow: visible; }
.hero-p .banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  min-height: calc(100vw * 9 / 16); display: grid; align-content: end; background: var(--night);
  --mx: 50%; --my: 40%; --glow: 0;
}
.hero-p .banner-video {
  position: absolute; top: 0; inset-inline: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; z-index: -3;
  filter: brightness(.55) saturate(.9) contrast(1.05);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.hero-p .banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 112%, rgba(7, 13, 31, .94) 12%, rgba(7, 13, 31, 0) 62%),
    linear-gradient(180deg, rgba(7, 13, 31, .5), rgba(7, 13, 31, 0) 32%);
}
.hero-p .banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(90, 169, 255, .55), transparent 60%),
    radial-gradient(420px circle at calc(var(--mx) + 18%) calc(var(--my) + 20%), rgba(47, 213, 192, .45), transparent 60%),
    radial-gradient(380px circle at calc(var(--mx) - 20%) calc(var(--my) - 10%), rgba(155, 227, 122, .35), transparent 60%);
  opacity: var(--glow); transition: opacity .6s var(--ease);
}
.hero-p .banner .rim {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; padding: 1.5px;
  background: var(--g-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: calc(.15 + var(--glow) * .85); transition: opacity .6s var(--ease);
}
.hero-p .banner:hover, .hero-p .banner.lit { --glow: 1; }
.hero-p .banner:hover .banner-video, .hero-p .banner.lit .banner-video { filter: brightness(.95) saturate(1.35) contrast(1.08); }
.hero-p .giant {
  position: absolute; inset-inline: 0; top: clamp(40px, 7vh, 90px); z-index: 1; text-align: center; pointer-events: none; margin: 0; max-width: none;
  font-family: "Anton", "Archivo", sans-serif; font-weight: 400; text-transform: uppercase; direction: ltr;
  font-size: clamp(64px, 14.5vw, 230px); line-height: .86; letter-spacing: .01em; color: #fff;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.hero-p .giant span { background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-p .banner-hint {
  position: absolute; z-index: 3; top: 18px; inset-inline-end: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .8);
  background: rgba(12, 24, 52, .4); border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.hero-p .banner-hint svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
/* The existing hero copy and the coach video sit on the banner as glass panels. */
.hero-p .banner .grid { position: relative; z-index: 2; padding-block: calc((100vw - 20px) * 9 / 16 * .6) clamp(16px, 2.4vw, 32px); align-items: end; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.hero-p .copy {
  align-self: end; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-lg);
  background: rgba(12, 24, 52, .4); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.hero-p .mark { width: clamp(130px, 10vw, 170px); margin: 0 auto; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }
.hero-p .say { max-width: 62ch; line-height: 1.65; }
.hero-p h1 { font-size: clamp(30px, 3vw, 46px); }
.hero-p .say { color: rgba(255, 255, 255, .88); font-size: clamp(17px, 1.3vw, 19px); }
.hero-p .howto-play { color: #c9f5e9; }
.hero-p .howto-play i { border-radius: 50%; background: var(--g-brand); }
.hero-p figure.coach {
  min-height: 0; height: auto; aspect-ratio: auto; margin-inline: 0; align-self: end; border-radius: var(--r-lg); overflow: hidden; padding: 10px;
  background: rgba(12, 24, 52, .4); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.hero-p figure.coach video { position: static; display: block; width: auto; max-width: 100%; height: auto; max-height: min(62vh, 560px); margin-inline: auto; aspect-ratio: auto; object-fit: contain; border-radius: 16px; }
.hero-p figure.coach figcaption { position: static; display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px; color: rgba(255, 255, 255, .86); font-size: 15px; background: none; }
.hero-p figure.coach figcaption::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9be37a; box-shadow: 0 0 0 4px rgba(155, 227, 122, .25); }
.hero-p .stripe5 { margin: 10px clamp(8px, 1.4vw, 18px) 0; height: 8px; gap: 6px; }
.hero-p .stripe5 i { border-radius: 99px; }
.hero-p .stripe5 i:nth-child(1) { background: var(--g-sky); }
.hero-p .stripe5 i:nth-child(2) { background: var(--g-warm); }
.hero-p .stripe5 i:nth-child(3) { background: var(--g-night); }
.hero-p .stripe5 i:nth-child(4) { background: var(--g-coral); }
.hero-p .stripe5 i:nth-child(5) { background: var(--g-leaf); }

/* How-to-buy video band */
.howto-band { background: transparent; border-top: 0; }
.howto-band .frame { margin-top: clamp(24px, 3vw, 40px); padding: clamp(18px, 2.4vw, 32px); border-radius: var(--r-xl); background: var(--glass-light); border: 1px solid var(--stroke-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 30px 60px -40px rgba(11, 19, 38, .5); max-width: calc(var(--max) - 2 * var(--edge)); }
.howto-band video { border-radius: 18px; }
.howto-band .kicker { color: #138a73; }

/* ===== Programmes ===== */
.passes-sec { position: relative; isolation: isolate; overflow: hidden; margin: clamp(24px, 3vw, 40px) 10px 0; border-radius: var(--r-xl); background: var(--night); }
.passes-sec::before, .passes-sec::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.passes-sec::before { width: 640px; height: 640px; top: -220px; left: -180px; background: #2f6fff; opacity: .45; }
.passes-sec::after { width: 520px; height: 520px; bottom: -200px; right: -120px; background: #18c7a8; opacity: .3; }
.passes-sec .head .say { color: rgba(255, 255, 255, .78); }
.trackbar button {
  border-radius: 999px; color: #fff; background: var(--glass-2); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .25s var(--ease), background .2s;
}
.trackbar button:hover { background: rgba(255, 255, 255, .22); }
.trackbar button i { border-radius: 50%; }
.trackbar button b { color: #9be37a; }
.trackbar button.on { background: #fff; color: #0b1326; border-color: #fff; }
.trackbar button.on b { color: #1468c8; }
.pass {
  border-radius: var(--r-lg); overflow: hidden; padding: 0 12px 12px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .7), inset 0 1px 0 #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pass:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .8), 0 0 0 1px rgba(47, 213, 192, .5); }
.pass .band { background: var(--g-track, var(--t)); border-radius: 0 0 18px 18px; }
.pass[data-track="fitness"] { --g-track: var(--g-warm); --tc: #2a1300; }
.pass[data-track="football"] { --g-track: var(--g-leaf); --tc: #062a12; }
.pass[data-track="science"] { --g-track: var(--g-sky); --tc: #021a36; }
.pass[data-track="media"] { --g-track: var(--g-coral); --tc: #2b0508; }
.pass[data-track="lead"] { --g-track: var(--g-night); --tc: #fff; }
.pass .slot { background: rgba(255, 255, 255, .55); }
.pass .pic { border-radius: 18px; }
.pass .figs li { border-radius: 12px; background: #eef3fa; }
.pass .figs b { background: var(--g-sky); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pass .figs li.price { background: linear-gradient(135deg, #fff3e2, #ffe3d6); }
.pass .figs li.price span { color: #8a4b1f; }
.pass .figs .price b { background: var(--g-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pass .btn-p { padding: 14px 22px; font-size: 16px; }

/* Community band */
.comm-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); margin-top: clamp(24px, 3vw, 40px); background: linear-gradient(120deg, #13254a, #0f3a5f 55%, #145c55); }
.comm-band::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; top: -140px; inset-inline-start: -100px; border-radius: 50%; background: #ffc983; opacity: .25; filter: blur(80px); }
.comm-band .kicker { color: #ffc983; }
.comm-band a[style*="--yellow"] { color: #ffc983 !important; }

/* AI tutor demo */
.tutor { background: transparent; }
.tutor .ask { border-radius: var(--r-md); background: var(--glass-light); border: 1px solid var(--stroke-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .3s var(--ease), background .2s, box-shadow .3s; }
.tutor .ask:hover { background: #fff; transform: translateX(-4px); }
.tutor .ask[aria-pressed="true"] { background: #fff; color: #0b1326; box-shadow: 0 0 0 2px #2fd5c0, 0 18px 40px -24px rgba(11, 19, 38, .5); }
.chat[data-ui] { border-radius: 26px; border: 2px solid transparent; background: linear-gradient(#ffffffee, #ffffffee) padding-box, var(--g-brand) border-box; box-shadow: 0 40px 80px -44px rgba(47, 120, 200, .65); }
.msg { border-radius: 18px; }
.msg.q { background: #0b1326; border-end-start-radius: 6px; }
.msg.a { border-end-end-radius: 6px; }

/* How a unit works: five gradient tiles */
.path .band { gap: 12px; min-height: 380px; }
.path .band > div { border-radius: var(--r-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; box-shadow: 0 24px 50px -34px rgba(11, 19, 38, .6); }
.path .band > div:hover { transform: translateY(-6px); }
.path .s1 { background: var(--g-sky); }
.path .s2 { background: var(--g-warm); color: #2a1300; }
.path .s3 { background: var(--g-night); }
.path .s4 { background: var(--g-coral); color: #2b0508; }
.path .s5 { background: var(--g-leaf); }
.path .s1 img { border-radius: 16px; }

/* Certificate */
.cert { background: transparent; }
.cert figure { border-radius: var(--r-xl); background: var(--glass-light); border: 1px solid var(--stroke-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transform: rotate(-1.5deg); transition: transform .6s var(--ease); box-shadow: 0 40px 70px -44px rgba(11, 19, 38, .55); }
.cert figure:hover { transform: rotate(0) scale(1.02); }
.cert figure img { border-radius: 16px; }
.cert li { border-radius: 14px; background: var(--glass-light); border: 1px solid var(--stroke-light); }
.cert li b { color: #138a73; }

/* Fields list */
.tracks li { border-radius: 14px; padding-inline: 14px; transition: background .2s; }
.tracks li:hover { background: rgba(255, 255, 255, .7); }
.tracks li span { border-radius: 999px; background: #e7edf6; }
.tracks li.live span { background: var(--g-leaf); color: #062a12; }
.tracks figure img { border-radius: var(--r-xl); }

/* Join band */
.join { margin: 0 10px 10px; border-radius: var(--r-xl); overflow: hidden; position: relative; isolation: isolate; background: linear-gradient(120deg, #123f85, #0f5a8a 50%, #127a6a); }
.join::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; bottom: -220px; inset-inline-end: -140px; border-radius: 50%; background: #9be37a; opacity: .25; filter: blur(90px); }
.join img { border-radius: var(--r-lg); }
.join .cicon i { border-radius: 16px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .25s var(--ease), background .2s; }
.join .cicon:hover i { transform: translateY(-3px); background: rgba(255, 255, 255, .26); }

/* Footer */
.foot { background: var(--night); }
.foot .name { font-family: "Anton", "Archivo", sans-serif; font-weight: 400; letter-spacing: .005em; background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cicon i { border-radius: 16px; }

/* Shared panels on other pages pick up the same softness */
.ccard, .c-list a, .c-who li, .c-cert li, .side .box, .quiz, .units li { border-radius: var(--r-md); }
.ccard .pic, .ccard .pic img, .c-hero figure img, .course figure img, .video-box, .video-box video { border-radius: var(--r-lg); }

@media (max-width: 1000px) {
  .hero-p .banner .grid { padding-block: clamp(120px, 22vh, 220px) 14px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .hero-p .banner-hint { display: none; }
}
@media (max-width: 640px) {
  .hero-p { padding: 6px; }
  .hero-p .banner { border-radius: 24px; min-height: 0; }
  .hero-p .giant { font-size: 21vw; top: 26px; }
  .hero-p .banner .grid { padding-block: 50vw 10px; padding-inline: 10px; }
  .hero-p .copy { padding: 18px; }
  .p header#site-header { margin-inline: 6px; border-radius: 18px; }
  .path .band { gap: 10px; }
  .passes-sec, .join { margin-inline: 6px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-p .banner-video, .hero-p .banner::after, .pass, .btn-p, .path .band > div, .cert figure { transition: none; }
}

/* Header action button */
.p .bar .go { border-radius: 999px; color: #06122a; background: var(--g-brand); box-shadow: 0 10px 22px -14px rgba(47, 160, 200, .8); transition: transform .25s var(--ease); }
.p .bar .go:hover { transform: translateY(-1px); }

/* Prices on course pages: a soft warm chip instead of flat yellow */
.nums li.price, .facts .price { background: linear-gradient(135deg, #ffe7c4, #ffd2c2); border-radius: 999px; }

/* The platform's headline, right under TRAIN SMART at the top of the banner */
.hero-p .banner-head { position: absolute; inset-inline: 0; top: clamp(30px, 6vh, 80px); z-index: 1; display: grid; justify-items: center; gap: clamp(10px, 1.4vw, 20px); padding-inline: 16px; pointer-events: none; text-align: center; }
.hero-p .banner-head .giant { position: static; }
.hero-p .banner-title {
  margin: 0; max-width: 92vw; padding: clamp(10px, 1vw, 14px) clamp(18px, 2.2vw, 34px); border-radius: 999px;
  font-size: clamp(22px, 2.9vw, 46px); line-height: 1.25; font-weight: 800; color: #fff; letter-spacing: -.005em;
  background: rgba(12, 24, 52, .42); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(47, 213, 192, .25);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
@media (min-width: 1001px) {
  .hero-p .banner .grid { padding-top: max(calc((100vw - 20px) * 9 / 16 * .6), calc(clamp(30px, 6vh, 80px) + 14.5vw * .86 + 2.9vw * 1.25 + 80px)); }
}
@media (max-width: 1000px) {
  .hero-p .banner-title { max-width: 22ch; border-radius: 22px; }
  .hero-p .banner .grid { padding-top: calc(clamp(30px, 6vh, 80px) + 14.5vw * .86 * 2 + 150px); }
}
@media (max-width: 640px) {
  .hero-p .banner-head { top: 22px; gap: 10px; }
  .hero-p .banner-title { font-size: 21px; padding: 10px 16px; }
  .hero-p .banner .grid { padding-top: calc(22px + 21vw * .86 * 2 + 140px); }
}

/* Wide screens where the full menu only just fits: tighter items so the language button and «ابدأ التعلم» stay in view. */
.p .bar .logo, .p .bar .lang, .p .bar .go, .p .bar .ig-head, .p .bar .tt-head, .p .bar .menu-btn { flex-shrink: 0; }
@media (min-width: 1500px) {
  .p .bar { gap: 10px; }
  .p nav { gap: 0; font-size: 14px; min-width: 0; }
  .p nav a { padding: 8px 7px; }
}

/* Phones: the header items (logo, menu, Instagram, TikTok, language) never shrink, so they must sit closer
   together; at 28px gaps «English» stuck out of the header and made every page ~424px wide on a 375px phone. */
@media (max-width: 560px) {
  .p .bar, .bar { gap: 8px; }
  .p .bar .tt-head { margin-inline-start: 0; }
  .p .lang { padding: 6px 12px; font-size: 14px; }
}
@media (max-width: 360px) {
  .p .logo img { height: 42px; }
  .p .bar .ig-head, .p .bar .tt-head { width: 34px; height: 34px; }
  .p .lang { padding: 5px 9px; }
}
