#services {
  text-align: center;
}

#services h2 {
  font-size: 2.5rem;
  margin-top: 0px;
  margin-bottom: 70px;
  font-weight: 900;
}

/* GRID LAYOUT FOR ALL CARDS */
.service-grid {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* FLEX LAYOUT INSIDE EACH CARD */
.service-card {
  min-width: 200px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  background-color: #003552;
  border: 1px solid #00a5ff;
  border-radius: 10px;
  padding: 25px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0px;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

.service-card .left {
  display: flex;
  flex-direction: column;
}

.service-card .left div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.more-detail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: #00a5ff;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.more-detail:hover {
  text-decoration: none;
}

.recommend {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.recommend ul {
  text-align: left;
  list-style: none;
  padding-left: 0px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.recommend li {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .service-grid {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
  #services h2 {
    font-size: 1.3rem;
    margin-bottom: 50px;
  }
  .service-card h3 {
    font-size: 1.1rem;
  }
  .service-card p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .recommend {
    grid-template-columns: 1fr; /* force single column */
  }
}

@media (max-width: 425px) {
  .service-card {
    padding: 15px 20px;
  }
}
