/* ==========================================================================
   Jana Organization for Sustainable Development (JOSD)
   Modern Editorial NGO UI — Inspired by Rounded Card & Pill Aesthetic
   Brand Palette derived from JOSD Official Emblem
   ========================================================================== */

:root {
  /* Brand Colors from JOSD Logo */
  --josd-green-dark: #132a1c;
  --josd-green-deep: #1b3b28;
  --josd-green-primary: #389e2c;
  --josd-green-bright: #58b736;
  --josd-green-lime: #88ca3b;
  --josd-green-soft: #eaf5e4;
  --josd-green-tint: #f4f8f2;

  --josd-blue-dark: #1d5a7b;
  --josd-blue-primary: #1877b8;
  --josd-blue-soft: #e7f3fa;

  --josd-earth: #8b561e;
  --josd-earth-soft: #f9f2eb;

  /* Neutrals */
  --bg-page: #f6f8f5;
  --bg-surface: #ffffff;
  --text-primary: #111f16;
  --text-secondary: #4a5d50;
  --text-muted: #6e8074;
  --border-subtle: rgba(27, 59, 40, 0.1);
  --border-card: rgba(27, 59, 40, 0.08);

  /* Typography */
  --font-sans-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif-en: 'Instrument Serif', Georgia, serif;
  --font-ar: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & Shadows */
  --radius-hero: 28px;
  --radius-card: 22px;
  --radius-pill: 9999px;
  --shadow-sm: 0 4px 16px rgba(19, 42, 28, 0.04);
  --shadow-md: 0 12px 32px rgba(19, 42, 28, 0.07);
  --shadow-lg: 0 24px 54px rgba(19, 42, 28, 0.14);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans-en);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

/* Editorial Italic Serif Accent (matches reference image UI style) */
.serif-accent {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

html[dir="rtl"] .serif-accent {
  font-family: var(--font-ar);
  font-style: normal;
  font-weight: 800;
  color: var(--josd-green-primary);
}

.hero-card html[dir="rtl"] .serif-accent,
html[dir="rtl"] .hero-title .serif-accent {
  color: var(--josd-green-lime);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. Floating Pill Navbar
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 20px;
  margin-top: 14px;
}

.navbar {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(27, 59, 40, 0.09);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(19, 42, 28, 0.06);
  transition: var(--transition-smooth);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 58px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 2px 6px rgba(19, 42, 28, 0.12));
}

.brand:hover .brand-logo {
  transform: scale(1.06) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--josd-green-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  display: none;
}

.nav-phone {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--josd-green-dark);
  background: var(--josd-green-tint);
}

.nav-link.active {
  background: var(--josd-green-lime);
  color: var(--josd-green-dark);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--josd-green-tint);
  transition: var(--transition-smooth);
}

.nav-phone-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--josd-green-soft);
  color: var(--josd-green-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(24, 119, 184, 0.25);
  background: var(--josd-blue-soft);
  color: var(--josd-blue-dark);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.lang-toggle:hover {
  background: var(--josd-blue-primary);
  color: #ffffff;
  border-color: var(--josd-blue-primary);
  transform: translateY(-1px);
}

/* Signature Pill Button with Circular Arrow Icon (from reference UI) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

html[dir="rtl"] .btn-pill {
  padding: 7px 18px 7px 8px;
}

.btn-pill-dark {
  background: var(--josd-green-dark);
  color: #ffffff;
}

.btn-pill-dark .btn-arrow {
  background: var(--josd-green-lime);
  color: var(--josd-green-dark);
}

.btn-pill-lime {
  background: var(--josd-green-lime);
  color: var(--josd-green-dark);
}

.btn-pill-lime .btn-arrow {
  background: var(--josd-green-dark);
  color: #ffffff;
}

.btn-pill-white {
  background: #ffffff;
  color: var(--josd-green-dark);
}

.btn-pill-white .btn-arrow {
  background: var(--josd-green-dark);
  color: #ffffff;
}

.btn-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(19, 42, 28, 0.18);
}

.btn-pill:hover .btn-arrow {
  transform: rotate(45deg);
}

html[dir="rtl"] .btn-arrow svg {
  transform: scaleX(-1);
}

.mobile-menu-btn {
  display: none;
  background: var(--josd-green-tint);
  border: 1px solid var(--border-subtle);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--josd-green-dark);
}

/* ==========================================================================
   2. Hero Section (Rounded Framed Card like Reference UI)
   ========================================================================== */
.hero-section {
  padding: 18px 0 12px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-hero);
  overflow: hidden;
  min-height: 545px;
  display: flex;
  align-items: flex-end;
  padding: 44px 48px;
  background-color: var(--josd-green-dark);
  box-shadow: var(--shadow-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero-card:hover .hero-bg img {
  transform: scale(1.07);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    102deg,
    rgba(13, 31, 20, 0.93) 0%,
    rgba(19, 42, 28, 0.82) 48%,
    rgba(19, 42, 28, 0.42) 100%
  );
}

html[dir="rtl"] .hero-overlay {
  background: linear-gradient(
    258deg,
    rgba(13, 31, 20, 0.93) 0%,
    rgba(19, 42, 28, 0.82) 48%,
    rgba(19, 42, 28, 0.42) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: flex-end;
  gap: 32px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
}

.trust-stars {
  color: #f6c945;
  letter-spacing: 1px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(88, 183, 54, 0.22);
  border: 1px solid rgba(136, 202, 59, 0.45);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.hero-title {
  font-size: clamp(2.3rem, 4.3vw, 3.85rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-title .serif-accent {
  font-size: 1.08em;
  color: var(--josd-green-lime);
  font-weight: 400;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.03rem;
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-link-secondary {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 3px;
  transition: var(--transition-smooth);
}

.hero-link-secondary:hover {
  color: var(--josd-green-lime);
  border-color: var(--josd-green-lime);
}

/* Floating Glass Impact Card (Bottom Right of Hero like reference UI) */
.hero-glass-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.hero-verified-note {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  text-align: right;
  line-height: 1.4;
}

html[dir="rtl"] .hero-verified-note {
  text-align: left;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 135px;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 370px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.glass-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
}

.glass-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 4px 0 10px;
  display: block;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  margin-left: -8px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

html[dir="rtl"] .avatar-stack img {
  margin-left: 0;
  margin-right: -8px;
}

html[dir="rtl"] .avatar-stack img:first-child {
  margin-right: 0;
}

.avatar-more {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--josd-green-lime);
  color: var(--josd-green-dark);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  margin-left: -8px;
}

.glass-thumb {
  position: relative;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

.glass-thumb img,
.glass-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-play-badge {
  position: absolute;
  inset: 0;
  background: rgba(19, 42, 28, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--josd-green-lime);
  color: var(--josd-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.glass-thumb:hover .glass-play-icon {
  transform: scale(1.12);
}

/* ==========================================================================
   3. Partners & Donors Strip
   ========================================================================== */
.partners-strip {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.partners-header {
  text-align: center;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 18px;
}

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

.partner-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.partner-item:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 158, 44, 0.35);
  box-shadow: var(--shadow-md);
}

.partner-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(27, 59, 40, 0.08);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.partner-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.partner-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  font-weight: 500;
}

/* ==========================================================================
   4. Section Tag & Editorial Split Layout (About Us + Stats)
   ========================================================================== */
.section {
  padding: 84px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--josd-green-primary);
  margin-bottom: 14px;
}

.section-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--josd-green-primary);
  box-shadow: 0 0 0 4px rgba(56, 158, 44, 0.18);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.about-media-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 16px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
}

.about-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-location-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(19, 42, 28, 0.88);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 4 Impact Numbers Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-box {
  background: var(--josd-green-tint);
  border: 1px solid rgba(56, 158, 44, 0.14);
  border-radius: 16px;
  padding: 16px 18px;
  transition: var(--transition-smooth);
}

.stat-box:hover {
  background: var(--josd-green-soft);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--josd-green-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-number span {
  color: var(--josd-green-primary);
}

.stat-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 4px;
}

.about-lead {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.about-body {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.vm-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.vm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.vm-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--josd-green-soft);
  color: var(--josd-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-card.blue .vm-icon {
  background: var(--josd-blue-soft);
  color: var(--josd-blue-primary);
}

.vm-title {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.vm-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Executive Director Message Card */
.director-card {
  background: linear-gradient(135deg, #132a1c 0%, #1d422b 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
}

.director-quote {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.65;
}

html[dir="rtl"] .director-quote {
  font-style: normal;
}

.director-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.director-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.director-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--josd-green-lime);
}

.director-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--josd-green-lime);
}

.director-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Top Featured Video Showcase & Standalone Logo Emblem */
.top-video-section {
  padding: 16px 0 8px;
}

.video-showcase-card {
  margin-top: 44px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-hero);
  padding: 24px 28px 28px;
  box-shadow: var(--shadow-md);
}

.video-showcase-card.top-featured-video {
  margin-top: 0;
  border: 1.5px solid rgba(56, 158, 44, 0.22);
  box-shadow: var(--shadow-lg);
}

.video-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.video-header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.standalone-logo-badge {
  width: 78px;
  height: 86px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(19, 42, 28, 0.14));
}

.video-showcase-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.video-showcase-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.video-controls-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.video-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--josd-green-primary);
  background: var(--josd-green-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.video-sound-toggle.is-muted {
  background: var(--josd-green-lime);
  color: var(--josd-green-dark);
  border-color: var(--josd-green-dark);
  animation: pulseSound 2s infinite;
}

@keyframes pulseSound {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.video-loop-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--josd-green-primary);
  background: var(--josd-green-soft);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

.video-frame-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #eef3ec;
  border: 1px solid rgba(56, 158, 44, 0.18);
  aspect-ratio: 16 / 9;
}

.video-frame-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-logo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-standalone-logo {
  width: 88px;
  height: 96px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
}

/* ==========================================================================
   5. Areas of Work — Tall Rounded Visual Cards (like Reference Services Section)
   ========================================================================== */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-subtitle-right {
  max-width: 390px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

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

.service-visual-card {
  position: relative;
  height: 410px;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #ffffff;
  background: var(--josd-green-dark);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.service-visual-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.service-visual-card:hover .service-bg img {
  transform: scale(1.08);
}

.service-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(19, 42, 28, 0.25) 0%,
    rgba(19, 42, 28, 0.55) 45%,
    rgba(16, 38, 24, 0.96) 100%
  );
}

.service-top-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-pill-tag {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
}

.service-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--josd-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.service-bottom-content {
  position: relative;
  z-index: 3;
}

.service-title {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}

.service-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 18px;
  line-height: 1.55;
}

/* ==========================================================================
   6. Featured Field Projects (Documented Portfolio for Donors & Committee)
   ========================================================================== */
.projects-section {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.project-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--josd-green-primary);
  color: var(--josd-green-dark);
}

.filter-btn.active {
  background: var(--josd-green-dark);
  color: #ffffff;
  border-color: var(--josd-green-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.project-card {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card.featured-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: linear-gradient(135deg, #f3f8f1 0%, #eaf3f8 100%);
  border-color: rgba(56, 158, 44, 0.22);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-media {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.project-card.featured-wide .project-media {
  min-height: 360px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-donor-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(19, 42, 28, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-donor-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--josd-green-lime);
}

.project-gallery-thumbs {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.gallery-thumb-btn {
  width: 46px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #ffffff;
  cursor: pointer;
  padding: 0;
  background: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.gallery-thumb-btn:hover {
  transform: scale(1.1);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.project-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--josd-blue-primary);
}

.project-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.65;
}

.project-impact-box {
  background: #ffffff;
  border-left: 3.5px solid var(--josd-green-primary);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 0.83rem;
  color: var(--text-primary);
}

html[dir="rtl"] .project-impact-box {
  border-left: none;
  border-right: 3.5px solid var(--josd-green-primary);
}

.project-impact-box strong {
  color: var(--josd-green-primary);
  display: block;
  margin-bottom: 2px;
}

/* ==========================================================================
   7. Core Values & Target Groups — Bento Grid (like Reference Process Section)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-step {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--josd-green-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.bento-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-card.wide-banner {
  grid-column: span 2;
  background: linear-gradient(125deg, #132a1c 0%, #1f4b31 60%, #2d6f44 100%);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.bento-card.wide-banner .bento-step {
  color: var(--josd-green-lime);
}

.bento-card.wide-banner .bento-title {
  color: #ffffff;
  font-size: 1.45rem;
}

.bento-card.wide-banner .bento-desc {
  color: rgba(255, 255, 255, 0.85);
}

.target-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.target-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   8. Leadership & Team Section (10 Official Members — 5x2 on Laptop, 2x5 on Mobile)
   ========================================================================== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.team-card {
  flex: 0 1 calc(20% - 15px);
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Dynamic Staggered Scroll Entrance Animation for Team Cards */
.js .team-stagger-card {
  opacity: 0;
  transform: translateY(42px) scale(0.88) rotateX(10deg);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  transition-delay: calc(var(--stagger-idx, 0) * 75ms);
}

.js .team-stagger-card.team-card-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

.js .team-stagger-card.team-card-visible:hover {
  transition-delay: 0ms;
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--josd-green-primary);
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--josd-green-primary), var(--josd-green-lime), var(--josd-blue-primary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-stagger-card.team-card-visible::before,
.team-card:hover::before {
  transform: scaleX(1);
}

.team-avatar-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--josd-green-primary), var(--josd-blue-primary));
  position: relative;
  box-shadow: 0 8px 20px rgba(19, 42, 28, 0.12);
}

.team-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--josd-green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--josd-green-dark);
}

.team-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.4s ease;
}

.team-card:hover .team-avatar-inner img {
  transform: scale(1.06);
}

.team-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.team-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--josd-blue-primary);
  background: var(--josd-blue-soft);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   9. Contact & Locations Section + Footer
   ========================================================================== */
.contact-card {
  background: var(--josd-green-dark);
  color: #ffffff;
  border-radius: var(--radius-hero);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 18px;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

html[dir="rtl"] .contact-item:hover {
  transform: translateX(-4px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--josd-green-lime);
  color: var(--josd-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.contact-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-form-box {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: 22px;
  padding: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-page);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--josd-green-primary);
  background: #ffffff;
}

.form-status-box {
  display: none;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--josd-green-soft);
  border: 1px solid rgba(56, 158, 44, 0.3);
  color: var(--josd-green-dark);
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-status-box a {
  color: var(--josd-blue-primary);
  font-weight: 800;
  text-decoration: underline;
}

/* Fullscreen Lightbox for Field Gallery */
.josd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 26, 17, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.josd-lightbox.open {
  display: flex;
}

.josd-lightbox-img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.josd-lightbox-caption {
  margin-top: 14px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.josd-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer {
  padding: 40px 0 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* Scroll Reveal Animations */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal {
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Breakpoints (Optimized for 13"-16" Laptops, Tablets & Mobile Phones) */
@media (max-width: 1240px) {
  .nav-phone {
    display: none;
  }
  .nav-link {
    padding: 6px 11px;
    font-size: 0.83rem;
  }
  .brand-sub {
    display: none;
  }
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 960px) {
  .navbar {
    position: relative;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-link {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .about-grid,
  .contact-card,
  .project-card.featured-wide,
  .bento-card.wide-banner {
    grid-template-columns: 1fr;
  }
  .hero-glass-wrap {
    align-items: flex-start;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .navbar-wrapper {
    padding: 0 12px;
    top: 8px;
  }
  .navbar {
    padding: 6px 10px 6px 12px;
    gap: 8px;
  }
  .nav-cta-desktop {
    display: none;
  }
  .hero-card,
  .contact-card {
    padding: 26px 18px;
    border-radius: 22px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .services-grid,
  .projects-grid,
  .bento-grid,
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .team-card {
    padding: 16px 10px;
  }
  .team-avatar-wrap {
    width: 86px;
    height: 86px;
  }
  .bento-card.wide-banner {
    grid-column: span 1;
  }
  .hero-glass-card {
    grid-template-columns: 1fr;
  }
  .partners-logos {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   QA FIXES — nav wrapping on laptops & horizontal overflow on phones
   ========================================================================== */
.nav-link,
.nav-phone,
.lang-toggle,
.btn-pill {
  white-space: nowrap;
}

/* Grid/flex children must be allowed to shrink below their content width */
.hero-grid > *,
.about-grid > *,
.contact-card > *,
.project-card > *,
.bento-card > * {
  min-width: 0;
}

.trust-badge {
  white-space: normal;
  max-width: 100%;
}

.hero-title,
.hero-desc,
.section-title,
.project-title,
.contact-value {
  overflow-wrap: anywhere;
}

/* Partners strip: clean 5x2 grid on laptop/desktop, 2x5 on tablet, 1 col on small phone */
.partners-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 1180px) {
  .partners-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Standard laptops (13"–15"): keep nav on a single line */
@media (max-width: 1440px) {
  .nav-phone { display: none; }
  .brand-sub { display: none; }
  .nav-link { padding: 7px 13px; font-size: 0.86rem; }
}

@media (max-width: 1100px) {
  .nav-link { padding: 6px 10px; font-size: 0.82rem; }
}

@media (max-width: 680px) {
  .navbar-wrapper { padding: 0 12px; }
  .brand-logo { width: 46px; height: 50px; }
  .standalone-logo-badge { width: 64px; height: 70px; }
  .hero-standalone-logo { width: 74px; height: 81px; }
  .lang-toggle { padding: 7px 11px; font-size: 0.78rem; }
  .hero-section .container,
  .container { padding: 0 12px; }
  .hero-tags { gap: 6px; }
  .hero-glass-wrap { align-items: stretch; }
  .hero-verified-note { text-align: left; }
  html[dir="rtl"] .hero-verified-note { text-align: right; }
  .hero-glass-card { max-width: 100%; }
  .glass-thumb { height: 150px; }
  .video-showcase-card { padding: 16px; border-radius: 20px; }
  .section { padding: 56px 0; }
  .contact-value { font-size: 0.9rem; }
  .partners-logos {
    grid-template-columns: 1fr;
  }
  .team-card {
    flex: 0 1 calc(50% - 8px);
    min-width: 140px;
  }
}
