/* what-we-do.css
   Styles specific to the "What We Do" page.
   Relies on variables & base typography from css/style.css
*/

:root {
  --wwd-gap: 36px;
  --card-radius: 14px;
}

/* HERO */
.wwd-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 100px 0 60px;
  background: linear-gradient(rgba(31, 42, 68, 0.75), rgba(31, 42, 68, 0.75)),
    url("../images/bg_3.webp") center center / cover no-repeat;
}
.wwd-hero__bg {
  position: absolute;
  inset: 0;
  backdrop-filter: none;
}
.wwd-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}
.wwd-hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}
.wwd-hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  margin-bottom: 18px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-ctas .btn {
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 700;
}

/* INTRO */
.wwd-intro {
  text-align: center;
  margin: 40px auto;
  max-width: 980px;
  color: #333;
}
.wwd-intro .small-intro {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

/* PROGRAMS (image + content alternating) */
.programs {
  display: grid;
  gap: 60px;
  margin-top: 30px;
}

/* ===== Base Program Card ===== */
.program {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #f7f9ff);
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(10, 20, 40, 0.06);
  overflow: hidden;
  padding: 45px 38px;
  position: relative;
  transition: all 0.4s ease;
}

.program:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 20, 40, 0.1);
  background: linear-gradient(145deg, #fdfdff, #f4f7ff);
}

.program__media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: transform 0.4s ease;
}

.program:hover .program__media img {
  transform: scale(1.04);
}

/* ===== Shared Content Styling ===== */
.program__content {
  position: relative;
  z-index: 2;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.7),
    rgba(245, 248, 255, 0.3)
  );
  border-radius: 14px;
  padding: 10px 20px 10px 10px;
  backdrop-filter: blur(4px);
}

.program__content h2 {
  font-size: 1.65rem;
  color: var(--dark);
  margin-bottom: 14px;
  font-weight: 700;
  position: relative;
  line-height: 1.3;
}

.program__content h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(
    --accent-gradient,
    linear-gradient(to right, #1e88e5, #42a5f5)
  );
}

.program-desc {
  color: #4a4a4a;
  margin-top: 16px;
  margin-bottom: 20px;
  line-height: 1.75;
  font-size: 1rem;
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
  color: #333;
  font-weight: 500;
  font-size: 0.98rem;
}

.program-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
  color: var(--accent-color, #1e88e5);
}

/* ===== Accent Color Variations ===== */
.program:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(
    to bottom,
    #ff7e5f,
    #feb47b
  ); /* Orange – Education */
}
.program:nth-child(1) {
  --accent-color: #ff7e5f;
  --accent-gradient: linear-gradient(to right, #ff7e5f, #feb47b);
}

.program:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(
    to bottom,
    #2193b0,
    #6dd5ed
  ); /* Blue – Digital Literacy */
}
.program:nth-child(2) {
  --accent-color: #2193b0;
  --accent-gradient: linear-gradient(to right, #2193b0, #6dd5ed);
}

.program:nth-child(3)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(
    to bottom,
    #ff758c,
    #ff7eb3
  ); /* Pink – Girl Empowerment */
}
.program:nth-child(3) {
  --accent-color: #ff758c;
  --accent-gradient: linear-gradient(to right, #ff758c, #ff7eb3);
}

.program:nth-child(4)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(
    to bottom,
    #43cea2,
    #185a9d
  ); /* Green/Blue – Community Work */
}
.program:nth-child(4) {
  --accent-color: #43cea2;
  --accent-gradient: linear-gradient(to right, #43cea2, #185a9d);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .program {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 22px;
  }
  .program__media img {
    height: 220px;
  }
}

/* IMPACT GRID */
.impact {
  text-align: center;
  padding: 80px 0;
  background: #f9fbfd;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.impact-card {
  position: relative;
  border-radius: 18px;
  padding: 60px 20px 40px;
  color: #fff;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- Gradient backgrounds per card --- */
.impact-card:nth-child(1) {
  background: linear-gradient(135deg, #007bff, #00b4d8);
}
.impact-card:nth-child(2) {
  background: linear-gradient(135deg, #ff6b6b, #f06595);
}
.impact-card:nth-child(3) {
  background: linear-gradient(135deg, #6f42c1, #b197fc);
}
.impact-card:nth-child(4) {
  background: linear-gradient(135deg, #198754, #6ecb63);
}

/* --- Subtle radial texture --- */
.impact-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 70%
  );
  transform: rotate(25deg);
  z-index: 0;
}

/* === Circular icon badge === */
.impact-card .icon {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card .icon i {
  color: #fff;
}

.impact-card:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}

/* === Text styling === */
.impact-card h3 {
  font-size: 2rem;
  font-weight: 700;
  z-index: 1;
  position: relative;
  margin-bottom: 8px;
}

.impact-card p {
  font-size: 1rem;
  line-height: 1.4;
  z-index: 1;
  position: relative;
  opacity: 0.95;
}

/* === Hover effect === */
.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* === Optional Shine Effect === */
.impact-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 80%
  );
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}
.impact-card:hover::after {
  left: 125%;
}
/* STORIES */
.stories {
  padding: 80px 0;
  background: #f9fafc;
  text-align: center;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.story {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.story:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.story-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story:hover .story-img img {
  transform: scale(1.05);
}

.story-content {
  padding: 20px 22px 26px;
}

.story-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0a1a2a;
  margin-bottom: 8px;
}

.story-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0a1a2a;
  margin-bottom: 8px;
}

.section-desc {
  color: #666;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Donation CTA reuses global .donation-cta; keep consistency */

/* Small screens responsive rules */
@media (max-width: 1100px) {
  .program__media img {
    height: 220px;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .program,
  .program--alt {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 18px;
  }
  .program__media img {
    height: 200px;
  }
  .program--alt {
    direction: ltr;
  } /* restore normal flow on mobile */
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .wwd-hero {
    padding: 90px 0 40px;
    min-height: 48vh;
  }
  .wwd-hero__content {
    padding: 0 18px;
  }
}
@media (max-width: 420px) {
  .wwd-hero h1 {
    font-size: 1.6rem;
  }
  .program__media img {
    height: 160px;
  }
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

/* small niceties */
.container {
  max-width: 1200px;
}
.section-title {
  margin-top: 0;
  margin-bottom: 12px;
}
