/**
 * Development Programs Section Styles
 * 
 * @package Meridian_Africa
 * @since 1.0.0
 */

/* ===========================
   APPLICABLE DEVELOPMENT PROGRAMS SECTION
   =========================== */

.development-programs {
  padding: 80px 0;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

.development-programs-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  z-index: 0;
}

.development-programs-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(46, 143, 51, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
}

.development-programs .container {
  position: relative;
  z-index: 1;
}

.development-programs .section-header h2 {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #d1fae5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.development-programs .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.development-programs .badge-pill {
  background: linear-gradient(135deg, #2e8f33, #4ade80);
  color: #ffffff;
  box-shadow: none !important;
}

@keyframes glow-badge {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  }
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.program-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 143, 51, 0.2);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease backwards;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-light);
  box-shadow: 0 20px 60px rgba(46, 143, 51, 0.3);
}

.program-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.country-flag {
    margin-top: 12px;
}

.country-flag:hover {
  transform: translateY(-2px);
}

.flag-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.country-code {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.program-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.program-donor,
.program-amount,
.program-period {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.program-donor {
  background: rgba(46, 143, 51, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(46, 143, 51, 0.3);
}

.program-amount {
  background: rgba(14, 165, 233, 0.2);
  color: var(--secondary-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.program-period {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.program-description {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.sentinel-opportunity {
  background: linear-gradient(135deg, rgba(46, 143, 51, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-left: 3px solid var(--primary-light);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.sentinel-opportunity strong {
  color: var(--primary-light);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Staggered animation for program cards */
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }
.program-card:nth-child(9) { animation-delay: 0.9s; }

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
  .development-programs {
    padding: 70px 0;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .development-programs,
  .why-now,
  .verification-crisis {
    padding: 60px 0;
  }

  /* Development Programs - Mobile */
  .development-programs {
    padding: 60px 0;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .program-card {
    padding: 28px 24px;
  }

  .program-header h3 {
    font-size: 20px;
  }

  .program-meta {
    font-size: 11px;
  }

  .program-description {
    font-size: 14px;
  }

  .sentinel-opportunity {
    font-size: 13px;
    padding: 16px;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

