/* ── Google Fonts ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --primary:       #1D6FD8;
  --primary-dark:  #1558b0;
  --primary-light: #4d93e8;
  --light-bg:      #EEF4FF;
  --navy:          #1B2D5B;
  --navy-dark:     #111d3a;
  --navy-light:    #2a4a8c;
  --white:         #FFFFFF;
  --border:        #E0E8F5;
  --text:          #333333;
  --text-secondary:#666666;

  /* Legacy aliases — keep so existing selectors still resolve */
  --gold:          #1D6FD8;
  --gold-light:    #4d93e8;
  --gold-pale:     #EEF4FF;
  --off-white:     #EEF4FF;
  --gray-50:       #f5f8ff;
  --gray-100:      #EEF4FF;
  --gray-200:      #E0E8F5;
  --gray-300:      #c8d6ee;
  --gray-400:      #8fa3c8;
  --gray-500:      #666666;
  --gray-700:      #444444;
  --gray-900:      #222222;

  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-sm:     0 1px 4px rgba(27,45,91,.07);
  --shadow:        0 4px 20px rgba(27,45,91,.09);
  --shadow-lg:     0 12px 40px rgba(27,45,91,.13);
  --shadow-gold:   0 4px 20px rgba(29,111,216,.25);

  --transition:    0.3s cubic-bezier(.4,0,.2,1);
  --nav-height:    72px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Containers & layout ──────────────────────────────────────────────────── */
.container {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.section { padding-block: clamp(4rem, 8vw, 7rem); }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: clamp(.95rem, 1.5vw, 1.05rem); color: var(--text-secondary); line-height: 1.8; }

[lang="ar"], [lang="ar"] * { font-family: 'Noto Sans Arabic', sans-serif; }
/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-gold {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(29,111,216,.35); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-white {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  background: transparent;
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; }

/* ── Section headers ──────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.section-title {
  position: relative;
  color: var(--navy);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: .6rem;
}

/* ── Animations ───────────────────────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-in.visible { opacity: 1; transform: none; }
.animate-in:nth-child(2) { transition-delay: .1s; }
.animate-in:nth-child(3) { transition-delay: .2s; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  NAVIGATION                                                                */
/* ══════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(17, 29, 58, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.navbar-inner {
  background: linear-gradient(to bottom, rgba(17,29,58,.72) 0%, transparent 100%);
}

.nav-container {
  height: var(--nav-height);
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  filter: none;
  mix-blend-mode: normal;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.logo:hover .logo-img,
.footer .logo:hover .logo-img {
  opacity: 0.8;
  transform: scale(1.05);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.logo-sub {
  font-size: .65rem;
  font-weight: 400;
  color: var(--primary-light);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: .45rem .5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary-light);
  transition: var(--transition);
  border-radius: 1px;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { left: .75rem; right: .75rem; }
.nav-link-register {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  padding: .45rem 1rem;
}
.nav-link-register::after { display: none; }
.nav-link-register:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: .25rem;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .2rem;
}
.lang-btn {
  padding: .3rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: var(--transition);
  letter-spacing: .02em;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* Nav actions (lang switcher + hamburger — always visible) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: .5rem;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Close button — hidden on desktop */
.nav-close { display: none; }

/* Mobile nav */
@media (max-width: 1100px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 85vw);
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 40px rgba(0,0,0,.3);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open { transform: translateX(0); }

  /* RTL: drawer slides in from the left */
  html[dir="rtl"] .nav-menu {
    right: auto; left: 0;
    transform: translateX(-100%);
    box-shadow: 8px 0 40px rgba(0,0,0,.3);
  }
  html[dir="rtl"] .nav-menu.open { transform: translateX(0); }

  /* Close (×) button inside the drawer */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: var(--nav-height);
    padding: 0 1.5rem;
    flex-shrink: 0;
    color: rgba(255,255,255,.45);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: color var(--transition);
  }
  .nav-close:hover { color: var(--white); }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: .5rem 1rem 2rem;
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    padding: .875rem .75rem;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: rgba(255,255,255,.8);
  }
  .nav-link::after { display: none; }
  .nav-link:hover { color: var(--white); background: rgba(255,255,255,.06); }
  .nav-link.active {
    color: var(--white);
    background: rgba(29,111,216,.15);
    border-inline-start: 3px solid var(--primary-light);
    padding-inline-start: calc(.75rem - 3px);
  }

  .nav-link-register {
    color: var(--primary-light) !important;
    background: none;
    font-weight: 600;
    margin-top: .5rem;
    border-bottom: none;
    border: 1px solid rgba(29,111,216,.35);
  }
  .nav-link-register:hover { background: rgba(29,111,216,.15) !important; transform: none; }
  .nav-link-register.active { border-inline-start-width: 1px; }

  /* Semi-transparent overlay (scroll lock omitted — breaks fixed positioning on iOS) */
  body.menu-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 998;
    cursor: pointer;
  }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  HERO                                                                      */
/* ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 29, 58, .88) 0%,
    rgba(27, 45, 91, .78) 50%,
    rgba(17, 29, 58, .85) 100%
  );
}
/* Fallback gradient when no image */
.hero-bg:not(:has(.hero-bg-img[src])) {
  background: linear-gradient(135deg, #0d1a3a 0%, #1b2d5b 50%, #132247 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: 8rem 4rem;
  max-width: 860px;
  margin-inline: auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(29,111,216,.2);
  border: 1px solid rgba(29,111,216,.4);
  color: var(--primary-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-tagline {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce 2s infinite;
}
.hero-scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,.4);
  border-bottom: 2px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  ABOUT SECTION                                                             */
/* ══════════════════════════════════════════════════════════════════════════ */
.about-section { background: var(--light-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-body {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  color: var(--gray-700);
  line-height: 1.85;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
}
.stat-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .25rem;
}
.stat-lbl {
  font-size: .78rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap img { height: 280px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  MISSION SECTION                                                           */
/* ══════════════════════════════════════════════════════════════════════════ */
.mission-section { background: var(--white); }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mission-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.mission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: var(--white); }
.mission-card:hover::before { transform: scaleX(1); }
.mission-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(27,45,91,.25);
}
.mission-icon svg { width: 28px; height: 28px; stroke: var(--white); fill: none; stroke-width: 1.8; }
.mission-card h3 { color: var(--navy); margin-bottom: .75rem; font-size: 1.15rem; }
.mission-card p { font-size: .95rem; line-height: 1.75; }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; gap: 1rem; } }
@media (min-width: 600px) and (max-width: 900px) { .mission-grid { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  WHY JOIN                                                                  */
/* ══════════════════════════════════════════════════════════════════════════ */
.why-join-section { background: var(--navy); }
.why-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.why-header .section-title { color: var(--white); margin-bottom: 1rem; }
.why-header .section-title::after { margin: .6rem auto 0; }
.why-join-section .section-sub {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem; line-height: 1.8;
  max-width: 680px; margin: 0 auto;
  display: block;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.why-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: background .2s, transform .2s;
}
.why-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.why-icon {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.why-icon svg { width: 24px; height: 24px; stroke: #fff; }
.why-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: .75rem; }
.why-card p { color: rgba(255,255,255,.75); font-size: .93rem; line-height: 1.75; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 1rem; } }
@media (min-width: 600px) and (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  EVENTS (shared card styles)                                               */
/* ══════════════════════════════════════════════════════════════════════════ */
.events-section { background: var(--light-bg); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.event-card.past { opacity: .85; }
.event-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.event-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.event-card:hover .event-card-img img { transform: scale(1.04); }
.event-card-img.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-img.no-img::after {
  content: '';
  width: 60px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(255,255,255,.4)' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
}
.event-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
}
.past-badge { background: rgba(0,0,0,.45); color: rgba(255,255,255,.8); }

.event-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.event-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .875rem; }
.event-date, .event-location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--gray-400);
  font-weight: 500;
}
.event-date svg, .event-location svg { color: var(--primary); flex-shrink: 0; }
.event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .625rem;
  line-height: 1.35;
}
.event-desc { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
.event-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: auto; }
.events-empty { color: var(--gray-400); font-style: italic; text-align: center; padding: 2rem; width: 100%; }
.events-error { color: #c0392b; text-align: center; padding: 2rem; width: 100%; }

/* Loader */
.loader { display: flex; justify-content: center; align-items: center; padding: 4rem; width: 100%; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  X / TWITTER FEED SECTION                                                  */
/* ══════════════════════════════════════════════════════════════════════════ */
.x-feed-section { background: var(--navy-dark); }
.x-feed-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.x-feed-centered {
  max-width: 580px;
  margin: 0 auto;
}
.x-feed-intro h2 { color: var(--white); margin-bottom: 1rem; }
.x-feed-intro p  { color: rgba(255,255,255,.65); line-height: 1.8; margin-bottom: 2rem; }


@media (max-width: 900px) {
  .x-feed-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .x-feed-intro p { margin-bottom: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  CTA SECTION                                                               */
/* ══════════════════════════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%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");
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,.75); margin-bottom: 2.5rem; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  PAGE HERO (inner pages)                                                   */
/* ══════════════════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  FORMS                                                                     */
/* ══════════════════════════════════════════════════════════════════════════ */
.form-section { background: var(--light-bg); }
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-label .req { color: var(--primary); margin-left: .2rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,111,216,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238fa3c8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
[dir="rtl"] .form-select {
  background-position: left 1rem center;
  padding-right: 1rem;
  padding-left: 2.5rem;
}
.form-submit { margin-top: .5rem; }
.form-submit .btn { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }
.form-message {
  padding: .875rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}
.form-message.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.form-message.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.success-box {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(22,163,74,.25);
}
.success-icon svg { width: 36px; height: 36px; stroke: white; }
.success-title { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.success-body { color: var(--text-secondary); font-size: 1rem; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  CONTACT PAGE                                                              */
/* ══════════════════════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}
.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-email-link {
  display: inline-block;
  font-size: .95rem; font-weight: 500;
  color: var(--primary);
  word-break: break-all;
  text-decoration: none;
}
.contact-email-link:hover { color: var(--primary-dark); text-decoration: underline; }
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}
.social-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
}
.social-link-fb { background: #1877f2; color: white; }
.social-link-fb:hover { background: #166fe5; transform: translateY(-2px); }
.social-link-x  { background: #000; color: white; }
.social-link-x:hover  { background: #222; transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { order: -1; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  FOOTER                                                                    */
/* ══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.6fr 1fr 1.4fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-name { font-size: 1.1rem; }
.footer-tagline {
  font-size: .875rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,.55);
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col .cal-card {
  flex: 1;
}
.footer-col h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary-light);
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-link {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  padding-block: .1rem;
}
.footer-link:hover { color: var(--white); padding-inline-start: .4rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.footer-social-btn:hover { transform: translateY(-3px); }
.footer-social-btn.fb { background: #1877f2; }
.footer-social-btn.fb:hover { background: #166fe5; }
.footer-social-btn.x  { background: #111; border: 1px solid rgba(255,255,255,.15); }
.footer-social-btn.x:hover  { background: #222; }
.footer-social-btn svg { width: 18px; height: 18px; fill: white; }
.footer .logo:hover .logo-img {
  opacity: 0.8;
  transform: scale(1.05);
}
.cal-card {
  background: rgba(29,111,216,.1);
  border: 1px solid rgba(29,111,216,.25);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-top: .5rem;
}
.cal-card p { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: .875rem; line-height: 1.55; }
.cal-card .btn { width: 100%; justify-content: center; font-size: .85rem; }
.cal-card .newsletter-form .btn { width: auto; }

.newsletter-form { display: flex; flex-direction: row; gap: .4rem; }
.newsletter-input {
  flex: 1; min-width: 0;
  padding: .5rem .75rem; font-size: .85rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm); color: var(--white); outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-input:focus { border-color: var(--primary); }
.newsletter-form .btn { flex-shrink: 0; font-size: .85rem; padding: .5rem .9rem; }

html[lang="en"] .denom-arabic { display: none; }
html[lang="ar"] .en-only { display: none; }

.footer-bottom {
  padding: 1.25rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.admin-footer-link {
  font-size: .72rem;
  color: rgba(255,255,255,.2);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color .2s;
}
.admin-footer-link:hover { color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  MOBILE — phone-specific improvements                                       */
/* ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Hero: less top padding, full-width stacked buttons */
  .hero-content { padding-block: 5.5rem 2.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 1rem; }

  /* Inner page hero: reduce excessive padding */
  .page-hero { padding: calc(var(--nav-height) + 1.5rem) 0 2.5rem; }

  /* Section header: stack title and action button vertically */
  .section-header { flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: 1.75rem; }
  .section-header .btn { width: 100%; justify-content: center; }

  /* About: reduce section gap */
  .about-grid { gap: 1.5rem; }
  .about-image-wrap img { height: 220px; }

  /* Events: single column */
  .events-grid { grid-template-columns: 1fr; }

  /* Event card actions */
  .event-actions { flex-direction: column; gap: .5rem; }
  .event-actions .btn { width: 100%; justify-content: center; }

  /* CTA button */
  .cta-section .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Calendar banner: stack on mobile */
  .cal-banner { flex-direction: column; align-items: flex-start; padding: 1.25rem; gap: 1rem; }
  .cal-banner .btn { width: 100%; justify-content: center; }

  /* Newsletter input touch target */
  .newsletter-input { min-height: 44px; }

  /* Footer bottom */
  .footer-bottom .container { flex-direction: column; gap: .4rem; text-align: center; }

  /* Ensure all tap targets are at least 44px */
  .btn { min-height: 44px; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .lang-btn { min-height: 36px; }
}

@media (max-width: 480px) {
  /* Hide logo text so nav doesn't overflow on small phones */
  .logo-text { display: none; }
  .logo-img { height: 38px; }
}

@media (max-width: 420px) {
  /* Stats: single column so long text like "Syria & Diaspora" doesn't wrap messily */
  .about-stats { grid-template-columns: 1fr; gap: .6rem; }
  .stat-card { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 1rem 1.25rem; }
  .stat-val { font-size: 1.35rem; margin-bottom: 0; }

  /* Reduce section padding on very small phones */
  .section { padding-block: clamp(2.5rem, 8vw, 4rem); }
  .section-header { margin-bottom: 1.25rem; }

  /* Hero title slightly smaller */
  .hero-title { font-size: clamp(2rem, 8vw, 2.4rem); }

  /* Page hero tighter on very small phones */
  .page-hero { padding: calc(var(--nav-height) + 1rem) 0 2rem; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  RTL OVERRIDES                                                             */
/* ══════════════════════════════════════════════════════════════════════════ */
[dir="rtl"] .section-title::after { margin-left: auto; margin-right: 0; }
[dir="rtl"] .mission-card::before { transform-origin: right; }
[dir="rtl"] .footer-link:hover { padding-inline-start: 0; padding-inline-end: .4rem; }
[dir="rtl"] .nav-link::after { transform-origin: right; }
[dir="rtl"] .logo-sub { letter-spacing: 0; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  EVENTS PAGE TABS                                                          */
/* ══════════════════════════════════════════════════════════════════════════ */
.events-tabs {
  display: flex;
  gap: .5rem;
  background: var(--border);
  border-radius: var(--radius);
  padding: .3rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
}
.events-tabs::-webkit-scrollbar { display: none; }
.events-tab {
  padding: .6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.events-tab.active {
  background: var(--primary);
  color: var(--white);
}
.events-tab-panel { display: none; }
.events-tab-panel.active { display: block; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  CALENDAR SUBSCRIBE BANNER                                                 */
/* ══════════════════════════════════════════════════════════════════════════ */
.cal-banner {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  border: 1px solid rgba(29,111,216,.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.cal-banner-text h3 { color: var(--navy); margin-bottom: .3rem; font-size: 1.05rem; }
.cal-banner-text p { font-size: .9rem; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  UTILITY                                                                   */
/* ══════════════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
