/*
 * Paragraph Heading Component (for landing)
 */

.heading-component {
  padding-top: 40px;
  padding-bottom: 0;
  margin-bottom: 161px;
}

.heading-component.with-stories {
  margin-bottom: 275px;
}

body.logged-in .heading-component {
  padding-top: 130px;
}

body.logged-in .heading-component.with-stories {
  padding-top: 100px;
}

.heading-component-bg {
  background-repeat: repeat;
  background-position: 50% 0;
  background-image: url('../../../../images/pattern-awhi-books.png');
}

.heading-component-content {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.heading-component-left {
  flex: 0 0 100%;
  width: 100%;
  padding-bottom: 24px;
}

.heading-component-right {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.heading-component h1 {
  color: #ffffff;
  font-family: "futura-pt", "Futura PT","Trebuchet MS", Arial, sans-serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 48px;
  margin-top: 0;
  margin-bottom: 0;
}

.heading-component h3 {
  color: #ffffff;
  font-family: "futura-pt", "Futura PT","Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 33px;
  font-weight: 500;
  letter-spacing: 0.25px;
  margin-top: 0;
  margin-bottom: 0;
}

.heading-component h1 + p:first-of-type,
.heading-component h3 + p:first-of-type {
  margin-top: 16px;
}

.heading-component h1 + .heading-component-content-buttons,
.heading-component h3 + .heading-component-content-buttons {
  margin-top: 20px;
}

.heading-component p {
  color: #ffffff;
  font-family: "futura-pt", "Futura PT","Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 0.32px;
  line-height: 20px;
  margin-top: 0;
}

.heading-component .field-name-field-featured-image {
  margin-bottom: -121px;
}

.heading-component .field-name-field-featured-image img {
  box-shadow: 0 4px 13px 0 rgba(128,128,128,0.5);
  height: auto;
  display: block;
  margin: auto;
  max-width: 200px;
}

.heading-component.with-stories .heading-component-content > .heading-component-right > .field-name-field-story-random-view {
  margin: 0 auto -245px;
}

.heading-component.with-stories .node.node-story .card .back .container {
  left: 0;
  right: 0;
  padding: 0 20px;
}

.heading-component.with-stories .node.node-story .card .back .field-name-body p {
  font-size: 15px;
  line-height: 19px;
  font-family: "futura-pt", "Futura PT","Trebuchet MS", Arial, sans-serif;
  color: #666;
}

.heading-component.with-stories .node.node-story .card .back .field-name-body p:last-child {
  margin-bottom: 19px;
}

.heading-component .heading-component-content-buttons {
  display: flex;
  flex-flow: row wrap;
}

.heading-component .heading-component-content-buttons .btn {
  margin-bottom: 10px;
  margin-right: 10px;
}

.heading-component .heading-component-content-buttons .btn:last-child {
  margin-right: 0;
}

.heading-component .heading-component-content-buttons .btn-secondary {
  display: inline-block;
  border: 1px solid #fff;
  font-family: "futura-pt", "Futura PT","Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  line-height: 34px;
  font-weight: 500;
  text-align: center;
  min-width: 162px;
}

@media screen and (max-width: 1023px) {
  .heading-component .heading-component-content-buttons .btn-secondary,
  .heading-component .heading-component-content-buttons .btn-secondary.external {
    padding-left: 10px;
    padding-right: 10px;
  }
}


@media screen and (min-width: 1024px) {

  .heading-component .heading-component-content-buttons .btn-secondary {
    font-size: 18px;
    line-height: 45px;
    min-width: 208px;
  }

  .heading-component {
    padding-top: 220px;
    padding-bottom: 0;
    margin-bottom: 70px;
  }

  .heading-component.with-stories {
    padding-top: 155px;
  }

  .heading-component.with-stories {
    margin-bottom: 100px;
  }

  .heading-component-left {
    flex: 0 0 60%;
    width: 60%;
    padding-bottom: 80px;
  }

  .heading-component-right {
    flex: 0 0 33.333%;
    width: 33.333%;
  }

  .heading-component h1 {
    font-size: 60px;
    line-height: 72px;
  }

  .heading-component h3 {
    font-size: 24px;
    line-height: 38px;
    letter-spacing: 0.38px;
    margin-top: 0;
  }

  .heading-component h1 + p:first-of-type,
  .heading-component h3 + p:first-of-type {
    margin-top: 20px;
  }

  .heading-component h1 + .heading-component-content-buttons,
  .heading-component h3 + .heading-component-content-buttons {
    margin-top: 30px;
  }

  .heading-component p {
    font-size: 18px;
    margin-bottom: 30px;
    letter-spacing: 0.41px;
    line-height: 27px;
    margin-top: 0;
  }

  .heading-component .field-name-field-featured-image {
    position: absolute;
    margin-bottom: 0;
    z-index: 3;
    top: initial;
    bottom: 0;
    right: 0;
    transform: translateY(70px);
  }

  .heading-component .field-name-field-featured-image img {
    max-width: 100%;
  }

  .heading-component .heading-component-content-buttons .btn.external::before {
    vertical-align: -1px;
    margin-right: 10px;
  }

  .heading-component.with-stories .heading-component-content {
    align-items: center;
    justify-content: flex-start;
  }

  .heading-component.with-stories .heading-component-content > .heading-component-right {
    flex: 0 0 28%;
    width: 28%;
    margin-left: 8%;
  }

  .heading-component.with-stories .heading-component-content > .heading-component-left {
    margin-top: 40px;
  }

  .heading-component.with-stories .heading-component-content > .heading-component-right > .field-name-field-story-random-view {
    max-width: none;
    margin: 0 auto -80px;
  }

  .heading-component.with-stories .node.node-story .card .back .container {
    padding: 0 30px;
  }
}

@media screen and (min-width: 1240px) {
  .heading-component-left {
    flex: 0 0 50%;
    width: 50%;
  }

  .heading-component-right {
    position: relative;
  }

  .heading-component.with-stories .heading-component-content > .heading-component-right {
    margin-left: 13%;
  }
}
