/**
 * Services List Styles
 */

.services-content {
  padding: 0 0 40px;
}

/* H3 Header Style */
.services-content-header {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 500;
  line-height: 145%;
  color: #1f1f1f;
  margin: 4rem 0 1rem;
  width: 80%;
}

.services-content-header p {
  margin: 0;
}

/* Service Item - Full width for background */
.service-item {
  width: 100%;
  transition: background-color 0.3s ease;
  /* Fade-in animation initial state */
  opacity: 0;
  transform: translateY(-30px);
  display: flex;
  justify-content: center;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.service-item .service-item-inner {
  padding: 64px 0;
}

.service-item-inner {
  border-top: 1px solid #dfdfdf;
}

.service-item:last-child .service-item-inner {
  border-bottom: 1px solid #dfdfdf;
}

.service-item.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    background-color 0.3s ease;
}

.service-item:hover {
  background-color: #10301c;
}

/* Inner container for content alignment */
.service-item-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.service-name {
  width: 100%;
}

.service-name h4 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 500;
  line-height: 120%;
  color: #000408;
  margin: 0;
  transition: color 0.3s ease;
}

.service-item:hover .service-name h4 {
  color: #fff;
}

.service-details {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.service-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon svg {
  width: 31px;
  height: 32px;
}

/* Icon states - Default */
.service-icon-default {
  display: inline-flex;
}

.service-icon-hover,
.service-icon-active {
  display: none;
}

/* Icon states - When hovering on service-item */
.service-item:hover .service-icon-default {
  display: none;
}

.service-item:hover .service-icon-hover {
  display: inline-flex;
}

.service-item:hover .service-icon-active {
  display: none;
}

/* Icon states - When hovering on detail item (within hovered service-item) */
.service-item:hover .service-detail-item:hover .service-icon-hover {
  display: none;
}

.service-item:hover .service-detail-item:hover .service-icon-active {
  display: inline-flex;
}

.service-detail-name {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 400;
  line-height: 30px;
  color: #1f1f1f;
  transition:
    color 0.3s ease,
    text-decoration 0.3s ease;
}

.service-item:hover .service-detail-name {
  color: #fff;
}

/* Underline on detail item hover (only when service-item is hovered) */
.service-item:hover .service-detail-item:hover .service-detail-name {
  text-decoration: underline;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
  .services-list {
    margin-top: 40px;
  }

  .service-item-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .service-item:hover {
    padding-left: 30px;
    padding-right: 30px;
    margin-left: -30px;
    margin-right: -30px;
    width: calc(100% + 60px);
  }

  .service-name h4 {
    font-size: 40px;
  }

  .service-detail-name {
    font-size: 24px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .services-list {
    margin-top: 30px;
  }

  .services-content-header {
    font-size: 24px;
    width: 100%;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }

  .service-item:hover {
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }

  .service-name h4 {
    font-size: 32px;
  }

  .service-detail-list {
    gap: 12px;
  }

  .service-detail-name {
    font-size: 20px;
  }
}
