/* عالم سلس — الموقع الرسمي */
:root {
  --gold: #9a7b3f;
  --gold-2: #b8975a;
  --gold-soft: #efe6d4;
  --brown: #5a4220;
  --ink: #2b2620;
  --muted: #6d655a;
  --cream: #faf6ee;
  --white: #ffffff;
  --line: #e6dccb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 40, 10, .08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; color: var(--brown); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 84px 0; }
.section.alt { background: var(--white); }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 600; letter-spacing: .02em; margin-bottom: 10px; font-size: .95rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600;
  border: 2px solid var(--gold); background: var(--gold); color: var(--white);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--brown); border-color: var(--brown); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: var(--white); }
.btn.light { background: var(--white); color: var(--brown); border-color: var(--white); }
.btn.light:hover { background: var(--gold-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Header */
.topbar { background: var(--brown); color: #f3e9d6; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.nav a:hover, .nav a.active { color: var(--gold); background: var(--gold-soft); }
.nav .btn { color: var(--white); padding: 9px 20px; margin-inline-start: 8px; }
.nav .btn:hover { background: var(--brown); color: var(--white); }
.dropdown { position: relative; }
.dropdown > button { font: inherit; background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.dropdown > button::after { content: " ▾"; font-size: .8em; }
.dropdown-menu { position: absolute; inset-inline-start: 0; top: 100%; min-width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 12px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 1.2rem; cursor: pointer; color: var(--brown); }

/* Hero */
.hero { position: relative; min-height: 78vh; display: grid; align-items: end; color: var(--white); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40, 28, 10, .88) 0%, rgba(40, 28, 10, .45) 55%, rgba(40, 28, 10, .15) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; padding: 120px 0 72px; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero p { font-size: 1.2rem; max-width: 680px; color: #f6eedf; }
.hero .eyebrow { color: #e7cf9c; }

.page-hero { background: linear-gradient(135deg, var(--brown), var(--gold)); color: var(--white); padding: 72px 0 56px; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #f6eedf; max-width: 760px; font-size: 1.12rem; }
.page-hero .eyebrow { color: #f3dfb3; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); padding: 6px 14px; border-radius: 999px; font-size: .95rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 3; }
.stat { background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.stat b { display: block; font-size: 2rem; color: var(--gold); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Grids & cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 26px; height: 26px; }

.program { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .2s ease; }
.program:hover { transform: translateY(-4px); }
.program .thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.program .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.program .tag { align-self: flex-start; font-size: .82rem; font-weight: 600; color: var(--gold); background: var(--gold-soft); padding: 3px 12px; border-radius: 999px; }
.program .more { margin-top: auto; color: var(--gold); font-weight: 600; padding-top: 8px; }
.program .more::after { content: " ←"; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.olympiad { border-radius: var(--radius); padding: 34px; color: var(--white); position: relative; overflow: hidden; }
.olympiad.hippo { background: linear-gradient(135deg, #0b3a5b, #136a9c); }
.olympiad.timo { background: linear-gradient(135deg, #1b2f6b, #3851a8); }
.olympiad h3 { color: var(--white); font-size: 1.6rem; }
.olympiad p { color: #e3ecf6; }
.olympiad .price { font-size: 2.4rem; font-weight: 700; color: #ffd98a; line-height: 1; margin: 10px 0; }
.olympiad .price small { font-size: 1rem; color: #e3ecf6; font-weight: 500; }
.olympiad ul { margin: 0 0 18px; padding-inline-start: 20px; color: #e3ecf6; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-inline-start: 30px; }
.list-check li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7b3f' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cols-2 { columns: 2; column-gap: 32px; }
.cols-2 li { break-inside: avoid; margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.timeline .step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.timeline .step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--white); font-weight: 700; margin-bottom: 10px; }
.timeline .step b { display: block; color: var(--brown); }
.timeline .step span { color: var(--muted); font-size: .95rem; }

table.info { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.info th, table.info td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); }
table.info th { background: var(--gold-soft); color: var(--brown); font-weight: 600; }
table.info tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.cta { background: linear-gradient(135deg, var(--brown), var(--gold)); color: var(--white); border-radius: 26px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin: 0 0 6px; }
.cta p { color: #f6eedf; margin: 0; }

.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.partners span { background: var(--cream); border: 1px solid var(--line); padding: 8px 16px; border-radius: 12px; font-size: .95rem; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; }

.quote { font-size: 1.15rem; border-inline-start: 4px solid var(--gold); padding-inline-start: 20px; color: var(--brown); }

/* Contact */
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.contact-item .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.contact-item small { display: block; color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* Footer */
.site-footer { background: #231a0c; color: #d9cdb6; padding: 64px 0 24px; margin-top: 0; }
.site-footer h4 { color: var(--white); margin: 0 0 14px; font-size: 1.05rem; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { height: 56px; margin-bottom: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials a:hover { background: var(--gold); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .9rem; }

.footer-center { text-align: center; max-width: 640px; margin-inline: auto; }
.footer-center img { height: 64px; width: auto; margin: 0 auto 16px; }
.footer-center p { color: #cbbd9f; }
.footer-center .socials { justify-content: center; margin: 20px 0; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .95rem; }
.footer-contact a { color: #e8dcc2; }
.footer-bottom { justify-content: center; text-align: center; gap: 6px 24px; color: #a8997c; }

/* Destinations & countries with flags */
.flags { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
.flag-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px 18px; text-align: center; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.flag-card:hover { transform: translateY(-4px); border-color: var(--gold-2); }
.flag-card img { width: 64px; height: 43px; object-fit: cover; border-radius: 8px; margin: 0 auto 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.flag-card b { color: var(--brown); font-weight: 600; }
.flag-card.new { border-color: var(--gold); }
.flag-card .note { display: block; font-size: .8rem; color: var(--gold); margin-top: 2px; }
.country-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.country-chips span { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; font-weight: 500; }
.country-chips img { width: 26px; height: 18px; object-fit: cover; border-radius: 4px; }

/* Partner logos */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
.logos div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; height: 120px; display: grid; place-items: center; padding: 14px; }
.logos img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(.15); }

.whatsapp-float { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4, .stats, .gallery { grid-template-columns: repeat(2, 1fr); }
  .flags, .logos { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 12px; }
  .dropdown > button { display: none; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flags, .logos { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .stat { padding: 16px 10px; }
  .stat b { font-size: 1.6rem; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cols-2 { columns: 1; }
  .cta { padding: 32px 22px; }
  .hero { min-height: 70vh; }
  .brand img { height: 44px; }
  .topbar .hide-sm { display: none; }
}
