/* Homepage «التنفيذي العالمي» (Phase 3): pages/home_alx.blade.php. Reference: alfac-handoff/design/home.html.
   Colours from alfac-handoff/design/tokens.css. Text contrast ≥ 4.5:1, touch targets ≥ 44px, RTL. */
.alx-home {
  --navy: #1B1A4A; --brand: #292866; --navy-500: #4B4A8A; --gold: #C9A86A; --gold-h: #D8BA80;
  --ink: #1C1B3F; --ink2: #2C2B4F; --muted: #5E6080; --on-navy: #fff; --on-navy2: #D9DAF0;
  --surface2: #F6F6FA; --chip: #EEEEF7; --border: #E6E7EF;
  font-family: 'Noto Kufi Arabic', system-ui, sans-serif; color: var(--ink); direction: rtl; text-align: right;
}
.alx-home *, .alx-home *::before, .alx-home *::after { box-sizing: border-box; }
.alx-home a { text-underline-offset: 4px; }
.alx-home a:focus-visible, .alx-home button:focus-visible, .alx-home select:focus-visible, .alx-home summary:focus-visible, .alx-home [tabindex]:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px;
}
.alx-wrap { max-width: 1328px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 575.98px) { .alx-wrap { padding-inline: 16px; } }
.alx-home__flash { margin-top: 16px; padding: 12px 16px; border-radius: 6px; background: #E6F4EA; color: #14532D; }

/* Buttons */
.alx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 6px; font: 700 15px/1.4 'Noto Kufi Arabic', system-ui, sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.alx-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.alx-btn--primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.alx-btn--ghost { background: #fff; border-color: #CFD0E2; color: var(--brand); }
.alx-btn--ghost:hover { border-color: var(--brand); color: var(--navy); }
.alx-btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.alx-btn--gold:hover { background: var(--gold-h); border-color: var(--gold-h); color: var(--navy); }
.alx-btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.alx-btn--outline-light:hover { border-color: #fff; color: #fff; }
.alx-level .alx-btn:focus-visible, .alx-final .alx-btn:focus-visible { outline-color: var(--gold); }

/* Shared section heads */
.alx-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--brand); }
.alx-kicker::before { content: ''; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); }
.alx-kicker--on-navy { color: var(--on-navy2); }
.alx-section { padding-block: 72px; }
.alx-section__head { margin-bottom: 32px; }
.alx-section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.alx-section__title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.5; color: var(--navy); }
.alx-link-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.alx-link-all:hover { color: var(--navy); text-decoration: underline; }
@media (max-width: 767.98px) {
  .alx-section { padding-block: 48px; }
  .alx-section__title { font-size: 23px; }
}

/* 1. Hero */
.alx-hero-home { background: var(--surface2); border-bottom: 1px solid #ECEDF3; }
.alx-hero-home__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 56px 64px; }
.alx-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink2); }
.alx-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.alx-hero-home__title { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--navy); }
.alx-hero-home__title span:first-child { font-size: 20px; font-weight: 700; color: var(--brand); }
.alx-hero-home__title span:last-child { font-size: 38px; font-weight: 800; line-height: 1.55; }
.alx-hero-home__lead { margin: 16px 0 0; max-width: 620px; font-size: 16px; line-height: 2; color: var(--muted); }
.alx-hero-home__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.alx-finder { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 28px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(27, 26, 74, .06); }
.alx-finder__field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.alx-finder__field span { font-size: 13px; font-weight: 700; color: var(--ink2); }
.alx-finder select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #CFD0E2; border-radius: 6px; background: #fff; color: var(--ink); font: 500 14px 'Noto Kufi Arabic', system-ui, sans-serif; }
.alx-hero-home__visual { position: relative; min-width: 0; }
.alx-hero-home__panel {
  display: flex; align-items: flex-end; aspect-ratio: 5 / 4; padding: 28px; border-radius: 12px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--navy) 70%);
}
.alx-hero-home__mark { position: relative; padding-top: 14px; font-size: 22px; font-weight: 800; color: #fff; }
.alx-hero-home__mark::before { content: ''; position: absolute; top: 0; right: 0; width: 44px; height: 3px; background: var(--gold); }
.alx-hero-home__chip {
  position: absolute; display: flex; flex-direction: column; gap: 2px; max-width: 260px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(27, 26, 74, .14); text-decoration: none;
}
.alx-hero-home__chip strong { font-size: 14px; font-weight: 800; color: var(--navy); }
.alx-hero-home__chip span { font-size: 13px; color: var(--muted); }
.alx-hero-home__chip--pay { top: 24px; left: -16px; }
.alx-hero-home__chip--offer { bottom: 24px; left: 24px; min-height: 44px; }
.alx-hero-home__chip--offer:hover strong { text-decoration: underline; }
@media (max-width: 1023.98px) {
  .alx-hero-home__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 48px; }
  .alx-hero-home__panel { aspect-ratio: auto; min-height: 220px; }
  .alx-hero-home__chip--pay { left: 16px; top: 16px; }
  .alx-hero-home__chip--offer { left: 16px; bottom: 16px; }
}
@media (max-width: 767.98px) {
  .alx-hero-home__title span:first-child { font-size: 17px; }
  .alx-hero-home__title span:last-child { font-size: 26px; }
  .alx-hero-home__lead { font-size: 15px; }
  .alx-hero-home__ctas .alx-btn { flex: 1 1 100%; }
  .alx-finder { grid-template-columns: 1fr; }
  .alx-hero-home__panel { min-height: 0; padding: 16px; }
  .alx-hero-home__mark { display: none; }
  .alx-hero-home__chip { position: static; max-width: none; box-shadow: none; }
  .alx-hero-home__visual { display: flex; flex-direction: column; gap: 10px; }
  .alx-hero-home__panel { display: none; }
}

/* Offers strip (proposal: replaces the old hero slider) */
.alx-offers-strip { background: var(--navy); color: #fff; }
.alx-offers-strip__in { display: flex; align-items: center; gap: 16px; min-height: 56px; padding-block: 6px; }
.alx-offers-strip__label { flex: none; padding: 2px 12px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 800; }
.alx-offers-strip__list { display: flex; gap: 6px 20px; flex-wrap: wrap; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.alx-offers-strip__list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--on-navy2); text-decoration: none; }
.alx-offers-strip__list a:hover { color: #fff; text-decoration: underline; }
.alx-offers-strip__all { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 44px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; }
.alx-offers-strip__all:hover { color: var(--gold-h); }
.alx-offers-strip a:focus-visible { outline-color: var(--gold); }
@media (max-width: 1023.98px) {
  .alx-offers-strip__list { display: none; }
  .alx-offers-strip__in { justify-content: space-between; }
}

/* 2. Partners */
.alx-partners { border-bottom: 1px solid #ECEDF3; }
.alx-partners__in { display: flex; align-items: center; gap: 32px; padding-block: 28px; }
.alx-partners__head { flex: none; max-width: 240px; }
.alx-partners__head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); }
.alx-partners__head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.alx-partners__list { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.alx-partners__list li { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.alx-partners__list img { width: auto; max-width: 100%; height: 52px; object-fit: contain; }
@media (max-width: 1023.98px) {
  .alx-partners__in { flex-direction: column; align-items: stretch; gap: 16px; }
  .alx-partners__head { max-width: none; text-align: center; }
  .alx-partners__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
  .alx-partners__list img { height: 44px; }
}

/* 3. Goals */
.alx-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.alx-goal {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.alx-goal:hover { border-color: var(--brand); box-shadow: 0 10px 28px rgba(27, 26, 74, .08); color: var(--ink); }
.alx-goal__num { font-size: 13px; font-weight: 800; color: var(--brand); }
.alx-goal__num::after { content: ''; display: block; width: 28px; height: 3px; margin-top: 6px; background: var(--gold); }
.alx-goal__title { font-size: 19px; font-weight: 800; color: var(--navy); }
.alx-goal__text { flex: 1; font-size: 14px; line-height: 1.9; color: var(--muted); }
.alx-goal__more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--brand); }
.alx-goal:hover .alx-goal__more { text-decoration: underline; }
@media (max-width: 1023.98px) { .alx-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .alx-goals { grid-template-columns: 1fr; gap: 12px; } .alx-goal { padding: 18px; } }

/* 4. Courses + tabs */
.alx-courses { padding-block: 72px; background: var(--surface2); border-block: 1px solid #ECEDF3; }
.alx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.alx-tab {
  min-height: 44px; padding: 8px 18px; border: 1px solid #DCDDEA; border-radius: 999px; background: #fff; color: var(--ink2);
  font: 600 14px/1.4 'Noto Kufi Arabic', system-ui, sans-serif; cursor: pointer; white-space: nowrap;
}
.alx-tab:hover { border-color: var(--brand); color: var(--brand); }
.alx-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.alx-panel[hidden] { display: none; }
.alx-panel:focus-visible { outline-offset: 8px; }
.alx-panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.alx-panel__sub { margin: 6px 0 0; font-size: 15px; line-height: 1.9; color: var(--muted); }
.alx-panel__sub a { color: var(--brand); font-weight: 700; text-decoration: underline; }
.alx-panel__sub a:hover { color: var(--navy); }
.alx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1279.98px) { .alx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023.98px) {
  .alx-courses { padding-block: 48px; }
  .alx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  /* phones: tabs and cards scroll sideways inside their own row (the page itself never scrolls sideways) */
  .alx-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .alx-tabs::-webkit-scrollbar { display: none; }
  .alx-panel__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .alx-cards {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(270px, 84%); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px;
  }
  .alx-cards > .alx-card { scroll-snap-align: start; }
}

/* 5. Level test */
.alx-level { background: var(--brand); color: #fff; }
.alx-level__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 64px; }
.alx-level .alx-section__title { color: #fff; }
.alx-level__text p:not(.alx-kicker) { margin: 12px 0 24px; font-size: 16px; line-height: 2; color: var(--on-navy2); }
.alx-level__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.alx-level__facts li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--navy-500); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.alx-level__facts strong { font-size: 26px; font-weight: 800; color: #fff; }
.alx-level__facts span { font-size: 14px; color: var(--on-navy2); }
@media (max-width: 1023.98px) { .alx-level__in { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; } }
@media (max-width: 575.98px) { .alx-level__facts li { padding: 14px; } .alx-level__facts strong { font-size: 21px; } }

/* 6. Why */
.alx-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.alx-why li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-top: 3px solid var(--gold); background: var(--surface2); border-radius: 0 0 12px 12px; }
.alx-why strong { font-size: 17px; font-weight: 800; color: var(--navy); }
.alx-why span { font-size: 14px; line-height: 1.9; color: var(--muted); }
@media (max-width: 1023.98px) { .alx-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .alx-why { grid-template-columns: 1fr; gap: 12px; } }

/* 7. Corporate */
.alx-corp { background: var(--surface2); border-block: 1px solid #ECEDF3; }
.alx-corp__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 72px; }
.alx-corp__visual {
  display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 28px; border-radius: 12px;
  background: linear-gradient(200deg, var(--brand) 0%, var(--navy) 75%);
}
.alx-corp__visual span { position: relative; padding-top: 14px; font-size: 20px; font-weight: 800; color: #fff; }
.alx-corp__visual span::before { content: ''; position: absolute; top: 0; right: 0; width: 44px; height: 3px; background: var(--gold); }
.alx-corp__lead { margin: 12px 0 16px; font-size: 16px; line-height: 2; color: var(--ink2); }
.alx-corp__list { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; }
.alx-corp__list li { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); }
.alx-corp__list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.alx-corp__list a { color: var(--brand); text-decoration: underline; }
.alx-corp__more { margin: 0 0 20px; }
.alx-corp__more a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--brand); }
.alx-corp__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1023.98px) {
  .alx-corp__in { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .alx-corp__visual { display: none; }
}

/* 8. Branches */
.alx-branches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.alx-branch {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--ink); text-decoration: none;
}
.alx-branch:hover { border-color: var(--brand); color: var(--ink); }
.alx-branch:hover strong { text-decoration: underline; }
.alx-branch__tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 700; color: var(--ink2); }
.alx-branch strong { margin-top: 6px; font-size: 17px; font-weight: 800; color: var(--navy); }
.alx-branch > span:last-child { font-size: 13px; color: var(--muted); }
@media (max-width: 1023.98px) { .alx-branches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .alx-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .alx-branch { padding: 14px; } }

/* 9. FAQ */
.alx-faq-wrap { background: var(--surface2); border-top: 1px solid #ECEDF3; }
.alx-faq { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); gap: 48px; padding-block: 72px; }
.alx-faq__list { display: flex; flex-direction: column; gap: 10px; }
.alx-faq__item { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.alx-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 20px;
  font-size: 16px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none;
}
.alx-faq__item summary::-webkit-details-marker { display: none; }
.alx-faq__item summary::after { content: '+'; flex: none; font-size: 22px; font-weight: 400; color: var(--brand); }
.alx-faq__item[open] summary::after { content: '−'; }
.alx-faq__item p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 2; color: var(--ink2); }
@media (max-width: 1023.98px) { .alx-faq { grid-template-columns: 1fr; gap: 20px; padding-block: 48px; } }

/* 10. Final CTA */
.alx-final { background: var(--navy); color: #fff; }
.alx-final__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 48px; }
.alx-final__title { margin: 0; font-size: 26px; font-weight: 800; color: #fff; }
.alx-final p { margin: 6px 0 0; font-size: 15px; color: var(--on-navy2); }
.alx-final__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575.98px) { .alx-final__ctas, .alx-final__ctas .alx-btn { flex: 1 1 100%; } .alx-final__title { font-size: 22px; } }
