html { overflow-y: scroll; }
:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b677a;
  --line:#e7eef7;
  --primary:#0969b8;   /* darker for WCAG contrast */
  --primary-2:#0b5aa6;
  --card:#f7fbff;
  --shadow: 0 10px 30px rgba(11,18,32,.08);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92%); margin:0 auto; }

.topbar{
  background: #0b1220;
  color: #fff;
  font-size: 14px;
}
.topbar-inner{
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  padding:10px 0;
}
.topbar a{ color:#fff; opacity:.9; }
.topbar a:hover{ opacity:1; }
.dot{ opacity:.6; margin:0 8px; }

.header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:16px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{ width:46px; height:46px; object-fit:contain; }
.brand-name{ font-weight:800; letter-spacing:.8px; font-size:20px; line-height:1.1; }
.brand-sub{ color:var(--muted); font-size:13px; }

.menu{ display:flex; gap:18px; align-items:center; }
.menu a{ color:var(--muted); font-weight:600; font-size:14px; }
.menu a:hover{ color:var(--text); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius: 999px;
  border:1px solid transparent;
  font-weight:700;
  gap:10px;
  cursor:pointer;
}
.btn-primary{
  background: var(--primary);
  color:#fff;
  box-shadow: 0 10px 25px rgba(10,123,214,.25);
}
.btn-primary:hover{ background: var(--primary-2); }
.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover{ border-color:#cfe0f5; background:#f4f9ff; }

.hero{
  padding:52px 0 28px;
  background:
    radial-gradient(1200px 400px at 20% -10%, rgba(10,123,214,.18), transparent 60%),
    radial-gradient(1000px 420px at 90% 0%, rgba(10,123,214,.10), transparent 55%);
  border-bottom:1px solid var(--line);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:22px;
  align-items:stretch;
}
.hero h1{ font-size:42px; line-height:1.1; margin:0 0 12px; }
.hero p{ color:var(--muted); font-size:16px; line-height:1.7; margin:0 0 18px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.hero-badges{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.badge{
  font-size:13px; font-weight:700;
  padding:8px 12px;
  border-radius:999px;
  background:#eef7ff;
  border:1px solid #d7ebff;
  color:#0a4f8d;
}

.hero-card{
  background: #fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.hero-card h3{ margin:0 0 10px; }
.checklist{ margin:0; padding-left:18px; color:var(--muted); line-height:1.7; }
.checklist li{ margin:6px 0; }

.section{ padding:46px 0; }
.section-alt{ background: var(--card); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head h2{ margin:0 0 10px; font-size:28px; }
.section-head p{ margin:0; color:var(--muted); line-height:1.7; max-width:850px; }

.cards{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card h3{ margin:0 0 10px; }
.card p{ margin:0; color:var(--muted); line-height:1.7; }

.grid-2{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.pill{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 999px;
  padding:12px 14px;
  color:var(--muted);
  font-weight:600;
}

.volunteer{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:start;
}
.vol-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.small{ color:var(--muted); font-size:13px; line-height:1.6; }

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
.contact-box{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  background:#fff;
  line-height:1.8;
}
.form{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.form h3{ margin:0 0 12px; }
label{ display:block; font-weight:700; font-size:13px; margin:10px 0 6px; color:var(--text); }
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #dbe7f5;
  outline:none;
  font-size:14px;
}
input:focus, textarea:focus{ border-color: rgba(10,123,214,.5); box-shadow: 0 0 0 4px rgba(10,123,214,.12); }

.rtl{
  text-align:right;
}
.rtl p{ color:var(--muted); line-height:1.9; }

.footer{
  padding:20px 0;
  border-top:1px solid var(--line);
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  color:var(--muted);
  font-size:14px;
}
.footer-links{ display:flex; gap:14px; }
.footer-links a:hover{ color:var(--text); }

.popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.popup-box{
  width: min(520px, 92%);
  background: #fff;
  border: 1px solid #e7eef7;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(11,18,32,.18);
  padding: 22px;
  text-align: center;
}

.popup-box h2{
  margin: 0 0 10px;
  font-size: 28px;
}

.popup-box p{
  margin: 0 0 16px;
  font-size: 16px;
  color: #5b677a;
  line-height: 1.6;
}

/* ===== RTL (Arabic) support ===== */
html[dir="rtl"] body{
  direction: rtl;
}

html[dir="rtl"] .brand-text{
  text-align: right;
}

html[dir="rtl"] .checklist{
  padding-left: 0;
  padding-right: 18px;
}

html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .nav,
html[dir="rtl"] .footer-inner{
  direction: rtl;
}

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

html[dir="rtl"] input,
html[dir="rtl"] textarea{
  text-align: right;
}

/* Style AR link like a button (desktop + mobile) */
.menu a:last-child{
  border: 1px solid #2aa3ff;
  padding: 6px 10px;
  border-radius: 8px;
}

/* ✅ Thank You Popup Center */
.thanks-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  padding: 20px;
}

.thanks-modal.show {
  display: flex;
}

.thanks-box {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: popup 0.25s ease;
}

.thanks-icon {
  font-size: 46px;
  margin-bottom: 10px;
}

.thanks-box h2 {
  margin: 8px 0;
  font-size: 26px;
}

.thanks-box p {
  margin: 0 0 16px;
  opacity: 0.85;
}

@keyframes popup {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== Site Search (Header) ===== */
.site-search{
  display:flex;
  align-items:center;
  gap:10px;
}
.site-search input[type="search"]{
  width: 220px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #dbe7f5;
  outline: none;
  font-size: 14px;
  background: #fff;
}
.site-search input[type="search"]:focus{
  border-color: rgba(10,123,214,.5);
  box-shadow: 0 0 0 4px rgba(10,123,214,.12);
}
.site-search .btn{
  padding: 10px 14px;
}

/* =======================================================
   ✅ SINGLE MOBILE BLOCK (no duplicates / no conflicts)
   ======================================================= */
@media (max-width: 920px){
.header{
  position: static;
}

  /* sections/layout */
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .volunteer{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }




  /* header layout */
  .nav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .brand{
    width: 100%;
    justify-content: center;
  }

  .brand-text{
    text-align: center;
  }

  /* hide header search on mobile */
  .site-search{
    display: none !important;
  }

  /* show menu nicely on mobile */
  .menu{
    display:flex;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:6px;

    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow: var(--shadow);
    padding:10px;
  }

  .menu a{
    padding:12px 12px;
    border-radius:10px;
    text-align:center;
  }

  .menu a:hover{
    background:#f4f9ff;
  }

  /* AR button (last link) */
  .menu a:last-child{
    border:1px solid #2aa3ff;
    border-radius:10px;
    margin-top:6px;
  }

  /* volunteer button full width under menu */
  .nav > .btn.btn-primary{
    width: 100%;
    justify-content: center;
  }
}


/* --- Privacy page polish (Arabic / RTL) --- */

/* Better Arabic reading */
html[dir="rtl"] body{
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.9;
}

/* Improve long-text readability inside cards */
html[dir="rtl"] .card{
  max-width: 980px;
  margin-inline: auto;
}

/* Make headings nicer for policy pages */
html[dir="rtl"] .card h2{
  font-size: 1.1rem;
  margin: 1.2rem 0 0.6rem;
}

html[dir="rtl"] .card p{
  margin: 0.6rem 0;
}

/* Lists in RTL: spacing and bullets */
html[dir="rtl"] .card ul{
  padding-inline-start: 1.2rem; /* works in RTL too */
  margin: 0.6rem 0 1rem;
}
html[dir="rtl"] .card li{
  margin: 0.35rem 0;
}

/* If nav/search alignment feels wrong in RTL */
html[dir="rtl"] .nav{
  flex-direction: row-reverse;
}
html[dir="rtl"] .menu{
  flex-direction: row-reverse;
}
html[dir="rtl"] .search input{
  text-align: right;
}

body{
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
/* Hero layout in RTL (optional, but usually looks better) */
html[dir="rtl"] .hero-grid{
  direction: rtl;
}

.news-thumb{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:10px;
}


.leader-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.leader-media img{
  border-radius:999px;   /* makes it circular */
  object-fit:cover;
  display:block;
}

.leader-body{
  flex:1;
}
