/*
 * Nibble theme - heroes.css
 * Hero variants: .hero (dark/--alt, cards, form) and .hero-blog (white).
 * Consolidated from the legacy HubSpot CSS; order of files and rules is the cascade order (functions/assets.php).
 */

.hero-blog {
  padding: 17.6rem 0 5rem;
  position: relative;
}

.hero-blog .hero__element {
  height: 100%;
  left: 0;
  position: absolute;
  top: -4rem;
  width: 100%;
}

.hero-blog .hero__element img {
  height: 100% !important;
  width: 100%;
}

.hero-blog .hero__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.hero-blog .hero__content {
  font-size: 2.4rem;
  line-height: 1.38;
  max-width: 83rem;
  width: 100%;
}

.hero-blog .hero__content h1 {
  margin: 0;
}

@media (max-width: 767px) {
  .hero-blog {
    padding: 11.6rem 0 0;
    text-align: center;
  }
  .hero-blog .hero__content h1 {
    font-size: 3.5rem;
  }
}

.hero .hero__form {
  margin: 0 auto 6rem;
  max-width: 50rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero .hero__form {
    margin: 3.6rem auto 8rem;
  }
}

.hero {
  border-bottom-right-radius: 12.8rem;
  overflow: hidden;
  padding: 19.3rem 0 13.4rem;
  position: relative;
}

.hero .hero__content h1 {
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero .hero__content p {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
}

.hero .hero__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero .hero__content {
  flex: 0 0 53.11%;
  max-width: 53.11%;
}

.hero .hero__aside {
  flex: 0 0 32.96%;
  max-width: 32.96%;
}

.hero .hero__background {
  bottom: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.hero .hero__background img {
  position: absolute;
  right: -29rem;
  top: 50%;
  transform: translateY(-50%);
}

.hero .hero__actions {
  margin-top: 6.4rem;
  text-align: center;
}

.hero .hero__outer {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.hero .hero__outer h5 {
  color: #fff;
  margin-bottom: 4.8rem;
  text-align: center;
}

.hero--dark {
  background-color: #001533;
  color: #fff;
}

.hero--dark .hero__content h1 {
  color: #fff;
}

.hero--alt {
  padding: 12.3rem 0 8rem;
}

@media (max-width: 767px) {
  .hero {
    border-bottom-right-radius: 4rem;
    padding: 9.7rem 0 4rem;
  }
  .hero .hero__inner {
    flex-direction: column-reverse;
  }
  .hero .hero__content {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }
  .hero .hero__content p {
    margin-bottom: 2.3rem;
  }
  .hero .hero__aside {
    flex: 0 0 70%;
    margin-bottom: 3.3rem;
    max-width: 70%;
  }
  .hero .btn {
    border-radius: 1.7rem;
    display: block;
    font-size: 1.6rem;
    padding: .9rem 2.4rem;
  }
  .hero .hero__background img {
    right: 0;
    top: -9rem;
    transform: translateY(0);
  }
}

.hero-blog .hero__inner h1 {
  margin: 0px;
}

.hs-blog-post .hero .hero__inner .hero__content {
  max-width: 80%;
  flex: auto;
  width: 100%;
}
