@import url('common.css');

.hero {
  text-align: center;
  background: url('../images/hero-image.jpeg') no-repeat center center/cover;
  color: white;
  padding: 6rem 2rem 4rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.mission {
  margin-bottom: 3rem;
  text-align: center;
}

.mission h2 {
  font-size: 2rem;
  color: #007b8a;
  margin-bottom: 1rem;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto 3rem;
  max-width: 100%;
  align-items: center;
}

.card {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  text-align: center;

  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  max-height: 220px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 0;
}

.card a.btn-secondary {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1000px; 
  }

  .card {
    flex: 1 1 400px;
    max-width: 400px;
    min-height: 350px;
    padding: 1.5rem;
  }

  .card img {
    max-height: 300px;
  }

  .card a.btn-secondary {
    margin-top: auto;
  }
}
