
/* SHARED HOMEPAGE STYLES */
.fr-homepage-bordered-section {
  border-bottom: 1px solid #C8C8C8;
}
.fr-rule {
  width: 190px;
  height: 4px;
  background-color: #000;
  margin: 0 auto;
}
#fr-homepage-body .fr-button {
  font-size: 16px;
}

/* HERO SECTION */
#fr-hero_section {
  padding: 0 57px;
}
#fr-hero h1 {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}
#fr-hero h1 .tagline {
  font-size: 20px;
  margin-top: 10px;
  line-height: 26px;
}
#fr-hero h1, #fr-hero h3, #fr-hero-blurb {
  text-align: center;
}
#fr-hero-blurb {
  margin: 0 auto;
}
#fr-hero-blurb {
  margin-top: 26px;
  color: #000000;
  max-width: 900px;
  background-color: rgba(255, 255, 255, .8);
  border-radius: 10px;
}
#fr-hero-buttons {
  display: flex;
  justify-content: center;
  margin: 50px 0 80px 0;
}
#fr-hero-buttons .fr-button {
  min-width: 270px;
}
#fr-hero-buttons .fr-variant-secondary {
  margin-left: 10px;
}

/* WHY FREERTOS AND LATEST POSTS SECTIONS */
.fr-cards-section {
  display: flex;
  flex-direction: column;
  padding: 25px 25px 50px 25px;
  background-color: #f3f3f3;
}
#fr-homepage-body .fr-section-title {
  text-align: center;
}
.fr-cards-list {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}
.fr-cards-list li {
  flex-grow: 1;
  flex-basis: 0;
  margin-right: 16px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  background-color: #ffffff;
  line-height: 24px;
}
.fr-cards-list li {
  padding: 10px 20px 20px 30px;
}
.fr-cards-list li:last-child {
  margin-right: 0;
}
.fr-cards-section .fr-rule {
  display: none;
}

/* FEATURES SECTION */
#fr-features-section {
  box-sizing: border-box;
  /* Set max width to avoid overflow on IE11 */
  max-width: 1198px;
  padding: 60px 40px 0 40px;
}
.fr-feature-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  margin-top: 64px;
}
.fr-feature-column {
  max-width: 350px;
  min-width: 280px;
  text-align: center;
}
.fr-feature-icon {
  width: 62px;
  height: 62px;
}
.fr-feature-row:last-child {
  margin-top: 75px;
}
.fr-feature-row .fr-feature-column {
  margin-right: 50px;
}
.fr-feature-row .fr-feature-column:last-child {
  margin-right: 0;
}


/* PARTNER LOGOS */
#fr-partners-section, #fr-features-section {
  display: flex;
  align-items: center;
  flex-direction: column;
}
#fr-partners-section {
  padding: 100px 0 0 0;
}

/* Responsive background images */
/* See: https://www.smashingmagazine.com/2013/07/simple-responsive-images-with-css-background-images/ */
#fr-partner-logos-desktop, #fr-partner-logos-mobile {
  display: none;
}
/* Hide both logos images by defaut */
#fr-partner-logos-desktop .fr-partner-logos-inner {
  /**
  * Horizontal orientation for desktop
  * padding top % = height / width * 100
  * 1200w x 628h
  */
  padding-top: 52.3%;
}
#fr-partner-logos-mobile .fr-partner-logos-inner {
  /**
  * Horizontal orientation for mobile
  * padding top % = height / width * 100
  * 375w x 900h
  */
  padding-top: 240%;
}
.fr-partner-logos {
  margin-top: 58px;
  width: 100%;
  vertical-align: middle;
  background-size: 100%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.fr-partner-logos-inner {
  display: block;
  height: 0;
}

@media only screen and (min-width: 876px) {
  /* Show desktop logos image, if greater than mobile breakpoint */
  #fr-partner-logos-desktop {
    display: inline-block;
    background-image: url('/wp-content/themes/freertos/images/partner-logos.png');
  }
}
@media only screen and (min-resolution: 2dppx) and (min-width: 876px) {
    /* Show double density desktop logos image, if greater than mobile breakpoint */
    #fr-partner-logos-desktop {
      background-image: url('/wp-content/themes/freertos/images/partner-logos@2x.png');
    }
}


/* MOBILE CUSTOMIZATIONS */
@media only screen and (max-width: 875px) {
  /* Show mobile logos image, if less than or equal to mobile breakpoint */
  #fr-partner-logos-mobile {
    display: inline-block;
    background-image: url('/wp-content/themes/freertos/images/partner-logos-mobile.png');
  }
  #fr-hero {
    padding-left: 30px;
    padding-right: 20px;
  }
  #fr-hero h1 {
    padding-top: 10px;
  }
  #fr-hero h1, #fr-hero h3, #fr-hero-blurb, #fr-homepage-body .fr-cards-section .fr-section-title {
    text-align: left;
  }
  #fr-hero-buttons {
    margin-bottom: 5px;
    padding: 0 10px
  }
  #fr-hero-buttons .fr-button, #fr-hero h1, #fr-hero-blurb, .fr-feature-column {
    min-width: 100%;
    width: 100%;
  }
  .fr-cards-section .fr-rule {
    display: block;
    margin: 0;
  }
  .fr-cards-section {
    background-color: transparent;
    padding: 50px 20px 10px 30px;
    border: 0;
  }
  .fr-cards-list {
    margin-top: 0;
  }
  .fr-cards-list li {
    margin-right: 0;
    box-shadow: none;
    padding: 20px 0 0 0;
  }
  .fr-cards-list, #fr-hero-buttons, .fr-feature-row {
    flex-direction: column;
  }
  .fr-feature-row {
    margin-top: 20px;
  }
  .fr-feature-row:last-child {
    margin-top: 0;
  }
  .fr-feature-column .fr-feature-icon {
    display: none;
  }
  #fr-hero-buttons .fr-variant-secondary {
    margin-left: 0;
    margin-top: 10px;
  }
  #fr-partners-section {
    padding: 40px 10px 0 10px;
  }
  .fr-partner-logos {
    margin-top: 30px;
  }
}
@media only screen and (min-resolution: 2dppx) and (max-width: 875px) {
  /* Show double density mobile logos image, if less than or equal to mobile breakpoint */
  #fr-partner-logos-mobile {
    background-image: url('/wp-content/themes/freertos/images/partner-logos-mobile@2x.png');
  }
}