/* First banner styles */
.banner-1 {
  display: flex;
  margin: 10px;
  padding: 20px;
  flex-direction: row;
  gap: 40px;
  justify-content: space-around;
}

.banner-1a {
  margin: 10px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: left;
}

.banner-1a p {
  font-size: 32px;
  font-family: "Roboto", serif;
  font-weight: 400;
  color: #25412d;
}

.banner-1a h1 {
  font-size: 40px;
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: #25412d;
  margin-bottom: 20px;
}

.banner-1a button {
  background-color: #398e3d;
  color: #fff;
  border-radius: 4px;
  font-family: "Merriweather", serif;
  width: 192px;
  height: 51px;
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

.programs-btn {
  background-color: #398e3d;
  color: #fff;
  border-radius: 4px;
  font-family: "Merriweather", serif;
  width: 192px;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  cursor: pointer;
}

.banner-1b img {
  width: 694px;
  height: 348px;
  border-radius: 13px;
}

h3 {
  font-size: 16pt;
  font-family: "Merriweather", serif;
  font-weight: 300;
  color: #000000;
}

h1 {
  font-size: 28pt;
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: #000000;
}

p {
  font-size: 16pt;
  font-family: "Roboto", serif;
  font-weight: 400;
  color: #000000;
}
.intro-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 10px;
  text-align: center;
}

/* Education Section */
.education {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px;
  padding: 5px;
}

.education-cards {
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: row;
  /* align-items: center; */
  justify-content: space-evenly;
  align-items: stretch; /* This is the key: it forces all items to have the same height */
  gap: 10px; /* Space between the cards */
  flex-wrap: wrap;
}

/* Card Template */
.card {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Reduced gap slightly to fit the 388px better */
  border: #000000 solid 1px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
  width: 305.5px;
  height: 388px;
  box-sizing: border-box;
  transition:
    box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* <-- Move transition here */
}

.card:hover {
  box-shadow:
    0 8px 24px rgba(57, 142, 61, 0.18),
    0 1.5px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px) scale(1.03);
}

.card h3 {
  font-size: 18pt;
  text-align: center;
  padding: 20px;
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: #000000;
}

.card ul li {
  font-size: 10pt;
  font-family: "Roboto", serif;
  margin-left: 20px;
  font-weight: 400;
  color: #888888;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0 0 8px 8px;
  display: block;
  margin-top: auto;
  margin-bottom: 0;
}

/* Education Section */
.education-cards .card {
  height: 450px;
}

/* Health Section */
.health {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 10px;
  padding: 5px;
}

.health-cards {
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: stretch; /* This is the key: it forces all items to have the same height */
  gap: 10px; /* Space between the cards */
  flex-wrap: wrap;
}

.health-cards .card {
  height: 450px;
}

/* Community Section */
.community {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 10px;
  padding: 5px;
}

.community-cards {
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: stretch; /* This is the key: it forces all items to have the same height */
  gap: 10px; /* Space between the cards */
  flex-wrap: wrap;
}

.community-cards .card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border: 1.5px solid #d1d1d1;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: none;
  width: 448px;
  min-height: 452px;
}

.community-cards .card h3 {
  font-size: 20pt;
  text-align: center;
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
}

.community-cards .card ul li {
  font-size: 13pt;
  font-family: "Roboto", serif;
  font-weight: 400;
  color: #888888;
  margin-bottom: 8px;
  list-style-type: disc;
}

.image-comm img {
  width: 638px;
  height: 452px;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: none;
  margin-top: 0;
}

/* Spiritual Section */
.spiritual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 10px;
  padding: 5px;
}

.spiritual-cards {
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: stretch; /* This is the key: it forces all items to have the same height */
  gap: 10px; /* Space between the cards */
  flex-wrap: wrap;
}

.spiritual-cards .card {
  height: 520px;
}

/* ===== Tablet (max-width: 768px) ===== */
@media (max-width: 768px) {
  .banner-1 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .banner-1b img {
    width: 100%;
    height: auto;
  }

  .intro-text {
    flex-direction: column;
    text-align: center;
  }

  .card {
    width: 45%;
    height: auto;
  }

  .education-cards .card,
  .health-cards .card,
  .spiritual-cards .card {
    height: auto;
  }

  .community-cards .card {
    width: 45%;
    min-height: auto;
  }

  .image-comm img {
    width: 100%;
    height: auto;
  }
}

/* ===== Mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
  .banner-1a h1 {
    font-size: 24px;
  }

  .banner-1a p {
    font-size: 18px;
  }

  h1 {
    font-size: 20pt;
  }

  h3 {
    font-size: 13pt;
  }

  p {
    font-size: 13pt;
  }

  .card {
    width: 100%;
    height: auto;
  }

  .card h3 {
    padding: 5px;
  }
  .card ul li {
    margin-left: 5px;
  }

  .community-cards .card {
    width: 100%;
    min-height: auto;
    padding: 20px 16px;
  }

  .education-cards,
  .health-cards,
  .community-cards,
  .spiritual-cards {
    flex-direction: column;
    align-items: center;
  }
}
