.services {
  position: relative;
  width: 100%;
  margin-top: 120px;
}

.service-left {
  position: relative;
  overflow: hidden;
  padding: 0px 80px 0px 60px;
  z-index: 2;
}

.service-left::after {
  content: "";
  background-image: url("/assets/frontend/images/services/person-background.png");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  height: 50%;
  z-index: 1;
  transform: translateX(200px);
}

.section-service-title {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-medium);
  font-size: 15px;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 4px;
}

.section-service-subtitle {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-semi-bold);
  font-size: 55px;
  color: var(--color-black-default);
  margin-bottom: 15px;
}

.section-service-description {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-regular);
  font-size: 1rem;
  color: #919191;
  line-height: 35px;
}

.service-right {
  /* flex: 2; */
  position: relative;
  background-color: #fff;
}

.service-right::before {
  content: "";
  background-image: url("/assets/frontend/images/services/Indonesia-pattern-blue.png");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  transform: translateY(-100px);
  right: 0px;
  width: 50%;
  height: 50%;
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.service-item {
  background-color: #fff;
  position: relative;
  text-align: left;
  font-family: var(--font-family-main);
  font-size: 1.25rem;
  font-weight: var(--font-weight-regular);
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  /* For anchor tag usage */
  color: var(--color-black-default, #333);
  /* Use var or fallback to dark gray */
  cursor: pointer;
}

.service-item img {
  width: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.service-item:hover img {
  filter: blur(2px);
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-blurry-gradient);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item::after {
  content: var(--icon-url);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -140%) scale(1.5);
  opacity: 0;
  z-index: 2;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.service-item:hover::after {
  transform: translate(-50%, -140%) scale(1);
  opacity: 1;
}

.service-item:hover .service-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary-gradient);
  z-index: -1;
}

.service-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-item .service-content h3 {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  margin-bottom: 10px;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-item:hover .service-content h3 {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  margin-bottom: 10px;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-item .service-content p {
  flex-grow: 1;
  margin-bottom: 15px;
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-regular);
  font-size: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  /* Ensure description is not blue */
}

.service-item .service-see-more {
  position: relative;
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  gap: 5px;
  /* Add spacing between text and icon */
  text-decoration: none;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-item .right-arrow {
  font-size: 8px;
  /* left: 10px; */
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgb(21, 103, 123);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-item:hover p,
.service-item:hover .service-see-more {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-item:hover p,
.service-item:hover .service-see-more {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-item:hover .right-arrow {
  border: 1px solid white;
}

.service-item:hover .right-arrow i {
  -webkit-text-fill-color: white;
  /* White color on hover */
}

/* .service-content .service-see-more {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  text-decoration: none;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.service-item:hover p,
.service-item:hover .service-see-more {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-content .service-see-more {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  text-decoration: none;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

.service-item:hover p,
.service-item:hover .service-see-more {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.see-more-caret {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgb(21, 103, 123);
  margin-left: 5px;
  font-size: 18px;
  line-height: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
} */

/* .service-item:hover .see-more-caret {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0);
}

.service-item:hover .see-more-caret {
  color: rgb(44, 116, 158);
}

.service-see-more .see-more-caret {
  line-height: 24px;
  font-size: 14px;
} */

@media (max-width: 1200px) {
  .service-left::after {
    width: 70%;
    height: 45%;
    transform: translateX(150px);
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .service-right::before {
    width: 100%;
    height: 70%;
    right: -50px;
    transform: translateY(-150px);
  }

  .service-left::after {
    content: "";
    background-image: url("/assets/frontend/images/services/person-background.png");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    z-index: 1;
    transform: translateY(300px);
  }
}

@media (max-width: 992px) {
  .service-left::after {
    width: 60%;
    height: 40%;
    transform: translateX(100px);
  }
}

@media (max-width: 820px) {
  .service-left::after {
    display: none;
  }

  .service-right::before {
    width: 100%;
    height: 70%;
    right: -50px;
    transform: translateY(-150px);
  }
}

@media (max-width: 768px) {
  .service-left::after {
    display: none;
  }

  .service-right::before {
    width: 100%;
    height: 60%;
    right: -50px;
    transform: translateY(-150px);
  }
}

@media (max-width: 576px) {
  .service-left {
    display: block;
  }

  .service-right::before {
    width: 60%;
    height: 30%;
    top: 50px;
    right: 0;
  }
}