/* ═══════════════════════════════════════════
   مدارس الأفق — School Website Design System
   ═══════════════════════════════════════════ */

:root {
  --ink: #06251f;
  --ink-soft: #0d3d34;
  --teal: #1a6b5c;
  --teal-bright: #248a76;
  --mint: #d8efe8;
  --sand: #f3f0e8;
  --paper: #f7f5f0;
  --gold: #b8860b;
  --gold-soft: #d4a84b;
  --cream: #fffdf8;
  --line: rgba(6, 37, 31, 0.12);
  --muted: #5a6e68;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 37, 31, 0.12);
  --radius: 4px;
  --font-display: "Reem Kufi", "Cairo", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  --container: min(1180px, calc(100% - 2.5rem));
  --header-h: 132px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html[dir="rtl"] {
  direction: rtl;
}

html[dir="ltr"] {
  direction: ltr;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  text-align: start;
}

input[type="tel"],
input[type="email"],
input[type="url"],
input[type="number"],
input[dir="ltr"],
textarea[dir="ltr"] {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: start;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── Atmosphere ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(36, 138, 118, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(184, 134, 11, 0.08), transparent 50%),
    linear-gradient(180deg, #eef6f3 0%, var(--paper) 40%, #ebe7dc 100%);
}

html[dir="ltr"] .page-bg {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(36, 138, 118, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184, 134, 11, 0.08), transparent 50%),
    linear-gradient(180deg, #eef6f3 0%, var(--paper) 40%, #ebe7dc 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306251f' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Header (two rows: brand/actions + full menu) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  height: auto;
  display: block;
  background: #fffdf8;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(6, 37, 31, 0.08);
  background: #fffdf8;
}

.header-shell {
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--container);
  margin-inline: auto;
  padding: 0.85rem 0 0.75rem;
}

.header-top-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-nav-row {
  border-top: 1px solid var(--line);
  background: #f3f0e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.alufuq-nav {
  width: var(--container);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ink-soft), var(--teal));
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(212, 168, 75, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: start;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28ch;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  padding: 0.45rem 0 0.55rem;
  margin: 0;
}

.nav-list > li {
  flex: 0 0 auto;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 11px 13px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-soft);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0.12rem;
  inset-inline: 0.65rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--ink);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions .afu-btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  gap: 2px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.55rem;
  border-radius: 2px;
  cursor: pointer;
  min-width: 40px;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button.is-active {
  background: var(--ink-soft);
  color: var(--cream);
}

html[dir="ltr"] body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
}

.afu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.afu-btn:hover {
  transform: translateY(-2px);
}

.afu-btn-primary {
  background: linear-gradient(135deg, var(--ink-soft), var(--teal));
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(26, 107, 92, 0.3);
}

.afu-btn-primary:hover {
  box-shadow: 0 12px 28px rgba(26, 107, 92, 0.4);
}

.afu-btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.28);
}

.afu-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(6, 37, 31, 0.25);
}

.afu-btn-outline:hover {
  border-color: var(--teal);
  background: rgba(26, 107, 92, 0.06);
}

.afu-btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cream);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.afu-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: 0.25s;
}

/* ── Hero ── */
.hero,
.alufuq-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  max-height: 920px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #06251f;
}

.alufuq-hero .bs-slider,
.alufuq-hero .hero-carousel,
.alufuq-hero .carousel,
.alufuq-hero #bootstrap-touch-slider {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 100% !important;
  overflow: hidden !important;
  background: transparent !important;
}

.alufuq-hero .carousel-inner,
.alufuq-hero .hero-media,
.alufuq-hero .item,
.alufuq-hero .item.active {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 100% !important;
  margin: 0 !important;
}

.alufuq-hero .item img,
.alufuq-hero .item > a > img,
.hero-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

.hero-media::after,
.alufuq-hero .carousel-inner::after,
.alufuq-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to left, rgba(6, 37, 31, 0.88) 0%, rgba(6, 37, 31, 0.55) 55%, rgba(6, 37, 31, 0.28) 100%),
    linear-gradient(0deg, rgba(6, 37, 31, 0.82) 0%, rgba(6, 37, 31, 0.28) 45%, transparent 72%);
}

html[dir="ltr"] .hero-media::after,
html[dir="ltr"] .alufuq-hero .carousel-inner::after,
html[dir="ltr"] .alufuq-hero .hero-media::after {
  background:
    linear-gradient(to right, rgba(6, 37, 31, 0.88) 0%, rgba(6, 37, 31, 0.55) 55%, rgba(6, 37, 31, 0.28) 100%),
    linear-gradient(0deg, rgba(6, 37, 31, 0.82) 0%, rgba(6, 37, 31, 0.28) 45%, transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  max-width: 680px;
  margin-inline-start: max(calc((100% - min(1180px, calc(100% - 2.5rem))) / 2), 1.25rem);
  margin-inline-end: auto;
  padding-block: 3.5rem 4rem;
  color: #fffdf8 !important;
  text-align: start;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: riseIn 0.9s 0.15s ease forwards;
}

.hero-title {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: rgba(255, 253, 248, 0.96);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: riseIn 0.9s 0.35s ease forwards;
}

.hero-text {
  font-size: 1.08rem;
  color: rgba(255, 253, 248, 0.9);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: riseIn 0.9s 0.5s ease forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: riseIn 0.9s 0.65s ease forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to inline-end, rgba(6, 37, 31, 0.85), rgba(6, 37, 31, 0.4));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  padding-block: 3.5rem;
  color: var(--cream);
  text-align: start;
}

.page-hero-content .eyebrow {
  color: var(--gold-soft);
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0.4rem 0 0.6rem;
}

.page-hero-content p {
  max-width: 36rem;
  color: rgba(255, 253, 248, 0.8);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal);
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
  text-align: start;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  margin: 0.35rem 0 0.6rem;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(216, 239, 232, 0.45), transparent);
}

/* ── About strip ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset-block: 1.25rem -1.25rem;
  inset-inline: 1.25rem -1.25rem;
  border: 2px solid var(--gold-soft);
  z-index: -1;
  opacity: 0.7;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0.4rem 0 1rem;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-soft);
}

.feature-list .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ── Stages ── */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stage {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: var(--cream);
  isolation: isolate;
}

.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: -2;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(6, 37, 31, 0.88));
  z-index: -1;
}

.stage:hover img {
  transform: scale(1.08);
}

.stage-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  text-align: start;
}

.stage-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.stage-body p {
  font-size: 0.92rem;
  color: rgba(255, 253, 248, 0.8);
}

/* ── News / Events rows ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.media-item {
  group: true;
}

.media-item a {
  display: block;
}

.media-item .thumb {
  overflow: hidden;
  margin-bottom: 1rem;
}

.media-item .thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-item:hover .thumb img {
  transform: scale(1.05);
}

.media-meta {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-align: start;
}

.media-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.45rem;
  transition: color 0.2s;
  text-align: start;
}

.media-item:hover h3 {
  color: var(--teal);
}

.media-item p {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: start;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}

.gallery-grid .g-item {
  overflow: hidden;
  position: relative;
}

.gallery-grid .g-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid .g-item:nth-child(6) {
  grid-column: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid .g-item:hover img {
  transform: scale(1.06);
}

/* ── CTA band ── */
.cta-band {
  position: relative;
  padding: 4.5rem 0;
  overflow: hidden;
  color: var(--cream);
}

.cta-band-bg {
  position: absolute;
  inset: 0;
}

.cta-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to inline-end, rgba(6, 37, 31, 0.92), rgba(26, 107, 92, 0.78));
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}

.cta-band p {
  color: rgba(255, 253, 248, 0.8);
  max-width: 32rem;
}

/* ── Results form ── */
.results-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin-inline: auto;
}

.results-panel h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.results-panel > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
  text-align: start;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: start;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 107, 92, 0.15);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
}

.result-sheet {
  display: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.result-sheet.is-visible {
  display: block;
  animation: riseIn 0.5s ease;
}

.result-student {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.result-student h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.result-badge {
  background: var(--mint);
  color: var(--teal);
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.result-table th,
.result-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.result-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.result-table .pass {
  color: var(--teal);
  font-weight: 700;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.contact-block p,
.contact-block a {
  color: var(--muted);
}

.contact-block a:hover {
  color: var(--teal);
}

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.map-embed {
  margin-top: 3rem;
  height: 320px;
  background: var(--mint);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* ── Academics detail ── */
.level-list {
  display: grid;
  gap: 2rem;
}

.level-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.level-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.level-row img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.level-row h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.level-row p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  background: var(--mint);
  color: var(--ink-soft);
}

/* ── Admission steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.admission-form-wrap {
  margin-top: 3rem;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.admission-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── About page extras ── */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value {
  padding: 1.75rem 1.5rem;
  border-block-start: 3px solid var(--gold);
  background: rgba(255, 253, 248, 0.7);
  text-align: start;
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.value p {
  color: var(--muted);
  font-size: 0.95rem;
}

.stats-inline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.stats-inline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  line-height: 1.2;
}

.stats-inline span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */
.site-footer {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(36, 138, 118, 0.22), transparent 55%),
    linear-gradient(180deg, #08352c 0%, #06251f 55%, #041c18 100%);
  color: rgba(255, 253, 248, 0.82);
  padding: 0;
  margin-top: 0;
}

.footer-cta {
  background: linear-gradient(135deg, rgba(26, 107, 92, 0.55), rgba(6, 37, 31, 0.2));
  border-bottom: 1px solid rgba(255, 253, 248, 0.1);
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.5rem 0;
}

.footer-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: start;
}

.footer-cta-copy strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cream);
  font-weight: 700;
}

.footer-cta-copy span {
  font-size: 16px;
  color: rgba(255, 253, 248, 0.75);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-main {
  padding: 4.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
  gap: 2.75rem 2rem;
  margin-bottom: 0;
  align-items: start;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.footer-brand .brand-mark,
.footer-brand .brand-logo-img--footer {
  margin-bottom: 0;
  width: 64px;
  height: 64px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.footer-brand em {
  display: block;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.footer-brand p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 28rem;
  margin-bottom: 1.35rem;
  color: rgba(255, 253, 248, 0.78);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social li {
  margin: 0;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 248, 0.18);
  background: rgba(255, 253, 248, 0.06);
  color: var(--cream);
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 20px;
  margin: 0 0 1.25rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-col ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-col li {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 253, 248, 0.82);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-list i {
  width: 1.1em;
  margin-top: 0.2rem;
  color: var(--gold-soft);
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  padding: 0;
  display: block;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
}

.footer-bottom-note {
  color: rgba(255, 253, 248, 0.55);
}

/* ── Mobile nav ── */
@media (max-width: 980px) {
  :root {
    --header-h: 76px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-top {
    padding: 0.65rem 0;
  }

  .header-nav-row {
    border-top: 0;
    background: transparent;
  }

  .alufuq-nav {
    width: 100%;
    margin: 0;
  }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    background: var(--cream);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    z-index: 99;
  }

  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  .header-actions .afu-btn-outline {
    display: none;
  }

  .header-actions .afu-btn-primary {
    display: none;
  }

  .lang-switch {
    order: -1;
  }

  .about-grid,
  .contact-grid,
  .level-row {
    grid-template-columns: 1fr;
  }

  .stages,
  .media-grid,
  .values,
  .steps {
    grid-template-columns: 1fr;
  }

  .stats-inline,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cta-inner {
    align-items: flex-start;
  }

  .footer-main {
    padding: 3rem 0 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }

  .gallery-grid .g-item:nth-child(1),
  .gallery-grid .g-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-content {
    margin-inline: 1.25rem;
    width: auto;
    max-width: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stats-inline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta-copy strong {
    font-size: 18px;
  }

  .hero {
    min-height: 85vh;
  }
}

/* ── Scroll to top ── */
.scrollToTop,
.alufuq-scroll-top {
  position: fixed !important;
  inset-inline-end: 22px;
  bottom: 88px;
  z-index: 120;
  width: 48px;
  height: 48px;
  display: none;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ink-soft), var(--teal));
  color: #fffdf8 !important;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(6, 37, 31, 0.28);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.scrollToTop i,
.alufuq-scroll-top i {
  display: block;
  line-height: 1;
  color: inherit;
}

.scrollToTop:hover,
.alufuq-scroll-top:hover,
.scrollToTop:focus,
.alufuq-scroll-top:focus {
  transform: translateY(-3px);
  background: linear-gradient(145deg, var(--gold), var(--gold-soft));
  color: var(--ink) !important;
  box-shadow: 0 14px 32px rgba(184, 134, 11, 0.35);
  text-decoration: none !important;
}

.scrollToTop::after,
.scrollToTop::before {
  display: none !important;
  content: none !important;
}

html[dir="rtl"] .bootom-whatsapp {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .scrollToTop,
html[dir="rtl"] .alufuq-scroll-top {
  inset-inline-end: 22px;
  inset-inline-start: auto;
}

html[dir="ltr"] .bootom-whatsapp {
  right: 20px;
  left: auto;
}

.alufuq-body .bootom-whatsapp {
  bottom: 20px;
  z-index: 110;
}
