.home-page-container .services-widget-wrapper {
  width: 100%;
  position: relative;
  overflow: clip;
  padding: 0;
  background: #a5a5a5;
}

.services-widget-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
  margin-bottom: -100vh;
  --bg-front: "";
  --bg-back: "";
  opacity: 0.5;
}

.services-widget-bg::before,
.services-widget-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.services-widget-bg::before {
  background-image: var(--bg-back);
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.services-widget-bg::after {
  background-image: var(--bg-front);
  opacity: 0;
  transition: opacity 0.5s ease-in-out 0.1s;
}

.services-widget-bg.crossfade::after {
  opacity: 1;
}

.services-widget-bg.crossfade::before {
  opacity: 0;
}
.services-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 0;
}

.services-container .section-title {
  flex: 1 1 100%;
  padding: 0 0 0 30px;
}
.services-container .section-title h2 {
  text-shadow: 1px 1px #333;
  font-weight: bold;
}
.services-widget-container {
  display: flex;
  height: auto;
  position: relative;
  flex-direction: row;
  flex-wrap: wrap;
}

.services-sidebar {
  width: 25%;
  padding: 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: top;
  z-index: 2;
}

.service-tab-link {
  margin: 1rem 0;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  border: 3px solid #8b8888e8;
  padding: 1rem;
  transition: all 0.3s ease;
  color: var(--white);
  text-align: center;
  border-radius: 50px;
}

.service-tab-link.service-active {
  font-weight: bold;
  background: #ca460b9c;
  border-color: var(--primary-orange);
}

.services-content-scroller {
  width: 75%;
  z-index: 2;
}

.service-section {
  min-height: 100vh;
  padding: 4rem;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.service-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: normal;
  color: #082d4a;
}

.service-section .section-desc {
  font-size: 1.1rem;
  border: 0.5px solid #eee8e8;
  border-radius: 1rem;
  padding: 20px;
  background-color: #000000b0;
}
.service-section .section-desc * {
  color: #fff;
}
@media (max-width: 767px) {
  .services-widget-container {
    flex-direction: column;
  }
  .services-sidebar {
    position: sticky;
    width: calc(100% + 40px);
    height: auto;
    padding: 0 15px;
    margin-left: -20px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    z-index: 3;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
  }

  .service-tab-link {
    flex: 0 0 auto;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 30px;
    border: 2px solid #000;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    color: #000;
  }

  .services-content-scroller {
    width: 100%;
  }

  .service-section {
    padding: 2rem 1rem;
  }

  .services-widget-bg {
    height: 100vh;
    margin-bottom: -100vh;
    z-index: 0;
  }
}
