@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700;900&display=swap');
  :root {
    --font-heading: 'Amiri', serif;
    --green: #18abf8;
    --green-light: #66c7fa;
    --green-dark: #0570a8;
    --red: #c0392b;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-dark: #b8922a;
    --cream: #f5f0e8;
    --dark: #0a1622;
    --dark2: #0f2233;
    --text: #1a1a1a;
    --muted: #5a6b5e;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Cairo', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(10,22,34,0.99);
    border-bottom: 1px solid rgba(201,168,76,0.18);
    padding: 0 5vw;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
  }

  .nav-logo-img { height: 34px; width: auto; }

  .nav-wordmark {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold-light);
    line-height: 1.3;
  }

  .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
  }

  .nav-links a {
    color: #AAB1AD;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--gold-light); }

  .nav-cta {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 8px 22px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
  }
  .nav-cta:hover { background: var(--green-light); }

.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.lang-switch a {
  color: #6E7972;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: #C3C7C4; }
.lang-switch a.active { color: var(--gold-light); background: rgba(201,168,76,0.12); }
.mobile-lang-switch {
  display: flex; gap: 8px; padding: 16px 4px 6px;
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 8px;
}
.mobile-lang-switch a {
  flex: 1; text-align: center; color: #929A95; text-decoration: none;
  font-size: 0.8rem; font-weight: 700; padding: 9px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.12);
}
.mobile-lang-switch a.active { color: var(--gold-light); border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.08); }

  /* ── MOBILE NAV TOGGLE ── */
  .nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
  }
  .nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gold-light);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    top: 66px; left: 0; right: 0; bottom: 0;
    z-index: 199;
    background: rgba(10,22,34,0.995);
    border-bottom: 1px solid rgba(201,168,76,0.18);
    display: flex;
    flex-direction: column;
    padding: 8px 5vw 20px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height 0.35s ease;
  }
  .mobile-menu.open { max-height: calc(100vh - 66px); }

  /* Lock the page behind the menu from scrolling while it's open */
  html.menu-open,
  html.menu-open body {
    overflow: hidden;
    height: 100%;
  }
  .mobile-menu a {
    color: #C3C7C4;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-menu-cta {
    margin-top: 10px;
    background: var(--green);
    color: #fff !important;
    text-align: center;
    border-radius: 3px;
    border-bottom: none !important;
    padding: 13px !important;
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 55% 55% at 15% 65%, rgba(24,171,248,0.28) 0%, transparent 70%),
      radial-gradient(ellipse 35% 35% at 85% 25%, rgba(201,168,76,0.1) 0%, transparent 60%);
  }

  .hero-grid {
    position: absolute; inset: 0;
    opacity: 0.03;
    background-image:
      repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(201,168,76,1) 59px, rgba(201,168,76,1) 60px),
      repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(201,168,76,1) 59px, rgba(201,168,76,1) 60px);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ── LOGO (image-based) ── */
  .hero-logo-img {
    width: auto;
    height: 168px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: logoFadeIn 0.8s ease forwards 0.2s;
  }
  @keyframes logoFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }


  .hero-badge {
    display: inline-block;
    border: 1px solid rgba(201,168,76,0.35);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 5px 18px;
    border-radius: 2px;
    margin-bottom: 28px;
    animation: fadeUp 0.7s 2.3s ease both;
  }

  .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
    animation: fadeUp 0.8s 2.4s ease both;
  }
  .hero-title span { color: var(--gold-light); display: inline; }

  .hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 18px 0 14px;
    animation: fadeUp 0.7s 2.5s ease both;
  }
  .hdiv-red  { width: 90px; height: 2px; background: var(--red); opacity: 0.8; }
  .hdiv-dot  { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin: 0 6px; }
  .hdiv-green{ width: 90px; height: 2px; background: var(--green); opacity: 0.8; }

  .hero-french {
    font-size: 0.95rem;
    color: #7A847E;
    letter-spacing: 0.14em;
    margin-bottom: 52px;
    animation: fadeUp 0.7s 2.55s ease both;
  }

  .hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.7s 2.7s ease both;
  }

  .btn-primary {
    background: var(--green);
    color: #fff;
    padding: 13px 34px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
    display: inline-block;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-primary:hover { background: var(--green-light); transform: translateY(-2px); }

  .btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.5);
    padding: 13px 34px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    display: inline-block;
    transition: background 0.2s, color 0.2s, transform 0.15s;
  }
  .btn-outline:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }

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

  /* ── SCROLL INDICATOR ── */
  .scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.6s 3.2s ease forwards;
  }
  .scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: #56625B;
  }
  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(201,168,76,0.6), transparent);
    animation: scrollPulse 2s 3.5s ease-in-out infinite;
  }
  @keyframes scrollPulse {
    0%,100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.15); }
  }

  /* ── SECTIONS SHARED ── */
  section { padding: 100px 6vw; }

  .section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-label::after {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--green);
    opacity: 0.35;
  }

  .section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 20px;
  }

  /* ── ABOUT ── */
  .about {
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .about-text p {
    color: var(--muted);
    line-height: 2.1;
    font-size: 0.97rem;
    margin-bottom: 18px;
  }

  .info-stack { display: flex; flex-direction: column; gap: 16px; }

  .info-card {
    background: var(--cream);
    border-right: 3px solid var(--green);
    padding: 18px 22px;
    border-radius: 0 4px 4px 0;
    transition: transform 0.2s;
  }
  .info-card:hover { transform: translateX(-4px); }

  .info-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.1em;
    margin-bottom: 5px;
  }
  .info-card-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
  }

  /* ── PRINCIPLES ── */
  .principles {
    background: var(--dark);
    position: relative;
    overflow: hidden;
  }
  .principles::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 70% at 75% 50%, rgba(24,171,248,0.18) 0%, transparent 70%);
  }
  .principles .section-label { color: var(--gold); }
  .principles .section-label::after { background: var(--gold); }
  .principles .section-title { color: #fff; }

  .principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.8vw, 24px);
    margin-top: clamp(36px, 5vw, 52px);
    position: relative;
  }

  .principle-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    padding: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 28px);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s, border-color 0.3s, transform 0.25s;
  }
  .principle-card:hover {
    background: rgba(24,171,248,0.14);
    border-color: rgba(24,171,248,0.35);
    transform: translateY(-5px);
  }

  .p-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 14px;
  }
  .p-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
  }
  .p-desc {
    font-size: 0.86rem;
    /* Solid equivalent of rgba(255,255,255,0.45) over --dark (#0a1622) —
       same visual weight, but alpha blending was making thin strokes
       (Arabic letter connectors especially) anti-alias lighter than
       full glyph bodies at the same nominal opacity. Solid color
       renders evenly regardless of stroke thickness. */
    color: #7a847e;
    line-height: 2;
    margin-top: auto;
  }

  /* ── STRUCTURE ── */
  .structure { background: var(--cream); }

  .tree {
    margin-top: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tree-node {
    background: var(--green);
    color: #fff;
    padding: 13px 38px;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 3px;
    text-align: center;
    min-width: 210px;
  }
  .tree-node.sec {
    background: #fff;
    color: var(--green);
    border: 1.5px solid var(--green);
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 170px;
    padding: 11px 22px;
  }
  .tree-node.ter {
    background: var(--cream);
    color: var(--green-dark);
    border: 1.5px solid rgba(24,171,248,0.35);
    font-size: 0.8rem;
    min-width: 150px;
    padding: 10px 18px;
  }

  .vline {
    width: 1.5px;
    height: 28px;
    background: rgba(24,171,248,0.25);
  }

  .tree-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
  }
  .tree-row.committees-row { max-width: 1200px; margin: 0 auto; }
  .tree-hline { position: absolute; height: 1.5px; background: rgba(24,171,248,0.3); z-index: 0; }
  .tree-vlink { position: absolute; width: 1.5px; background: rgba(24,171,248,0.3); z-index: 0; }
  @media (max-width: 768px) { .tree-hline, .tree-vlink { display: none; } }

  .branch {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .branch-line {
    width: 1.5px;
    height: 22px;
    background: rgba(24,171,248,0.22);
  }

  /* ── MEMBERSHIP ── */
  .membership { background: #fff; }

  .mem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 52px;
  }

  .mem-block {
    padding: 32px;
    background: var(--cream);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
  }
  .mem-block::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: var(--green);
  }
  .mem-block h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 18px;
  }
  .mem-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .mem-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
  }
  .mem-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* ── JOIN FORM (استمارة الانخراط) ── */
  .join-form-wrap {
    margin-top: 56px;
    background: var(--cream);
    border-radius: 6px;
    padding: 42px;
    border: 1px solid rgba(24,171,248,0.12);
    position: relative;
    overflow: hidden;
  }
  .join-form-wrap::before {
    content: '';
    position: absolute; top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
  }
  .jf-head h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
  }
  .jf-head p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 640px;
  }
  .jf-form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
  .jf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .jf-field { display: flex; flex-direction: column; gap: 6px; }
  .jf-field label { font-size: 0.78rem; font-weight: 700; color: var(--green-dark); letter-spacing: 0.02em; }
  .jf-field label span { font-weight: 400; color: var(--muted); }
  .jf-field input {
    background: #fff;
    border: 1px solid rgba(24,171,248,0.25);
    color: var(--text);
    padding: 12px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: rtl;
    width: 100%;
  }
  .jf-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,171,248,0.1); }
  .jf-field select {
    background: #fff;
    border: 1px solid rgba(24,171,248,0.25);
    color: var(--text);
    padding: 12px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: rtl;
    width: 100%;
    cursor: pointer;
  }
  .jf-field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,171,248,0.1); }
  .jf-privacy-notice { font-size: 0.76rem; color: var(--muted); line-height: 1.7; opacity: 0.85; margin: -6px 0 2px; }
  .jf-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    cursor: pointer;
  }
  .jf-check input { margin-top: 4px; accent-color: var(--green); flex-shrink: 0; width: 16px; height: 16px; }
  .jf-submit { align-self: flex-start; border: none; cursor: pointer; margin-top: 4px; }
  .jf-note { color: var(--green-dark); font-weight: 700; font-size: 0.9rem; margin-top: 2px; }
  .jf-required-hint { font-size: 0.76rem; color: var(--muted); opacity: 0.75; margin-top: -8px; }

  /* ── CONTACT ── */
  .contact {
    background: var(--dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
  .contact .section-label { color: var(--gold); }
  .contact .section-label::after { background: var(--gold); }
  .contact .section-title { color: #fff; }
  .contact > div > p {
    color: #7A847E;
    line-height: 2;
    margin-bottom: 32px;
    font-size: 0.95rem;
  }

  .contact-items { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
  .contact-item { display: flex; align-items: flex-start; gap: 14px; }
  .contact-icon {
    width: 38px; height: 38px;
    background: rgba(24,171,248,0.18);
    border: 1px solid rgba(24,171,248,0.35);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
  }
  .contact-text { font-size: 0.88rem; color: #AAB1AD; line-height: 1.8; }
  .contact-text strong { display: block; color: #E7E9E8; font-size: 0.72rem; letter-spacing: 0.1em; margin-bottom: 1px; }

  .cform { display: flex; flex-direction: column; gap: 14px; }
  .crow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .cfield { display: flex; flex-direction: column; gap: 5px; }
  .cfield label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; color: #6E7972; }
  .cfield input,
  .cfield textarea,
  .cfield select {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    color: #fff;
    padding: 11px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s;
    direction: rtl;
  }
  .cfield input:focus,
  .cfield textarea:focus,
  .cfield select:focus { border-color: var(--green-light); }
  .cfield textarea { resize: vertical; min-height: 90px; }
  .cfield select option { background: var(--dark2); }

  /* ── FOOTER ── */
  footer {
    background:
      radial-gradient(ellipse 70% 90% at 15% 0%, rgba(24,171,248,0.16) 0%, transparent 60%),
      radial-gradient(ellipse 60% 80% at 85% 100%, rgba(93,173,226,0.12) 0%, transparent 60%),
      #06090f;
    padding: 36px 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(201,168,76,0.08);
  }
  .footer-brand { font-family: var(--font-heading); font-size: 1.05rem; color: var(--gold); }
  .footer-copy { font-size: 0.78rem; color: #444B47; }
  .footer-links { display: flex; gap: 18px 22px; flex-wrap: wrap; justify-content: flex-start; flex-basis: 100%; }
  .footer-links a { color: #5D635F; text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
  .footer-links a:hover { color: var(--gold); }
  .footer-social { display: flex; gap: 14px; justify-content: center; margin-top: 4px; }
  .footer-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); color: #8F9390; transition: color 0.2s, border-color 0.2s, background 0.2s; }
  .footer-social a:hover { color: var(--gold); border-color: rgba(201,168,76,0.6); background: rgba(201,168,76,0.08); }
  .footer-credit { text-align: center; background: #06090f; padding: 20px 6vw 24px; font-size: 0.78rem; }
  .footer-credit::before { content: ''; display: block; width: 60px; height: 1px; background: rgba(201,168,76,0.25); margin: 0 auto 18px; }
  .footer-credit a { color: #6A6F6B; text-decoration: none; transition: color 0.2s; }
  .footer-credit a strong { color: var(--gold); font-weight: 700; }
  .footer-credit a:hover { color: #9B9F9D; }
  .footer-credit a:hover strong { color: var(--gold-light); }

  /* ── REVEAL ON SCROLL ── */
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ── MOBILE ── */
  @media (max-width: 768px) {
    nav { padding: 0 20px; }
    section { padding: 72px 20px; }
    .about, .contact { grid-template-columns: 1fr; gap: 40px; }
    .mem-grid { grid-template-columns: 1fr; }
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .crow, .jf-row { grid-template-columns: 1fr; }
    .hero-logo-img { height: 120px; }
    .hero-content { padding: 0 16px; }
    .join-form-wrap { padding: 26px 20px; margin-top: 40px; }
    .tree-row.committees-row { max-width: 100%; }
    .tree-node, .tree-node.sec, .tree-node.ter { min-width: 0; width: 100%; max-width: 280px; }
    .cfield input, .cfield textarea, .cfield select,
    .jf-field input { font-size: 16px; }
  }

  @media (max-width: 400px) {
    .hero-title { font-size: 1.9rem; }
    section { padding: 60px 16px; }
  }

/* ============================================================
   ICON SYSTEM
   ============================================================ */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.eyebrow-badge {
  width: 56px; height: 56px;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--gold-light);
}
.placeholder-banner .icon { color: var(--green-dark); }
.contact-icon .icon, .contact-teaser-item .icon { color: var(--gold-light); }
.doc-icon .icon { color: var(--green); }
.person-avatar .icon, .bureau-avatar .icon { color: var(--green); }
.gallery-tile .icon { color: var(--green); opacity: 0.7; }
.video-thumb .play .icon { color: var(--dark); margin-right: -2px; }
.news-card .thumb .icon { color: var(--green-dark); opacity: 0.55; }
.rm .icon, .dl .icon, .doc-dl .icon, .btn-ghost-dark .icon { margin-right: 2px; }


/* ── Sticky nav (was fixed) + dropdown mega-menu ── */
nav { position: sticky; top: 0; }
.nav-links { align-items: stretch; }
.nav-links > li { position: relative; list-style: none; display: flex; }
.nav-links > li > a { display: flex; align-items: center; gap: 5px; height: 100%; white-space: nowrap; }
.nav-links > li > a .chev { width: 11px; height: 11px; opacity: 0.55; transition: transform 0.2s; }
.nav-links > li:hover > a .chev,
.nav-links > li.pinned-open > a .chev { transform: rotate(180deg); }
.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  right: -18px;
  background: var(--dark2);
  border: 1px solid rgba(201,168,76,0.15);
  border-top: none;
  border-radius: 0 0 6px 6px;
  min-width: 235px;
  padding: 8px;
  box-shadow: 0 22px 44px rgba(0,0,0,0.4);
  z-index: 50;
}
.nav-links > li:hover .nav-drop,
.nav-links > li:focus-within .nav-drop,
.nav-links > li.pinned-open .nav-drop { display: block; }
.nav-drop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #B4BBB7;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-drop a:hover, .nav-drop a.active { background: rgba(24,171,248,0.3); color: var(--gold-light); }
.nav-links > li > a.active { color: var(--gold-light); }

/* ── Mobile accordion inside .mobile-menu ── */
.acc-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: none; border: none;
  color: #AAB1AD; font-family: 'Cairo', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 14px 0; border-bottom: none;
  cursor: pointer; text-align: right;
}
.acc-toggle-label { display: flex; align-items: center; gap: 10px; }
.acc-toggle .chev { width: 12px; height: 12px; transition: transform 0.25s; opacity: 0.55; }
.acc-toggle.open .chev { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.acc-panel.open { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 12px 14px; font-size: 0.83rem;
  color: #868F8A; text-decoration: none;
}
.acc-panel a.active { color: var(--gold-light); }
.mobile-menu > a.active { color: var(--gold-light); }
.mobile-menu > a { display: flex; align-items: center; gap: 10px; }
.mobile-menu-cta { display: flex !important; align-items: center; justify-content: center; gap: 8px; }


/* ============================================================
   PAGE HERO (banner for inner pages)
   ============================================================ */
.page-hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 90px 6vw 56px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 65% at 80% 20%, rgba(24,171,248,0.28) 0%, transparent 70%),
              radial-gradient(ellipse 35% 35% at 15% 80%, rgba(201,168,76,0.1) 0%, transparent 60%);
}
.page-hero > * { position: relative; z-index: 2; }
.breadcrumb { font-size: 0.78rem; color: #6E7972; margin-bottom: 22px; display: flex; gap: 8px; justify-content: center; }
.breadcrumb a { color: var(--gold-light); text-decoration: none; }
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(1.9rem, 4vw, 2.6rem); color: #fff; margin-bottom: 14px; }
.page-hero p { color: #868F8A; font-size: 0.94rem; max-width: 580px; margin: 0 auto; line-height: 1.9; }

.page-content { padding: 80px 6vw; max-width: 1280px; margin: 0 auto; }
.page-content.tight { max-width: 880px; }

/* ============================================================
   NEWS ARTICLE (single article page, generated per news row)
   ============================================================ */
.page-hero-article { padding: 90px 6vw 32px; }
.news-article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.news-article-meta .tag { display: inline-block; background: rgba(24,171,248,0.09); color: var(--green-dark); font-size: 0.72rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; }
.news-article-meta .date { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.news-article h1 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--dark); line-height: 1.5; margin-bottom: 30px; }
.news-article-img { display: block; width: 100%; max-height: 440px; object-fit: cover; border-radius: 8px; margin-bottom: 34px; }
.news-article-body { color: var(--text); font-size: 1.02rem; line-height: 2; }
.news-article-body p { margin-bottom: 24px; }
.news-article-body p:last-child { margin-bottom: 0; }
.news-article-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(24,171,248,0.12); color: var(--green); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.page-content.on-cream { background: var(--cream); max-width: none; }
.page-content.on-cream > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* ============================================================
   404 / ERROR PAGE
   ============================================================ */
.error-page {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 6vw;
  text-align: center;
}
.error-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 65% at 80% 20%, rgba(24,171,248,0.28) 0%, transparent 70%),
              radial-gradient(ellipse 35% 35% at 15% 80%, rgba(201,168,76,0.1) 0%, transparent 60%);
}
.error-page > * { position: relative; z-index: 2; }
.error-content { max-width: 560px; margin: 0 auto; }
.error-icon {
  width: 76px; height: 76px;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 26px;
  color: var(--gold-light);
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 9vw, 6rem);
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  opacity: 0.92;
}
.error-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: #fff;
  margin-bottom: 14px;
}
.error-page p {
  color: #868F8A;
  font-size: 0.96rem;
  line-height: 1.9;
  margin-bottom: 34px;
}
.error-cta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.error-links {
  display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.error-links a {
  color: #929A95;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.error-links a:hover { color: var(--gold-light); }

@media (max-width: 640px) {
  .error-page { min-height: 56vh; padding: 64px 6vw; }
  .error-cta { flex-direction: column; align-items: stretch; }
}

.placeholder-banner {
  display: flex; align-items: center; gap: 12px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.35);
  color: var(--green-dark); font-size: 0.85rem; line-height: 1.8;
  padding: 14px 20px; border-radius: 5px; margin-bottom: 44px;
}

/* ============================================================
   PROGRAM (البرنامج)
   ============================================================ */
.program { background: #fff; }
.program-intro { max-width: 760px; }
.program-axes { display: flex; flex-direction: column; margin-top: 50px; }
.program-axis { display: grid; grid-template-columns: 86px 1fr; gap: 30px; padding: 34px 0; border-top: 1px solid rgba(0,0,0,0.08); }
.program-axis:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.axis-num { font-family: var(--font-heading); font-size: 2.3rem; color: var(--gold); font-weight: 700; }
.axis-body h3 { font-family: var(--font-heading); font-size: 1.28rem; color: var(--dark); margin-bottom: 12px; }
.axis-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.95; margin-bottom: 14px; }
.axis-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.axis-tags span { background: rgba(24,171,248,0.07); color: var(--green-dark); font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; }

/* ============================================================
   TEASER STRIPS ON HOME (news/events/membership/contact)
   ============================================================ */
.teaser-strip { background: var(--cream); }
.teaser-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.teaser-head .btn-ghost-dark { text-decoration: none; border: 1px solid rgba(24,171,248,0.35); color: var(--green-dark); padding: 10px 22px; border-radius: 3px; font-size: 0.82rem; font-weight: 700; transition: background 0.2s; white-space: nowrap; }
.teaser-head .btn-ghost-dark:hover { background: rgba(24,171,248,0.08); }

.join-teaser { background: var(--dark); position: relative; overflow: hidden; text-align: center; }
.join-teaser::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 25% 50%, rgba(24,171,248,0.22) 0%, transparent 70%); }
.join-teaser > * { position: relative; z-index: 2; }
.join-teaser .section-label, .join-teaser .section-title { justify-content: center; margin-left: auto; margin-right: auto; }
.join-teaser .section-title { color: #fff; }
.join-perks { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 30px 0 40px; }
.join-perk { color: #AAB1AD; font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.join-perk::before { content: '✓'; color: var(--gold); font-weight: 700; }

.contact-teaser { background: var(--dark2); padding: 70px 6vw; text-align: center; border-top: 1px solid rgba(201,168,76,0.08); }
.contact-teaser-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); justify-content: center; justify-items: center; gap: 30px 50px; margin: 30px auto 36px; max-width: 780px; }
.contact-teaser-item .ico { font-size: 1.3rem; margin-bottom: 8px; }
.contact-teaser-item strong { display: block; color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.06em; margin-bottom: 6px; }
.contact-teaser-item span { color: #96A09A; font-size: 0.85rem; }

/* ============================================================
   NEWS (الأخبار)
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid rgba(24,171,248,0.09); transition: transform 0.25s, box-shadow 0.25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,0.08); }
.news-card .thumb { height: 165px; background: linear-gradient(135deg, rgba(24,171,248,0.16), rgba(201,168,76,0.22)); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.news-card .body { padding: 22px; }
.news-card .tag { display: inline-block; background: rgba(24,171,248,0.09); color: var(--green-dark); font-size: 0.68rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.news-card .date { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.news-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--dark); margin-bottom: 12px; line-height: 1.5; }
.news-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.8; }
.news-card .rm { display: inline-block; margin-top: 14px; font-size: 0.8rem; color: var(--green); font-weight: 700; text-decoration: none; }
.on-cream .news-card { background: #fff; }

/* ============================================================
   PERSON — الرئيس
   ============================================================ */
.person-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; }
.person-card { background: #fff; border-radius: 8px; padding: 40px 30px; text-align: center; border: 1px dashed rgba(24,171,248,0.35); }
.person-avatar { width: 140px; height: 140px; border-radius: 50%; background: var(--cream); border: 2px dashed rgba(24,171,248,0.4); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; margin: 0 auto 22px; color: var(--green); }
.person-card .name-ph { font-size: 1.05rem; color: var(--muted); font-style: italic; margin-bottom: 6px; }
.person-card .role-ph { color: var(--green-dark); font-weight: 700; font-size: 0.83rem; letter-spacing: 0.03em; }
.person-bio h2 { font-family: var(--font-heading); font-size: 1.55rem; color: var(--dark); margin-bottom: 18px; }
.person-bio p { color: var(--muted); font-size: 0.94rem; line-height: 2; margin-bottom: 16px; }
.person-bio .quote-box { background: var(--cream); border-right: 3px solid var(--gold); padding: 22px 28px; border-radius: 4px; margin-top: 24px; font-style: italic; color: var(--dark); font-size: 0.94rem; line-height: 1.9; }

/* ── BUREAU GRID (المكتب السياسي) ── */
.bureau-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bureau-card { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 6px; padding: 28px 16px; text-align: center; }
.bureau-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--cream); border: 2px dashed rgba(24,171,248,0.35); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 14px; color: var(--green); }
.bureau-card .name { font-size: 0.83rem; color: var(--muted); font-style: italic; margin-bottom: 5px; }
.bureau-card .role { font-size: 0.75rem; font-weight: 700; color: var(--green-dark); line-height: 1.5; }

/* ============================================================
   BRANCHES (الفروع والجهات) — interactive 12-region map
   ============================================================ */

/* Header/content padding stays the standard .page-hero/.page-content
   sizing used on every other page — no page-specific compacting. */
.regions-map-instruction {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--dark);
  margin: 4px 0 18px;
}

.regions-map-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 0;
  transition: gap 0.6s cubic-bezier(.22,.68,.1,1);
}
.regions-map-section.has-selection { justify-content: flex-start; gap: 40px; }

.regions-map-wrap { flex: 0 0 min(94vw, 720px); max-height: 74vh; display: flex; justify-content: center; transition: transform 0.6s cubic-bezier(.22,.68,.1,1); }
.regions-map-wrap svg { max-width: 100%; max-height: 74vh; width: auto; height: auto; display: block; }
.regions-map-wrap .region { fill: #fff; stroke: rgba(10,22,34,0.28); stroke-width: 14; cursor: pointer; transition: fill 0.18s ease, stroke 0.18s ease; }
.regions-map-wrap .region:hover { fill: var(--gold-light); stroke: var(--gold-dark); }
.regions-map-wrap .region:focus { outline: none; }
.regions-map-wrap .region:focus-visible { outline: none; filter: drop-shadow(0 0 2px var(--green-dark)) drop-shadow(0 0 2px var(--green-dark)); }
.regions-map-wrap .region.active { fill: var(--green); stroke: var(--green-dark); }

.regions-map-side {
  flex: 0 0 0; width: 0; max-width: 0; min-width: 0; max-height: 0;
  opacity: 0; overflow: hidden; pointer-events: none;
  transform: translateX(30px);
  transition: flex-basis 0.6s cubic-bezier(.22,.68,.1,1), max-width 0.6s cubic-bezier(.22,.68,.1,1),
              opacity 0.4s ease 0.12s, transform 0.5s cubic-bezier(.22,.68,.1,1) 0.12s;
}
html[dir="rtl"] .regions-map-side { transform: translateX(-30px); }
.regions-map-section.has-selection .regions-map-side {
  flex: 1 1 420px; width: auto; max-width: 620px; min-width: 0;
  opacity: 1; pointer-events: auto; transform: translateX(0);
  max-height: 62vh; overflow-y: auto; padding-inline-end: 4px;
}

.regions-map-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin-bottom: 16px;
  color: var(--green-dark); font-weight: 700; font-size: 0.85rem; font-family: inherit; cursor: pointer;
}
.regions-map-back svg { transform: none; }
html[dir="rtl"] .regions-map-back svg { transform: scaleX(-1); }

.region-panels { display: flex; flex-direction: column; gap: 14px; }
.region-panel { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 6px; padding: 24px 28px; }
.region-panel.hidden { display: none; }
.region-panel-title { font-family: var(--font-heading); color: var(--dark); font-size: 1.08rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }

.region-branch-list { display: flex; flex-direction: column; gap: 16px; }
.region-branch-list .empty-state { padding: 0; }
.branch-card { background: var(--cream); border-radius: 8px; padding: 18px 20px; }
.branch-provinces { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600; color: var(--dark); line-height: 1.5; margin-bottom: 12px; }
.branch-provinces .icon { color: var(--green); flex-shrink: 0; }
.branch-contact { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 14px; }
.branch-contact-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text); text-decoration: none; }
.branch-contact-item .icon { color: var(--muted); flex-shrink: 0; }
a.branch-contact-item:hover { color: var(--green); }
a.branch-contact-item:hover .icon { color: var(--green); }
.status-pill { display: inline-block; background: rgba(201,168,76,0.14); color: var(--gold-dark); font-size: 0.72rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; }

/* ============================================================
   GALLERY (معرض الصور)
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-tile { aspect-ratio: 1 / 1; border-radius: 6px; background: linear-gradient(135deg, rgba(24,171,248,0.14), rgba(201,168,76,0.2)); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--green); border: 1px solid rgba(24,171,248,0.1); overflow: hidden; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-tile.has-photo { cursor: zoom-in; padding: 0; border: none; position: relative; }
.gallery-tile.has-photo::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.2s; }
.gallery-tile.has-photo:hover::after { background: rgba(0,0,0,0.12); }
.gallery-tile.has-photo:hover img { transform: scale(1.04); }
.gallery-tile.has-photo img { transition: transform 0.3s ease; }
.gallery-tile.has-photo:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ============================================================
   FLYERS (الملصقات الانتخابية) — temporary/seasonal section
   ============================================================ */
.flyers-region-group { margin-bottom: 40px; }
.flyers-region-group:last-child { margin-bottom: 0; }
.flyers-region-title { font-family: var(--font-heading); color: var(--dark); font-size: 1.08rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
/* Unlike gallery-tile, no forced aspect-ratio — flyers are designed
   posters (usually portrait), cropping them square would cut off text. */
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.flyer-tile { border-radius: 6px; overflow: hidden; background: var(--cream); border: 1px solid rgba(0,0,0,0.07); cursor: zoom-in; position: relative; }
.flyer-tile img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.flyer-tile::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.2s; }
.flyer-tile:hover::after { background: rgba(0,0,0,0.1); }
.flyer-tile:hover img { transform: scale(1.03); }
.flyer-tile:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Flyers lightbox reuses the .lightbox/.lightbox-img-wrap/.lightbox-close
   etc rules above, plus a download button. */
.lightbox-download { position: fixed; top: 20px; inset-inline-start: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.lightbox-download:hover { background: rgba(255,255,255,0.2); }

/* Flyers popup — shown once per visit via assets/js/main.js */
.flyers-popup { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(8,12,10,0.72); padding: 20px; }
.flyers-popup.open { display: flex; }
.flyers-popup-card { position: relative; background: var(--dark); border-radius: 12px; padding: 44px 36px 36px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,0.45); }
.flyers-popup-close { position: absolute; top: 12px; inset-inline-end: 12px; background: none; border: none; color: rgba(255,255,255,0.55); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s, color 0.2s; }
.flyers-popup-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.flyers-popup-card h2 { font-family: var(--font-heading); color: #fff; font-size: 1.4rem; line-height: 1.4; margin-bottom: 14px; }
.flyers-popup-card p { color: rgba(255,255,255,0.68); font-size: 1rem; line-height: 1.75; margin-bottom: 28px; }
.flyers-popup-cta { display: inline-block; background: var(--gold); color: var(--dark); font-weight: 700; font-size: 0.95rem; padding: 13px 30px; border-radius: 30px; text-decoration: none; transition: background 0.2s; }
.flyers-popup-cta:hover { background: var(--gold-light); }

/* Lightbox overlay — shared across gallery.html in every language */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(8,12,10,0.92); padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-img-wrap { position: relative; max-width: min(92vw, 1100px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-img-wrap img { max-width: 100%; max-height: 78vh; border-radius: 8px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { color: #DADBDA; font-size: 0.9rem; margin-top: 12px; text-align: center; max-width: 90%; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: fixed; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 20px; inset-inline-end: 20px; }
/* prev/next use fixed physical sides (not inset-inline-start/end) on
   purpose: their arrow icons are fixed shapes that never mirror for RTL,
   so letting only the position flip (as inset-inline-* would) leaves a
   right-pointing arrow sitting on the left and vice versa on Arabic. */
.lightbox-prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 20px; transform: translateY(-50%); }
@media (max-width: 640px) {
  /* Mobile only: the fixed-position side arrows were hard to see/reach on
     a narrow screen, so on mobile they move into a row below the image
     instead. Desktop keeps the original fixed side-arrow layout untouched
     — .lightbox-nav-mobile has no effect above this breakpoint since its
     buttons stay position:fixed until this query overrides them. */
  .lightbox { flex-direction: column; }
  .lightbox-img-wrap { order: 1; }
  .lightbox-nav-mobile {
    order: 2;
    display: flex;
    /* Flex row direction follows the page's dir by default — on the
       Arabic (RTL) page that put the DOM-first child (prev, left-arrow)
       on the visual right instead of left, same mismatch class as the
       desktop fixed-position bug above. Forcing ltr here keeps prev on
       the left / next on the right regardless of page language, since
       this is photo navigation, not text. */
    direction: ltr;
    justify-content: center;
    gap: 28px;
    margin-top: 16px;
  }
  .lightbox-prev, .lightbox-next {
    position: static;
    top: auto; left: auto; right: auto; transform: none;
    width: 38px; height: 38px;
  }
  .lightbox-close { top: 12px; inset-inline-end: 12px; }
}
.bureau-avatar { overflow: hidden; }
.bureau-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bureau-avatar.has-photo { border-style: solid; }
a.video-card { display: block; text-decoration: none; color: inherit; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.doc-dl.disabled { opacity: 0.55; pointer-events: none; cursor: default; }
.empty-state { color: var(--muted); font-size: 0.9rem; padding: 20px 0; grid-column: 1 / -1; }
.mock-card { opacity: 0.5; border-style: dashed !important; box-shadow: none !important; pointer-events: none; }
.mock-card:hover { transform: none !important; }
.mock-card .tag { background: rgba(0,0,0,0.06) !important; color: var(--muted) !important; }
/* .press-row only ever has a bottom divider, not a full border like the
   other card types — without this, .mock-card's blanket dashed border
   adds phantom top/left/right borders and boxes the row in. */
.press-row.mock-card { border-top-style: none !important; border-left-style: none !important; border-right-style: none !important; border-bottom-style: dashed !important; }

/* ============================================================
   VIDEOS (الفيديوهات)
   ============================================================ */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: #fff; border: 1px solid rgba(24,171,248,0.08); border-radius: 6px; overflow: hidden; }
.video-thumb { height: 175px; background: var(--dark); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.video-thumb .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,168,76,0.92); display: flex; align-items: center; justify-content: center; color: var(--dark); font-size: 1.15rem; position: relative; z-index: 1; }
.video-card .body { padding: 18px 20px; }
.video-card h3 { font-size: 0.94rem; color: var(--dark); font-weight: 700; margin-bottom: 6px; }
.video-card span { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   EVENTS (الفعاليات)
   ============================================================ */
.events-list { display: flex; flex-direction: column; gap: 16px; }
.event-row { display: flex; align-items: center; gap: 26px; background: #fff; border: 1px solid rgba(24,171,248,0.08); border-radius: 6px; padding: 22px 26px; border-right: 3px solid var(--green); }
.event-date { background: var(--green); color: #fff; border-radius: 4px; padding: 12px 16px; text-align: center; min-width: 72px; flex-shrink: 0; }
.event-date .day { font-size: 1.45rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.68rem; letter-spacing: 0.05em; margin-top: 5px; }
.event-info h3 { font-family: var(--font-heading); font-size: 1.06rem; color: var(--dark); margin-bottom: 8px; }
.event-info .meta { font-size: 0.81rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.event-past { opacity: 0.55; }

/* ============================================================
   PRESS RELEASES (البلاغات)
   ============================================================ */
.press-list { display: flex; flex-direction: column; }
.press-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 4px; border-bottom: 1px solid rgba(0,0,0,0.07); gap: 20px; }
.press-row .date { font-size: 0.76rem; color: var(--green); font-weight: 700; min-width: 100px; flex-shrink: 0; }
.press-row h3 { font-family: var(--font-heading); font-size: 1.04rem; color: var(--dark); flex: 1; font-weight: 400; }
.press-row .dl { font-size: 0.8rem; color: var(--green-dark); text-decoration: none; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   DOCUMENTS (الوثائق)
   ============================================================ */
.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc-row { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid rgba(24,171,248,0.08); border-radius: 6px; padding: 20px 24px; }
.doc-icon { width: 46px; height: 46px; background: var(--cream); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; color: var(--green); }
.doc-info { flex: 1; }
.doc-info h3 { font-size: 0.95rem; color: var(--dark); font-weight: 700; margin-bottom: 3px; }
.doc-info span { font-size: 0.78rem; color: var(--muted); }
.doc-dl { background: var(--green); color: #fff !important; padding: 10px 22px; border-radius: 3px; text-decoration: none; font-size: 0.82rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; transition: background 0.2s; }
.doc-dl:hover { background: var(--green-light); }
.doc-dl.disabled { background: rgba(0,0,0,0.08); color: var(--muted) !important; pointer-events: none; }

/* ============================================================
   MOBILE — extensions
   ============================================================ */
@media (max-width: 900px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .bureau-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .person-wrap { grid-template-columns: 1fr; }
  .program-axis { grid-template-columns: 56px 1fr; gap: 20px; }
  .regions-map-section { flex-direction: column; align-items: center; gap: 0; min-height: 0; }
  .regions-map-section.has-selection { gap: 0; }
  .regions-map-wrap { flex: none; width: 100%; max-width: 420px; max-height: 52vh; margin: 0 auto; }
  .regions-map-wrap svg { max-height: 52vh; }
  .regions-map-side {
    flex: none; width: 100%; max-width: none; height: 0;
    transform: translateY(20px);
    transition: height 0.5s cubic-bezier(.22,.68,.1,1), opacity 0.35s ease, transform 0.4s ease, margin-top 0.5s ease;
  }
  html[dir="rtl"] .regions-map-side { transform: translateY(20px); }
  .regions-map-section.has-selection .regions-map-side {
    height: auto; width: 100%; max-width: none; margin-top: 28px;
    transform: translateY(0); max-height: none; overflow: visible;
  }
}

@media (max-width: 768px) {
  .page-hero { padding: 76px 20px 46px; }
  .page-content { padding: 60px 20px; }
  .news-grid, .bureau-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .regions-map-wrap { max-width: 340px; }
  .contact-teaser-items, .join-perks { gap: 26px; }
  .event-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .press-row { flex-wrap: wrap; }
  .doc-row { flex-wrap: wrap; }
  .doc-dl { width: 100%; text-align: center; }
  .teaser-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .principles-grid, .news-grid, .bureau-grid, .video-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .join-perks { flex-direction: column; align-items: center; gap: 14px; }
}

/* ============================================================
   PRINCIPLES SECTION — responsive order, reveal + hover
   ============================================================ */

/* The single-column mobile intent was declared at line ~763, i.e. BEFORE the
   (max-width: 900px) block below it, so the two-column rule won the cascade and
   phones between 481-768px got cramped half-width cards. These two blocks are the
   same declarations in the order the cascade actually needs: 3 -> 2 -> 1. */
@media (max-width: 900px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .principles-grid { grid-template-columns: 1fr; } }

/* .reveal declares opacity/transform transitions, and being later in the sheet it
   was replacing the card's own transition list outright — so the hover colour
   change snapped and the lift ran at 0.45s instead of 0.25s. Re-declared here at
   higher specificity; the reveal itself moves to a keyframe animation below. */
.principles-grid .principle-card {
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

/* Staggered entrance. fill-mode is `backwards` (not `both`) on purpose: once the
   animation ends the card falls back to its normal styles, so `transform` stays
   free for the hover lift instead of being pinned by a forwards fill. */
@keyframes principle-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.principles-grid .principle-card.reveal.visible {
  animation: principle-reveal 0.5s ease backwards;
}
.principles-grid .principle-card.reveal.visible:nth-child(2) { animation-delay: 0.07s; }
.principles-grid .principle-card.reveal.visible:nth-child(3) { animation-delay: 0.14s; }
.principles-grid .principle-card.reveal.visible:nth-child(4) { animation-delay: 0.21s; }
.principles-grid .principle-card.reveal.visible:nth-child(5) { animation-delay: 0.28s; }
.principles-grid .principle-card.reveal.visible:nth-child(6) { animation-delay: 0.35s; }

/* Touch devices never hold a hover, so the cards had no press feedback at all. */
.principle-card:active {
  background: rgba(24,171,248,0.10);
  border-color: rgba(24,171,248,0.25);
  transform: translateY(-1px);
}

/* Honour the OS "reduce motion" setting for this section. */
@media (prefers-reduced-motion: reduce) {
  .principles-grid .principle-card { transition: none; }
  .principles-grid .principle-card.reveal { opacity: 1; transform: none; }
  .principles-grid .principle-card.reveal.visible { animation: none; }
  .principle-card:hover, .principle-card:active { transform: none; }
}

/* JavaScript safety net. The base .reveal rule hides these cards until the
   IntersectionObserver adds .visible, so if main.js is blocked or 404s they would
   stay transparent forever. `@media (scripting: none)` was the obvious way to cover
   this, but Chrome does not implement that feature, so the hiding is gated on main.js
   actually running (it adds `js` to <html>) and on :not(.visible), which keeps
   .reveal.visible from being outranked. */
.principles-grid .principle-card.reveal { opacity: 1; transform: none; }
html.js .principles-grid .principle-card.reveal:not(.visible) {
  opacity: 0;
  transform: translateY(14px);
}

/* ============================================================
   PUD final responsive, multilingual, and premium polish
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  overflow-x: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  overflow-x: hidden;
  -ms-overflow-style: none;
}

/* Mobile only (<=1100px, i.e. wherever the burger replaces the desktop nav):
   keep the nav pinned while scrolling. `nav { position: sticky }` was already
   set globally but never actually worked -- html AND body both have
   overflow-x: hidden, which turns <body> into a scroll container that never
   scrolls, so sticky has nothing to stick against. overflow-x: clip still
   clips horizontal overflow but does NOT create a scroll container.
   Desktop is deliberately left exactly as it was (its nav scrolls away with
   the page, as before). scroll-padding-top keeps #anchor jumps from landing
   underneath the now-pinned bar. */
@media (max-width: 1100px) {
  html,
  body {
    overflow-x: clip;
  }
  html {
    scroll-padding-top: 72px;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

nav {
  min-height: 66px;
  gap: 18px;
}

.nav-logo {
  min-width: 0;
}

.nav-logo-img {
  width: auto;
  height: 44px;
  max-width: 78px;
  object-fit: contain;
}

.nav-wordmark {
  max-width: 150px;
}

/* ── Nav: the temporary "Elections" link (site_settings.flyers_promo_enabled)
   adds one more item to an already-tight nav, pushing the wordmark from 2
   lines to 3 and colliding with the nav links at common desktop widths
   (reproduced at 1366px). Scoped with :has() to only apply while that link
   actually exists in the DOM -- when the setting is turned off, the
   NAV_FLYERS marker removes the <li> entirely, this stops matching, and
   the nav reverts to its exact original spacing with no cleanup needed.

   This is a text/spacing squeeze, not a structural change (no burger
   menu at desktop widths) -- reasonable since the whole flyers feature
   is temporary. Also scoped to html[dir="ltr"]: Arabic's wordmark is a
   fixed-size <img>, not wrapping text, so it was never affected by
   this and doesn't need any of this. */
@media (min-width: 1101px) {
  html[dir="ltr"] nav:has(.nav-links a[data-page-link="flyers"]) .nav-wordmark {
    max-width: 168px;
    font-size: 0.72rem;
  }
  html[dir="ltr"] nav:has(.nav-links a[data-page-link="flyers"]) .nav-links {
    gap: 8px;
  }
  html[dir="ltr"] nav:has(.nav-links a[data-page-link="flyers"]) .nav-links > li > a {
    font-size: 0.72rem;
    gap: 3px;
  }
  html[dir="ltr"] nav:has(.nav-links a[data-page-link="flyers"]) .nav-cta {
    padding-inline: 12px;
    font-size: 0.72rem;
  }
  html[dir="ltr"] nav:has(.nav-links a[data-page-link="flyers"]) .lang-switch {
    gap: 2px;
    margin-left: 2px;
  }
  html[dir="ltr"] nav:has(.nav-links a[data-page-link="flyers"]) .lang-switch a {
    width: 30px;
  }
  html[dir="ltr"] nav:has(.nav-links a[data-page-link="flyers"]) .flag-icon {
    width: 20px;
  }
}

.nav-wordmark-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

/* Phone numbers are always LTR content — the .jf-field/.cfield input rules
   above set direction:rtl at class-selector specificity, which beats the
   dir="ltr" HTML attribute (that only carries UA-stylesheet-level weight).
   ID selectors here reliably win without needing !important. */
#cf-phone, #jf-phone {
  direction: ltr;
  text-align: right;
}

.footer-wordmark-img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.nav-cta,
.mobile-menu-cta,
.btn-primary,
.btn-outline,
.btn-ghost-dark,
.doc-dl {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
}

.nav-cta,
.mobile-menu-cta {
  padding-inline: 24px;
}

.lang-switch {
  gap: 7px;
}

.lang-switch a,
.mobile-lang-switch a {
  width: 42px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
}

.mobile-lang-switch a {
  flex: 0 0 46px;
  width: 46px;
  height: 38px;
}

.lang-switch a:hover,
.mobile-lang-switch a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.lang-switch a.active,
.mobile-lang-switch a.active {
  background: rgba(201,168,76,0.16);
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.08) inset;
}

.flag-icon {
  width: 26px;
  height: 20px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}

.mobile-lang-switch {
  justify-content: center;
}

.hero {
  min-height: 100svh;
  padding: 64px 0 92px;
}

.hero-content {
  width: min(100%, 920px);
  padding-inline: 24px;
}

.hero-logo-img {
  width: auto;
  height: auto;
  margin: 0;
}

.hero-logo-frame {
  position: relative;
  width: min(58vw, 390px);
  margin: 0 auto clamp(12px, 2vh, 24px);
  padding: 12px 12px 16px;
  isolation: isolate;
}

.hero-logo-frame::before {
  content: none;
}

.hero-logo-frame::after {
  content: none;
}

.hero-logo-frame .hero-logo-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: none;
}

.hero-french {
  max-width: min(680px, 92vw);
  margin-bottom: clamp(26px, 4.5vh, 48px);
}

.hero-cta {
  align-items: center;
}

.scroll-hint {
  display: none !important;
}

.news-card,
.bureau-card,
.branch-card,
.video-card,
.doc-row,
.event-row,
.mem-block,
.join-form-wrap {
  box-shadow: 0 14px 36px rgba(10,22,34,0.055);
}

.tree,
.tree-row,
.branch,
.branch-line,
.vline,
.tree-hline,
.tree-vlink {
  display: none !important;
}

.org-chart {
  --org-line: rgba(24,171,248,0.28);
  --org-gap: 34px;
  width: min(1180px, 100%);
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-stage {
  position: relative;
  display: grid;
  gap: 22px;
  width: 100%;
  justify-items: center;
  margin-top: var(--org-gap);
}

.org-stage-root {
  margin-top: 0;
}

.org-stage-pair {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  max-width: 690px;
}

.org-stage-committees {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.org-stage-local {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  max-width: 850px;
}

.org-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid rgba(24,171,248,0.22);
  background: rgba(255,255,255,0.88);
  color: var(--green-dark);
  text-align: center;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 16px 34px rgba(10,22,34,0.07);
}

.org-card small {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.org-card-primary {
  max-width: 520px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  border-color: rgba(201,168,76,0.22);
}

.org-card-primary small {
  color: #CCDAD2; /* solid equiv. of rgba(255,255,255,0.78), approximated at the --green/--green-dark gradient's midpoint */
}

.org-card-secondary {
  max-width: 320px;
}

.org-card-tertiary {
  min-height: 68px;
  background: rgba(255,255,255,0.68);
  border-color: rgba(24,171,248,0.18);
  font-size: 0.84rem;
}

.org-card-soft {
  background: rgba(24,171,248,0.06);
}

a.org-card {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.org-card:hover,
a.org-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(10,22,34,0.14);
  border-color: rgba(201,168,76,0.55);
}

a.org-card-primary:hover,
a.org-card-primary:focus-visible {
  border-color: rgba(201,168,76,0.7);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.35;
}

.footer-logo-img {
  width: auto;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  nav {
    padding-inline: 18px;
  }

  .nav-links,
  nav > .nav-cta,
  nav > .lang-switch {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .mobile-menu {
    top: 66px;
  }

  .hero-logo-frame {
    width: min(68vw, 360px);
  }

  .hero-logo-frame .hero-logo-img {
    max-height: 210px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 16px;
  }

  .nav-logo-img {
    height: 42px;
    max-width: 72px;
  }

  .nav-wordmark {
    max-width: 138px;
    font-size: 0.92rem;
  }

  .nav-wordmark-img {
    height: 37px;
  }

  .mobile-menu {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .mobile-menu a,
  .acc-toggle {
    min-height: 46px;
  }

  .hero {
    align-items: flex-start;
    padding: 68px 0 44px;
  }

  .hero-content {
    padding-inline: 18px;
  }

  .hero-logo-frame {
    width: min(84vw, 340px);
    padding: 8px 8px 12px;
    margin-bottom: 12px;
  }

  .hero-logo-frame::before {
    inset: 12% -12% 0;
    filter: blur(7px);
  }

  .hero-logo-frame .hero-logo-img {
    max-height: 188px;
  }

  .hero-badge {
    margin-bottom: 18px;
    font-size: 0.68rem;
    padding-inline: 14px;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-divider {
    margin-block: 14px 12px;
  }

  .hero-french {
    font-size: 0.78rem;
    line-height: 1.8;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
  }

  .hero-cta {
    width: min(100%, 370px);
    gap: 12px;
  }

  .hero-cta a {
    flex: 1 1 0;
    padding-inline: 18px;
  }

  .org-chart {
    margin-top: 38px;
    --org-gap: 26px;
  }

  .org-stage,
  .org-stage-pair,
  .org-stage-committees,
  .org-stage-local {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 14px;
  }

  .org-card {
    max-width: none;
    min-height: 62px;
    padding: 14px 16px;
  }

  .contact-teaser-items,
  .join-perks {
    align-items: stretch;
  }

  .contact-teaser-item,
  .join-perk {
    justify-content: center;
    text-align: center;
  }

  footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  nav {
    padding-inline: 14px;
  }

  .nav-logo {
    gap: 10px;
    max-width: calc(100% - 54px);
  }

  .nav-logo-img {
    height: 38px;
    max-width: 64px;
  }

  .nav-wordmark {
    max-width: 142px;
    font-size: 0.86rem;
    line-height: 1.22;
  }

  .nav-wordmark-img {
    height: 34px;
  }

  .hero-title {
    font-size: clamp(2.15rem, 13vw, 3.35rem);
  }
}

@media (max-width: 390px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta a {
    width: 100%;
    flex: none;
    min-height: 52px;
  }
}

@media (max-width: 360px) {
  .nav-wordmark {
    display: none;
  }

  .hero-logo-frame {
    width: min(86vw, 300px);
  }

  .hero-logo-frame .hero-logo-img {
    max-height: 160px;
  }
}

@media (max-height: 680px) and (max-width: 768px) {
  .hero-logo-frame {
    width: min(76vw, 280px);
    margin-bottom: 12px;
  }

  .hero-logo-frame .hero-logo-img {
    max-height: 146px;
  }

  .hero-badge,
  .hero-divider {
    margin-bottom: 12px;
  }

  .hero-french {
    margin-bottom: 18px;
  }
}

/* Height-aware hero fit for laptops and landscape tablets */
@media (max-height: 860px) and (min-width: 769px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 46px;
  }

  .hero-logo-frame {
    width: min(48vw, 340px);
    margin-bottom: 16px;
    padding: 8px 8px 12px;
  }

  .hero-logo-frame .hero-logo-img {
    max-height: 205px;
  }

  .hero-badge {
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(2rem, 4.4vw, 3.15rem);
    margin-bottom: 8px;
  }

  .hero-divider {
    margin: 10px 0 10px;
  }

  .hero-french {
    margin-bottom: 20px;
    font-size: 0.84rem;
  }
}

/* Hard fix: mobile drawer must never leak as a desktop bar */
.mobile-menu {
  display: none !important;
  max-height: 0;
  padding: 0 !important;
  border-bottom: 0 !important;
}

@media (max-width: 1100px) {
  .mobile-menu {
    display: flex !important;
    padding: 0 18px !important;
    gap: 0;
  }

  .mobile-menu.open {
    max-height: calc(100svh - 66px);
    padding: 8px 18px max(20px, env(safe-area-inset-bottom)) !important;
    border-bottom: 1px solid rgba(201,168,76,0.18) !important;
  }
}

@media (max-width: 430px) {
  .mobile-menu {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .mobile-menu.open {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
