/* services.css */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 60px 30px;
  background-color: #f9f9f9;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 70px; /* Account for fixed navbar */
  overflow-y: auto; /* Enable scrolling */
}

.service-card {
  background: #bee7e7;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 10px 0px rgb(255, 102, 1);;
}

.service-card i {
  color: #7091e6;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #3d52a0;
  font-family: 'Roboto', sans-serif;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #000000;
  font-family: 'Times New Roman', Times, serif;
}

.read-more-trigger {
  display: inline-block;
  margin-top: 12px;
  font-weight: bold;
  color: #3d52a0;
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  font-family: 'Roboto', sans-serif;
}

.read-more-trigger:hover {
  color: #7091e6;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.333);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  padding: 70px 20px; /* Account for navbar */
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  padding-top: 70px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.4rem;
  color: #333;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

#modal-details h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #3d52a0;
  font-family: 'Roboto', sans-serif;
}

#modal-details p,
#modal-details ul {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: 'Times New Roman', Times, serif;
}

#modal-details ul {
  padding-left: 20px;
}

#modal-details ul li {
  margin-bottom: 8px;
  list-style-type: disc;
}

.modal-flex-container {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
}

.modal-text {
  flex: 1 1 60%;
}

.modal-image {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.modal-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.whatsapp-btn,
.consult-btn {
  padding: 10px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
}

.whatsapp-btn i {
  font-size: 1.2rem;
}

.consult-btn {
  background-color: #4b2e1f;
  color: white;
}

/* Mobile/Small Screen Responsiveness */
@media screen and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding: 2rem 0.8rem;
  }

  .modal-flex-container {
    flex-direction: column;
  }

  .modal-image {
    order: -1;
    margin-bottom: 1rem;
  }

  .modal-content {
    padding: 1.5rem;
    padding-top: 70px;
  }
}

@media screen and (max-width: 576px) {
  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

  .service-card p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .read-more-trigger {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  #modal-details h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
  }

  #modal-details p, #modal-details ul {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .whatsapp-btn, .consult-btn {
    padding: 0.5rem 0.8rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }
}
.separator {
  width: 1px;
  height: 20px;
  background-color: white;
  display: none;
}