/*
  Hand-written components layered on top of the Divi theme CSS.
  Loaded after each page's module CSS so these rules win at equal specificity.
*/

/* ---- Compact page hero (Contact, News) ---------------------------------------------------- */
.et_pb_section.page-hero {
  padding-top: 96px;
  padding-bottom: 96px;
  background-position: center 40%;
}

.page-hero .et_pb_row {
  padding: 0 !important;
}

.page-hero .page-hero__title {
  margin: 0;
  padding: 0;
  font-size: 48px;
  line-height: 1.15;
  text-align: center;
  color: #fff !important;
}

.page-hero .page-hero__subtitle {
  margin: 12px auto 0;
  padding: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

@media only screen and (max-width: 767px) {
  .et_pb_section.page-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .page-hero .page-hero__title {
    font-size: 34px;
  }

  .page-hero .page-hero__subtitle {
    font-size: 15px;
  }
}

/* ---- Contact page --------------------------------------------------------------------------- */
.et_pb_section.contact-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.contact-section .contact-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 0 !important;
}

.contact-section .contact-row::after {
  display: none;
}

.contact-section .contact-row .et_pb_column {
  float: none;
  margin: 0 !important;
}

.contact-section .contact-row .et_pb_column_2_3 {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.contact-section .contact-row .et_pb_column_1_3 {
  flex: 0 0 320px;
  width: 320px;
}

.contact-form iframe {
  display: block;
  width: 100% !important;
  border-radius: 6px;
}

.contact-card {
  padding: 28px;
  background: #061d84;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
}

.contact-card__group + .contact-card__group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card .contact-card__heading {
  margin: 0 0 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ebec5;
}

.contact-card address,
.contact-card p {
  margin: 0;
  padding: 0;
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
}

.contact-card a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.contact-card a:hover,
.contact-card a:focus {
  text-decoration: underline;
}

.contact-card .contact-card__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #7ebec5;
}

.contact-section .contact-row--map {
  margin-top: 40px;
}

.contact-section .contact-row--map .et_pb_column {
  width: 100%;
}

.contact-map {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 6px;
}

@media only screen and (max-width: 980px) {
  .contact-section .contact-row {
    flex-direction: column;
  }

  .contact-section .contact-row .et_pb_column_1_3 {
    flex-basis: auto;
    width: 100%;
  }

  .contact-map {
    height: 320px;
  }
}

/* ---- Financing call-to-action -------------------------------------------------------------- */
/* Divi's 9.2% side margins on a 98.2%-wide module push the heading past the screen edge on phones. */
@media only screen and (max-width: 767px) {
  .et_pb_module.financing-cta {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 8px !important;
  }

  .et_pb_module.financing-cta h2 {
    font-size: 28px;
    text-align: center !important;
  }
}

/* ---- News page ------------------------------------------------------------------------------ */
.et_pb_section.news-section {
  padding-top: 56px;
  padding-bottom: 16px;
}

.news-section .news-row {
  padding: 0 0 24px !important;
}

.news-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.news-card__image {
  flex: 0 0 50%;
  display: block;
}

.news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
}

.news-card .news-card__meta {
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7ebec5;
}

.news-card .news-card__meta a {
  color: #7ebec5;
}

.news-card .news-card__title {
  margin: 0 0 14px;
  padding: 0;
  font-size: 26px;
  line-height: 1.3;
}

.news-card .news-card__title a {
  color: #fff;
}

.news-card .news-card__excerpt {
  margin: 0 0 20px;
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.news-card .news-card__more {
  align-self: flex-start;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #0c71c3;
  border-radius: 4px;
}

.news-card .news-card__more:hover,
.news-card .news-card__more:focus {
  background: #0a5ea3;
}

@media only screen and (max-width: 767px) {
  .news-card {
    flex-direction: column;
  }

  .news-card__body {
    padding: 24px 22px;
  }

  .news-card .news-card__title {
    font-size: 22px;
  }
}
