.services-section {
  padding: 60px 0;
  background-color: #ffffff;
  width: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

.service-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
  width: 100%;
}

.service-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px;
  flex-shrink: 0;
}

.service-content {
  flex: 1;
  padding-top: 5px;
  min-width: 0;
  /* Allow text to wrap properly */
}

.service-link {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.service-link::after {
  content: '→';
  margin-left: 8px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.service-link:hover::after {
  transform: translateX(3px);
}




/* Mobile dotted separators - Fixed positioning */
.service-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 1px;
  background-image: repeating-linear-gradient(to right,
      #d1d5db 0px,
      #d1d5db 4px,
      transparent 4px,
      transparent 8px);
}

/* Desktop layout - 2 columns */
@media (min-width: 992px) {
  .services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
    position: relative;
    width: 100%;
  }

  /* Vertical dotted line separator between columns */
  .services-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-image: repeating-linear-gradient(to bottom,
        #d1d5db 0px,
        #d1d5db 4px,
        transparent 4px,
        transparent 8px);
    transform: translateX(-50%);
  }

  .service-item {
    margin-bottom: 80px;
  }

  /* Remove mobile horizontal separators on desktop */
  .service-item::after {
    display: none;
  }

  /* Add horizontal dotted lines between rows on desktop */
  /* First row bottom lines (Accountancy & Business support) */
  .service-item:nth-child(1)::after,
  .service-item:nth-child(2)::after {
    content: '';
    position: absolute;
    bottom: -40px;

    right: -30px;
    height: 1px;
    background-image: repeating-linear-gradient(to right,
        #d1d5db 0px,
        #d1d5db 4px,
        transparent 4px,
        transparent 8px);
    display: block;
  }



  /* Extend the horizontal lines to connect across both columns */
  .service-item:nth-child(2)::after,
  .service-item:nth-child(4)::after {
    right: calc(-30px - 60px - 50%);
  }
}

/* Mobile responsiveness - Fixed width issues */
@media (max-width: 991px) {
  .services-section {
    padding: 40px 0;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
  }

  .service-item {
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .service-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
  }





  /* Fix mobile separator positioning */
  .service-item:not(:last-child)::after {
    left: 0;
    right: 0;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .service-item {
    margin-bottom: 40px;
    padding: 0;
  }

  .service-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }


  .service-content {
    padding-right: 0;
  }
}