:root {
  --red: #e10600;
  --red-dark: #b80500;
  --ink: #111;
  --text: #333;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --grey: #f6f5f3;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: "Poppins", system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; transition: .25s; cursor: pointer; white-space: nowrap; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225, 6, 0, .25); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ico { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, .08); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand b { color: var(--red); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--grey); border: 1px solid var(--line); }
.lang button { border: 0; background: none; font: 600 .78rem "Poppins", sans-serif; padding: 5px 9px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: .2s; }
.lang button:hover { color: var(--ink); }
.lang button.active { background: var(--red); color: #fff; }
.menu { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.menu a:not(.btn) { padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--text); transition: .2s; }
.menu a:not(.btn):hover, .menu a.active { color: var(--red); background: #fff0ef; }
.menu-apply { display: none; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; width: 24px; margin-inline: auto; background: var(--ink); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 120px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #faf8f6 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--red); top: 60px; right: 8%; opacity: .12; }
.mountains { position: absolute; bottom: 0; width: 100%; height: 200px; opacity: .45; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff0ef; color: var(--red); font-weight: 600; font-size: .85rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-size: 1.6rem; color: var(--ink); font-weight: 800; }
.hero-trust span { font-size: .85rem; color: var(--muted); }
.hero-logo img { width: 100%; max-width: 440px; margin-inline: auto; border-radius: 50%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .12)); }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- Stats ---------- */
.stats { margin-top: -60px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-ico { width: 30px; height: 30px; color: var(--red); margin-bottom: 4px; }
.stat b { font-size: 2.2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat > span { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-grey { background: var(--grey); }
.section-dark { background: var(--ink); color: #ccc; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head p { color: var(--muted); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 10px; }
.eyebrow-light { color: #ff6b66; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid p { margin-bottom: 16px; color: var(--muted); }
.about-grid .btn { margin-top: 8px; }
.why { list-style: none; display: grid; gap: 16px; }
.why li { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); transition: .25s; }
.why li:hover { border-color: var(--red); transform: translateX(6px); }
.why-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; }
.why p { margin: 0; font-size: .9rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); transition: .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-ico { width: 56px; height: 56px; border-radius: 16px; background: #fff0ef; color: var(--red); display: grid; place-items: center; margin-bottom: 18px; transition: .3s; }
.card-ico svg { width: 28px; height: 28px; }
.card:hover .card-ico { background: var(--red); color: #fff; transform: rotate(-6deg); }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--muted); }

/* Scholarships */
.sch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sch-type { padding: 34px 28px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; transition: .3s; }
.sch-type:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sch-type h3 { font-size: 1.3rem; margin-bottom: 8px; }
.sch-type p { color: var(--muted); margin-bottom: 20px; }
.sch-cover { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff0ef; color: var(--red); font-weight: 700; font-size: .85rem; }
.sch-featured { background: var(--red); border-color: var(--red); box-shadow: 0 20px 40px rgba(225, 6, 0, .25); }
.sch-featured h3, .sch-featured p { color: #fff; }
.sch-featured .card-ico, .sch-featured .sch-cover { background: rgba(255, 255, 255, .2); color: #fff; }

.free-head { margin: 80px auto 10px; }
.free-head h3 { font-size: 1.6rem; margin-bottom: 6px; }
.step .free { color: #138a3e; font-weight: 700; }
.step .pay { color: var(--red); font-weight: 700; }
.step-pay span { background: var(--red); color: #fff; }
.center { text-align: center; margin-top: 40px; }
.stars { color: #f5b301; letter-spacing: 2px; }

.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 16px); }
.step { text-align: center; position: relative; }
.step span { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); font-weight: 800; display: grid; place-items: center; margin: 0 auto 10px; font-size: 1.1rem; transition: .3s; }
.step:hover span { background: var(--red); color: #fff; }
.step b { display: block; color: var(--ink); }
.step p { font-size: .82rem; color: var(--muted); }

/* Video */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.video-grid p { margin-bottom: 26px; }
.video-frame { border-radius: var(--radius); overflow: hidden; background: #fff; height: 640px; max-width: 380px; margin-inline: auto; width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* Documents */
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--grey); transition: .25s; }
.doc:hover { background: #fff0ef; }
.doc svg { flex: none; width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.doc b { color: var(--ink); font-size: .95rem; }
.doc p { font-size: .82rem; color: var(--muted); }
.note { text-align: center; margin-top: 30px; color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.faq details[open] { border-color: var(--red); }
.faq summary { padding: 20px 56px 20px 24px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff0ef; color: var(--red); display: grid; place-items: center; font-size: 1.2rem; transition: .25s; }
.faq details[open] summary::after { content: "−"; background: var(--red); color: #fff; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* CTA */
.cta { background: var(--red); background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .15) 0 120px, transparent 121px); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 32px 16px; border-radius: var(--radius); border: 1px solid var(--line); transition: .3s; word-break: break-word; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card b { color: var(--ink); }
.contact-card > span:last-child { color: var(--muted); font-size: .9rem; }
.c-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.c-ico svg { width: 28px; height: 28px; }
.c-ico.wa { background: #25d366; }
.c-ico.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }

/* Footer */
.footer { background: var(--ink); color: #aaa; padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; }
.footer-logo { width: 90px; margin-bottom: 16px; border-radius: 50%; background: #fff; }
.footer p { margin-bottom: 10px; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .92rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: #222; display: grid; place-items: center; color: #fff; transition: .25s; }
.socials a:hover { background: var(--red); }
.socials svg { width: 20px; height: 20px; }
.copyright { border-top: 1px solid #262626; margin-top: 50px; padding-top: 20px; font-size: .82rem; text-align: center; }

/* Floating buttons */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transition: .25s; }
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 28px; height: 28px; }
.float-btn.wa { background: #25d366; animation: pulse 2.5s infinite; }
.float-btn.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.2rem; opacity: 0; pointer-events: none; transition: .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Arabic (right-to-left) */
[dir="rtl"] body { font-family: "Cairo", "Poppins", system-ui, sans-serif; }
[dir="rtl"] .eyebrow, [dir="rtl"] .sch-tag { letter-spacing: 0; }
[dir="rtl"] .why li:hover { transform: translateX(-6px); }
[dir="rtl"] .faq summary { padding: 20px 24px 20px 56px; }
[dir="rtl"] .faq summary::after { right: auto; left: 22px; }
[dir="rtl"] .brand, [dir="rtl"] .lang { direction: ltr; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo img, .float-btn.wa { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .menu a:not(.btn) { padding: 8px 8px; font-size: .88rem; }
}
@media (max-width: 980px) {
  .burger { display: flex; margin-inline-start: auto; }
  .nav-apply { display: none; }
  .menu { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 24px; gap: 2px; box-shadow: 0 20px 30px rgba(0, 0, 0, .1); transform: translateY(-120%); transition: transform .35s ease; z-index: -1; }
  .menu.open { transform: none; }
  .menu a:not(.btn) { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
  .menu-apply { display: flex; justify-content: center; margin-top: 10px; }
  .hero-grid, .about-grid, .video-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 260px; }
  .services-grid, .docs-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .sch-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .services-grid, .docs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-card { padding: 22px 10px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { text-align: center; justify-content: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
