/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sky: #3fb8e8;
  --sky-dark: #1a8fbf;
  --sky-light: #d6f0fb;
  --navy: #0d3a52;
  --gold: #e8b84b;
  --white: #ffffff;
  --text: #1a2a36;
  --muted: #5a7a8a;
  --bg-soft: #f4fafd;
  --radius: 10px;
  --star-bg: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 0L50 17.3H30L40 0zM40 80L30 62.7H50L40 80zM0 40L17.3 30V50L0 40zM80 40L62.7 50V30L80 40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); line-height: 1.65; background: var(--white); }

/* ── Utilities ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block; padding: 13px 32px; border-radius: 50px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: opacity .2s, transform .15s; border: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-sky    { background: var(--sky);  color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.section-label {
  text-transform: uppercase; letter-spacing: .12em; font-size: .82rem;
  font-weight: 700; color: var(--sky-dark); margin-bottom: 8px; display: block;
}
h2.section-heading {
  font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy);
  margin-bottom: 16px; line-height: 1.25;
}
.section-intro { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin-bottom: 48px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Navbar ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.nav-brand span { color: var(--white); font-weight: 700; font-size: 1rem; line-height: 1.25; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .93rem; font-weight: 500; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 16px; }

.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 4px 8px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1167a0 100%);
  color: var(--white); padding: 72px 24px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: var(--star-bg); }
.page-hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; opacity: .65; margin-bottom: 14px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 1.08rem; opacity: .88; }

/* ── Stats Banner ── */
.stats { background: var(--sky); color: var(--white); padding: 40px 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px; text-align: center;
}
.stat-num { font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: .9rem; opacity: .9; }

/* ── Donate CTA ── */
.donate-cta {
  background: linear-gradient(135deg, var(--navy), #1167a0);
  color: var(--white); padding: 80px 24px; text-align: center;
}
.donate-cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.donate-cta > .container > p { font-size: 1.05rem; opacity: .85; max-width: 580px; margin: 0 auto 36px; }
.donate-tiers { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.tier {
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.3);
  color: var(--white); padding: 10px 24px; border-radius: 50px;
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .2s, color .2s;
}
.tier:hover, .tier.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── Forms ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid #d0e6ef;
  border-radius: 8px; font-size: .95rem; font-family: inherit; color: var(--text);
  background: #f8fcfe; transition: border-color .2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--sky); background: var(--white); }
.form-group textarea { height: 120px; resize: vertical; }
.form-submit {
  width: 100%; padding: 14px; background: var(--sky); color: var(--white);
  font-size: 1rem; font-weight: 700; border: none; border-radius: 8px;
  cursor: pointer; transition: background .2s;
}
.form-submit:hover { background: var(--sky-dark); }
.form-box { background: var(--white); border-radius: 14px; padding: 36px; box-shadow: 0 4px 24px rgba(0,0,0,.07); }

/* ── Contact Items ── */
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.ci-icon {
  width: 42px; height: 42px; background: var(--sky-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  flex-shrink: 0;
}
.ci-text strong { display: block; font-size: .88rem; color: var(--navy); }
.ci-text span { font-size: .88rem; color: var(--muted); }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,.07); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.card-accent { height: 6px; background: var(--sky); }
.card-accent.gold { background: var(--gold); }
.card-accent.navy { background: var(--navy); }
.card-body { padding: 28px; }
.card-icon {
  width: 52px; height: 52px; background: var(--sky-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 16px;
}
.card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-body p { font-size: .92rem; color: var(--muted); }

/* ── Footer ── */
footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 52px 24px 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px;
}
.footer-brand img { height: 60px; width: 60px; border-radius: 50%; margin-bottom: 14px; object-fit: cover; }
.footer-brand p { font-size: .88rem; line-height: 1.6; max-width: 240px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none; font-size: .9rem; font-weight: 700;
  transition: background .2s;
}
.social-link:hover { background: var(--sky); }

/* ── Language Switcher ── */
.lang-switcher { position: relative; margin-left: 12px; }
.lang-toggle {
  background: rgba(255,255,255,.13); border: 1.5px solid rgba(255,255,255,.28);
  color: var(--white); border-radius: 8px; padding: 7px 11px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700; transition: background .2s; white-space: nowrap;
}
.lang-toggle:hover { background: rgba(255,255,255,.22); }
.lang-globe { font-size: 1rem; }
.lang-caret { font-size: .65rem; opacity: .75; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 8px 36px rgba(0,0,0,.18); min-width: 164px; z-index: 300; overflow: hidden;
}
.lang-dropdown.open { display: block; animation: fadeDown .15s ease; }
@keyframes fadeDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.lang-dropdown button {
  display: block; width: 100%; padding: 11px 16px; background: none; border: none;
  text-align: left; font-size: .88rem; cursor: pointer; color: var(--text); transition: background .15s;
}
.lang-dropdown button:hover { background: var(--sky-light); }
.lang-dropdown button.lang-active { font-weight: 700; color: var(--sky-dark); background: var(--sky-light); }

/* RTL overrides */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-brand { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; text-align: right; }
[dir="rtl"] .lang-dropdown button { text-align: right; }
[dir="rtl"] .wa-float { right: auto; left: 28px; flex-direction: row-reverse; }
[dir="rtl"] .wa-label { border-radius: 0 50px 50px 0; margin-right: 0; margin-left: -8px; }
[dir="rtl"] .hero-inner { flex-direction: row-reverse; }
[dir="rtl"] .section-label { text-align: right; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; }
[dir="rtl"] .highlight-box { border-left: none; border-right: 4px solid var(--sky); }
[dir="rtl"] .step-list li { flex-direction: row-reverse; }
[dir="rtl"] .prog-detail ul li { padding: 7px 24px 7px 0; }
[dir="rtl"] .prog-detail ul li::before { left: auto; right: 0; }
[dir="rtl"] .event-card { flex-direction: row-reverse; }
[dir="rtl"] .program-full { direction: rtl; }
[dir="rtl"] .program-full > * { direction: rtl; }

@media (max-width: 640px) { .lang-toggle .lang-globe { display: none; } }

/* ── WhatsApp Float Button ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; align-items: center; gap: 0;
  filter: drop-shadow(0 4px 16px rgba(37,211,102,.45));
  text-decoration: none;
}
.wa-btn {
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover .wa-btn { transform: scale(1.1); background: #1ebe5d; }
.wa-label {
  background: #25d366; color: #fff; font-weight: 700; font-size: .88rem;
  padding: 10px 18px 10px 14px; border-radius: 50px 0 0 50px;
  white-space: nowrap; opacity: 0; transform: translateX(10px);
  transition: opacity .25s, transform .25s; pointer-events: none;
  margin-right: -8px; line-height: 1.3; text-align: right;
}
.wa-float:hover .wa-label { opacity: 1; transform: translateX(0); }
.wa-pulse {
  position: absolute; top: 0; right: 0;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; opacity: .4;
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: .4; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 640px) {
  .wa-float { bottom: 18px; right: 18px; }
  .wa-btn { width: 52px; height: 52px; }
  .wa-btn svg { width: 28px; height: 28px; }
  .wa-label { display: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); padding: 12px 24px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  nav { position: relative; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
