* {
  box-sizing: border-box;
}


.services {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding: 100px 24px;
  position: relative;
  background-color: #fafafa;
  border-radius: 0;
  margin: 0 auto;
}

.services__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
  position: relative;
  width: 100%;
  max-width: 1280px;
}

.services__div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  position: relative;
  width: 100%;
}

.services__frame {
  gap: 7px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: 100%;
}

.services__border-wrapper {
  display: flex;
  align-items: flex-start;
  position: relative;
  width: 100%;
}

.services__border {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 12px;
  position: relative;
  border-radius: 24px;
  border: 1px solid #28e485;
}

.services__text {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  font-family: "Outfit", Helvetica, sans-serif;
  font-weight: 400;
  color: #188a50;
  font-size: 16px;
  letter-spacing: 0.32px;
  line-height: 24px;
  white-space: nowrap;
}

.services__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  max-width: 600px;
  width: 100%;
}

.services__heading-text {
  position: relative;
  width: 100%;
  margin: 0;
  font-family: "Red Hat Display", Helvetica, sans-serif;
  font-weight: 700;
  color: #333333;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  word-break: break-word;
}

.services__heading-span {
  font-weight: 700;
}

.services__heading-secondary {
  font-family: "Playfair Display", Helvetica, sans-serif;
  font-weight: 700;
  font-style: italic;
  color: #333333;
}

.services__link {
  max-width: 207px;
  width: 100%;
  height: 56px;
  justify-content: center;
  border-radius: 8px;
  box-shadow: inset 0px 1.6px 3px rgba(255, 255, 255, 0.72);
  background: linear-gradient(
    180deg,
    rgba(89, 45, 181, 1) 25%,
    rgba(125, 64, 255, 1) 100%
  );
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services__link:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0px 1.6px 3px rgba(255, 255, 255, 0.72),
    0 4px 12px rgba(89, 45, 181, 0.3);
}

.services__link-gradient {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(89, 45, 181, 1) 25%,
    rgba(125, 64, 255, 1) 100%
  );
}

.services__link-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 12px;
  z-index: 1;
}

.services__link-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.services__link-text {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  font-family: "Outfit", Helvetica, sans-serif;
  font-weight: 700;
  color: #fafafa;
  font-size: 16px;
  letter-spacing: 0.32px;
  line-height: 19.2px;
  white-space: nowrap;
}

.services__link-icon-wrapper,
.services__link-icon-inner,
.services__link-vector-wrapper {
  width: 24px;
  height: 24px;
}

.services__link-icon-wrapper,
.services__link-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.services__link-vector {
  width: 100%;
  height: 100%;
}

/* CONTENT */

.services__content {
  display: flex;
  align-items: stretch;
  gap: 32px;
  position: relative;
  width: 100%;
}

.services__list,
.services__sidebar {
  width: calc(50% - 16px);
  min-width: 0;
}

/* LIST */

.services__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.services__listitem {
  gap: 12px;
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
  width: 100%;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s ease;
}

.services__listitem:last-child {
  border-bottom: none;
}

.services__listitem:hover {
  background-color: rgba(89, 45, 181, 0.02);
}

.services__listitem-link {
  flex: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}

.services__listitem-container {
  display: flex;
  align-items: flex-start;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.services__listitem-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.services__listitem-title {
  width: 100%;
  margin: 0;
  font-family: "Outfit", Helvetica, sans-serif;
  font-weight: 400;
  color: #0a0a0a;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: 0.48px;
  line-height: 1.3;
  word-break: break-word;
}

.services__listitem-description {
  position: relative;
  width: 100%;
  margin: 0;
  font-family: "Outfit", Helvetica, sans-serif;
  font-weight: 400;
  color: #333333;
  font-size: clamp(14px, 2vw, 16px);
  letter-spacing: 0.36px;
  line-height: 1.5;
  display: none;
  word-break: break-word;
}

.services__listitem--active .services__listitem-description {
  display: block;
}

.services__listitem-icon-wrapper {
  display: flex;
  align-items: flex-start;
  flex: 0 0 20px;
  margin-top: 2px;
  margin-left: 8px;
  transform: rotate(-90deg);
  width: 20px;
  height: 20px;
}

.services__listitem-icon-inner,
.services__listitem-img-wrapper {
  width: 20px;
  height: 21px;
}

.services__listitem-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(90deg);
}

/* SIDEBAR */

.services__sidebar {
  height: 600px;
  min-height: 400px;
  background-color: #d3cfcf;
  border-radius: 32px;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.services__sidebar-inner {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
}

.services__sidebar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services__listitem {
  cursor: pointer;
}

.services__listitem-description {
  display: none;
}

.services__listitem--active .services__listitem-description {
  display: block;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .services {
    padding: 80px 40px;
  }

  .services__content {
    flex-direction: column;
  }

  .services__list,
  .services__sidebar {
    width: 100%;
  }

  .services__sidebar {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 60px 24px;
    border-radius: 20px 20px 0 0;
  }

  .services__container {
    gap: 40px;
  }

  .services__heading-text {
    font-size: 28px;
  }

  .services__link {
    max-width: 180px;
  }

  .services__listitem {
    padding: 16px 0;
  }

  .services__listitem-title {
    font-size: 20px;
  }

  .services__sidebar {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .services {
    padding: 40px 16px;
  }

  .services__heading-text {
    font-size: 22px;
  }

  .services__link {
    max-width: 160px;
    height: 48px;
  }

  .services__link-text {
    font-size: 14px;
  }

  .services__listitem {
    padding: 12px 0;
    gap: 8px;
  }

  .services__listitem-title {
    font-size: 16px;
  }

  .services__listitem-description {
    font-size: 13px;
  }

  .services__listitem-icon-wrapper {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  .services__sidebar {
    height: 200px;
  }
  
  .services__div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}