/* Apply Montserrat to the body and make it the default font */
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: rgb(87, 13, 72);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.divider-wavesv {
  margin-top: -10px;
  height: 270px;
  width: 100%;
  margin-bottom: 5px;
}

.service-front {
  max-width: 47rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 auto;
  padding-bottom: 1.5rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: -180px;
}

.service-section {
  padding: 4rem 2rem;
}

.service-included, .service-why {
  padding: 4rem 2rem;
  background-color: #e7d9fc;
}

.service-image2 {
  width: 50rem;
  height: 400px;
}

/* === UPDATED SERVICE GRID AND CARD STYLES === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  width: 100%;
  max-width: 250px;
  height: auto;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}

.service-card.bottom-row {
  grid-column: span 1;
}

.service-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}
/* === END OF UPDATED STYLES === */

.service-info h3,
.service-info p,
.service-text p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

.service-info h3 {
  font-size: 1.25rem;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
}

.service-info p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.service-info button {
  background-color: rgb(87, 13, 72);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.carousel {
  position: relative;
  width: 1000px;
  height: 580px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1000px;
}

.carousel-images img {
  width: 1000px;
  height: 500px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 5px;
}

.image-text {
  text-align: left;
  font-size: 16px;
  color: #333;
  padding-bottom: 15px;
}

button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

.infobttn {
  background-color: rgb(208, 21, 171);
}

.card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  background-color: white;
  border-radius: 8px;
  z-index: 1000;
  padding: 20px;
}

.card-content {
  position: relative;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
}

.hidden {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  display: none;
  z-index: 999;
}

body.card-open::before {
  display: block;
}

.divider-wavesv2 {
  margin-top: -10px;
  height: 270px;
  max-width: 180%;
  margin-bottom: 5px;
}

.imagine-foto {
  position: relative;
  max-width: 15rem;
  border-radius: 30rem;
}

.ifoto {
  max-width: 30rem;
}
