/**
 * Srijonshil Gaibandha NGO - Premium Homepage Stylesheet
 * File: assets/css/homepage.css
 * Phase: Phase 3 (Homepage Redesign)
 * 
 * Reuses tokens defined in assets/css/tokens.css:
 * - Brand Green: var(--brand-green) [#2FA84F]
 * - Brand Red: var(--brand-red) [#E11D48]
 * - Brand Dark Green: var(--brand-dark-green) [#148F41]
 * - Brand White: var(--brand-white) [#FFFFFF]
 */

/* ==========================================================================
   1. GLOBAL HOMEPAGE UTILITIES & SECTION BASICS
   ========================================================================== */
.main-homepage {
  width: 100%;
  overflow-x: hidden;
}

.home-section {
  position: relative;
  padding: 5rem 0;
  width: 100%;
}

@media (max-width: 767.98px) {
  .home-section {
    padding: 3.5rem 0;
  }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--brand-green);
  background: rgba(47, 168, 79, 0.08);
  border: 1px solid rgba(47, 168, 79, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.section-eyebrow-red {
  color: var(--brand-red);
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.2);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: var(--fw-extrabold);
  color: var(--brand-dark-green);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-heading span.accent {
  color: var(--brand-green);
}

.section-lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

/* ==========================================================================
   1.1 SHARED SECTION ACTION BUTTONS (.btn-hero-primary & .btn-hero-outline)
   ========================================================================== */
.btn-hero-primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-dark-green) 100%);
  color: var(--brand-white) !important;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  padding: 0.8rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(47, 168, 79, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(47, 168, 79, 0.45);
  background: linear-gradient(135deg, #38c15c 0%, var(--brand-dark-green) 100%);
  color: var(--brand-white) !important;
}

.btn-hero-primary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-hero-outline {
  background: var(--brand-white);
  color: var(--brand-dark-green) !important;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  padding: 0.8rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--brand-green);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-hero-outline:hover {
  background: var(--brand-green);
  color: var(--brand-white) !important;
  border-color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 168, 79, 0.3);
}

.btn-hero-outline:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ==========================================================================
   2. HERO SLIDER SECTION (Premium Full-Width NGO Experience)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--brand-forest-dark);
}

.hero-slider-carousel {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 580px;
  max-height: 720px;
}

@media (max-width: 991.98px) {
  .hero-slider-carousel {
    height: 65vh;
    min-height: 520px;
  }
}

@media (max-width: 575.98px) {
  .hero-slider-carousel {
    height: auto;
    min-height: 480px;
  }
}

.hero-slider-carousel .carousel-inner,
.hero-slider-carousel .carousel-item {
  height: 100%;
  position: relative;
}

@media (max-width: 575.98px) {
  .hero-slider-carousel .carousel-inner,
  .hero-slider-carousel .carousel-item {
    height: auto;
    min-height: 480px;
  }
}

/* Background Photography with Crossfade */
.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item.active .slide-bg-img {
  transform: scale(1.04);
}

/* Multi-Layered Editorial Gradient Overlay */
.slide-overlay-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 61, 31, 0.94) 0%, rgba(10, 61, 31, 0.8) 50%, rgba(0, 0, 0, 0.42) 100%);
  z-index: 1;
}

@media (max-width: 767.98px) {
  .slide-overlay-gradient {
    background: linear-gradient(180deg, rgba(10, 61, 31, 0.94) 0%, rgba(10, 61, 31, 0.85) 100%);
  }
}

/* Slide Content Container */
.slide-content-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5.5rem 0;
}

@media (max-width: 575.98px) {
  .slide-content-container {
    padding: 3.5rem 0 4.5rem 0;
  }
}

.slide-content-wrap {
  max-width: 680px;
  animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Eyebrow Badge */
.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #a7f3d0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(47, 168, 79, 0.4);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slide-badge i {
  color: var(--brand-green);
  font-size: 0.95em;
}

.hero-slide-badge-red {
  color: #fecdd3;
  border-color: rgba(225, 29, 72, 0.4);
}

.hero-slide-badge-red i {
  color: var(--brand-red);
}

/* Slide Headline */
.hero-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.18;
  color: var(--brand-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-slide-title .highlight-accent {
  color: #4ade80;
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.3);
}

.hero-slide-title .highlight-red {
  color: #fb7185;
}

/* Slide Description */
.hero-slide-desc {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 620px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-slide-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 575.98px) {
  .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-slide-actions .btn-slider-primary,
  .hero-slide-actions .btn-slider-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.btn-slider-primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-dark-green) 100%);
  color: var(--brand-white) !important;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-slider-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 168, 79, 0.45);
  color: var(--brand-white) !important;
  background: linear-gradient(135deg, #38c15c 0%, var(--brand-dark-green) 100%);
}

.btn-slider-outline {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brand-white) !important;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-slider-outline:hover {
  background: var(--brand-white);
  color: var(--brand-dark-green) !important;
  border-color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-slider-red {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-crimson) 100%);
  color: var(--brand-white) !important;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-slider-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.55);
  color: var(--brand-white) !important;
}

/* ==========================================================================
   SLIDER CONTROLS & INDICATORS
   ========================================================================== */
/* Previous / Next Arrow Buttons */
.hero-carousel-control {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: all var(--transition-fast);
  z-index: 10;
}

.hero-carousel-control:hover,
.hero-carousel-control:focus-visible {
  opacity: 1;
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--brand-white);
  transform: translateY(-50%) scale(1.08);
  outline: none;
  box-shadow: var(--focus-ring);
}

.hero-carousel-control.carousel-control-prev {
  left: 1.5rem;
}

.hero-carousel-control.carousel-control-next {
  right: 1.5rem;
}

@media (max-width: 767.98px) {
  .hero-carousel-control {
    display: none !important;
  }
}

/* Modern Editorial Slide Indicators */
.hero-slider-indicators {
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  z-index: 10;
  list-style: none;
}

.hero-indicator-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  height: 10px;
  width: 32px;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-indent: -9999px;
  overflow: hidden;
}

.hero-indicator-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-indicator-btn.active {
  width: 64px;
  background: var(--brand-green);
  border-color: #a7f3d0;
  box-shadow: 0 0 10px rgba(47, 168, 79, 0.6);
}

.hero-indicator-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ==========================================================================
   3. VERIFIED IMPACT & STATISTICS SECTION
   ========================================================================== */
.impact-strip {
  background: linear-gradient(145deg, var(--brand-forest) 0%, var(--brand-forest-dark) 100%);
  color: var(--brand-white);
  padding: 3.5rem 0;
  border-top: 4px solid var(--brand-green);
  border-bottom: 4px solid var(--brand-dark-green);
}

.impact-metric-card {
  text-align: center;
  padding: 1rem 0.5rem;
  transition: transform var(--transition-fast);
}

.impact-metric-card:hover {
  transform: translateY(-3px);
}

.impact-metric-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem auto;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.impact-metric-card:hover .impact-metric-icon {
  background: var(--brand-green);
  color: var(--brand-white);
  transform: scale(1.1);
}

.impact-metric-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: var(--fw-extrabold);
  color: var(--brand-white);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.impact-metric-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: #cbd5e1;
  margin-bottom: 0;
}

/* ==========================================================================
   4. ABOUT THE ORGANIZATION SECTION
   ========================================================================== */
.about-section {
  background: var(--brand-white);
}

.about-img-wrap {
  position: relative;
  padding-bottom: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 991.98px) {
  .about-img-wrap {
    padding-bottom: 0;
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

.about-img-primary {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.about-experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-crimson) 100%);
  color: var(--brand-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
  text-align: center;
  min-width: 140px;
}

@media (max-width: 575.98px) {
  .about-img-wrap {
    margin-bottom: 2rem;
    padding-bottom: 0.85rem;
    padding-right: 0;
    position: relative;
  }

  .about-img-primary {
    height: 190px;
    padding: 1.25rem !important;
    border-radius: 14px;
  }

  .about-experience-badge {
    position: absolute;
    bottom: 0;
    right: 0.75rem;
    margin-top: 0;
    width: auto;
    min-width: auto;
    padding: 0.45rem 0.95rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
  }

  .about-exp-years {
    font-size: 1.55rem;
    line-height: 1;
    display: inline-block;
  }

  .about-exp-text {
    font-size: 0.65rem;
    line-height: 1.15;
    text-align: left;
    max-width: 110px;
    display: inline-block;
  }
}

.about-exp-years {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: var(--fw-extrabold);
  line-height: 1;
  display: block;
}

.about-exp-text {
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.about-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 2rem 0;
}

@media (max-width: 575.98px) {
  .about-pillar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.about-pillar-card {
  background: var(--brand-surface-tint);
  border: 1px solid rgba(47, 168, 79, 0.18);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.about-pillar-card:hover {
  background: var(--brand-white);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-pillar-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.about-pillar-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: var(--brand-green);
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.about-pillar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--brand-dark-green);
  margin: 0;
}

.about-pillar-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   5. KEY FOCUS AREAS / THEMES SECTION
   ========================================================================== */
.focus-areas-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.focus-card {
  background: var(--brand-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(47, 168, 79, 0.3);
}

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

.focus-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(47, 168, 79, 0.1);
  color: var(--brand-dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.focus-card:hover .focus-icon-wrap {
  background: var(--brand-green);
  color: var(--brand-white);
}

.focus-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.focus-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.focus-card-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: var(--fw-bold);
  color: var(--brand-dark-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.focus-card-link:hover {
  color: var(--brand-green);
  gap: 0.55rem;
}

@media (max-width: 991.98px) {
  .focus-areas-section .row > [class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 767.98px) {
  .focus-areas-section .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .focus-card {
    padding: 1.5rem 1.25rem;
  }
}


/* ==========================================================================
   6. FEATURED RECENT PROJECTS SECTION
   ========================================================================== */
.projects-section-home {
  background: var(--brand-white);
}

.project-card-refined {
  background: var(--brand-white, #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  position: relative;
}

.project-card-refined::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2e8f0;
  transition: background 0.3s ease;
  z-index: 2;
}

.project-card-refined[data-status="ongoing"]::before {
  background: #10b981;
}

.project-card-refined[data-status="upcoming"]::before {
  background: #f59e0b;
}

.project-card-refined[data-status="completed"]::before {
  background: #0284c7;
}

.project-card-refined:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
  border-color: rgba(47, 168, 79, 0.45);
}

/* Card Header Top Row (Initiative Tag & Status Pill) */
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.project-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-dark-green, #148f41);
  background: rgba(47, 168, 79, 0.08);
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(47, 168, 79, 0.2);
}

.project-card-media {
  position: relative;
  height: 220px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-refined:hover .project-card-img {
  transform: scale(1.06);
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: var(--brand-dark-green, #148F41);
  text-align: center;
  padding: 1.5rem;
}

.placeholder-icon-circle {
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green, #2FA84F);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(20, 143, 65, 0.12);
  margin-bottom: 0.6rem;
}

.placeholder-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}

.placeholder-brand {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.project-status-pill {
  position: static;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  padding: 0.32rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  z-index: 2;
}

.status-ongoing,
.project-status-pill.status-ongoing {
  background: #10b981;
  color: #ffffff;
}

.status-completed,
.project-status-pill.status-completed {
  background: #0284c7;
  color: #ffffff;
}

.status-upcoming,
.project-status-pill.status-upcoming {
  background: #f59e0b;
  color: #ffffff;
}

.project-card-body {
  padding: 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2rem;
  transition: color 0.2s ease;
}

.project-card-refined:hover .project-card-title {
  color: var(--brand-dark-green, #148F41);
}

/* Modern Project Meta Cardlet */
.project-meta-cardlet {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  margin-bottom: 1.15rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem;
  text-align: left !important;
}

.meta-cardlet-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  text-align: left !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.meta-cardlet-row + .meta-cardlet-row {
  padding-top: 0.75rem !important;
  border-top: 1px dashed #e2e8f0 !important;
}

.meta-cardlet-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.85rem !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
}

.meta-icon-partner {
  background: rgba(47, 168, 79, 0.12) !important;
  color: var(--brand-dark-green, #148F41) !important;
}

.meta-icon-calendar {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
}

.meta-cardlet-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
}

.meta-cardlet-label {
  display: block !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: #64748b !important;
  margin-bottom: 0.2rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.meta-cardlet-val {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow: visible !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  text-align: left !important;
  display: block !important;
}

.project-card-summary {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.project-detail-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark-green, #148F41);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(47, 168, 79, 0.06);
  border: 1px solid rgba(47, 168, 79, 0.22);
  border-radius: 50px;
  transition: all 0.25s ease;
  width: 100%;
}

.project-detail-btn:hover {
  background: var(--brand-green, #2FA84F);
  border-color: var(--brand-green, #2FA84F);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 168, 79, 0.25);
  gap: 0.75rem;
}

/* ==========================================================================
   7. LATEST NEWS & EVENTS SECTION
   ========================================================================== */
.events-section-home {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.event-card-refined {
  background: var(--brand-white);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.event-card-refined:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px -4px rgba(15, 23, 42, 0.12), 0 6px 14px -2px rgba(47, 168, 79, 0.08);
  border-color: rgba(47, 168, 79, 0.4);
}

.event-card-media {
  position: relative;
  height: 180px;
  background: #0f172a;
  overflow: hidden;
}

.event-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card-refined:hover .event-card-img {
  transform: scale(1.06);
}

.event-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(15, 23, 42, 0.6) 100%);
  pointer-events: none;
}

.event-date-badge {
  position: absolute;
  bottom: 0.7rem;
  left: 0.75rem;
  background: rgba(15, 74, 36, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--brand-white);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  text-align: center;
  line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
}

.event-date-day {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
  letter-spacing: -0.5px;
}

.event-date-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  color: #86efac;
  font-weight: 700;
}

.event-category-pill {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--brand-dark-green);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
  pointer-events: none;
}

.event-card-body {
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-location-text {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.event-location-text i {
  color: var(--brand-red);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.event-card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.38;
  margin-bottom: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.82rem;
}

.event-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-card-title a:hover,
.event-card-refined:hover .event-card-title a {
  color: var(--brand-green);
}

.event-card-excerpt {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.78rem;
  margin-bottom: 1rem;
}

.event-card-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.25s ease;
  margin-top: auto;
}

.event-card-link i {
  font-size: 0.75rem;
  color: var(--brand-dark-green);
  transition: transform 0.25s ease;
}

.event-card-link:hover,
.event-card-refined:hover .event-card-link {
  background: var(--brand-dark-green);
  border-color: var(--brand-dark-green);
  color: #ffffff;
}

.event-card-link:hover i,
.event-card-refined:hover .event-card-link i {
  color: #ffffff;
  transform: translateX(3px);
}


/* ==========================================================================
   8. PHOTO GALLERY PREVIEW SECTION
   ========================================================================== */
.gallery-section-home {
  background: var(--brand-white);
  overflow: hidden;
}

/* Infinite Marquee Container & Track */
.gallery-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0 1.25rem;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.gallery-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: galleryScrollLeft 48s linear infinite;
  will-change: transform;
}

@keyframes galleryScrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* On mouse hover halt the scroll */
.gallery-marquee-viewport:hover .gallery-marquee-track,
.gallery-marquee-track:hover {
  animation-play-state: paused !important;
}

/* Individual Marquee Card */
.gallery-marquee-card {
  flex: 0 0 290px;
  width: 290px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.gallery-marquee-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(47, 168, 79, 0.15);
  border-color: var(--brand-green);
  z-index: 5;
}

.gallery-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-marquee-card:hover .gallery-card-img {
  transform: scale(1.08);
}

.gallery-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #86efac;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.gallery-zoom-hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  z-index: 2;
}

.gallery-marquee-card:hover .gallery-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(10, 30, 18, 0.94) 100%);
  display: flex;
  align-items: flex-end;
  padding: 0.9rem 1rem;
  transition: background 0.3s ease;
}

.gallery-card-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Gallery Fullscreen Viewing Lightbox Modal
   ========================================================================== */
.gallery-fullview-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.gallery-fullview-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-fullview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.gallery-fullview-dialog {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.gallery-fullview-card {
  position: relative;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  max-width: 960px;
  width: 100%;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button on the top right corner of viewing image */
.gallery-fullview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.gallery-fullview-close:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
}

.gallery-fullview-img-wrap {
  width: 100%;
  max-height: 72vh;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-fullview-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.gallery-fullview-footer {
  padding: 1.15rem 1.5rem;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-fullview-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-fullview-pill {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.gallery-fullview-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .gallery-marquee-card {
    flex: 0 0 240px;
    width: 240px;
    height: 180px;
  }
  .gallery-fullview-modal {
    padding: 0.75rem;
  }
  .gallery-fullview-close {
    top: 0.6rem;
    right: 0.6rem;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .gallery-fullview-title {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   9. GET INVOLVED (PARTICIPATION WAYS)
   ========================================================================== */
.engagement-section-refined {
  background: linear-gradient(160deg, #f0fdf4 0%, #e2f7e7 100%);
  border-top: 1px solid rgba(47, 168, 79, 0.2);
  border-bottom: 1px solid rgba(47, 168, 79, 0.2);
}

.engage-card {
  background: var(--brand-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 168, 79, 0.2);
  padding: 2.25rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.engage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20, 143, 65, 0.12);
  border-color: var(--brand-green);
}

.engage-card-donate {
  border-top: 4px solid var(--brand-red);
}

.engage-card-volunteer {
  border-top: 4px solid var(--brand-green);
}

.engage-card-partner {
  border-top: 4px solid var(--brand-dark-green);
}

.engage-card-ambassador {
  border-top: 4px solid #0284c7;
}

.engage-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.engage-card-donate .engage-icon-circle {
  background: rgba(225, 29, 72, 0.1);
  color: var(--brand-red);
}

.engage-card-volunteer .engage-icon-circle {
  background: rgba(47, 168, 79, 0.1);
  color: var(--brand-green);
}

.engage-card-partner .engage-icon-circle {
  background: rgba(20, 143, 65, 0.1);
  color: var(--brand-dark-green);
}

.engage-card-ambassador .engage-icon-circle {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.engage-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.engage-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.btn-engage-action {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-normal);
  width: 100%;
}

.btn-engage-red {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-crimson) 100%);
  color: var(--brand-white) !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.btn-engage-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
  color: var(--brand-white) !important;
}

.btn-engage-green {
  background: linear-gradient(135deg, var(--brand-dark-green) 0%, var(--brand-green) 100%);
  color: var(--brand-white) !important;
  box-shadow: 0 4px 14px rgba(20, 143, 65, 0.35);
}

.btn-engage-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 143, 65, 0.5);
  color: var(--brand-white) !important;
}

.btn-engage-outline {
  background: var(--brand-white);
  color: var(--brand-dark-green) !important;
  border: 2px solid var(--brand-green);
}

.btn-engage-outline:hover {
  background: var(--brand-green);
  color: var(--brand-white) !important;
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .engagement-section-refined .row > [class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 767.98px) {
  .engagement-section-refined .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .engage-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ==========================================================================
   9.5 STRATEGIC PARTNERS & ALLIANCES (Continuous Scrolling Marquee)
   ========================================================================== */
.partners-marquee-section {
  background: #ffffff;
  padding: 4.5rem 0 3.75rem;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  position: relative;
  overflow: hidden;
}

.partners-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.25rem 0;
  display: flex;
  user-select: none;
}

/* Gradient edge fades for seamless entry & exit */
.partners-marquee-wrapper::before,
.partners-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 5;
  pointer-events: none;
}

.partners-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partners-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partners-marquee-track {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform;
}

.partners-marquee-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  flex-shrink: 0;
}

/* Individual partner logo card - OPTICALLY BALANCED FULL BOX DISPLAY */
.partner-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 105px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.partner-marquee-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(47, 168, 79, 0.65);
  box-shadow: 0 10px 24px rgba(47, 168, 79, 0.16);
}

.partner-marquee-logo {
  max-width: 172px;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.25s ease;
}

.partner-marquee-item:hover .partner-marquee-logo {
  transform: scale(1.04);
}

.partner-view-all-btn {
  transition: all 0.25s ease;
  font-size: 0.95rem;
  color: var(--brand-green);
  border-color: var(--brand-green);
}

.partner-view-all-btn:hover {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 168, 79, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .partners-marquee-section {
    padding: 3.5rem 0 3rem;
  }
  .partners-marquee-wrapper::before,
  .partners-marquee-wrapper::after {
    width: 70px;
  }
  .partner-marquee-item {
    width: 185px;
    height: 95px;
    padding: 10px 14px;
  }
  .partner-marquee-logo {
    max-width: 155px;
    max-height: 68px;
  }
  .partners-marquee-group {
    gap: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .partners-marquee-section {
    padding: 3rem 0 2.5rem;
  }
  .partners-marquee-wrapper::before,
  .partners-marquee-wrapper::after {
    width: 35px;
  }
  .partner-marquee-item {
    width: 160px;
    height: 85px;
    padding: 8px 12px;
    border-radius: 12px;
  }
  .partner-marquee-logo {
    max-width: 135px;
    max-height: 60px;
  }
  .partners-marquee-group {
    gap: 1rem;
    padding-right: 1rem;
  }
}

/* ==========================================================================
   10. FINAL CALL TO ACTION CLOSING BANNER
   ========================================================================== */
.final-cta-section {
  background: linear-gradient(135deg, var(--brand-forest) 0%, var(--brand-forest-dark) 100%);
  color: var(--brand-white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(47, 168, 79, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.final-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--brand-white);
}

.final-cta-lead {
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2.25rem;
}

.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-cta-donate {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-crimson) 100%);
  color: var(--brand-white) !important;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-cta-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(225, 29, 72, 0.6);
  color: var(--brand-white) !important;
}

.btn-cta-volunteer {
  background: transparent;
  color: var(--brand-white) !important;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--brand-white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-cta-volunteer:hover {
  background: var(--brand-white);
  color: var(--brand-dark-green) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Refinements Across All Homepage Sections
   ========================================================================== */
@media (max-width: 991.98px) {
  .project-card-title {
    font-size: 1.1rem;
    min-height: auto;
  }
  .event-card-title {
    font-size: 1rem;
    min-height: auto;
  }
  .event-card-excerpt {
    min-height: auto;
  }
  .about-img-wrap {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  /* Hide hero prev/next arrow overlays on mobile to prevent blocking text */
  .hero-carousel-control {
    display: none !important;
  }

  .home-section {
    padding: 3.25rem 0;
  }
  .section-heading {
    font-size: clamp(1.55rem, 4.8vw, 2rem);
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }
  .section-lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .home-section .text-center.mb-5 {
    margin-bottom: 2rem !important;
  }
  .home-section .text-center.mt-5 {
    margin-top: 2rem !important;
  }

  /* Projects & Events */
  .projects-section-home,
  .events-section-home {
    padding: 3.25rem 0;
  }
  .project-card-body {
    padding: 1.35rem 1.25rem;
  }
  .project-card-title {
    font-size: 1.05rem;
    min-height: auto;
    margin-bottom: 0.75rem;
  }
  .project-card-summary {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }
  .project-meta-cardlet {
    padding: 0.85rem 0.95rem;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }
  .event-card-media {
    height: 200px;
  }
  .event-card-body {
    padding: 1rem 1.05rem 1.15rem;
  }
  .event-card-title {
    font-size: 0.98rem;
    min-height: auto;
    margin-bottom: 0.45rem;
  }
  .event-card-excerpt {
    font-size: 0.84rem;
    min-height: auto;
    margin-bottom: 0.85rem;
  }
  .event-card-link {
    padding: 0.55rem 0.85rem;
    min-height: 40px;
  }

  /* Ways to Engage Cards */
  .engage-card {
    padding: 1.6rem 1.35rem;
  }
  .engage-icon-circle {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
  }
  .engage-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
  }
  .engage-card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
  }
  .btn-engage-action {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  /* Final CTA Banner (generous bottom clearance for floating back-to-top button) */
  .final-cta-section {
    padding: 3.75rem 0 5.5rem 0;
  }
  .final-cta-title {
    font-size: clamp(1.45rem, 5.5vw, 1.95rem);
    line-height: 1.25;
    margin-bottom: 0.85rem;
  }
  .final-cta-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }
  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    max-width: 320px;
    margin: 0 auto;
  }
  .btn-cta-donate,
  .btn-cta-volunteer {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .home-section {
    padding: 2.75rem 0;
  }
  .section-heading {
    font-size: clamp(1.42rem, 5.2vw, 1.82rem);
    line-height: 1.25;
    margin-bottom: 0.65rem;
  }
  .section-lead {
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .home-section .text-center.mb-5 {
    margin-bottom: 1.65rem !important;
  }
  .home-section .text-center.mt-5 {
    margin-top: 1.65rem !important;
  }

  /* Hero Slider */
  .slide-content-container {
    padding: 3rem 0.5rem 3.5rem 0.5rem;
  }
  .slide-content-wrap {
    padding: 0 0.25rem;
  }
  .hero-slide-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.75rem;
  }
  .hero-slide-title {
    font-size: clamp(1.55rem, 6vw, 1.95rem);
    line-height: 1.22;
    margin-bottom: 0.75rem;
  }
  .hero-slide-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }
  .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-slide-actions .btn-slider-primary,
  .hero-slide-actions .btn-slider-outline,
  .hero-slide-actions .btn-slider-red {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.72rem 1.2rem;
    font-size: 0.9rem;
  }
  .hero-slider-indicators {
    bottom: 1rem;
  }

  /* Impact Strip 2x2 Grid */
  .impact-strip {
    padding: 2.25rem 0;
  }
  .impact-strip .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 1rem;
  }
  .impact-metric-card {
    padding: 0.5rem 0.25rem;
  }
  .impact-metric-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 0.55rem;
  }
  .impact-metric-number {
    font-size: 1.55rem;
    margin-bottom: 0.2rem;
  }
  .impact-metric-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* About Pillars */
  .about-pillar-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin: 1.15rem 0 1.35rem 0;
  }
  .about-pillar-card {
    padding: 0.85rem 0.95rem;
  }
  .about-pillar-header {
    gap: 0.5rem;
    margin-bottom: 0.3rem;
  }
  .about-pillar-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.8rem;
  }
  .about-pillar-title {
    font-size: 0.95rem;
  }
  .about-pillar-desc {
    font-size: 0.84rem;
    line-height: 1.45;
  }
  .about-text-wrap .btn-hero-primary {
    width: 100%;
    justify-content: center;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 0.72rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Focus Cards */
  .focus-areas-section .row {
    --bs-gutter-y: 1rem;
  }
  .focus-card {
    padding: 1.25rem 1.15rem;
  }
  .focus-icon-wrap {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  .focus-card-title {
    font-size: 1.08rem;
    margin-bottom: 0.45rem;
  }
  .focus-card-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
  }

  /* Projects & Events */
  .projects-section-home,
  .events-section-home {
    padding: 2.5rem 0;
  }
  .project-card-top {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
  }
  .project-tag-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
  }
  .project-card-refined .project-status-pill {
    font-size: 0.68rem;
    padding: 0.28rem 0.7rem;
  }
  .meta-cardlet-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.78rem !important;
  }
  .meta-cardlet-label {
    font-size: 0.66rem !important;
  }
  .meta-cardlet-val {
    font-size: 0.82rem !important;
  }
  .project-detail-btn {
    padding: 0.6rem 1rem;
    font-size: 0.86rem;
  }
  .event-card-media {
    height: 190px;
  }
  .event-date-badge {
    bottom: 0.6rem;
    left: 0.65rem;
    padding: 0.3rem 0.55rem;
  }
  .event-date-day {
    font-size: 1.05rem;
  }
  .event-date-month {
    font-size: 0.6rem;
  }
  .event-category-pill {
    top: 0.6rem;
    right: 0.65rem;
    font-size: 0.68rem;
    padding: 0.24rem 0.6rem;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Final CTA Section */
  .final-cta-section {
    padding: 3.25rem 0 5.25rem 0;
  }
}

/* ==========================================================================
   10.5 ULTRA-NARROW MOBILE SCREENS (<= 359.98px)
   ========================================================================== */
@media (max-width: 359.98px) {
  .hero-slide-title {
    font-size: clamp(1.35rem, 5.8vw, 1.65rem);
  }

  .hero-slide-badge {
    font-size: 0.68rem;
    padding: 0.28rem 0.65rem;
  }

  .hero-indicator-btn {
    width: 22px;
  }

  .hero-indicator-btn.active {
    width: 44px;
  }

  .impact-metric-number {
    font-size: 1.35rem;
  }

  .impact-metric-label {
    font-size: 0.72rem;
  }

  .about-img-primary {
    height: 165px;
    padding: 1rem !important;
  }

  .about-experience-badge {
    padding: 0.35rem 0.65rem;
  }

  .about-exp-years {
    font-size: 1.35rem;
  }

  .about-exp-text {
    font-size: 0.58rem;
    max-width: 90px;
  }

  .final-cta-title {
    font-size: 1.35rem;
  }

  .final-cta-lead {
    font-size: 0.88rem;
  }

  .partner-marquee-item {
    width: 145px;
    height: 78px;
    padding: 6px 10px;
  }

  .partner-marquee-logo {
    max-width: 120px;
    max-height: 52px;
  }

  .partner-view-all-btn {
    font-size: 0.84rem;
    padding: 0.5rem 1rem;
    width: 100%;
  }
}

/* ==========================================================================
   11. ACCESSIBILITY & MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
