#Service-section {
  padding: 2.5rem 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--primaryColor);
  justify-content: center;
  text-align: center;
}

.services-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* padding: 50px; */
  gap: 30px;
  padding: 20px;
}

.service-wraper {
  width: 20%;
  height: auto;
  aspect-ratio: 0.6;
  padding: 25px;
  background-color: var(--primaryColor);
  box-shadow: var(--boxShadow);
  backdrop-filter: blur(0.3rem);
  text-align: justify;
  border-radius: 10px;
  font-size: 18px;
}

.service-heading {
  font-size: var(--headerFontSize);
  font-weight: var(--headerFontWeight);
  margin-bottom: 20px;
}

.service-wraper .sub-heading {
  color: var(--textClr);
}
.Suppliers-img {
  background-image: url(images/services/sp.jpg);
  background-position: 40%;
}

.service-wraper:hover .Suppliers-img {
  background-image: url(images/services/supplier.png);
}

.it-img {
  background-image: url(images/services/It-2.jpg);
}

.service-wraper:hover .it-img {
  background-image: url(images/services/It-3.jpg);
}

.civil-img {
  background-image: url(images/services/civil-3.jpg);
  background-position: 100%;
}
.service-wraper:hover .civil-img {
  background-image: url(images/services/civil-2.jpg);
}

.electricity-img {
  background-image: url(images/services/electricity-2.jpg);
  background-position: 100%;
}

.service-wraper:hover .electricity-img {
  background-image: url(images/services/electricity.jpg);
}

.service-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px 8px 0 0;
  background-size: cover;
  background-repeat: no-repeat;
  transition: 1s;
  overflow: hidden;
}
.service-content {
  margin-top: 10px;
  width: 100%;
  aspect-ratio: 1.5;
  overflow-y: scroll;
}
/* Media Queries for Responsiveness */

/* Small devices (phones, 600px and down) */
@media screen and(max-width: 600px) {
  .services-container {
    padding: 20px;
    gap: 30px;
    flex-direction: column;
  }

  .service-wraper {
    width: 95%;
    font-size: 16px;
    padding: 20px;
  }

  .service-heading {
    font-size: 40px !important;
  }
  .service-content {
    max-height: 150px; /* Initial height to show the first 500px */
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .service-content.expanded {
    max-height: 1000px; /* Increase this value as needed */
  }

  .read-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 16px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .read-more-btn:hover {
    background-color: #2980b9;
  }
}

/* Medium devices (portrait tablets and small desktops, 900px and down) */
@media screen and (max-width: 900px) {
  .service-wraper {
    width: 90%;
    min-width: 320px;
    font-size: 17px;
    padding: 10px 25px 0;
  }

  .service-heading {
    font-size: calc(var(--headerFontSize) - 2px);
  }
}
@media screen and (max-width: 600px) {
  .service-wraper {
    width: 100%;
    min-width: unset;
    overflow: unset !important;
    aspect-ratio: unset !important;
  }
  .service-content {
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: unset !important;
  }
}
