/* ============================================================
   Surrey Saudi Society — style.css
   ============================================================
   BRAND COLOURS (edit here to change the whole site):
   --green   : #005241  (Saudi Green — primary)
   --sand    : #C1B48B  (Desert Sand — warm accent)
   --gold    : #D4AF37  (Gold — highlights)
   --charcoal: #2C2C2C  (Dark text)
   --cream   : #FAF7F2  (Page background)
   ============================================================ */

/* ── 1. VARIABLES ─────────────────────────────────────────── */
:root {
  --green:        #005241;
  --green-dark:   #003B2E;
  --green-mid:    #00624E;
  --sand:         #C1B48B;
  --sand-light:   #F4EFE3;
  --gold:         #D4AF37;
  --gold-light:   #E8C84A;
  --white:        #FFFFFF;
  --charcoal:     #2C2C2C;
  --charcoal-mid: #4A4A4A;
  --cream:        #FAF7F2;
  --border:       rgba(0, 82, 65, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', system-ui, sans-serif;
  --font-arabic:  'Tajawal', 'Segoe UI', sans-serif;

  --nav-h:        72px;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow-sm:    0 2px 12px rgba(0,82,65,0.08);
  --shadow-md:    0 6px 30px rgba(0,82,65,0.14);
  --shadow-lg:    0 16px 60px rgba(0,82,65,0.18);

  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

/* Arabic language font override */
[lang="ar"] body,
[lang="ar"] .nav__link,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3,
[lang="ar"] p, [lang="ar"] a, [lang="ar"] button,
[lang="ar"] label, [lang="ar"] input, [lang="ar"] textarea {
  font-family: var(--font-arabic);
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

p { color: var(--charcoal-mid); line-height: 1.75; }

/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--sand-light);
}

/* ── 5. SECTION HEADERS ───────────────────────────────────── */
.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

[lang="ar"] .section__label {
  font-family: var(--font-arabic);
  letter-spacing: 0.05em;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section__subtitle {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1rem;
  color: var(--charcoal-mid);
}

.section__line {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
  margin: 0 auto;
}

.section__line--gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.section__header--light .section__title,
.section__header--light .section__label {
  color: var(--white);
}

.section__header--light .section__subtitle {
  color: rgba(255,255,255,0.75);
}

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--gold);
  color: var(--green-dark);
}
.btn--primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

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

.btn--ghost {
  border: 2px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }

.btn--green {
  background: var(--green);
  color: var(--white);
}
.btn--green:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn--whatsapp:hover { background: #1ebc57; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }

/* ── 7. NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(0, 59, 46, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(212,175,55,0.55);
  display: flex;
}

.nav__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.22);
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--white); }

.nav__lang-toggle {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav__lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-toggle__ar { display: none; }
[lang="ar"] .lang-toggle__en { display: none; }
[lang="ar"] .lang-toggle__ar { display: inline; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 24px 96px;
  text-align: center;
}

/* Saudi geometric lattice — nested diamonds with centre dot */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 2 L58 30 L30 58 L2 30 Z' fill='none' stroke='rgba(212,175,55,0.08)' stroke-width='1'/%3E%3Cpath d='M30 14 L46 30 L30 46 L14 30 Z' fill='none' stroke='rgba(212,175,55,0.06)' stroke-width='0.8'/%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(212,175,55,0.07)'/%3E%3C/svg%3E");
  pointer-events: none;
  animation: patternDrift 45s linear infinite;
}

/* Ambient radial glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(0,98,78,0.65) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 20% 80%, rgba(212,175,55,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 20%, rgba(212,175,55,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating particle canvas */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Pulsing gold glow ring behind the logo */
.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(212,175,55,0.26) 0%, rgba(212,175,55,0.12) 28%, rgba(212,175,55,0.04) 52%, transparent 72%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__logo-wrap {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.45), 0 24px 72px rgba(0,0,0,0.45);
  animation: logoReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* scale up to fill the circle — removes the white margin in the PNG */
  transform: scale(1.22);
  display: block;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* no group animation — each child animates individually */
}

.hero__title-en {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  animation: fadeUp 0.65s cubic-bezier(0.4,0,0.2,1) 0.55s both;
}

.hero__title-ar {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
  direction: rtl;
  animation: fadeUp 0.65s cubic-bezier(0.4,0,0.2,1) 0.75s both;
}

[lang="ar"] .hero__title-en { display: none; }
[lang="ar"] .hero__title-ar { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  line-height: 1.7;
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) 0.95s both;
}

.hero__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  max-width: 460px;
  line-height: 1.75;
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) 1.1s both;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) 1.25s both;
}

.hero__btns .btn--whatsapp {
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,0.22);
}
.hero__btns .btn--whatsapp:hover {
  box-shadow: 0 8px 28px rgba(37,211,102,0.38);
}

.hero__callout {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.6;
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) 1.35s both;
}
.hero__callout-ar { display: none; }
[lang="ar"] .hero__callout-en { display: none; }
[lang="ar"] .hero__callout-ar { display: inline; }
.hero__callout-link {
  color: rgba(212,175,55,0.85);
  text-decoration: underline;
  text-decoration-color: rgba(212,175,55,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.hero__callout-link:hover {
  color: var(--gold);
  text-decoration-color: rgba(212,175,55,0.75);
}

/* Secondary social icons row */
.hero__socials {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) 1.45s both;
}

.hero__socials-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  margin-right: 4px;
}

[lang="ar"] .hero__socials-label { margin-right: 0; margin-left: 4px; letter-spacing: 0; }

.hero__social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero__social-icon svg { width: 15px; height: 15px; }

.hero__social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.hero__social-icon:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: var(--transition);
  animation: bounce 2s ease infinite;
}
.hero__scroll:hover { color: var(--gold); border-color: var(--gold); }
.hero__scroll svg { width: 18px; height: 18px; }

/* ── 9. DIAMOND DIVIDER ───────────────────────────────────── */
.divider-diamond {
  height: 40px;
  background: var(--green-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.divider-diamond::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--sand), var(--gold), transparent);
  opacity: 0.4;
}
.divider-diamond::after {
  content: '◆';
  position: absolute;
  color: var(--gold);
  font-size: 14px;
  opacity: 0.7;
  letter-spacing: 20px;
}

/* ── 10. ABOUT ────────────────────────────────────────────── */
.about { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--charcoal-mid);
}

.about__intro p:last-child { margin-bottom: 0; }

.about__values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--cream);
  transition: var(--transition);
}

.value-card:hover {
  border-color: rgba(0,82,65,0.25);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

[lang="ar"] .value-card:hover { transform: translateX(-4px); }

.value-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.value-card__icon svg { width: 22px; height: 22px; }

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 6px;
}

[lang="ar"] .value-card h3 { font-family: var(--font-arabic); }

.value-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--charcoal-mid);
}

/* ── 11. COMMITTEE ────────────────────────────────────────── */
.committee { background: var(--sand-light); }

/*
  7-member layout (6-col grid):
  Row 1: President  (full-width, featured)
  Row 2: VP         (full-width, smaller featured)
  Row 3: Sports | Cultural | Quality   (each spans 2 of 6 cols)
  Row 4:    Social | Women's           (centred pair, cols 2-4 and 4-6)

  To update if committee size changes:
  - Add/remove nth-child rules to match new member count
  - Adjust rows 3/4 column spans accordingly
*/
.committee__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* All cards: centred layout, consistent padding */
.committee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.committee-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,82,65,0.2);
}

/* Circular avatar — works with real photos too */
.committee-card__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 20px;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px rgba(0,82,65,0.14);
}

.committee-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 20px;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px rgba(0,82,65,0.14);
}

.committee-card__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 1 L27 14 L14 27 L1 14 Z' fill='none' stroke='rgba(212,175,55,0.18)' stroke-width='1'/%3E%3C/svg%3E");
}

.committee-card__initials {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}

.committee-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.committee-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.3;
}

[lang="ar"] .committee-card__name { font-family: var(--font-arabic); }

.committee-card__role {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,82,65,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

[lang="ar"] .committee-card__role { letter-spacing: 0; }

.committee-card__bio {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--charcoal-mid);
}

/* ── 12. EVENTS ───────────────────────────────────────────── */
.events { background: var(--white); }

.events__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  background: var(--sand-light);
  display: inline-flex;
  padding: 6px;
  border-radius: 10px;
  margin: 0 auto 48px;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.events__tab {
  padding: 10px 24px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal-mid);
  transition: var(--transition);
}

.events__tab--active {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.events__tab:not(.events__tab--active):hover {
  color: var(--green);
}

.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,82,65,0.2);
}

.event-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--sand-light);
}

.event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-card__img img { transform: scale(1.05); }

.event-card__date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

[lang="ar"] .event-card__date-badge { left: auto; right: 14px; }

.event-card__past-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(44,44,44,0.7);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

[lang="ar"] .event-card__past-badge { right: auto; left: 14px; }

.event-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.3;
}

[lang="ar"] .event-card__title { font-family: var(--font-arabic); }

.event-card__location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--charcoal-mid);
}

.event-card__location svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--green); }

.event-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--charcoal-mid);
  flex: 1;
}

.event-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.event-card__actions .btn {
  padding: 9px 18px;
  font-size: 0.8rem;
  flex: 1;
  min-width: 120px;
}

/* ── 13. GALLERY ──────────────────────────────────────────── */
.gallery {
  background: var(--charcoal);
}

.gallery .section__header .section__title { color: var(--white); }
.gallery .section__label { color: var(--gold); }
.gallery .section__subtitle { color: rgba(255,255,255,0.6); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img { transform: scale(1.07); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,59,46,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── 14. CONNECT WITH US ─────────────────────────────────── */
.connect {
  position: relative;
  background: var(--green-dark);
  color: var(--white);
  overflow: hidden;
}

.connect::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 2 L38 20 L20 38 L2 20 Z' fill='none' stroke='rgba(212,175,55,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.connect__channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.connect__card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.connect__card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.connect__card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connect__card-icon svg { width: 28px; height: 28px; }

.connect__card-icon--whatsapp {
  background: #25D366;
  color: var(--white);
}

.connect__card-icon--instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
}

.connect__card-icon--email {
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  border: 1.5px solid rgba(212,175,55,0.4);
}

.connect__card-icon--x {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.connect__card-icon--tiktok {
  background: #010101;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}

.connect__card-icon--telegram {
  background: #229ED9;
  color: var(--white);
}

.connect__btn--dark {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.connect__btn--dark:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--white);
  transform: translateY(-2px);
}

.connect__btn--telegram {
  background: #229ED9;
  color: var(--white);
}
.connect__btn--telegram:hover {
  background: #1a8fc5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,158,217,0.35);
}

.connect__card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0;
}

[lang="ar"] .connect__card h3 { font-family: var(--font-arabic); }

.connect__card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  flex: 1;
}

.connect__card .btn {
  width: 100%;
  margin-top: 4px;
}

.btn--gold {
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.connect__btn--ig {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.connect__btn--ig:hover {
  background: var(--white);
  color: var(--green-dark);
}

/* ── 15. CONTACT ──────────────────────────────────────────── */
.contact { background: var(--white); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0,82,65,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.contact__icon svg { width: 20px; height: 20px; }

.contact__item h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-mid);
  margin-bottom: 4px;
}

[lang="ar"] .contact__item h3 { letter-spacing: 0; }

.contact__item a {
  color: var(--green);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact__item a:hover { color: var(--gold); }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form__group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
}

[lang="ar"] .form__group label { letter-spacing: 0; }

.form__group input,
.form__group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,82,65,0.08);
}

.form__note {
  font-size: 0.8rem;
  color: var(--charcoal-mid);
  opacity: 0.7;
}

/* ── 16. FOOTER ───────────────────────────────────────────── */
.footer { background: var(--green-dark); }

.footer__top { padding: 64px 0 48px; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer__brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer__logo {
  height: 120px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.footer__attache {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__umbrella {
  font-family: var(--font-arabic);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  direction: rtl;
  text-align: left;
  letter-spacing: 0;
  margin: 0;
}

.footer__attache-logo {
  width: 180px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__attache-logo:hover { opacity: 1; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

[lang="ar"] .footer h4 { letter-spacing: 0; }

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--gold); }

.footer__social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer__social-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer__social-link:hover { color: var(--gold); }

.footer__contact p,
.footer__contact a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer__contact a:hover { color: var(--gold); }

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p,
.footer__bottom a {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}

.footer__bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── 17. SCROLL REVEAL ANIMATIONS ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

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

@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(0.55); filter: blur(6px); }
  65%  { filter: blur(0); }
  80%  { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -62%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -62%) scale(1.12); }
}

@keyframes patternDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* ── 18a. COMMITTEE — EXPLICIT GRID PLACEMENT ────────────── */

/* ① President — full-width featured row */
.committee-card--president {
  grid-column: 1 / -1;
  max-width: 320px;
  margin: 0 auto 4px;
  padding: 40px 32px 36px;
  border-top: 2px solid rgba(212,175,55,0.55);
  background: linear-gradient(160deg, var(--white) 0%, rgba(212,175,55,0.04) 100%);
}

.committee-card--president .committee-card__avatar {
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px rgba(212,175,55,0.45);
}

.committee-card--president .committee-card__initials { font-size: 2.1rem; }
.committee-card--president .committee-card__name    { font-size: 1.25rem; }

.committee-card--president .committee-card__role {
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
}

/* ② Vice President — full-width, directly beneath President */
.committee-card:nth-child(2) {
  grid-column: 1 / -1;
  max-width: 280px;
  margin: 0 auto 4px;
  border-top: 2px solid rgba(0,82,65,0.3);
}

/* ③④⑤ Middle row — three equal columns (each spans 2 of 6) */
.committee-card:nth-child(3) { grid-column: 1 / 3; }
.committee-card:nth-child(4) { grid-column: 3 / 5; }
.committee-card:nth-child(5) { grid-column: 5 / 7; }

/* ⑥⑦ Bottom row — centred pair (one empty col on each side) */
.committee-card:nth-child(6) { grid-column: 2 / 4; }
.committee-card:nth-child(7) { grid-column: 4 / 6; }

/* ── 18b. GALLERY ELEGANT PLACEHOLDERS ───────────────────── */

.gallery__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.gallery__item:hover .gallery__ph { transform: scale(1.07); }

/* Subtle diamond lattice overlay */
.gallery__ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 1 L27 14 L14 27 L1 14 Z' fill='none' stroke='rgba(212,175,55,0.13)' stroke-width='0.8'/%3E%3C/svg%3E");
  pointer-events: none;
}

.gallery__ph svg {
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* 6 gradient variants */
.gallery__ph--1 { background: linear-gradient(145deg, #001A12 0%, #003B2E 55%, #004D3D 100%); }
.gallery__ph--2 { background: linear-gradient(125deg, #0A1208 0%, #001F15 50%, #003228 100%); }
.gallery__ph--3 { background: linear-gradient(155deg, #1A1000 0%, #2E1A00 50%, #3D2200 100%); }
.gallery__ph--4 { background: linear-gradient(165deg, #080E06 0%, #001F15 45%, #003B2E 100%); }
.gallery__ph--5 { background: linear-gradient(135deg, #0E0A00 0%, #1F1400 50%, #2C1D00 100%); }
.gallery__ph--6 { background: linear-gradient(115deg, #001A12 0%, #002E24 50%, #004035 100%); }

/* ── 18c. EVENT CARD PLACEHOLDERS ────────────────────────── */

.event-card__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.event-card:hover .event-card__ph { transform: scale(1.05); }

.event-card__ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 1 L27 14 L14 27 L1 14 Z' fill='none' stroke='rgba(212,175,55,0.14)' stroke-width='0.8'/%3E%3C/svg%3E");
  pointer-events: none;
}

.event-card__ph svg {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
}

.event-card__ph--1 { background: linear-gradient(135deg, #001F15, #004035); }
.event-card__ph--2 { background: linear-gradient(135deg, #001208, #002E24); }
.event-card__ph--3 { background: linear-gradient(135deg, #100800, #2C1800); }
.event-card__ph--4 { background: linear-gradient(135deg, #080808, #181818); }

/* ── 18d. OVERALL POLISH ─────────────────────────────────── */

/* Richer card shadows */
.committee-card,
.event-card,
.connect__card,
.value-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,82,65,0.07);
}

.committee-card:hover,
.event-card:hover {
  box-shadow: 0 8px 32px rgba(0,82,65,0.14), 0 2px 8px rgba(0,0,0,0.08);
}

/* Section label — bolder gold accent line */
.section__label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  margin: 6px auto 0;
  opacity: 0.7;
}

/* Tighter hero__content gap on smaller screens */
@media (max-width: 480px) {
  .hero__content { gap: 20px; }
}

/* ── 18. ARABIC (RTL) OVERRIDES ───────────────────────────── */
[lang="ar"] {
  direction: rtl;
  text-align: right;
}

[lang="ar"] .nav__links { margin-left: 0; margin-right: auto; }
[lang="ar"] .nav__hamburger { margin-left: 0; margin-right: auto; }

[lang="ar"] .about__grid { direction: rtl; }
[lang="ar"] .about__values { direction: rtl; }

[lang="ar"] .section__line { margin-left: auto; margin-right: auto; }

[lang="ar"] .committee-card__date-badge,
[lang="ar"] .event-card__date-badge { left: auto; right: 14px; }

[lang="ar"] .contact__grid { direction: rtl; }

[lang="ar"] .footer__grid { direction: rtl; }
[lang="ar"] .footer__bottom .container { flex-direction: row-reverse; }

/* ── 19. RESPONSIVE ───────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  /* Tablet: collapse to 2-col grid; explicit placements override */
  .committee__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* President + VP remain full-width */
  .committee-card--president,
  .committee-card:nth-child(2) {
    grid-column: 1 / -1;
  }

  /* 3 middle cards: 2 + 1 on tablet */
  .committee-card:nth-child(3) { grid-column: 1 / 2; }
  .committee-card:nth-child(4) { grid-column: 2 / 3; }
  .committee-card:nth-child(5) { grid-column: 1 / -1; max-width: 320px; margin: 0 auto; }

  /* Bottom pair: side by side */
  .committee-card:nth-child(6) { grid-column: 1 / 2; }
  .committee-card:nth-child(7) { grid-column: 2 / 3; }

  .events__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery__item--wide { grid-column: span 2; }

  .connect__channels { grid-template-columns: repeat(2, 1fr); }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding: 56px 0; }

  /* Nav mobile */
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0,59,46,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    pointer-events: none;
  }

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

  .nav__link { padding: 13px 16px; font-size: 0.95rem; }

  .nav__hamburger { display: flex; }

  .nav__lang-toggle { margin-left: auto; }

  [lang="ar"] .nav__lang-toggle { margin-left: 0; margin-right: auto; }

  /* Hero */
  .hero__logo-wrap { width: 140px; height: 140px; }
  .hero__logo { width: 100%; height: 100%; transform: scale(1.22); }

  .hero__btns { flex-direction: column; align-items: center; }
  .hero__btns .btn { width: 100%; max-width: 300px; }

  /* Committee: single column on mobile */
  .committee__grid { grid-template-columns: 1fr; gap: 14px; }
  .committee-card { padding: 24px 18px 22px; }

  /* All explicit column placements reset to full-width on mobile */
  .committee-card--president,
  .committee-card:nth-child(2),
  .committee-card:nth-child(3),
  .committee-card:nth-child(4),
  .committee-card:nth-child(5),
  .committee-card:nth-child(6),
  .committee-card:nth-child(7) {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .committee-card--president { padding: 28px 24px 26px; }

  /* Events */
  .events__grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery__item--tall,
  .gallery__item--wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  /* Connect */
  .connect__channels { grid-template-columns: 1fr; max-width: 100%; }
  .connect__card { padding: 32px 24px; }

  /* Contact */
  .contact__grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__top { padding: 40px 0 32px; }
  .footer__logo { height: 88px; max-width: 180px; }

  .section__header { margin-bottom: 40px; }

  .events__tabs { flex-direction: column; width: 100%; border-radius: var(--radius); }
}

@media (max-width: 480px) {
  .hero__title-en { font-size: 2rem; }
  .hero__title-ar { font-size: 1.5rem; }
  .section__title { font-size: 1.6rem; }

  .btn { padding: 13px 22px; }
}
