.servicecardGrid {
  width: 100%;
  margin: auto;
  box-sizing: border-box;
  margin-bottom: 150px;
}

.servicecardGrid_Block {
  width: 95%;
  margin: auto;
  box-sizing: border-box;
  max-width: 1280px;
}

.servicecardGrid_Block > h2 {
  margin: 60px 0px 65px 0px;
  color: #000;
  font-family: "Inter";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 27px; /* 150% */
  letter-spacing: 0.1px;
  text-transform: uppercase;
  text-align: center;
}

.servicecardGrid_Column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Two columns by default */
  gap: 40px;
  /* Add gap between items */
  position: relative;
}

.servicegrid-card {
  border-radius: 5px;
  background: var(--Mossa);
  /*padding: 30px 30px;*/
  box-sizing: border-box;
  cursor: po"Inter";
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: hidden;
}

figure {
  margin: 0;
  display: flex;
  overflow: hidden;
}

.servicegrid-card h3 {
  margin: 0;
  color: var(--Vit);
  font-family: "Inter", sans-serif;
  font-size: 34px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  position: relative;
  top: 50%;
  margin-top: -24px;
  z-index: 2;
  pointer-events: none;
}

.servicegrid-card p {
  color: var(--Vit);
  font-family: "WixMadeforText", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 20px 0px;
}

.servicegrid-card a {
  position: relative;
  color: var(--Vit);
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  margin-bottom: 11.5px;
}

.servicecard-img {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: hidden;
  border-radius: 8px;
}

.servicecard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicecard-img img:focus-visible {
  transform: scale(1.05);
}

.servicecard-img img:hover {
  transform: scale(1.05);
}

.servicegrid-card .read-more-link::after {
  content: "";
  display: block;
  width: 100%;
  /* Twice the width of the text */
  height: 1.5px;
  /* Height of the line */
  background-color: var(--Hjortron);
  /* Same color as the button */
  margin: 5px auto 0;
  /* Space between the button and the line */
  position: absolute;
  left: 0px;
  /* Centers the line under the button */
  bottom: -5px;
  /* Adjusts the distance of the line below the button */
  transition: width 0.3s ease;
  /* Smooth transition for line expansion */
}

.servicegrid-card:hover .read-more-link::after {
  width: 150%;
  /* Line expands to full width on hover */
}

/* Adjust for tablets */
@media (max-width: 1300px) {
  .servicecardGrid_Column {
    grid-template-columns: repeat(3, 1fr);
    /* Three columns for tablets */
    gap: 20px;
    /* Slightly smaller gap for better spacing */
    justify-content: center;
  }
  .servicegrid-card h3 {
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 15.466px;
  }
  .servicecardGrid_Block > h2 {
    font-size: 16px;
    /* Slightly smaller heading font size */
    text-align: center;
    /* Center align heading */
  }

  .servicegrid-card {
    /* padding: 20px; /* Reduced padding for better fit on smaller screens */
  }
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
  .servicecardGrid_Column {
    grid-template-columns: 1fr;
    /* Single column for mobile */
    gap: 20px;
    /* Smaller gap for compact layout */
  }

  .servicecardGrid_Block > h2 {
    font-family: "Inter";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px; /* 150% */
    letter-spacing: 0.1px;
    /* Smaller heading font size for mobile */
  }

  .servicegrid-card {
    padding: 15px;
    /* Further reduced padding for compact layout */
    text-align: center;
    /* Center align card content for mobile */
  }

  .servicegrid-card h3 {
    font-family: "Inter";
    font-size: 26.294px;
    font-style: normal;
    font-weight: 600;
    line-height: 24.748px;
    /* Adjust card title font size for mobile */
  }

  .servicegrid-card p {
    font-size: 14px;
    /* Adjust card description font size for mobile */
  }

  .servicegrid-card a {
    font-size: 14px;
    /* Adjust link font size for mobile */
  }
}
