/* 
  Design System & Variables
*/
:root {
  /* Colors */
  --primary: #2D2A54;       /* Deep dark blue/indigo */
  --primary-light: #443F7C;
  --primary-dark: #1A1832;
  --secondary: #1BA496;     /* Vibrant teal */
  --secondary-light: #D1F0ED;
  --accent: #E91E63;        /* Bright magenta/pink */
  
  --bg-main: #fcfbfa;       /* Off white */
  --bg-light: #f4f1eb;
  --bg-dark: #2b2d42;       /* Deep slate */
  
  --text-main: #333333;
  --text-muted: #666666;
  --text-light: #fdfdfd;
  
  --border-color: rgba(0,0,0,0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  /* Typography */
  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Assistant', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(27, 164, 150, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #fcfbfa;
  background-image: linear-gradient(135deg, #efe5fb 0%, #fdfcff 40%, #fdfcff 60%, #efe5fb 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.bg-light {
  background-color: var(--bg-light);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-4 {
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-donate {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-donate:hover {
  background-color: #d81657;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Typography elements */
.section-title {
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.title-underline {
  height: 4px;
  width: 60px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 1.5rem 0;
  background-color: var(--primary);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--secondary);
}

.main-header.scrolled .logo a {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-light);
  position: relative;
}

.main-header.scrolled .nav-links a {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  filter: contrast(1.15) brightness(1.05) saturate(1.1);
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 24, 50, 0.3), rgba(0, 0, 0, 0.65));
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin-top: -100px; /* Moves the text upwards */
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero .btn-secondary {
  border-color: var(--text-light);
  color: var(--text-light);
}

.hero .btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-dark);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: var(--text-light);
  font-size: 1.5rem;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.awards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.award-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  max-width: 450px;
  width: 100%;
}

.award-badge i {
  font-size: 2.5rem;
  color: var(--secondary);
}

.award-image {
  width: 130px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: 3px solid var(--secondary);
  flex-shrink: 0;
}

.award-badge h4 {
  margin-bottom: 0.2rem;
  color: var(--primary-dark);
}

.award-badge h4 a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.award-badge h4 a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.award-badge span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.image-wrapper {
  position: relative;
  height: 500px;
  border-radius: 20px;
}

.css-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary-light), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.css-image-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.abstract-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: var(--primary-light);
  top: -20px;
  right: -20px;
  opacity: 0.2;
  filter: blur(20px);
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -40px;
  left: -40px;
  opacity: 0.15;
  filter: blur(30px);
}

/* Projects Section */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 10;
}

.filter-btn {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary-light);
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--secondary-light);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Bullets in project cards */
.project-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: right;
}

.project-bullets li {
  position: relative;
  padding-right: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.project-bullets li::before {
  content: "✦";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px; /* Soft round corners, premium and clean */
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden; /* Fill image to top corners cleanly */
  z-index: 1;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.project-card.fade-out {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
}

.project-card.hidden {
  display: none !important;
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 24px 24px 0 0; /* Align image top corners with card top corners */
  margin: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #f4f6f9; /* Soft background color for margins */
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 0.6s ease;
}

.project-image img.active {
  opacity: 1;
}

.project-card:hover .project-image img.active {
  transform: scale(1.08); /* Sophisticated subtle zoom */
}

.project-content {
  padding: 1.8rem 2rem 2.2rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 2;
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.95);
}

/* Category-specific styling & hover glow effects */
.project-card[data-category="shared-life"]:hover {
  box-shadow: 0 20px 40px rgba(27, 164, 150, 0.12);
  border-color: rgba(27, 164, 150, 0.25);
}

.project-card[data-category="leadership"]:hover {
  box-shadow: 0 20px 40px rgba(68, 63, 124, 0.12);
  border-color: rgba(68, 63, 124, 0.25);
}

.project-card[data-category="reducing-gaps"]:hover {
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.12);
  border-color: rgba(233, 30, 99, 0.25);
}

.project-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.2rem auto; /* Sits elegantly inside content above title */
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: relative;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, color 0.4s ease;
}

.project-card[data-category="shared-life"] .project-icon {
  color: var(--secondary);
  border: 1px solid rgba(27, 164, 150, 0.1);
}

.project-card[data-category="leadership"] .project-icon {
  color: var(--primary);
  border: 1px solid rgba(45, 42, 84, 0.1);
}

.project-card[data-category="reducing-gaps"] .project-icon {
  color: var(--accent);
  border: 1px solid rgba(233, 30, 99, 0.1);
}

.project-card:hover .project-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.project-card[data-category="shared-life"]:hover .project-icon {
  background-color: var(--secondary);
  color: white;
}

.project-card[data-category="leadership"]:hover .project-icon {
  background-color: var(--primary);
  color: white;
}

.project-card[data-category="reducing-gaps"]:hover .project-icon {
  background-color: var(--accent);
  color: white;
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: auto; /* Align link to the bottom of the card content */
  transition: gap 0.3s ease, color 0.3s ease;
}

.project-card[data-category="shared-life"] .project-link {
  color: var(--secondary);
}

.project-card[data-category="leadership"] .project-link {
  color: var(--primary-light);
}

.project-card[data-category="reducing-gaps"] .project-link {
  color: var(--accent);
}

.project-link:hover {
  gap: 0.75rem;
}

/* News Section */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

.news-item {
  padding: 2rem;
  border-right: 4px solid var(--primary);
}

.news-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: var(--primary-dark);
}

.news-item p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: var(--secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  color: var(--primary);
  gap: 0.75rem;
}

.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 8rem 0;
  background-image: linear-gradient(45deg, var(--primary-dark), var(--primary));
  color: white;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><g fill="none" stroke="rgba(255,255,255,0.025)" stroke-width="1"><path d="M40 0 L45 35 L80 40 L45 45 L40 80 L35 45 L0 40 L35 35 Z"/><path d="M20 20 L60 20 L60 60 L20 60 Z"/><path d="M40 10 L70 40 L40 70 L10 40 Z"/><path d="M0 0 L15 5 L20 20 L5 15 Z"/><path d="M80 0 L65 5 L60 20 L75 15 Z"/><path d="M0 80 L15 75 L20 60 L5 65 Z"/><path d="M80 80 L65 75 L60 60 L75 65 Z"/></g></svg>') repeat;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 0;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(233, 30, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* Footer */
.main-footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.05'%3E%3Cpath d='M60 0 C75 30 90 45 120 60 C90 75 75 90 60 120 C45 90 30 75 0 60 C30 45 45 30 60 0 Z'/%3E%3Cpath d='M60 20 C68 38 82 52 100 60 C82 68 68 82 60 100 C52 82 38 68 20 60 C38 52 52 38 60 20 Z'/%3E%3Cpath d='M0 0 L60 60 L120 0 M0 120 L60 60 L120 120'/%3E%3Ccircle cx='60' cy='60' r='15'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  z-index: 0;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-logo span {
  color: var(--secondary);
}

.about-col p {
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.links-col ul li,
.contact-col ul li {
  margin-bottom: 0;
}

.links-col ul li a:hover {
  color: var(--secondary);
  padding-right: 5px;
}

.contact-col ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-col i {
  color: var(--secondary);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Animations & Utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .image-wrapper { height: 400px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

/* Dropdown Styles */
.nav-links li.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.nav-links li.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--text-main) !important;
  font-weight: 500;
  font-size: 0.95rem;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: rgba(0,0,0,0.03);
  color: var(--primary) !important;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
    padding-right: 1.5rem;
  }
  .nav-links li.dropdown:hover .dropdown-menu {
    display: flex;
  }
  .dropdown-menu a {
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 6rem 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: var(--transition-normal);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--text-main);
    font-size: 1.2rem;
  }
  
  .mobile-menu-btn {
    display: block;
    color: var(--text-light);
  }
  
  .main-header.scrolled .mobile-menu-btn {
    color: var(--text-main);
  }
  
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  
  .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
  
  .section-padding { padding: 4rem 0; }
  
  .news-container { grid-template-columns: 1fr; }
}

/* Make Project Cards Clickable */
.project-card {
  cursor: pointer;
}

/* Modal Popup Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(26, 24, 50, 0.7); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: var(--transition-normal);
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.4);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-light);
  cursor: pointer;
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
}

.close-modal:hover {
  color: var(--accent);
  background: var(--secondary-light);
}

.modal-body-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.modal-image-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #f4f6f9; /* Soft background color for margins */
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.modal-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  width: 100%;
}

.modal-text-container h2 {
  margin-bottom: 0.5rem;
}

.modal-description strong:first-child {
  display: block;
  margin-top: 15px;
  margin-bottom: 25px;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 15px;
}

.modal-description strong:first-child::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.modal-description br:nth-child(2),
.modal-description br:nth-child(3) {
  display: none;
}

.modal-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0;
}

.category-badge.shared-life {
  background: var(--secondary-light);
  color: var(--secondary);
}

.category-badge.leadership {
  background: rgba(45, 42, 84, 0.1);
  color: var(--primary);
}

.category-badge.reducing-gaps {
  background: rgba(233, 30, 99, 0.1);
  color: var(--accent);
}

.modal-section-title {
  margin: 1.5rem 0 0.8rem 0;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-text-container .project-bullets {
  width: 100%;
  margin-bottom: 0;
}

.modal-text-container .project-bullets li {
  color: var(--text-main) !important;
  font-weight: 500;
}

/* Modal Animations */
.animate-zoom {
  animation: animatezoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes animatezoom {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .modal-body-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .modal-image-container {
    height: 250px;
  }
  .modal-content {
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* History Timeline Section Styles */
.timeline-section {
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 120px;
  transform: translateX(-50%);
  background: none;
  border-radius: 0;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 5rem;
  width: 100%;
  display: flex;
}

/* RTL: ODD items Card is on the RIGHT, OTHERS on the LEFT */
.timeline-item:nth-child(odd) {
  justify-content: flex-start; /* Right side in RTL */
}

.timeline-item:nth-child(even) {
  justify-content: flex-end; /* Left side in RTL */
}

.timeline-content {
  width: calc(50% - 40px); /* Given line width is 120px, let's give more padding so it doesn't overlap peaks */
  position: relative;
  padding: 1rem 0; /* No boxed card padding! */
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: right; /* Maintain standard RTL alignment */
}

.timeline-item:hover .timeline-content {
  transform: translateY(-4px); /* Very subtle float */
}

.timeline-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  vertical-align: middle;
  margin-right: 15px;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 5;
  transition: all 0.4s ease;
}

/* Winding shifts: odd is shifted left, even is shifted right to follow the wave! */




.timeline-item:hover .timeline-node {
  background-color: var(--secondary);
  box-shadow: var(--shadow-glow);
}

.timeline-item:nth-child(odd):hover .timeline-node {
  transform: translateX(-50%) scale(1.15);
}

.timeline-item:nth-child(even):hover .timeline-node {
  transform: translateX(-50%) scale(1.15);
}

.timeline-year {
  display: inline-block;
  vertical-align: middle;
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(27, 164, 150, 0.15);
}

.timeline-content h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.timeline-content h4 {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.timeline-content p {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.6;
}

.timeline-image {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 24px; /* Organic soft rounded images */
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Premium soft drop shadow for floating images */
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--bg-light);
  display: block;
  transition: transform 0.6s ease;
}

.timeline-image img.slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 0.6s ease;
}

.timeline-image img.slide.active {
  opacity: 1;
}

.timeline-item:hover .timeline-image img {
  transform: scale(1.05);
}

.timeline-item:hover .timeline-image img.slide.active {
  transform: scale(1.05);
}

/* Responsive Timeline for Tablet/Mobile */
@media (max-width: 768px) {
  .timeline-container {
    padding: 1rem 0;
  }

  .timeline-line {
    left: calc(100% - 20px); /* Move line to the right in RTL */
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
  }

  .timeline-line svg {
    display: none; /* Hide the winding path on mobile */
  }

  .timeline-item {
    justify-content: flex-start !important; /* All cards sit left of the line */
    padding-right: 70px;
    margin-bottom: 4rem;
  }

  .timeline-content {
    width: 100%; /* Take up remaining horizontal space */
    padding: 1rem 0; /* Floating on mobile too! */
  }

  

  .timeline-item:hover .timeline-node {
    transform: translateX(-50%) scale(1.1) !important;
  }
}

/* About Us Section Typography & Layout */
.lead-text { font-size: 1.15rem; font-weight: 500; color: var(--primary); line-height: 1.6; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.color-primary { color: var(--primary); }

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.goal-card {
  padding: 2rem;
  text-align: center;
  background: white;
  border-top: 4px solid var(--accent);
  border-radius: 8px;
}

.goal-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 0;
}

.goal-card h4 {
  color: var(--primary-dark);
  margin-bottom: 0;
  font-size: 1.3rem;
}

.strategy-section {
  background: white;
  border-right: 5px solid var(--secondary);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
}

.strategy-content {
  flex: 3;
}

.strategy-section p {
  margin-bottom: 0;
  line-height: 1.7;
}

.strategy-image-wrapper {
  flex: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  padding: 2rem;
}

.strategy-image-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .strategy-section {
    flex-direction: column;
  }
}
/* Responsive Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: var(--shadow-sm);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Media Section Styles */
.media-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.media-category {
  background: transparent;
}

.media-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.media-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.media-link-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition-fast);
  border: 1px solid rgba(0,0,0,0.03);
}

.media-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.media-logo-wrapper {
  background: #f8f9fa;
  min-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-inline-end: 3px solid var(--accent);
}

.media-logo {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  background: #ffffff;
  padding: 8px;
  object-fit: contain;
}

.media-card-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.media-source {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .media-link-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* Responsive Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: var(--shadow-sm);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.jgive-banner { background: linear-gradient(135deg, var(--primary) 0%, #1a365d 100%); color: white; border-radius: 12px; padding: 3rem; text-align: center; margin-top: 3rem; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.jgive-banner h3 { color: white; font-size: 2rem; margin-bottom: 0; }
.jgive-banner p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.jgive-btn { display: inline-block; background: var(--accent); color: var(--primary); padding: 1rem 2.5rem; font-size: 1.2rem; font-weight: bold; border-radius: 50px; text-decoration: none; transition: var(--transition-fast); }
.jgive-btn:hover { background: white; color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); text-decoration: none; }

.media-excerpt { font-size: 0.9rem; color: #555; line-height: 1.4; margin-top: 0.4rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 768px) {
  #about-team, #about-zaki, #about-consulate > div {
    grid-template-columns: 1fr !important;
  }
}

.header-logo { max-height: 55px; width: auto; display: block; transition: 0.3s; }
@media (max-width: 768px) { .header-logo { max-height: 45px; } }

.desktop-logo-only { display: flex; }
.main-nav { flex: 1; display: flex; justify-content: center; }
@media (max-width: 768px) {
  .main-nav { justify-content: flex-start; }
}

@media (max-width: 768px) { .main-nav { position: static !important; transform: none !important; width: auto !important; } }

/* LTR adjustments for English */
html[dir='ltr'] { text-align: left; direction: ltr; }
html[dir='ltr'] .nav-links { flex-direction: row; }
html[dir='ltr'] .hero-content, html[dir='ltr'] .about-intro { text-align: left; }
html[dir='ltr'] .dropdown-menu { left: 0; right: auto; text-align: left; }

/* News Load More */
.news-grid .news-card:nth-child(n+7) { display: none; }
.news-grid.show-all .news-card:nth-child(n+7) { display: flex; }
