@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url(/admin/cairo-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url(/admin/cairo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
:root { --bg: #0b1016; --panel: #111821; --panel-2: #17202b; --line: #233040; --fg: #e7edf3; --muted: #9aa9b9; --accent: #ffb020; --accent-ink: #2a1800; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 500 16px/1.7 "Cairo", "Segoe UI", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, p, ol { margin: 0; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; }
.brand img { border-radius: 9px; }
.brand i { font-style: normal; color: var(--accent); }
.login { white-space: nowrap; padding: 7px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 700; }
.login:hover { border-color: #38495d; }
.nav { display: flex; align-items: center; gap: 8px; }
.lang { padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); }
.lang:hover { color: var(--accent); }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 40px 0 56px; }
h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.25; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.pitch > p:first-of-type { margin-top: 16px; color: var(--muted); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); font-weight: 800; }
.btn:hover { border-color: #38495d; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ffc14f; }
.btn.try { background: rgba(52, 210, 123, .14); border-color: rgba(52, 210, 123, .6); color: #7ff0ae; }
.btn.try:hover { background: rgba(52, 210, 123, .22); border-color: #34d27b; }
.trynote { margin: 10px 0 0; font-size: 13.5px; color: var(--muted, #8b9aab); }
.btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.meta { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: start; }
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 28px 70px rgba(0, 0, 0, .5); }

.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-bottom: 48px; }
.features div { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.features h2 { font-size: 16.5px; font-weight: 800; }
.features p { margin-top: 5px; color: var(--muted); font-size: 14.5px; }

.howto { max-width: 680px; padding-bottom: 48px; }
.howto h2 { font-size: 22px; font-weight: 800; }
.howto ol { margin-top: 12px; padding-inline-start: 22px; }
.note { margin-top: 16px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14.5px; }
.note a { color: var(--accent); font-weight: 800; }
.contact { padding-bottom: 48px; }
.contact h2 { font-size: 22px; font-weight: 800; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.note-plain { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: start; overflow-wrap: anywhere; }
.note-plain a:hover { color: var(--fg); text-decoration: underline; }
@media (max-width: 480px) { .links .btn { width: 100%; } }
footer { padding: 18px 16px 26px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}
html[dir=rtl] .meta, html[dir=rtl] .note-plain { text-align: right; }

/* ---- learning pages ---- */
.lang.on { color: var(--accent); }
.learn main { max-width: 860px; }
.crumb { padding-top: 6px; color: var(--muted); font-size: 14px; }
.crumb a:hover { color: var(--accent); }
.lhead { padding: 26px 0 22px; }
.learn h1 { font-size: clamp(27px, 4.2vw, 40px); }
.lead { margin-top: 12px; color: var(--muted); font-size: 17.5px; }
.kicker { margin-top: 18px; color: var(--accent); font-size: 14px; font-weight: 800; }
.lgrid { display: grid; gap: 10px; padding-bottom: 26px; }
.lcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.lcard:hover { border-color: var(--accent); }
.lcard > b { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-size: 17px; font-weight: 800; color: var(--accent); }
.lcard span { flex: 1; min-width: 0; }
.lcard strong { display: block; font-size: 17px; font-weight: 800; }
.lcard em { display: block; font-style: normal; color: var(--muted); font-size: 14.5px; }
.lcard i { flex: none; font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; }
.lesson h2 { margin-top: 30px; font-size: 21px; font-weight: 800; }
.lesson p { margin-top: 10px; }
.lesson .lead { margin-top: 12px; }
.lesson .dim { color: var(--muted); font-size: 14.5px; }
.lesson ul, .lesson ol { margin: 12px 0 0; padding-inline-start: 24px; }
.lesson li { margin-top: 6px; }
.ticks { list-style: none; padding-inline-start: 0 !important; }
.ticks li { padding-inline-start: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 4px; color: #34d27b; font-weight: 800; }
.warn li::marker { color: #ff7a6b; }
.steps li { padding-inline-start: 4px; }
.steps li::marker { color: var(--accent); font-weight: 800; }
figure { margin: 22px 0 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
figure.sheet img { max-width: 620px; margin-inline: auto; background: #fff; }
figcaption { margin-top: 7px; color: var(--muted); font-size: 13.5px; text-align: center; }
.cta { margin: 30px 0; padding: 20px; background: var(--panel); border: 1px solid rgba(52, 210, 123, .35); border-radius: 14px; text-align: center; }
.cta.top { margin: 20px 0 0; }
.cta p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.pager { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 44px; }
.pager .btn { flex-direction: column; align-items: flex-start; gap: 0; min-height: 0; padding: 10px 16px; max-width: 48%; font-size: 14.5px; }
.pager small { color: var(--muted); font-size: 12px; font-weight: 700; }
.learnbox { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 48px; padding: 22px; background: var(--panel); border: 1px solid rgba(255, 176, 32, .4); border-radius: 14px; }
.learnbox h2 { font-size: 22px; font-weight: 800; }
.learnbox p { margin-top: 4px; color: var(--muted); }
@media (max-width: 480px) { .cta .btn, .learnbox .btn { width: 100%; } .pager .btn { max-width: none; flex: 1; } }

/* ---- video courses ---- */
.courses { padding: 8px 0 26px; }
.courses h2 { font-size: 23px; font-weight: 800; }
.courses .dim { margin-top: 4px; color: var(--muted); font-size: 15px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.ccard { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.ccard:hover { border-color: var(--accent); }
.ccard .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #18304a, #0d1620); }
.ccard .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccard .thumb i { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 21px; color: #fff; background: rgba(10, 14, 20, .72); border: 2px solid rgba(255, 255, 255, .85); }
.ccard .thumb.own img.contain { object-fit: contain; padding: 12px; }
.ccard .thumb.none i { color: var(--accent); border-color: var(--accent); background: transparent; font-size: 24px; }
.ccard .cb { display: grid; gap: 4px; padding: 12px 14px 14px; }
.ccard strong { font-size: 16.5px; font-weight: 800; line-height: 1.4; }
.ccard em { font-style: normal; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard small { color: var(--accent); font-size: 12.5px; font-weight: 800; }
.course .video { position: relative; margin-top: 22px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.course .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course .yt { margin-top: 8px; font-size: 14px; font-weight: 700; }
.course .yt a { color: var(--muted); }
.course .yt a:hover { color: var(--accent); }

/* /learn/ shows only the courses */
.courses { padding-top: 26px; }
.courses h1 { font-size: clamp(27px, 4.2vw, 40px); }
.courses .soon { margin: 22px 0 40px; padding: 22px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 14px; font-size: 16px; }

/* ---- lectures ---- */
.learn main:has(.lecpage) { max-width: 1180px; }
.lecpage { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .lecpage { grid-template-columns: minmax(0, 1fr) 320px; } .lecpage .side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; } }
.side { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 30px; }
.side h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.side h3 a:hover { color: var(--accent); }
.lecs { list-style: none; margin: 12px 0 0; padding: 0 !important; display: grid; gap: 8px; }
.lecs li { margin: 0; padding: 0 !important; }
.lecs a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.side .lecs a { grid-template-columns: 84px 1fr; background: var(--bg); padding: 6px; gap: 10px; }
.lecs a:hover, .lecs li.on a { border-color: var(--accent); }
.lecs .lt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #18304a, #0d1620); }
.lecs .lt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lecs .lt b { position: absolute; inset-inline-start: 5px; bottom: 5px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; background: rgba(10, 14, 20, .86); color: #fff; font-size: 12.5px; font-weight: 800; }
.lecs .lt.none b { inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; color: var(--accent); background: transparent; border: 2px solid var(--accent); font-size: 15px; }
.lecs .li { display: grid; gap: 1px; min-width: 0; }
.lecs small { color: var(--accent); font-size: 12px; font-weight: 800; }
.lecs strong { font-size: 15.5px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.side .lecs strong { font-size: 13.5px; }
.lecs em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.course .soon { margin: 14px 0 30px; padding: 18px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 14px; }
.files { margin-top: 24px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.files h3 { font-size: 16px; font-weight: 800; }
.files ul { list-style: none; margin: 10px 0 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 8px 10px !important; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.files .pdf { flex: none; padding: 2px 6px; border-radius: 5px; background: #c62828; color: #fff; font-size: 11px; font-weight: 800; }
.files .fn { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.files .fs { flex: none; color: var(--muted); font-size: 13px; }
.files p { margin-top: 10px !important; color: var(--muted); font-size: 14px; }
.files p a { color: var(--accent); font-weight: 700; }
.course .pager { margin-top: 26px; }
@media (max-width: 640px) { .course .cta { display: block; } .course .cta .btn { width: 100%; justify-content: center; } .course .cta p { margin-top: 10px; } }
@media (max-width: 480px) { .lecs a { grid-template-columns: 92px 1fr; } }

@media (max-width: 440px) {
  .top { gap: 8px; padding: 14px 12px; }
  .nav { gap: 2px; }
  .lang { padding: 6px 7px; font-size: 13px; }
  .login { padding: 6px 10px; font-size: 13px; }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .nav .opt { display: none; } /* the pricing link: the page has its own button for it */
}

/* ---- the privacy policy ---- */
.legal { max-width: 760px; padding-bottom: 40px; }
.legal h2 { margin: 26px 0 8px; font-size: 20px; font-weight: 800; }
.legal p, .legal li { color: #c9d4df; }
.legal ul { margin: 0; padding-inline-start: 22px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--accent); font-weight: 700; }
footer a:hover { color: var(--fg); }
