/*
Theme Name: MedKop - Jasoor Charity
Theme URI: https://medkop.org
Author: MedKop Team
Description: ثيم منصة جسور للتبرعات الخيرية
Version: 1.0.0
Text Domain: medkop
Tags: rtl, arabic, charity, donations
*/

/* ===== CSS Variables ===== */
:root {
  --primary: #f28c33;
  --primary-foreground: #ffffff;
  --secondary: #36a2a6;
  --secondary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #0f3a3e;
  --card: #ffffff;
  --card-foreground: #0f3a3e;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  --radius: 1rem;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #0a0a0a;
  --card-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --border: #18181b;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  direction: rtl;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; }

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 900; line-height: 1.2; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.625rem 1.25rem;
  border-radius: 9999px; font-weight: 700; font-size: 0.875rem;
  cursor: pointer; border: none; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover { border-color: var(--primary); background: var(--muted); }
.btn-outline-white {
  background: transparent; border: 1.5px solid #3f3f46;
  color: #fff;
}
.btn-outline-white:hover { background: #27272a; color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-xl); }
.card-body { padding: 1.5rem; }

/* ===== Progress Bar ===== */
.progress-wrap { margin-bottom: 1rem; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; font-weight: 700;
  color: var(--muted-foreground); margin-bottom: 0.5rem;
}
.progress-bar-track {
  width: 100%; height: 8px; background: var(--muted);
  border-radius: 9999px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--primary);
  border-radius: 9999px; transition: width 1s ease;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.dark .site-header { background: rgba(10,10,10,0.85); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; gap: 2rem;
}
.custom-logo-link img { height: 4.8rem; width: auto; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav li {list-style:none; float:right; margin-left:20px;}
.site-nav li a {
  font-size: 0.875rem; font-weight: 600;
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
  transition: color 0.2s;
}
.site-nav li a:hover, .site-nav .current-menu-item a { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--foreground); padding: 0.5rem;
}
@media (max-width: 767px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 4rem; right: 0; left: 0;
    background: var(--background); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: 1rem; z-index: 40;
  }
}

/* Dark mode toggle */
.theme-toggle {
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px; border: 1.5px solid var(--border);
  background: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--foreground);
}
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.icon-moon { display: block; }
.icon-sun  { display: none; }
.dark .icon-moon { display: none; }
.dark .icon-sun  { display: block; }

/* ===== Hero Section ===== */
.hero {
  padding: 5rem 0;
  position: relative; overflow: hidden;
}
.hero-bg-glow-r {
  position: absolute; top: 0; right: 0;
  width: 50%; height: 50%;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  filter: blur(120px); border-radius: 50%;
  pointer-events: none;
}
.hero-bg-glow-l {
  position: absolute; bottom: 0; left: 0;
  width: 33%; height: 33%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  filter: blur(100px); border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: flex; align-items: center; gap: 3rem;
  flex-direction: row-reverse;
  position: relative;
}
@media (max-width: 1023px) { .hero-grid { flex-direction: column; } }

.hero-text { flex: 1; text-align: right; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary); font-size: 0.875rem; font-weight: 700;
  margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-title .accent {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 30%, transparent);
  text-underline-offset: 8px;
}
.hero-desc {
  font-size: 1.125rem; line-height: 1.75;
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
  max-width: 42rem; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual { flex: 1; max-width: 36rem; width: 100%; }
.hero-card-wrapper {
  aspect-ratio: 1; border-radius: 3rem;
  background: var(--zinc-50); border: 1px solid var(--zinc-200);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 2rem;
}
.dark .hero-card-wrapper { background: color-mix(in srgb, var(--zinc-950) 20%, transparent); border-color: rgba(255,255,255,0.05); }

.hero-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; }
.hero-mini-grid .col-full { grid-column: 1 / -1; }

.mini-stat-card {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
  border: 1px solid var(--zinc-200); border-radius: 1.25rem;
  padding: 1.25rem;
}
.dark .mini-stat-card { background: rgba(9,9,11,0.6); border-color: var(--zinc-800); }
.mini-stat-card .icon-wrap {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; color: var(--primary);
}
.mini-stat-card .stat-val { font-size: 1.5rem; font-weight: 900; }
.mini-stat-card .stat-label { font-size: 0.65rem; font-weight: 700; color: var(--zinc-500); }

.mini-stat-card.accent-card {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 80%, transparent));
  border: none; color: #fff;
}
.mini-stat-card.accent-card .icon-wrap { background: rgba(255,255,255,0.2); color: #fff; }
.mini-stat-card.accent-card .stat-val { color: #fff; }
.mini-stat-card.accent-card .stat-label { color: rgba(255,255,255,0.85); }

/* Urgent project card */
.urgent-card {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
  border: 1px solid var(--zinc-200); border-radius: 1.25rem;
  padding: 1.25rem; transition: all 0.3s;
}
.dark .urgent-card { background: rgba(9,9,11,0.6); border-color: var(--zinc-800); }
.urgent-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.urgent-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 900;
  padding: 0.25rem 0.5rem; border-radius: 0.5rem;
  background: color-mix(in srgb, var(--secondary) 10%, transparent);
  color: var(--secondary); border: 1px solid color-mix(in srgb, var(--secondary) 20%, transparent);
  text-transform: uppercase; letter-spacing: -0.03em;
}
.urgent-card h3 { font-size: 1.125rem; font-weight: 700; margin: 0.5rem 0; }

/* ===== Stats Bar ===== */
.stats-bar {
  padding: 3rem 0;
  background: var(--zinc-900);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
@media (max-width: 767px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-item { display: flex; align-items: center; gap: 1.5rem; justify-content: center; }
.stat-icon-wrap {
  width: 4rem; height: 4rem; border-radius: 1rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.stat-icon-wrap svg { width: 2rem; height: 2rem; }
.stat-info { text-align: right; }
.stat-val { font-size: 1.875rem; font-weight: 900; color: #fff; }
.stat-label { font-size: 0.875rem; color: var(--zinc-400); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== Section Titles ===== */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; gap: 1.5rem; flex-wrap: wrap;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 900; }
.section-desc { color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-top: 0.5rem; max-width: 42rem; }

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1023px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .projects-grid { grid-template-columns: 1fr; } }

.project-card { display: flex; flex-direction: column; height: 100%; }
.project-card .card-img {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
}
.project-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .card-img img { transform: scale(1.1); }
.project-card .img-cat {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 700; color: var(--primary);
}
.project-card .card-body { flex: 1; display: flex; flex-direction: column; text-align: right; }
.project-card .card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-card .card-desc {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
  line-height: 1.6; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card .card-footer { margin-top: auto; padding-top: 1rem; }

/* ===== Categories Grid ===== */
.categories-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
@media (max-width: 1023px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .categories-grid { grid-template-columns: 1fr 1fr; } }

.cat-card {
  padding: 2rem; border-radius: 1.5rem; border: 1px solid var(--zinc-200);
  background: var(--card); text-align: center; cursor: pointer;
  transition: all 0.3s; position: relative;
}
.dark .cat-card { border-color: var(--zinc-800); background: var(--zinc-900); }
.cat-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.cat-icon {
  width: 4rem; height: 4rem; border-radius: 1rem; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border: 1px solid;
  transition: transform 0.3s;
}
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(3deg); }
.cat-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.cat-card span { font-size: 0.875rem; color: var(--muted-foreground); font-weight: 700; }

/* ===== CTA Section ===== */
.cta-section {
  padding: 6rem 2rem;
  background: var(--zinc-900);
  border-radius: 3rem; text-align: center;
  position: relative; overflow: hidden;
  margin: 0 1rem 4rem;
}
.cta-glow-r {
  position: absolute; top: -6rem; right: -6rem;
  width: 24rem; height: 24rem; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  filter: blur(100px);
}
.cta-glow-l {
  position: absolute; bottom: -6rem; left: -6rem;
  width: 24rem; height: 24rem; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  filter: blur(100px);
}
.cta-inner { position: relative; z-index: 10; }
.cta-title { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900; color: #fff; margin-bottom: 1.5rem; }
.cta-desc { font-size: 1.25rem; color: var(--zinc-400); max-width: 42rem; margin: 0 auto 3rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ===== Dark bg sections ===== */
.section-dark { background: var(--zinc-900); }
.section-light { background: var(--zinc-50); }
.dark .section-light { background: rgba(0,0,0,0.5); }

/* ===== Blog Grid ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 1023px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .blog-grid { grid-template-columns: 1fr; } }

.post-card .card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.post-card .card-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.7s ease; }
.post-card:hover .card-img img { transform: scale(1.1); }
.post-cat-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--primary); color: #fff;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 900;
}
.post-meta { display: flex; gap: 1rem; font-size: 0.7rem; font-weight: 700; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.post-card h3 { font-size: 1.25rem; font-weight: 900; line-height: 1.3; margin-bottom: 0.75rem; }
.post-card h3 a { transition: color 0.2s; }
.post-card h3 a:hover { color: var(--primary); }
.post-excerpt { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; }
.read-more { color: var(--primary); font-weight: 900; font-size: 0.875rem; display: flex; align-items: center; gap: 0.25rem; }
.post-views { font-size: 0.75rem; color: var(--muted-foreground); font-weight: 700; }

/* ===== Search & Filters ===== */
.filter-bar { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap input {
  width: 100%; height: 3rem; padding: 0 3rem 0 1rem;
  border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--card); color: var(--foreground);
  font-size: 0.875rem; font-weight: 600; text-align: right;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }
.search-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.filter-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0 1.5rem; height: 3rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--border); background: var(--card);
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { background: var(--muted); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 20%, transparent); }

/* ===== Single Project ===== */
.project-hero { position: relative; aspect-ratio: 16/6; overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.project-hero-title {
  position: absolute; bottom: 2rem; right: 2rem; left: 2rem;
  color: #fff; font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 900;
}

.project-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; padding: 3rem 0; }
@media (max-width: 1023px) { .project-layout { grid-template-columns: 1fr; } }

.project-content { text-align: right; }
.project-sidebar {}
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.5rem; position: sticky; top: 6rem; }
.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.amount-btn {
  padding: 0.75rem; border-radius: 0.75rem; border: 1.5px solid var(--border);
  background: var(--muted); font-weight: 700; cursor: pointer; text-align: center;
  transition: all 0.2s; font-size: 0.875rem;
}
.amount-btn:hover, .amount-btn.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }

/* ===== About Page ===== */
.about-hero {
  padding: 6rem 1rem; background: var(--zinc-900);
  position: relative; overflow: hidden; text-align: center;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 767px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  padding: 2.5rem; border-radius: 2.5rem; background: var(--card);
  border: 1px solid var(--border); text-align: center;
  box-shadow: var(--shadow-xl);
  transition: border-color 0.3s;
}
.dark .value-card { background: var(--zinc-950); }
.value-card:hover { border-color: var(--primary); }
.value-icon {
  width: 4rem; height: 4rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem; border: 1px solid; transition: transform 0.3s;
}
.value-card:hover .value-icon { transform: scale(1.1) rotate(3deg); }
.value-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 1rem; }
.value-card p { color: color-mix(in srgb, var(--foreground) 60%, transparent); line-height: 1.7; font-weight: 500; }

/* ===== Contact Page ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
@media (max-width: 1023px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info-card {
  display: flex; gap: 1.5rem; padding: 1.5rem;
  border-radius: 1.5rem; background: var(--muted);
  border: 1px solid var(--border); transition: border-color 0.3s;
}
.dark .contact-info-card { background: var(--zinc-900); }
.contact-info-card:hover { border-color: var(--primary); }
.contact-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.3s;
}
.contact-info-card:hover .contact-icon { transform: scale(1.1); }

.contact-form-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 3rem; padding: 3rem;
  box-shadow: var(--shadow-xl);
}
.contact-form-wrap br {
	display:none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 0rem; }
@media (max-width: 639px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 900; margin-bottom: 0.75rem;
}
.form-label svg { color: var(--primary); width: 1rem; height: 1rem; }
.form-control {
  width: 100%; padding: 1rem 1.5rem; border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--muted); color: var(--foreground);
  font-size: 0.875rem; font-weight: 600; text-align: right;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.dark .form-control { background: rgba(0,0,0,0.2); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 5%, transparent); }
textarea.form-control { resize: none; }

.form-success {
  text-align: center; padding: 5rem 2rem;
}
.success-icon {
  width: 6rem; height: 6rem; border-radius: 50%;
  background: #dcfce7; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1.5rem; color: #16a34a;
}
.dark .success-icon { background: rgba(22, 163, 74, 0.1); }

/* ===== Footer ===== */
.site-footer {
  background: var(--zinc-900);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #fff; margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 3rem; padding: 4rem 0; text-align: right;
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { height: 3rem; width: auto; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
.footer-desc { font-size: 0.875rem; color: var(--zinc-400); line-height: 1.7; max-width: 20rem; }
.footer-heading { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.5rem; color: #fff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { font-size: 0.875rem; color: var(--zinc-400); transition: color 0.2s; display: block; }
.footer-links a:hover { color: var(--primary); }

.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--zinc-400);
  transition: color 0.2s;
}
.contact-link:hover { color: #fff; }
.contact-link-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: var(--zinc-800); display: flex; align-items: center;
  justify-content: center; transition: background 0.2s; flex-shrink: 0;
}
.contact-link:hover .contact-link-icon { background: var(--primary); }

.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
  width: 2.75rem; height: 2.75rem; border-radius: 1rem;
  background: var(--zinc-800); display: flex; align-items: center;
  justify-content: center; color: #fff; transition: all 0.2s;
}
.social-link:hover { background: var(--primary); transform: translateY(-2px); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; font-weight: 700; color: var(--zinc-500);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { transition: color 0.2s; }
.footer-bottom-links a:hover { color: #fff; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===== Utility ===== */
.py-6  { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.font-black { font-weight: 900; }
.font-bold  { font-weight: 700; }
.italic { font-style: italic; }
.w-full { width: 100%; }
.loading-spinner {
  width: 3rem; height: 3rem; border: 4px solid var(--muted);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { text-align: center; padding: 8rem 1rem; }
.empty-msg { text-align: center; padding: 6rem 1rem; color: var(--muted-foreground); font-size: 1.125rem; font-weight: 700; }

/* ===== Rich Text ===== */
.rich-content h2, .rich-content h3 { font-weight: 900; margin: 2rem 0 1rem; }
.rich-content h2 { font-size: 2rem; }
.rich-content h3 { font-size: 1.5rem; }
.rich-content p  { margin-bottom: 1.5rem; line-height: 1.8; }
.rich-content ul, .rich-content ol { padding-right: 2rem; margin-bottom: 1.5rem; }
.rich-content li { margin-bottom: 0.5rem; }

/* ===== Responsive Utils ===== */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .hero { padding: 3rem 0; }
  .cta-section { padding: 3rem 1rem; border-radius: 1.5rem; margin: 0 0 2rem; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ===== WP Styles Override ===== */
.wp-block-image { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* السماح بموضعة القائمة المنسدلة بالنسبة للعنصر الأب */
.wpml-ls-item {
    position: relative;
}

/* القائمة المنسدلة نفسها */
.wpml-ls-item .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;              /* جرب left: 0 لو طلعت بمكان غلط */
    min-width: 140px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 6px;
    margin: 0;
    list-style: none;
    z-index: 999;
}

/* إظهارها عند hover أو focus على العنصر الأساسي */
.wpml-ls-item:hover .sub-menu,
.wpml-ls-item:focus-within .sub-menu {
    display: block;
}

/* كل لغة بسطر مستقل جوا القائمة */
.wpml-ls-item .sub-menu li {
    display: block;
    width: 100%;
}

.wpml-ls-item .sub-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
}

.wpml-ls-item .sub-menu a:hover {
    background: #f5f5f5;
}

.wpml-ls-flag {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.givewp-donation-form-modal__open,
.givewp-donation-form__steps a,
.givewp-donation-form__steps button{
	display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
	background: var(--primary) !important;
}
.givewp-donation-form__steps h1,
.givewp-donation-form__steps h2,
.givewp-donation-form__steps h3,
.givewp-donation-form__steps h4,
.givewp-donation-form__steps h5,
.givewp-donation-form__steps h6,
.givewp-donation-form__steps p,
.givewp-donation-form__steps a,
.givewp-donation-form__steps label,
.givewp-donation-form__steps button,
.givewp-donation-form__steps input,
.givewp-donation-form__steps textarea,
.givewp-donation-form-modal__open,
.givewp-donation-form__steps-header-title-text {
	font-family: 'Cairo', 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}