/* =========================
   Features Section
   ========================= */
.features {
  padding: 2rem 0;
  background: #ffffff;
}

.features-grid {
  /* Flex makes the second row center automatically */
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

/* Fixed card width so the first row fits exactly 3 cards on desktop */
.feature-card {
  width: 250px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.feature-card img {
  height: 56px;
  margin-bottom: 1.2rem;
}

.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.feature-link {
  font-size: 0.95rem;
  font-weight: lighter;
  color: grey;
  text-decoration: none;
  transition: color 0.3s ease;
}
.feature-link:hover { color: #0bb6c4; }

/* =========================
   Mobile Responsive (Features)
   ========================= */
@media (max-width: 768px) {
  .features {
    padding: 2rem 1rem;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .feature-card {
    width: 100%; /* reset fixed width */
    padding: 1.25rem;
  }

  .feature-card img {
    height: 50px;
    margin-bottom: 1rem;
  }

  .feature-card h4 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .feature-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr; /* fallback to 1 per row on very small screens */
  }

  .feature-card h4 {
    font-size: 1.05rem;
  }

  .feature-link {
    font-size: 0.95rem;
  }
}
