/* ============================================================
   service.css  —  Programs Overview + Single Program Styles
   NGO Theme · Yuva Shakti Samiti
   Depends on: variables.css, global.css, header-footer.css, about.css
   ============================================================ */

/* ===================================
   PROGRAMS OVERVIEW HERO
=================================== */
.programs-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.programs-hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1400&q=80") center/cover no-repeat;
  filter: grayscale(25%);
}

.programs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.2) 100%);
}

.programs-hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.programs-hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.75;
  max-width: 520px;
}

/* ===================================
   PROGRAM ROWS
=================================== */
.programs-section {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.program-row {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--color-light);
}

.program-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.program-img-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: visible;
}

.program-img-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--sh);
  display: block;
}

.program-count-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  z-index: 2;
}

.count-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.count-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 4px;
}

.program-content {
  padding-left: 20px;
}

.program-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.program-desc {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 24px;
  border: 2px solid;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.22s;
}

.program-link:hover {
  background: currentColor;
  color: #fff !important;
}

/* ===================================
   SINGLE PROGRAM HERO
=================================== */
.sp-hero {
  position: relative;
  height: 440px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}

.sp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(20%);
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}

.sp-hero-content {
  position: relative;
}

.sp-hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sp-hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 500;
}

/* ===================================
   SINGLE PROGRAM INTRO + STATS
=================================== */
.sp-intro-section {
  padding: 64px 0;
  background: var(--color-white);
}

.sp-intro-text {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.9;
}

.sp-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sp-stat-box {
  flex: 1 1 120px;
  background: var(--color-bg);
  border: 2px solid;
  border-radius: var(--r);
  padding: 20px 16px;
  text-align: center;
}

.sp-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.sp-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  line-height: 1.35;
}

/* ===================================
   ACTIVITY CARDS
=================================== */
.sp-activities-section {
  padding: var(--section-padding) 0;
}

.sp-activity-card {
  background: var(--color-white);
  border-radius: var(--r);
  padding: 30px 24px;
  box-shadow: var(--sh);
  height: 100%;
  border-top: 4px solid var(--card-accent, var(--color-primary));
  transition: transform 0.25s, box-shadow 0.25s;
}

.sp-activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.sp-act-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}

.sp-activity-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.sp-activity-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

/* ===================================
   MINI GALLERY
=================================== */
.sp-gallery-section {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.sp-gallery-thumb {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.sp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.sp-gallery-thumb:hover img {
  transform: scale(1.06);
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 991px) {
  .program-content {
    padding-left: 0;
    padding-top: 40px;
  }

  .program-img-wrap img {
    height: 260px;
  }

  .program-count-badge {
    right: 10px;
    bottom: -16px;
  }

  .sp-stats-row {
    gap: 10px;
  }
}

@media (max-width: 575px) {
  .program-title {
    font-size: 1.7rem;
  }

  .sp-stats-row {
    flex-direction: column;
  }
}
