.serviceGrid {
  width: 100%;
  background-color: var(--lightBlue);
}

.sg__container {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
  padding: 115px 0;
}

.sg__top {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  text-align: center;
}

.sg__title {
  color: #fff;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  max-width: 765px;
  margin: 8px auto 16px auto;
}

.sg__text {
  color: #fff;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0 0 24px 0;
}

.sg__toc {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 70px 0 90px 0;
}

.sg__toc-item {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
}

.sg__toc-item.is-active {
  color: #0a2740;
}

.sg__toc-item:hover {
  color: #0a2740;
}

.sg__toc-item::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0a2740;
  transition: width 0.3s ease;
}

.sg__toc-item:hover::after {
  width: 100%;
}

.sg__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 115px;
  row-gap: 80px;
}

.sg__card {
  /* Prevent fixed header from covering title when scrolled into view */
  scroll-margin-top: 130px;
}

.sg__card.is-hidden {
  display: none;
}

.sg__card-title {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  margin: 0 0 8px 0;
}

.sg__card-body {
  display: grid;
  gap: 16px;
}

.sg__card-content {
  position: relative;
  color: #e1e6eb;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  max-height: 160px;
  overflow: hidden;
}

/* fade when collapsed */
.sg__card[aria-expanded="false"] .sg__card-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #758da3 100%);
}

.sg__card[aria-expanded="true"] .sg__card-content {
  max-height: none;
}

.sg__read-more {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  background: transparent;
  color: #fff;
  border: none;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sg__read-more:hover {
  text-decoration: underline;
}

.sg__read-more svg {
  transform: rotate(90deg);
}

.sg__card[aria-expanded="true"] .sg__read-more svg {
  transform: rotate(-90deg);
}

@media (max-width: 900px) {
  .sg__grid {
    grid-template-columns: 1fr;
  }
  .sg__title {
    font-size: 24px;
  }
}
