/* ============================================================
   HOVIAT - Women's Identity NGO Website
   Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. CSS VARIABLES & ROOT
   ============================================================ */
:root {
  --primary: #12A9E6;
  --primary-dark: #0E8DC4;
  --primary-light: #42BBEB;
  --secondary: #009FE3;
  --secondary-light: #33B2E8;
  --accent: #12A9E6;
  --accent-dark: #0E8DC4;
  --accent-light: #42BBEB;
  --white: #FFFFFF;
  --light: #F0F7FA;
  --dark: #5B5B60;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #A9A9AD;
  --gray-500: #8E8E93;
  --gray-600: #6B6B70;
  --gray-700: #5B5B60;
  --gray-800: #3A3A3E;
  --gray-900: #1C1C1E;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #12A9E6;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-persian: 'Vazirmatn', 'IRANSansX', sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(18, 169, 230, 0.08);
  --shadow-md: 0 4px 12px rgba(18, 169, 230, 0.1);
  --shadow-lg: 0 10px 30px rgba(18, 169, 230, 0.12);
  --shadow-xl: 0 20px 60px rgba(18, 169, 230, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --navbar-height: 80px;
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* When section-header is left-aligned, align the underline to the left too */
.section-header.text-start .section-title::after {
  margin-left: 0;
}

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-secondary-custom { color: var(--secondary) !important; }

.bg-primary-custom { background-color: var(--primary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-light-custom { background-color: var(--light) !important; }
.bg-dark-custom { background-color: var(--dark) !important; }

/* ============================================================
   3. PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-wrapper {
  text-align: center;
  animation: loaderFadeIn 0.8s ease;
}

.loader-logo {
  margin-bottom: 2rem;
}

.loader-logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  animation: loaderPulse 2s ease-in-out infinite;
}

.loader-progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 10px;
  animation: loaderProgress 1.5s ease-in-out forwards;
}

.loader-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  animation: loaderTextPulse 1.5s ease-in-out infinite;
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

@keyframes loaderProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes loaderTextPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ============================================================
   3.5 TOPBAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  height: 40px;
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar.visible {
  transform: translateY(0);
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar-item i {
  font-size: 0.75rem;
  color: var(--accent);
}

.topbar-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar-item a:hover {
  color: var(--accent);
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
}

/* Topbar responsive */
@media (max-width: 767.98px) {
  .topbar { height: auto; padding: 6px 0; }
  .topbar-content { flex-direction: column; gap: 4px; }
  .topbar-left, .topbar-right { gap: 0.5rem; }
  .topbar-item { font-size: 0.7rem; }
  .topbar-divider { display: none; }
}

@media (max-width: 575.98px) {
  .topbar-left { display: none; }
  .topbar { padding: 4px 0; }
  .topbar-right { justify-content: center; width: 100%; }
}

/* Adjust navbar to sit below topbar */
.navbar {
  padding: 0;
  transition: var(--transition);
  background: transparent !important;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--navbar-height);
}

/* When topbar is visible, shift navbar down */
.topbar.visible ~ .navbar,
.topbar.visible + * + .navbar,
.navbar.topbar-shifted {
  top: 40px;
}

.navbar.scrolled {
  background: var(--white) !important;
  box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-link {
  color: var(--gray-700) !important;
}

.navbar.scrolled .navbar-logo {
  filter: brightness(0.9);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.navbar-logo {
  height: 50px;
  width: auto;
  display: block;
  transition: var(--transition);
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 0.75rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary) !important;
}

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 10px;
  min-width: 220px;
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover-based dropdown (auto show on hover, not click) */
.dropdown-hover {
  position: relative;
}

.dropdown-hover .dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.dropdown-hover:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Style the non-clickable dropdown toggle span like a nav-link */
.dropdown-hover .nav-link.dropdown-toggle {
  cursor: default;
  pointer-events: none;
}

/* Arrow icon for dropdown toggles (replaces Bootstrap caret) */
.dropdown-hover .nav-link.dropdown-toggle::after {
  display: none !important;
}

.dropdown-arrow {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.6em;
  vertical-align: middle;
  transition: transform 0.2s ease;
  line-height: 1;
}

/* Rotate arrow upward when dropdown is open on hover */
.dropdown-hover:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Ensure dropdown items are clickable */
.dropdown-hover .dropdown-menu .dropdown-item {
  pointer-events: auto;
  cursor: pointer;
}

.dropdown-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--light);
  color: var(--primary);
  padding-left: 1.5rem;
}

.dropdown-item i {
  margin-right: 8px;
  color: var(--primary);
  font-size: 0.85rem;
}

/* Navbar CTA Buttons */
.navbar .btn-donate {
  background: var(--accent);
  color: var(--dark) !important;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.navbar .btn-donate:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.navbar .btn-join {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.navbar.scrolled .btn-join {
  color: var(--primary) !important;
  border-color: var(--primary);
}

.navbar .btn-join:hover {
  background: var(--white);
  color: var(--primary) !important;
  border-color: var(--white);
}

.navbar.scrolled .btn-join:hover {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switcher .lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.navbar.scrolled .lang-btn {
  border-color: var(--gray-300);
  color: var(--gray-600);
}

.lang-switcher .lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.lang-switcher .lang-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-switcher .lang-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.navbar.scrolled .lang-divider {
  color: var(--gray-300);
}

/* Mobile Toggle */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  background: transparent !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-icon {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.navbar.scrolled .toggler-icon {
  background: var(--dark);
}

.toggler-icon:nth-child(1) { top: 0; }
.toggler-icon:nth-child(2) { top: 50%; transform: translateY(-50%); }
.toggler-icon:nth-child(3) { bottom: 0; }

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 37, 41, 0.92) 0%, rgba(91, 63, 208, 0.75) 50%, rgba(33, 37, 41, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge i { color: var(--accent); }

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(212, 160, 23, 0.3);
  border-radius: 4px;
  z-index: -1;
}

.hero-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat-item {
  text-align: center;
  position: relative;
}

.hero-stat-item + .hero-stat-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stat-item h3,
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0;
  display: block;
  line-height: 1.2;
}

.hero-stat-item p,
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  display: block;
  line-height: 1.3;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.hero-wave svg { width: 100%; height: auto; }

/* ============================================================
   6. BUTTONS & CTAs
   ============================================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(91, 63, 208, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border: 2px solid var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.35);
}

.btn-outline-light-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light-custom:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-primary-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(91, 63, 208, 0.25);
}

.btn-sm-custom { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg-custom { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn i { margin-right: 8px; }

/* ============================================================
   7. SECTION STYLES
   ============================================================ */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 60px 0; }

.bg-gradient-section {
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.bg-primary-section {
  background: var(--primary);
  color: var(--white);
}

.bg-primary-section .section-title,
.bg-primary-section h2,
.bg-primary-section h3 { color: var(--white); }

.bg-primary-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   8. ABOUT PREVIEW
   ============================================================ */
.about-preview-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-preview-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-preview-image .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--dark);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow-lg);
}

.about-preview-image .experience-badge h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0;
  color: var(--dark);
}

.about-preview-image .experience-badge p {
  font-size: 0.8rem;
  margin-bottom: 0;
  color: var(--gray-700);
}

.about-content .about-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.about-content .about-tag::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.about-feature-item i { color: var(--success); font-size: 1.1rem; }

/* ============================================================
   9. GOALS CARDS
   ============================================================ */
.goal-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  height: 100%;
}

.goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.goal-card:hover::before { transform: scaleX(1); }

.goal-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.goal-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--white);
  transition: var(--transition);
}

.goal-card:hover .goal-icon { transform: scale(1.1) rotate(5deg); }
.goal-card h4 { margin-bottom: 0.75rem; }
.goal-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ============================================================
   10. STATISTICS COUNTERS
   ============================================================ */
.statistics-section {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
  padding: 80px 0;
}

.statistics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.statistics-section .section-header {
  margin-bottom: 3rem;
}

.statistics-section .section-header .section-title {
  color: var(--white);
}

.statistics-section .section-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.statistics-section .section-header .section-title::after {
  background: var(--accent);
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat-number .suffix {
  font-size: 1.8rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   11. PROGRAMS CARDS
   ============================================================ */
.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  height: 100%;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.program-card-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-card:hover .program-card-image img { transform: scale(1.08); }

.program-card-image .program-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.program-card-body { padding: 1.5rem; }
.program-card-body h5 { margin-bottom: 0.75rem; transition: var(--transition); }
.program-card:hover .program-card-body h5 { color: var(--primary); }
.program-card-body p { font-size: 0.9rem; margin-bottom: 1rem; color: var(--gray-500); }

.program-card-body .program-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.program-card-body .program-meta i { margin-right: 4px; }

/* ============================================================
   12. AREAS OF WORK
   ============================================================ */
.area-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.area-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.area-card:hover::after { transform: scaleX(1); }
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.area-icon {
  width: 60px;
  height: 60px;
  background: var(--light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.area-card:hover .area-icon { background: var(--primary); color: var(--white); }
.area-card h5 { margin-bottom: 0.5rem; font-size: 1rem; }
.area-card p { font-size: 0.85rem; margin-bottom: 0; color: var(--gray-500); }

/* ============================================================
   13. TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--light); }

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  position: relative;
  margin: 1rem 0.5rem;
  border: 1px solid var(--gray-100);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; }
.testimonial-author h6 { margin-bottom: 0; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--gray-400); }
.testimonial-rating { color: var(--accent); font-size: 0.85rem; margin-bottom: 1rem; }

.testimonials-section .carousel-control-prev,
.testimonials-section .carousel-control-next {
  width: 45px;
  height: 45px;
  background: var(--white);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.testimonials-section .carousel-control-prev { left: -20px; }
.testimonials-section .carousel-control-next { right: -20px; }

.testimonials-section .carousel-indicators { position: relative; margin-top: 2rem; }
.testimonials-section .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
}

.testimonials-section .carousel-indicators button.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* ============================================================
   14. BLOG CARDS
   ============================================================ */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  height: 100%;
}

.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.blog-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.08); }

.blog-card-image .blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-card-body { padding: 1.5rem; }

.blog-card-body .blog-date {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.blog-card-body h5 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.blog-card:hover .blog-card-body h5 { color: var(--primary); }
.blog-card-body p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1rem; }

/* ============================================================
   15. BLOG SIDEBAR
   ============================================================ */
.blog-sidebar .sidebar-widget {
  margin-bottom: 2rem;
}

.blog-sidebar .sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
}

/* Sidebar Search */
.sidebar-search .input-group .form-control {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: 1px solid var(--gray-200);
}

.sidebar-search .input-group .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Sidebar Categories */
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-categories li:last-child {
  border-bottom: none;
}

.sidebar-categories li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  color: var(--gray-600);
  transition: var(--transition);
  font-size: 0.9rem;
}

.sidebar-categories li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.sidebar-categories li a span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Recent Posts */
.sidebar-recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-recent-posts li {
  margin-bottom: 1rem;
}

.sidebar-recent-posts li:last-child {
  margin-bottom: 0;
}

.sidebar-recent-posts li a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recent-post-info {
  flex: 1;
  min-width: 0;
}

.recent-post-info h6 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--gray-700);
  line-height: 1.3;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-recent-posts li a:hover .recent-post-info h6 {
  color: var(--primary);
}

.recent-post-date {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Sidebar Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tags .tag-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-tags .tag-badge:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   16. PARTNERS SLIDER
   ============================================================ */
.partners-section { background: var(--white); }

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo img { max-height: 60px; width: auto; }

/* ============================================================
   ALLIES SECTION
   ============================================================ */
.allies-number {
  padding: 2rem 0;
}

.allies-count {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.allies-label {
  font-size: 1.1rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 0;
}

/* ============================================================
   16. DONATION CTA
   ============================================================ */
.donation-cta {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.donation-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
  background-size: 100px 100px;
  opacity: 0.5;
}

.donation-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0;
}

.donation-cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.donation-cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ============================================================
   17. NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--light);
}

.newsletter-form .input-group {
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 50px 0 0 50px;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 0.9rem 2rem;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 80px;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-newsletter .input-group {
  border-radius: 50px;
  overflow: hidden;
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter .form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.footer-newsletter .btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.2rem;
}

.footer-newsletter .btn:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 60px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}
/* ============================================================
   18.5 CUSTOM IMAGE CAPTCHA
   ============================================================ */
.custom-captcha {
  margin-bottom: 1rem;
}

.custom-captcha-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.captcha-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.captcha-image {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  height: 60px;
  width: 200px;
  object-fit: contain;
  background: #f5f5fa;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.captcha-refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-600);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.captcha-refresh-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-100);
}

.captcha-refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.custom-captcha .custom-captcha-inner input {
  max-width: 160px;
  text-transform: uppercase;
}

html[dir="rtl"] .custom-captcha-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .captcha-image-wrapper {
  flex-direction: row-reverse;
}


/* ============================================================
   19. PAGE BANNERS
   ============================================================ */
.page-banner {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 37, 41, 0.9) 0%, rgba(91, 63, 208, 0.7) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-banner-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-banner-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   20. BREADCRUMBS
   ============================================================ */
.breadcrumb-section {
  background: transparent;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.breadcrumb {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
}

.breadcrumb-item {
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: var(--gray-500);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--gray-400);
}

/* ============================================================
   21. BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   22. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid items — each card animates sequentially */
.reveal-stagger {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   23. FORMS
   ============================================================ */
.form-control {
  border: 2px solid var(--gray-200);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 63, 208, 0.1);
}

.form-control.is-valid {
  border-color: var(--success);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-select {
  border: 2px solid var(--gray-200);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 63, 208, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================
   24. MODAL & TOAST
   ============================================================ */
.modal-content {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--gray-100);
  padding: 1.25rem 1.5rem;
}

.modal-header .btn-close:focus {
  box-shadow: none;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--gray-100);
  padding: 1.25rem 1.5rem;
}

.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
}

.toast-custom {
  background: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
}

.toast-custom .toast-header {
  border-bottom: none;
  background: transparent;
}

.toast-custom .toast-body {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* ============================================================
   25. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================================
   26. RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .hero-title { font-size: 2.4rem; }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0;
  }

  .navbar .nav-link {
    color: var(--gray-700) !important;
  }

  .navbar .nav-link::after { display: none; }

  .navbar .btn-join {
    color: var(--primary) !important;
    border-color: var(--primary);
  }

  .lang-switcher .lang-btn {
    border-color: var(--gray-300);
    color: var(--gray-600);
  }

  .lang-switcher .lang-divider {
    color: var(--gray-300);
  }

  .navbar .navbar-nav .nav-item {
    padding: 0.25rem 0;
  }

  /* Mobile dropdown toggle for hover dropdowns */
  .dropdown-hover .dropdown-menu {
    display: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    position: static;
    box-shadow: none;
    margin-top: 0;
    padding: 0 0 0 1rem;
    border-radius: 0;
    animation: none;
    transition: none;
  }

  .dropdown-hover:hover .dropdown-menu {
    display: none;
  }

  .dropdown-hover.show .dropdown-menu {
    display: block;
  }

  .dropdown-hover .nav-link.dropdown-toggle {
    cursor: pointer;
    pointer-events: auto;
  }

  .dropdown-hover .dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .dropdown-hover .dropdown-item i {
    margin-right: 6px;
    font-size: 0.8rem;
  }

  .navbar .d-flex.align-items-center.gap-2 {
    flex-direction: row;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--gray-100);
    margin-top: 0.5rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; justify-content: flex-start; }
  .hero-stat-item { flex: 0 0 auto; }
  .hero-stat-number { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.8rem; }
  .section-padding { padding: 70px 0; }
  .about-preview-image img { height: 350px; }
  .about-preview-image .experience-badge { right: 10px; bottom: -10px; padding: 1rem; min-width: 100px; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-number { font-size: 2.2rem; }
  .page-banner { padding: 140px 0 60px; }
  .page-banner-content h1 { font-size: 2.2rem; }
  .donation-cta-content h2 { font-size: 2.2rem; }
  .footer-bottom-links { justify-content: center; margin-top: 0.5rem; }
  .footer-bottom { text-align: center; }
  .testimonials-section .carousel-control-prev,
  .testimonials-section .carousel-control-next { display: none; }
}

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero-title { font-size: 1.6rem; }
  .hero-text {
    font-size: 0.9rem;
    max-width: 100%;
  }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .hero-buttons .ms-2 { margin-left: 0 !important; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hero-stat-item + .hero-stat-item::before { display: none; }
  .hero-stat-number { font-size: 1.4rem; }
  .hero-stat-label { font-size: 0.75rem; }
  .section-padding { padding: 50px 0; }
  .section-title { font-size: 1.75rem; }
  .about-features { grid-template-columns: 1fr; }
  .about-preview-image img { height: 280px; }
  .stat-number { font-size: 2rem; }
  .page-banner-content h1 { font-size: 1.8rem; }
  .donation-cta-content h2 { font-size: 1.8rem; }
  .footer { padding-top: 50px; }
  .footer h5 { margin-top: 1.5rem; }
  .footer-bottom { margin-top: 30px; }
  #back-to-top { width: 40px; height: 40px; font-size: 1rem; bottom: 20px; right: 20px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.4rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
  .hero-content { padding-left: 16px; padding-right: 16px; }
  .hero-text { max-width: 100%; }
  .hero-stats { margin-top: 1.5rem; padding-top: 1rem; gap: 0.5rem; }
  .hero-stat-item { padding: 0.6rem 0.4rem; border-radius: 10px; }
  .hero-stat-number { font-size: 1.1rem; }
  .hero-stat-label { font-size: 0.65rem; }
  .section-title { font-size: 1.5rem; }
  .page-banner-content h1 { font-size: 1.5rem; }
  .donation-cta-content h2 { font-size: 1.5rem; }
  .newsletter-form .input-group { flex-direction: column; border-radius: var(--radius-sm); }
  .newsletter-form .form-control { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .newsletter-form .btn { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .footer-bottom-links { flex-direction: column; gap: 0.5rem; align-items: center; }
}

/* ============================================================
   23.5 TEAM CARDS
   ============================================================ */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid var(--gray-100);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.team-card__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__image {
  transform: scale(1.08);
}

.team-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--gray-800);
}

.team-card__position {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.team-card__links {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.team-card__link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: var(--transition);
}

.team-card__link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   24. ABOUT CORE CARDS (Mission / Vision / Who We Are)
   ============================================================ */
.about-core-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  position: relative;
}

.about-core-card {
  height: 100%;
  perspective: 1200px;
}

.about-core-card__inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.about-core-card:hover .about-core-card__inner {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

/* Accent bar at top */
.about-core-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  transition: height 0.4s ease;
}

.about-core-card:hover .about-core-card__accent {
  height: 8px;
}

/* Mission - Blue accent */
.about-core-card--mission .about-core-card__accent {
  background: linear-gradient(90deg, #12A9E6, #0E8DC4);
}
.about-core-card--mission .about-core-card__icon {
  background: linear-gradient(135deg, #12A9E6, #0E8DC4);
  box-shadow: 0 8px 24px rgba(18, 169, 230, 0.3);
}
.about-core-card--mission .about-core-card__title {
  color: #0E8DC4;
}

/* Vision - Teal/Cyan accent */
.about-core-card--vision .about-core-card__accent {
  background: linear-gradient(90deg, #0EA5E9, #0284C7);
}
.about-core-card--vision .about-core-card__icon {
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}
.about-core-card--vision .about-core-card__title {
  color: #0284C7;
}

/* Identity - Rose/Pink accent */
.about-core-card--identity .about-core-card__accent {
  background: linear-gradient(90deg, #E91E63, #C2185B);
}
.about-core-card--identity .about-core-card__icon {
  background: linear-gradient(135deg, #E91E63, #C2185B);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
}
.about-core-card--identity .about-core-card__title {
  color: #C2185B;
}

/* Icon styles */
.about-core-card__icon-wrap {
  text-align: center;
  margin-bottom: 1.75rem;
}

.about-core-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: var(--white);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.5s ease;
}

.about-core-card:hover .about-core-card__icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* Title */
.about-core-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.about-core-card__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.3;
  transition: width 0.4s ease;
}

.about-core-card:hover .about-core-card__title::after {
  width: 60px;
}

/* Body text */
.about-core-card__body {
  flex: 1;
}

.about-core-card__body p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 0.85rem;
}

.about-core-card__body p:last-child {
  margin-bottom: 0;
}

/* RTL adjustments */
html[dir="rtl"] .about-core-card__accent {
  left: 0;
  right: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
  .about-core-card__inner {
    padding: 2rem 1.5rem;
  }
  .about-core-card__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .about-core-card__inner {
    padding: 1.75rem 1.25rem;
  }
  .about-core-card__icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ============================================================
   25. MEMBER DETAIL PAGE
   ============================================================ */
.member-detail-image {
  position: sticky;
  top: 100px;
}

.member-detail-image img {
  max-height: 450px;
  object-fit: cover;
  object-position: center top;
}

.member-detail-contact {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.member-detail-contact h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.member-detail-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.member-detail-link:hover {
  color: var(--primary);
}

.member-detail-link i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  color: var(--primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.member-detail-link:hover i {
  background: var(--primary);
  color: var(--white);
}

.member-detail-position {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
}

.member-detail-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.member-detail-bio p {
  margin-bottom: 1rem;
}

/* Team card clickable overlay */
.team-card {
  position: relative;
}

.team-card__clickable {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-md);
}

.team-card__links {
  position: relative;
  z-index: 2;
}

.team-card__link {
  position: relative;
  z-index: 3;
}