/* =========================
   Ecosystem Section
   ========================= */
.ecosystem {
  padding: 5rem 0;
  background: url("/img/eco_bg.png") no-repeat center top;
  background-size: cover;
  margin-left: 150px;
  margin-right: 150px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* exactly 2 per row */
  gap: 2rem;
  margin-top: 3rem;
}

/* Card wrapper */
.eco-card {
  text-align: center;
}

/* Image box */
.eco-image {
  position: relative;
  border-radius: 16px;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.section-title {
    color:#555555 !important;
}
/* Light overlay */
.eco-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25); /* lighter than before */
}

.eco-image h4 {
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
}

.eco-card:hover .eco-image {
  transform: translateY(-6px);
}

/* Description text below */
.eco-card p {
  font-size: 1rem;
  color: #374151;
  margin-top: 1rem;
  line-height: 1.5;
}

/* =========================
   Mobile Responsive (Ecosystem)
   ========================= */
@media (max-width: 768px) {
  .ecosystem {
    padding: 3rem 1rem;
    margin-left: 0;
    margin-right: 0;
    background: none; /* drop bg for clarity */
  }

  .ecosystem-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .eco-image {
    min-height: 140px;
  }

  .eco-image h4 {
    font-size: 1.1rem;
  }

  .eco-card p {
    font-size: 0.95rem;
    margin-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .eco-image {
    min-height: 120px;
  }

  .eco-image h4 {
    font-size: 1rem;
  }

  .eco-card p {
    font-size: 0.9rem;
  }
}
