/* Hero Section CSS */
.hero-section {
  position: relative;
  background-image: url("../images/background1.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #042901;
  overflow: hidden;
}

/* Curtain overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(255, 255, 255, 0.959),
    rgba(255, 253, 253, 0.59),
    rgba(255, 255, 255, 0.734)
  );
  z-index: 1;
}

/* Ensure content stays above overlay */
.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Curtain/Overlay Layer */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(178, 243, 173, 0.519),
    rgba(231, 231, 230, 0.5)
  );
  /*  gradient overlay */
  z-index: 1;
}

/* Content inside hero */
.hero-section .container {
  position: relative;
  z-index: 2; /* Above overlay */
}

.hero-section h1 {
  color: #042100;
  line-height: 1.2;
  font-weight: 700;
  font-size: 3rem;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-section p {
  font-size: 1.25rem;
  color: #000000;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}
.hero-section i {
  color: #ffc107;
}

.hero-section h5 {
  color: #006400; /* Deep green */
  font-weight: 600;
}
/* Buttons */
.hero-section .btn-primary {
  background-color: #32cd32; /* lime green */
  border: none;
  transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
  background-color: #28a428; /* darker green */
  transform: translateY(-3px) scale(1.05);
}

.hero-section .btn-outline-primary {
  color: #fff;
  border-color: #fff;
  transition: all 0.3s ease;
}

.hero-section .btn-outline-primary:hover {
  background-color: #ff8c00; /* orange accent */
  color: #ffffff;
  border-color: #ff8c00;
  transform: translateY(-3px) scale(1.05);
}
/* ===========================
   Image effects and overlay
=========================== */

.image-stack {
  position: relative;
  max-width: 540px; /* Controls overall size */
  margin: 0 auto;
}

/* Main media (video now) */
/* ensure stacking context */
.image-stack {
  position: relative;
}

/* floating controls */
.video-float-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

/* modern glass buttons */
.vbtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 16px;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
}

/* hover */
.vbtn:hover {
  transform: scale(1.08);
  background: rgba(0, 128, 0, 0.75);
}

/* liked state */
.vbtn.liked {
  background: #e63946;
}

/* Secondary Overlay Image */
.image-stack .img-secondary {
  position: absolute;
  width: 70%;
  height: 260px;
  object-fit: cover;
  bottom: -40px;
  right: -30px;
  border: 6px solid #8a8b82c7;
  border-radius: 10px;
  transition: all 0.4s ease;
}

/* Subtle hover animation */
.image-stack:hover .img-main {
  transform: scale(1.03);
}

.image-stack:hover .img-secondary {
  transform: translateY(-10px) scale(1.05);
}

/* =========================
   Image Stack Responsive
========================= */

/* Tablet / Medium Screens */
@media (max-width: 992px) {
  .image-stack {
    max-width: 100%;
    justify-content: center;
  }

  .image-stack .img-main {
    height: 300px;
    max-width: 90%;
  }

  .image-stack .img-secondary {
    width: 65%;
    height: 220px;
    bottom: -15px;
    right: -10px;
  }
}

/* Mobile / Small Screens */
@media (max-width: 768px) {
  .image-stack {
    flex-direction: column;
    align-items: center;
  }

  .image-stack .img-main {
    width: 90%;
    height: auto;
    max-height: 280px;
  }

  .image-stack .img-secondary {
    position: relative;
    width: 80%;
    height: auto;
    max-height: 200px;
    bottom: 0;
    right: 0;
    margin-top: -50px; /* slight overlap */
  }
}

/* Extra Small Screens / Phones */
@media (max-width: 480px) {
  .image-stack .img-main,
  .image-stack .img-secondary {
    width: 95%;
    height: auto;
    max-height: 180px;
  }

  .image-stack .img-secondary {
    margin-top: -35px;
  }
}
.image-stack::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
}

/* Responsive text sizing */
@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.25rem;
  }
  .hero-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 575px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
}

.main-centres {
  background-color: #dfe8dc;
}

/* Our Main TITLE */
.main-title {
  font-size: 42px;
  font-weight: 600;
  color: #f39c12;
  letter-spacing: 2px;
}

.main-subtitle {
  max-width: 850px;
  margin: auto;
  color: #2e7d32;
  font-weight: 500;
}

/* CARD */
.centre-card {
  background: #f4f4f4;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.centre-card:hover {
  transform: translateY(-5px);
}
/* =========================
   Card  Image formats
========================= */

/* ================= IMAGE WRAPPER ================= */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= IMAGE ================= */
.centre-img {
  width: 100%;
  height: clamp(260px, 40vw, 420px);
  object-fit: cover; /* crops and fills nicely */
  border-radius: 20px;

  display: block;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* ================= HOVER EFFECT ================= */
.image-wrapper:hover .centre-img {
  transform: scale(1.05); /* slight zoom for focus */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

/* ================= MAXIMIZE/MINIMIZE PSEUDO BUTTON ================= */
.img-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

/* Button style */
.img-btn {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.3s ease;
}

/* Hover effect for button */
.img-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ================= MAXIMIZE EFFECT ON HOVER ================= */
.image-wrapper.maximized {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;
  max-width: 1200px;
  height: auto;
  max-height: 90vh;
  transform: translate(-50%, -50%);
  z-index: 999;
  box-shadow: 0 50px 80px rgba(0, 0, 0, 0.4);
}

/* Center the image inside maximized wrapper */
.image-wrapper.maximized img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(1);
}

/* mobile refinement */
@media (max-width: 768px) {
  .centre-img {
    height: clamp(220px, 55vw, 320px);
    border-radius: 16px;
  }
}
/* CONTENT */
.centre-content {
  padding: 20px 30px;
}

.centre-content h4 {
  font-weight: 700;
  color: #2e7d32;
}

.highlight-label {
  color: #000; /* black text */
  font-weight: 700; /* bold */
  font-size: 16px; /* readable size */
  margin-bottom: 8px;
  text-align: left; /* aligns left by default */
}
/* Needs Highlight Title */
.needs-title {
  font-weight: 200;
  color: #f39c12; /* your brand orange */
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0.3px;
}

/* Keep your list but slightly modernized */
.needs-list {
  padding-left: 20px;
  color: #444444;
  margin-bottom: 15px;
}

.needs-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}
/* =========================
   Clickable TAGS Badges
========================= */

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Base badge */
.status-tags .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Hover lift effect */
.status-tags .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Click press effect */
.status-tags .badge:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Focus accessibility */
.status-tags .badge:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* ================= COLORS AND EFFECT ON BADGES ================= */

.badge.done {
  background: #e6f4ea;
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.badge.ongoing {
  background: #d0e7ff;
  color: #1976d2;
  border: 1px solid #1976d2;
}

.badge.proposed {
  background: #fff3e0;
  color: #f39c12;
  border: 1px solid #f39c12;
}

/* subtle modern glow on hover */
.badge.done:hover {
  background: #2e7d32;
  color: #fff;
}

.badge.ongoing:hover {
  background: #1976d2;
  color: #fff;
}

.badge.proposed:hover {
  background: #f39c12;
  color: #fff;
}

/* =========================
   See More  Button
========================= */

.see-more-btn {
  display: block; /* Makes it stretch */
  width: 100%; /* Full width */
  text-align: center;

  background-color: #f39c12;
  color: #fff;

  padding: 14px 0;
  border-radius: 50px;

  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.5px;

  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover effect */
.see-more-btn:hover {
  background-color: #d68910;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(243, 156, 18, 0.35);
  color: #fff;
}

/* Click press effect */
.see-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(243, 156, 18, 0.4);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .centre-content {
    padding: 25px 10px;
  }

  .centre-img {
    margin-bottom: 20px;
  }

  .main-title {
    font-size: 32px;
  }
}

/* SECTION BACKGROUND */
.focused-needs {
  background: #f0f0f0;
}

/* TITLE */
.needs-title {
  font-size: 38px;
  font-weight: 800;
  color: #2e7d32;
  letter-spacing: 1px;
}

.needs-subtitle {
  max-width: 900px;
  margin: auto;
  color: #444;
  font-weight: 500;
}

/* CARD BASE */
.need-card {
  padding: 30px;
  border-radius: 20px;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.need-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* CARD COLORS */
.card-orange {
  background: #f6d7a8;
}

.card-green {
  background: #cfe3d3;
}

.card-light-orange {
  background: #f3c892;
}

/* LABEL */
.card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  color: #555;
}

/* HEADINGS */
.need-card h5 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #1f3d2b;
}

/* PARAGRAPH */
.need-card p {
  font-size: 14px;
  color: #333;
}

/* LIST */
.need-card ul {
  padding-left: 18px;
  margin-top: 15px;
}

.need-card ul li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* BUTTON */
.learn-btn {
  margin-top: 15px;
  background: #f39c12;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s ease;
}

.learn-btn:hover {
  background: #d68910;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .needs-title {
    font-size: 30px;
  }
}

@media (max-width: 576px) {
  .need-card {
    padding: 22px;
  }
}
