/* Services section on homepage styling */
.services {
  font-family: 'Inter', sans-serif;
  background-color: #F9FAFB;
  padding: 4rem 2rem;
  text-align: center;
}

/* Each card */
.services-cards {
  display: flex;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.service-card {
  background: #fff;
  flex: 1 1 300px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: -3vh;
}

.service-card h2 {
  font-size: 1.25rem;
  color: #1E40AF;
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.service-card li {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.btn-read {
  margin-top: auto;
  background: #3B82F6;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-read:hover {
  background: #1E40AF;
}

.space {
  margin-top: 3vh;
}

/* Tablet/Mobile optimizations */
@media (max-width: 1024px) {
  .service-card img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 3rem 1rem;
  }

  .services h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* keep stacked on portrait */
  .services-cards {
    flex-direction: column;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card img {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }

  .service-card h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .service-card ul {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .service-card img {
    width: 120px;
    height: 120px;
  }

  .service-card h2 {
    font-size: 1rem;
  }

  .btn-read {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* ——— Landscape-mobile override ——— */
/* Keep cards side-by-side, centered, and all the same width */
@media (max-width: 850px) and (orientation: landscape) {

  
  .service-card h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    margin-top: 5vh;
  }
  .services-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
  }
  .service-card {
    /* FIXED width: don’t grow or shrink */
    
    max-width: 400px;
    height: 100vh;
  }
}
