/* ================================
   ANGOS — Modern NGO Website
   Design System & Stylesheet
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-thin-rounded/css/uicons-thin-rounded.css');

/* ================================
   CSS VARIABLES — Color System
   ================================ */

:root {
  /* Colors extracted from ANGOS logo */
  --dark:     #1A2347;
  --primary:  #E05A2B;
  --gold:     #F5A623;
  --teal:     #2BA8A0;
  --purple:   #7B4B96;
  --sage:     #6BA368;
  --light:    #F7F9FC;
  --text:     #2C3545;
  --muted:    #6B7280;
  --white:    #FFFFFF;
  --border:   #E5E7EB;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Quicksand', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Transitions */
  --duration: 300ms;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET & BASE STYLES
   ================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  text-align: justify;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text);
  font-size: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--easing);
}

a:hover {
  color: var(--dark);
}

/* ================================
   BUTTONS
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--duration) var(--easing);
  text-decoration: none;
  gap: var(--space-sm);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #c94817;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(224, 90, 43, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-secondary {
  background: var(--teal);
  color: var(--white);
}

.btn-secondary:hover {
  background: #1f8a7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(43, 168, 160, 0.3);
}

/* ================================
   TOPBAR
   ================================ */

.topbar {
  background: var(--dark);
  color: var(--white);
  padding: 12px var(--space-lg);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.topbar-left a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-left i {
  color: var(--primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.lang-switcher {
  display: flex;
  gap: 8px;
  font-weight: 600;
}

.lang-switcher a {
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 2px;
  transition: all var(--duration) var(--easing);
}

.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  color: var(--white);
  font-size: 1.1rem;
  transition: color var(--duration) var(--easing);
}

.social-icons a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: var(--space-sm);
    padding: 12px var(--space-md);
  }
  .topbar-left, .topbar-right {
    width: 100%;
    justify-content: center;
  }
}

/* ================================
   NAVBAR
   ================================ */

.navbar {
  background: var(--white);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  margin: 0;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar-brand-text h5 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--dark);
}

.navbar-brand-text p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
}

.navbar-item {
  position: relative;
  padding-bottom: 12px;
}

.navbar-item > a {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color var(--duration) var(--easing);
}

.navbar-item > a:hover {
  color: var(--primary);
}

/* Mega dropdown */
.navbar-dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: var(--space-lg);
  margin-top: 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--duration) var(--easing);
  pointer-events: none;
  z-index: 1001;
}

.navbar-item:hover .navbar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar-dropdown h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: var(--space-md) 0 var(--space-sm) 0;
  margin-top: 0;
  padding-top: 8px;
}

.navbar-dropdown a {
  display: block;
  padding: 8px 0;
  color: var(--text);
  font-size: 0.95rem;
}

.navbar-dropdown a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 0;
  margin-left: auto;
}

.navbar-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--duration) var(--easing);
}

/* Bootstrap dropdown styling for navbar */
.navbar-item .dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: var(--space-lg);
  min-width: 280px;
  background: var(--white);
  display: none;
}

.navbar-item .dropdown-menu.show {
  display: block;
  animation: fadeIn 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.dropdown-menu h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: var(--space-md) 0 var(--space-sm) 0;
  margin-top: 0;
  padding-top: 8px;
}

.dropdown-item {
  padding: 10px 0;
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--duration) var(--easing);
  display: block;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--primary);
  padding-left: 4px;
  background: transparent;
  text-decoration: none;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-toggle {
  position: relative;
}

.dropdown-toggle::after {
  display: none;
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
  .navbar-item {
    position: relative;
  }

  .navbar-item .dropdown-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration) var(--easing);
    pointer-events: none;
    margin-top: 0;
  }

  /* Create invisible bridge to prevent menu from disappearing on hover */
  .navbar-item .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }

  /* Align last dropdown (Opportunities) to the right to prevent page widening */
  .navbar-item:last-child .dropdown-menu {
    left: auto;
    right: 0;
  }

  .navbar-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    display: block !important;
    top: 100%;
  }
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-family: var(--font-heading);
  transition: color var(--duration) var(--easing);
}

.nav-link:hover {
  color: var(--primary) !important;
}

@media (max-width: 992px) {
  .navbar {
    flex-wrap: wrap;
  }

  .navbar-hamburger {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: var(--space-lg);
    gap: var(--space-md);
    display: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 999;
  }

  .navbar-menu[style*="display: flex"] {
    display: flex !important;
    width: 100%;
    order: 3;
  }

  .navbar-item {
    width: 100%;
  }

  .navbar-item > a {
    padding: 12px 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    background: var(--light);
    border-radius: 0;
    margin: var(--space-md) 0 0 0;
    display: none;
  }

  .navbar-item.dropdown > a.dropdown-toggle[aria-expanded="true"] ~ .dropdown-menu {
    display: block;
  }

  .navbar-item:hover .dropdown-menu {
    opacity: 1;
  }
}

/* ─── RTL (Arabic) navbar corrections ─── */

/* RTL navbar: items pack toward physical right (flex-start = right in RTL),
   keeping them close to the logo and away from the left screen edge. */
@media (min-width: 992px) {
  [dir="rtl"] .navbar > div:first-child {
    flex: 0 0 auto !important;
    max-width: 300px;
  }
  [dir="rtl"] .navbar-menu {
    flex: 1;
    justify-content: flex-start; /* flex-start = physical right in RTL → toward logo */
  }
}

[dir="rtl"] .dropdown-item {
  text-align: right;
}

[dir="rtl"] .dropdown-item:hover,
[dir="rtl"] .dropdown-item:focus {
  padding-left: 0;
  padding-right: 4px;
}

[dir="rtl"] .dropdown-menu h6 {
  text-align: right;
}

[dir="rtl"] .navbar-dropdown a:hover {
  padding-left: 0;
  padding-right: 4px;
}

@media (min-width: 992px) {
  /* RTL: all dropdowns open leftward (right:0) — items are packed toward the
     right side of the nav so there is ample room to the left. */
  [dir="rtl"] .navbar-item .dropdown-menu {
    left: auto;
    right: 0;
  }

  /* Opportunities (last item, visually leftmost in RTL) — open rightward so
     the dropdown doesn't go off the left edge of the screen. */
  [dir="rtl"] .navbar-item:last-child .dropdown-menu {
    right: auto;
    left: 0;
  }
}

/* ================================
   HERO CAROUSEL SECTION
   ================================ */

.hero-carousel-section {
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.hero-slide {
  position: relative;
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

.hero-slide-content {
  color: var(--white);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 650px;
  text-align: left;
  animation: slideInUp 800ms var(--easing) forwards;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

.hero-slide h1 {
  color: var(--white);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.hero-slide p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Owl Carousel customization for hero */
.hero-carousel .owl-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-carousel .owl-dots {
  text-align: center;
}

.hero-carousel .owl-dot {
  display: inline-block;
  margin: 0 6px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--duration) var(--easing);
}

.hero-carousel .owl-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.hero-carousel .owl-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 5;
}

.hero-carousel .owl-prev,
.hero-carousel .owl-next {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--white) !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--easing);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 0 !important;
}

.hero-carousel .owl-prev::before,
.hero-carousel .owl-next::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
}

.hero-carousel .owl-prev::before {
  content: '\f053';
}

.hero-carousel .owl-next::before {
  content: '\f054';
}

.hero-carousel .owl-prev:hover,
.hero-carousel .owl-next:hover {
  background: var(--primary) !important;
  border-color: var(--primary);
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .hero-slide {
    min-height: 600px;
  }

  .hero-slide h1 {
    font-size: 2.5rem;
  }

  .hero-carousel .owl-nav {
    padding: 0 15px;
  }

  .hero-carousel .owl-prev,
  .hero-carousel .owl-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    min-height: 500px;
  }

  .hero-slide-content {
    padding: var(--space-xl) var(--space-md);
    max-width: 100%;
  }

  .hero-slide h1 {
    font-size: 2rem;
  }

  .hero-slide p {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-carousel .owl-nav {
    display: none;
  }
}

/* ================================
   MISSION STRIP
   ================================ */

.mission-strip {
  background: var(--light);
  padding: var(--space-2xl) var(--space-lg);
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 1366px;
  margin: 0 auto;
}

.mission-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--duration) var(--easing);
}

.mission-card:nth-child(2) {
  border-left-color: var(--teal);
}

.mission-card:nth-child(3) {
  border-left-color: var(--gold);
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mission-card h3 {
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.mission-card p {
  margin: 0;
  color: var(--muted);
}

/* ================================
   IMPACT NUMBERS
   ================================ */

.impact-section {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-2xl) var(--space-lg);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  max-width: 1366px;
  margin: 0 auto;
  text-align: center;
}

.impact-item {
  padding: var(--space-lg) 0;
}

.impact-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.impact-number {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--gold);
}

.impact-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ================================
   SECTION HEADERS
   ================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================
   ABOUT SECTION
   ================================ */

.about-section {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--white);
}

.about-content {
  max-width: 1366px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(224, 90, 43, 0.2), rgba(43, 168, 160, 0.1));
  pointer-events: none;
}

.about-text h3 {
  margin-bottom: var(--space-lg);
}

.tabs {
  display: flex;
  gap: var(--space-lg);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--duration) var(--easing);
  font-family: var(--font-heading);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn var(--duration) var(--easing);
}

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

.tab-content p {
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* ================================
   THEMATIC AREAS GRID
   ================================ */

.themes-section {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--light);
}

.themes-grid {
  max-width: 1366px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.theme-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--duration) var(--easing);
  border-top: 4px solid var(--primary);
  padding: var(--space-lg);
}

.theme-card:nth-child(2) { border-top-color: var(--teal); }
.theme-card:nth-child(3) { border-top-color: var(--gold); }
.theme-card:nth-child(4) { border-top-color: var(--purple); }
.theme-card:nth-child(5) { border-top-color: var(--sage); }
.theme-card:nth-child(6) { border-top-color: var(--primary); }

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.theme-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-lg);
  transition: transform var(--duration) var(--easing);
}

.theme-card:hover .theme-icon {
  transform: scale(1.1);
}

.theme-card h4 {
  margin-bottom: var(--space-md);
  font-size: 1.35rem;
}

.theme-card p {
  color: var(--muted);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.theme-card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-card a::after {
  content: '→';
  transition: transform var(--duration) var(--easing);
}

.theme-card a:hover::after {
  transform: translateX(4px);
}

/* ================================
   INTERACTIVE MAP
   ================================ */

.map-section {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--white);
}

.map-container {
  max-width: 1366px;
  margin: 0 auto;
}

#mena-map {
  width: 100%;
  height: auto;
  max-height: 500px;
  margin-top: var(--space-xl);
}

.map-tooltip {
  position: absolute;
  background: var(--dark);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================================
   NEWS GRID
   ================================ */

.news-section {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--light);
}

.news-grid {
  max-width: 1366px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--duration) var(--easing));
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: var(--space-lg);
}

.news-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  background: var(--primary);
  color: var(--white);
  border-radius: 2px;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-family: var(--font-heading);
}

.news-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.news-card h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.news-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.news-card a {
  font-weight: 600;
  font-family: var(--font-heading);
}

/* ================================
   PARTNERS SECTION
   ================================ */

.partners-section {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--white);
}

.partners-container {
  max-width: 1366px;
  margin: 0 auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: var(--space-md);
  background: var(--light);
  border-radius: 8px;
  transition: all var(--duration) var(--easing);
  filter: grayscale(100%);
}

.partner-logo:hover {
  filter: grayscale(0%);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
}

/* ================================
   GET INVOLVED SECTION
   ================================ */

.get-involved {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.get-involved-left {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.get-involved-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/volunteer.jpg') center/cover;
  opacity: 0.15;
  z-index: 0;
}

.get-involved-left > * {
  position: relative;
  z-index: 1;
}

.get-involved-left h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.get-involved-left p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.get-involved-right {
  background: var(--light);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.volunteer-form {
  width: 100%;
  max-width: 450px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--dark);
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--duration) var(--easing);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 90, 43, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 992px) {
  .get-involved {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .get-involved-left {
    padding: var(--space-xl) var(--space-md);
  }

  .get-involved-right {
    padding: var(--space-xl) var(--space-md);
  }
}

/* ================================
   FOOTER
   ================================ */

footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.footer-content {
  max-width: 1366px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-column h5 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration) var(--easing);
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: 12px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--duration) var(--easing);
}

.newsletter-form button:hover {
  background: #c94817;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ================================
   MODAL / VIDEO PLAYER
   ================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-dialog {
  max-width: 900px;
  width: 90%;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.modal-header {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: var(--space-lg);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================
   UTILITY CLASSES
   ================================ */

.container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-padding {
  padding: var(--space-2xl) var(--space-lg);
}

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

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.hidden {
  display: none;
}

/* ================================
   ANIMATIONS
   ================================ */

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

@keyframes countUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: slideInUp 600ms var(--easing) forwards;
}

/* ================================
   RESPONSIVE MEDIA QUERIES
   ================================ */

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }

  .section-header h2 {
    font-size: 2rem;
  }

  .mission-cards {
    gap: var(--space-md);
  }

  .impact-grid {
    gap: var(--space-md);
  }

  .themes-grid {
    gap: var(--space-md);
  }

  .news-grid {
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .section-padding {
    padding: var(--space-xl) var(--space-md);
  }

  .container {
    padding: 0 var(--space-md);
  }
}

/* ================================
   BTN-CUSTOM (alias for primary btn)
   ================================ */

.btn-custom {
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--duration) var(--easing);
  text-decoration: none;
  gap: var(--space-sm);
}

.btn-custom:hover {
  background: #c94817;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(224, 90, 43, 0.3);
  text-decoration: none;
}

.btn-custom.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* ================================
   BTN-OUTLINE-CUSTOM
   ================================ */

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--duration) var(--easing);
  text-decoration: none;
}

.btn-outline-custom:hover,
.btn-outline-custom.active {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* ================================
   PAGE HEADERS (Content Pages)
   ================================ */

.page-header {
  padding: 4rem 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.8rem;
  }
}

/* ================================
   BLOG / ARTICLE CARDS
   ================================ */

.blog-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 300ms var(--easing), box-shadow 300ms var(--easing);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-text {
  padding: 1.5rem;
  flex: 1;
}

.blog-text h3,
.blog-text h5 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-text h3 a,
.blog-text h5 a {
  color: var(--dark);
  text-decoration: none;
  transition: color 200ms;
}

.blog-text h3 a:hover,
.blog-text h5 a:hover {
  color: var(--primary);
}

.blog-text p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.blog-meta {
  padding: 0.75rem 1.5rem 1.25rem;
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.blog-meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-meta i {
  color: var(--primary);
}

/* ================================
   RTL (ARABIC) OVERRIDES
   ================================ */

[dir="rtl"] .blog-text,
[dir="rtl"] .blog-text h3,
[dir="rtl"] .blog-text h5,
[dir="rtl"] .blog-text h3 a,
[dir="rtl"] .blog-text h5 a {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .blog-text p {
  text-align: justify;
  direction: rtl;
}

[dir="rtl"] .blog-meta {
  flex-direction: row-reverse;
  justify-content: flex-end;
  text-align: right;
}

[dir="rtl"] .blog-meta p {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .blog-item .mt-3 {
  text-align: right;
}

/* Badge: no float so the title sits on a new line below */
[dir="rtl"] .badge {
  display: inline-block;
  margin-left: 0;
  margin-bottom: 0.5rem;
}

/* Bigger font for Arabic readability */
[dir="rtl"] body {
  font-size: 1.15rem;
  line-height: 2;
}
[dir="rtl"] p,
[dir="rtl"] li,
[dir="rtl"] .blog-text p {
  font-size: 1.1rem;
}
[dir="rtl"] .blog-text h3,
[dir="rtl"] .blog-text h5 {
  font-size: 1.25rem;
  line-height: 1.5;
}
[dir="rtl"] .navbar-item > a {
  font-size: 1.2rem;
}

/* ================================
   ARTICLE DETAIL PAGE
   ================================ */

.article-post {
  line-height: 1.8;
}

.article-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.article-image {
  margin-bottom: 2rem;
}

.article-image img {
  width: 100%;
  border-radius: 8px;
  max-height: 500px;
  object-fit: cover;
}

.article-excerpt {
  font-size: 1.1rem;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.7;
}

.article-body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-footer {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.6rem;
  }
}

/* ================================================
   ENHANCEMENTS — Animations & Interactivity
   ================================================ */

/* ── Navbar scroll shrink ── */
.navbar {
  transition: padding var(--duration) var(--easing),
              box-shadow var(--duration) var(--easing),
              background var(--duration) var(--easing);
}
.navbar.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.navbar.scrolled .navbar-brand img {
  height: 50px;
  transition: height var(--duration) var(--easing);
}

/* ── Hero staggered entrance per slide ── */
.hero-slide-content {
  animation: none !important;
}
.owl-item.active .hero-eyebrow {
  animation: slideInUp 0.55s 0.15s var(--easing) both;
}
.owl-item.active .hero-slide h1 {
  animation: slideInUp 0.65s 0.32s var(--easing) both;
}
.owl-item.active .hero-slide > p {
  animation: slideInUp 0.65s 0.52s var(--easing) both;
}
.owl-item.active .hero-ctas {
  animation: slideInUp 0.6s 0.72s var(--easing) both;
}

/* ── Sand dune wave dividers ── */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  display: block;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Scroll reveal system ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.72s var(--easing), transform 0.72s var(--easing);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94) translateY(16px); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-stagger-delay="1"] { transition-delay: 70ms; }
[data-stagger-delay="2"] { transition-delay: 145ms; }
[data-stagger-delay="3"] { transition-delay: 220ms; }
[data-stagger-delay="4"] { transition-delay: 295ms; }
[data-stagger-delay="5"] { transition-delay: 370ms; }
[data-stagger-delay="6"] { transition-delay: 445ms; }

/* ── Hamburger → X morphing ── */
.navbar-hamburger span {
  transition: transform var(--duration) var(--easing),
              opacity var(--duration) var(--easing);
}
.navbar-hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Partners infinite marquee ── */
.partners-marquee-wrapper {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}
.partners-marquee-wrapper::before,
.partners-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.partners-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.partners-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}
.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.partners-marquee-track:hover {
  animation-play-state: paused;
}
.partners-marquee-track .partner-logo {
  flex: 0 0 180px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-marquee-track { animation: none; }
}

/* ── Impact icon pulse ── */
@keyframes iconPulse {
  0%, 100% { color: var(--primary); transform: scale(1); }
  50%       { color: var(--gold);    transform: scale(1.18); }
}
.impact-icon.is-pulsing {
  animation: iconPulse 2.4s ease-in-out 3;
  display: inline-block;
}

/* ── Back to top ── */
a.back-to-top {
  position: fixed !important;
  right: 2rem;
  bottom: 2rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  padding: 0 !important;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(224, 90, 43, 0.4);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--duration) var(--easing),
              transform var(--duration) var(--easing),
              background var(--duration) var(--easing) !important;
}
a.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
a.back-to-top:hover {
  background: var(--dark) !important;
  color: white !important;
  transform: translateY(-4px) !important;
}

/* ── Theme card hover enhance ── */
.theme-card {
  transition: transform 0.38s var(--easing), box-shadow 0.38s var(--easing);
}
.theme-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

/* ── News card image zoom ── */
.news-card {
  overflow: hidden;
}
.news-image {
  transition: transform 0.55s var(--easing) !important;
}
.news-card:hover .news-image {
  transform: scale(1.06) !important;
}

/* ── Event card lift ── */
.event-card {
  transition: transform 0.35s var(--easing), box-shadow 0.35s var(--easing) !important;
}
.event-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14) !important;
}

/* ── Opportunity row hover ── */
.opp-row {
  transition: transform 0.25s var(--easing), box-shadow 0.25s var(--easing);
}
.opp-row:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(224, 90, 43, 0.12) !important;
}
.opp-row:hover .opp-arrow {
  transform: translateX(6px);
  color: var(--primary);
}
.opp-arrow {
  transition: transform 0.25s var(--easing);
}
