/* ==============================================
   🌱 PASIG RIVER INITIATIVES SECTION
   ----------------------------------------------
   Full-screen layout, centered grid, responsive cards
============================================== */
#initiatives-page {
  position: relative;
  min-height: 100vh;             /* ✅ fills full screen height */
  display: flex;
  flex-direction: column;
  justify-content: center;       /* ✅ centers vertically */
  align-items: center;           /* ✅ centers horizontally */
  background: #ffffff;
  padding: 3rem 2rem;
  box-sizing: border-box;
}

/* 🌊 Section Title */
.section-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 45px;
  font-weight: 700;
  color: #141E46;
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

/* 💚 Initiatives Container */
.initiatives {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
  padding-bottom: 3rem;
}

/* 🟩 Individual Cards */
.i-card {
  position: relative;
  width: 260px;
  height: 420px;
  background: #ddd;
  border-radius: 16px;
  overflow: hidden;
  transform: skew(-10deg);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.i-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skew(10deg); /* un-skew image inside card */
  transition: transform 0.3s ease, scale 0.3s ease;
}

.i-card:hover {
  transform: skew(-10deg) scale(1.05);
}

.i-card:hover img {
  transform: skew(10deg) scale(1.1);
}

/* 🌈 Smooth fade-in animation for appearance */
.i-card {
  opacity: 0;
  animation: fadeInCards 1s forwards;
}
.i-card:nth-child(1) { animation-delay: 0.2s; }
.i-card:nth-child(2) { animation-delay: 0.4s; }
.i-card:nth-child(3) { animation-delay: 0.6s; }
.i-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInCards {
  from { opacity: 0; transform: translateY(40px) skew(-10deg); }
  to { opacity: 1; transform: translateY(0) skew(-10deg); }
}
/* 🟩 Individual Cards */
.i-card {
  position: relative;
  width: 300px;
  height: 460px;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  transform: skew(-8deg);
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.i-card img {
  width: 1050px;
  height: 100%;
  object-fit: cover;
  transform: skew(8deg) scale(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.9);
}

.i-card:hover {
  transform: skew(-8deg) scale(1.06);
  box-shadow: 0 15px 35px rgba(20, 30, 70, 0.4); /* ✅ deeper theme glow */
}

.i-card:hover img {
  transform: skew(8deg) scale(1.15);
  filter: brightness(1);
}

/* ✨ Gradient Overlay for Better Readability */
.i-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(20, 30, 70, 0.9), rgba(20, 30, 70, 0)); /* ✅ Pasig Blue Gradient */
  pointer-events: none;
  transition: height 0.4s ease;
}

.i-card:hover::after {
  height: 100%; /* ✅ Expands overlay upward */
}

/* 🪶 Overlay Text */
.i-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem;
  color: #fff;
  z-index: 2;
  transform: skew(8deg);
  text-align: left;
  transition: all 0.4s ease;
}

/* Title — Always Visible */
.i-card .overlay h3 {
  font-size: 18px;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #e8f0ff; /* ✅ Soft white-blue title */
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: color 0.4s ease;
}

.i-card:hover .overlay h3 {
  color: #41E141; /* ✅ Subtle accent green when hovered */
}

/* Description — Hidden by Default */
.i-card .overlay p {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Reveal Description on Hover */
.i-card:hover .overlay p {
  opacity: 1;
  max-height: 200px;
  margin-top: 0.5rem;
}

/* 🌈 Smooth fade-in animation for cards */
.i-card {
  opacity: 0;
  animation: fadeInCards 1s forwards;
}
.i-card:nth-child(1) { animation-delay: 0.2s; }
.i-card:nth-child(2) { animation-delay: 0.4s; }
.i-card:nth-child(3) { animation-delay: 0.6s; }
.i-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInCards {
  from { opacity: 0; transform: translateY(40px) skew(-8deg); }
  to { opacity: 1; transform: translateY(0) skew(-8deg); }
}

/* 📱 Responsive for Smaller Screens */
@media (max-width: 768px) {
  .i-card {
    width: 90%;
    height: 420px;
    transform: skew(0);
  }
  .i-card img {
    transform: none;
  }
  .i-card .overlay {
    transform: none;
    text-align: center;
  }
}
