.section-blocks {
  padding: 0;
  position: relative;
  margin: 6rem 0;
}
.section-blocks .background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--black);
}
.section-blocks .background img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.section-blocks .container {
  position: relative;
}
.section-blocks .container img.icon {
  display: block;
  max-width: 60px;
  margin: 0 auto 10px;
  background-color: var(--white);
}
.section-blocks .container h1, .section-blocks .container h2 {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.section-blocks .container .text {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  line-height: 1.75em;
  opacity: 0.75;
}
.section-blocks .container > .buttons {
  justify-content: center;
  margin-top: 50px;
}
.section-blocks .container .rounded-lines {
  display: none;
}
.section-blocks .container .blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-gap: 10px;
  margin-top: 50px;
}
.section-blocks .container .blocks .block {
  padding: 75px 20px;
  background-color: #fff;
  padding: 40px 30px;
  width: calc(25% - 8px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}
.section-blocks .container .blocks .block img {
  max-width: 75px;
  margin-bottom: 25px;
}
.section-blocks .container .blocks .block h2 {
  font-size: 1.4em;
  margin: 0 0 20px;
  text-align: left;
}
.section-blocks .container .blocks .block .text {
  text-align: left;
  font-size: 0.9em;
  margin-top: 0;
}
.section-blocks .container .blocks .block .text *:first-child {
  margin-top: 0;
}
.section-blocks .container .blocks .block .text *:last-child {
  margin-bottom: 0;
}
.section-blocks .container .blocks .block .buttons {
  margin-top: 25px;
}

@media (max-width: 820px) {
  .section-blocks .container h1, .section-blocks .container h2 {
    font-size: 3em;
  }
  .section-blocks .container .blocks .block {
    width: calc(50% - 5px);
  }
}
@media (max-width: 600px) {
  .section-blocks .container .blocks .block {
    width: 100%;
  }
  .section-blocks .container .blocks .block .image img {
    height: 90px;
  }
}
/*

Options - Background gray

*/
.section-blocks[options~=background-gray] {
  background-color: var(--light-gray);
  margin: 0;
  padding: 6rem 0;
}
.section-blocks[options~=background-gray] .container img.icon {
  background-color: var(--light-gray);
}

/*

Options - Background dark

*/
.section-blocks[options~=background-dark] {
  background-color: var(--secondary);
  margin: 0;
  padding: 6rem 0 8rem;
  color: var(--white);
}
.section-blocks[options~=background-dark] .container img.icon {
  background-color: var(--secondary);
}
.section-blocks[options~=background-dark] .blocks .block {
  color: var(--black);
}

/*

Options - Wide blocks

*/
.section-blocks[options~=wide-blocks] .blocks {
  grid-gap: 20px;
}
.section-blocks[options~=wide-blocks] .blocks .block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-gap: 25px;
  width: calc(50% - 10px);
  padding: 50px;
}
.section-blocks[options~=wide-blocks] .blocks .block img {
  margin-bottom: 0;
  max-width: 85px;
}
.section-blocks[options~=wide-blocks] .blocks .block .text {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .section-blocks[options~=wide-blocks] .blocks .block {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .section-blocks[options~=wide-blocks] .blocks .block {
    width: 100%;
    padding: 25px;
  }
}
/*

Options - Squiggly

*/
.section-blocks[options~=squiggly] .container .blocks {
  grid-gap: 100px;
}
.section-blocks[options~=squiggly] .container .blocks .block {
  background: none;
  box-shadow: unset;
  text-align: center;
  width: unset;
  flex: 1;
  position: relative;
  padding: 0;
}
.section-blocks[options~=squiggly] .container .blocks .block:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 110px);
  left: calc(50% + 48px);
  width: 100%;
  border: 1px dashed var(--black);
  border-top-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 0 0 100% 100%;
  aspect-ratio: 1;
}
.section-blocks[options~=squiggly] .container .blocks .block:nth-child(2n)::after {
  transform: rotate(180deg);
  top: 10px;
}
.section-blocks[options~=squiggly] .container .blocks .block img {
  max-width: unset;
  height: 120px;
  position: relative;
  z-index: 1;
}
.section-blocks[options~=squiggly] .container .blocks .block h2 {
  text-align: center;
}
.section-blocks[options~=squiggly] .container .blocks .block .text {
  text-align: center;
}

@media (max-width: 1100px) {
  .section-blocks[options~=squiggly] .container .blocks {
    grid-gap: 50px;
  }
  .section-blocks[options~=squiggly] .container .blocks .block:not(:last-child)::after {
    left: calc(50% + 22px);
  }
}
@media (max-width: 820px) {
  .section-blocks[options~=squiggly] .container .blocks .block {
    flex: unset;
    width: calc(50% - 25px);
  }
  .section-blocks[options~=squiggly] .container .blocks .block:not(:first-child)::after {
    display: none;
  }
}
@media (max-width: 600px) {
  .section-blocks[options~=squiggly] .container .blocks .block {
    width: 100%;
  }
  .section-blocks[options~=squiggly] .container .blocks .block::after {
    display: none;
  }
}
/*

Options - Lines from Center to Blocks

*/
.section-blocks[options~=lines-center-to-blocks] .rounded-lines {
  display: block;
  margin: 0 0 -75px;
  position: relative;
  z-index: 1;
}
.section-blocks[options~=lines-center-to-blocks] .rounded-lines img {
  width: 75%;
  display: block;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .section-blocks[options~=lines-center-to-blocks] .rounded-lines {
    display: none;
  }
}
/*

Scroll Animations

*/
.section-blocks .block {
  margin-top: -50px;
  opacity: 0;
  transition: all 1s;
}
.section-blocks.scrolled-to .block {
  margin-top: 0;
  opacity: 1;
}