/* ==========================================================================
   HUMAN-CENTRIC SOCIAL IMPACT SECTION (Emotive Design)
   ========================================================================== */

/* --- Variables & Theming --- */
:root {
  /* Warm & Human Palette */
  --impact-amber: #f59e0b;
  /* Remains warm but less neon */
  --impact-amber-soft: rgba(245, 158, 11, 0.1);
  --impact-amber-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));

  --impact-cyan: #38bdf8;
  /* Sky blue instead of electric teal */
  --impact-cyan-soft: rgba(56, 189, 248, 0.1);
  --impact-cyan-bg: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.05));

  --glass-panel: rgba(255, 255, 255, 0.03);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
}

/* --- Section Layout --- */
#social-impact {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

/* Background Decor - Subtle Organic, not grid/tech */
.impact-bg-grid {
  /* Removed heavy grid, keeping minimal texture if needed later */
  display: none;
}

/* --- Typography --- */
.section-desc {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 300;
}

.text-highlight {
  color: var(--primary);
  /* Use site primary or updated impact colors */
  font-weight: 600;
}

/* --- Grid Layout --- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

/* --- Card Design (Soft, Rounded, Glass) --- */
.impact-card {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  /* deeply muted blue-dark */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* subtle border */
  border-radius: 20px;
  /* Rounded corners */
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Theme Classes */
.theme-amber .org-title {
  color: var(--impact-amber);
}

.theme-amber .story-label {
  color: var(--impact-amber);
}

.theme-amber .protocol-icon {
  color: var(--impact-amber);
  background: var(--impact-amber-soft);
}

.theme-amber .btn-tech.btn-fill {
  background: var(--impact-amber);
  color: #fff;
  border-color: var(--impact-amber);
}

.theme-amber .btn-tech.btn-outline {
  color: var(--impact-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.theme-cyan .org-title {
  color: var(--impact-cyan);
}

.theme-cyan .story-label {
  color: var(--impact-cyan);
}

.theme-cyan .protocol-icon {
  color: var(--impact-cyan);
  background: var(--impact-cyan-soft);
}

.theme-cyan .btn-tech.btn-fill {
  background: var(--impact-cyan);
  color: #fff;
  border-color: var(--impact-cyan);
}

.theme-cyan .btn-tech.btn-outline {
  color: var(--impact-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}


/* --- Header Art --- */
.card-art-header {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.neon-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.impact-card:hover .neon-art-img {
  transform: scale(1.05);
  /* Gentle zoom */
}

.art-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.9));
}

/* --- Content --- */
.impact-card-content {
  padding: 30px;
}

.impact-card-header {
  margin-bottom: 20px;
}

.org-title {
  font-family: var(--font-heading);
  /* Inherit site font, no mono */
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.org-type {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 8px;
}

/* Stories Box */
.success-story-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
}

.success-story-box::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
}

.story-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-weight: 700;
  display: block;
}

.story-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin: 0;
}

.impact-full-name {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 5px 0;
}

.impact-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

/* --- Protocols / Programs --- */
.protocols-container {
  margin-top: 25px;
}

.mission-brief {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brief-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.mission-brief p {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0;
}

.protocols-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.protocol-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.protocol-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  /* No background circle */
  display: flex;
  align-items: flex-start;
  /* Align to top for drop-cap feel */
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  /* Editorial Serif feel */
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Fallback if Playfair isn't loaded, use specific font stack */
@supports not (font-family: 'Playfair Display') {
  .protocol-icon {
    font-family: 'Georgia', 'Times New Roman', serif;
  }
}

.protocol-details {
  flex: 1;
}

.protocol-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.protocol-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- Buttons --- */
.impact-actions {
  margin-top: 35px;
  display: flex;
  gap: 15px;
}

.btn-tech {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  /* Rounded buttons */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-tech.btn-fill:hover,
.btn-tech.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Quote Section --- */
.human-quote-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 0;
  text-align: center;
}

.human-quote {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #fff;
  font-weight: 300;
  font-style: normal;
  position: relative;
  display: inline-block;
}

.human-quote::before {
  content: '“';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: -30px;
  left: -40px;
  font-family: serif;
}


/* --- Mobile --- */
@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-actions {
    flex-direction: column;
  }

  .human-quote {
    font-size: 1.2rem;
  }

  .human-quote::before {
    top: -20px;
    left: -20px;
  }
}