/**
 *
 * About page styling
 *
 */

section.row.referral.section__theme--dark {
  overflow-x: hidden;
}

.service.section__theme--light {
  margin-left: -15px !important;
  padding-left: 30px;
}

.service.section__theme--dark.shove-left .row.section__theme {
  margin-left: -15px;
}
.service.section__theme--dark.shove-left {
  margin-right: 190px;
  margin-left: -15px;
  padding-left: 230px;
}

.service.section__theme--dark.shove-right .row.section__theme {
  margin-right: -15px;
}

.service.section__theme--dark.shove-right {
  margin-left: 190px;
  margin-right: -15px;
  padding-right: 175px;
}

.service.section__theme--dark .row.section__theme {
  max-width: 1140px;
}

.service[class*=section__theme] {
  max-height: 250px;
}

.service .section__theme .text {
  padding-top: 45px;
}

.referrals .text-decoration-italics,
.referrals .text-decoration-italics > * {
  font-weight: 500 !important;
  font-style: italic !important;
}

.referrals .page-bottom.page-banner-slider {
  background-image: url(<?php echo($about_page_bottom_banner);?>);
  min-height: 500px;
  position: relative;
  background-color: #ffffff;
  background-size: cover;
  margin-bottom: 0 !important;
}

.referrals .text-overlay-image-center {
  top: 50%;
  left: 25%;
  right: 25%;
  transform: translate3d( 0, -50%, 0 );
  max-width: 1140px;
  max-height: 250px;
  min-height: 250px;
  margin: auto;
}

.referrals .page__banner--bottom h2 {
  font: normal normal 55px var(--font-vidaloka);
  font-weight: 400 !important;
  font-style: italic !important;
  color: #171717;
  letter-spacing: calc( 1em * ( 50 / 1000 ) );
}

section.about.profiles {
  max-height: unset !important;
}

.main-content p {
  font-size: 16px;
  line-height: 30px;
  margin-bottom: 1rem;
}

.referrals .banner-text-shifted p { 
  font: normal normal 19px var(--font-raleway);
  padding-right: 15rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.618;
}

.no-wrap {
  flex-wrap: nowrap;
}

.no-wrap p {
  margin-bottom: 1.618rem;
}

.referrals .page__banner--bottom h2 h2,
.referrals .page__banner--bottom h2 p {
  color: #fefefe !important;
}

@media only screen and (max-width: 1440px) {
  .referral__item.section__theme--dark.shove-left {
    margin-right: calc( ( 9.375% - 7.5px ) * 0.5 );
    margin-left: -15px;
    padding-left: calc( ( 9.375% + 7.5px ) * 0.5 );
  }
  .referral__item.section__theme--dark.shove-right {
    margin-left: calc( ( 9.375% - 7.5px ) * 0.5 );
    margin-right: -15px;
    padding-right: calc( ( 9.375% + 7.5px ) * 0.5 );
  }
}


@media only screen and (max-width: 1280px) {
  .referral__item.section__theme--dark.shove-left {
    margin-right: 15px;
    margin-left: -15px;
    padding-left: 15px !important;
  }
  .referral__item.section__theme--dark.shove-right {
    margin-left: 15px;
    margin-right: -15px;
    padding-right: 15px !important;
  }
}

@media only screen and (max-width: 1024px) {
  .referral__item.section__theme--dark .row.section__theme {
    max-width: 100%;
  }

  .shove-left,
  .shove-right {
    background-color: #181818;
  }

  .shove-left {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-right: -15px !important;
  }

  .shove-right {
    padding-right: 15px !important;
    padding-left: 15px !important;
    margin-left: -15px !important;
  }

  .quotation-marks {
    line-height: 24px !important;
  }
}

@media only screen and (max-width:768px) {
  .about-profiles .main-content,
  .about-profiles .header-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  main > .row.about {
    margin-top: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .no-wrap {
    flex-wrap: wrap;
  }

  .referrals .text-overlay-image-center {
    left: 0;
    right: 0;
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
    transform: unset;
  }
  .referrals .page__banner--bottom h2 {
    font-size: 23px;
    text-align: center;
  }

  .section__theme h2.subtitle {
    margin-bottom: 0;
  }

  .referrals .text-overlay-image-center {
    max-width: 100% !important;
    min-height: unset !important;
    left: 0 !important;
    right: 0 !important;
  }

  main[role=main].container-fluid {
    padding-bottom: 0 !important;
  }
}

/*
@media only screen and (max-width: 576px) {
  .referrals .page__banner--bottom h2 {
     font-size: 25px;
  }

}
*/
