/* ==========================================================================
   FastInfo Hero
   ========================================================================== */

.fi-hero {
  background-image: url("https://www.fastinfo.com/assets/images/fastinfo-modification/bg-fi.webp");
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
}

.fi-hero-img {
  padding-top: 70px;
}

.fi-hero-visual {
  text-align: end;
}

/* ---------- Text ---------- */
.fi-hero-title {
  color: #005fff;
  font-size: 45px;
  line-height: 50px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  max-width: 700px;
}

.fi-hero-title-blue {
  font-size: 26px;
  font-weight: 600;
  line-height: 56px;
  color: #121212;
  font-family: "Manrope", sans-serif;
  text-transform: capitalize;
  margin-bottom: 5px;
}

.fi-hero-underline {
  width: 89px;
  height: 2px;
  background-color: #0a63d5;
  margin-bottom: 20px;
}

.fi-hero-text {
  color: #333333;
  font-size: 18px;
  line-height: 28px;
  max-width: 500px;
  margin: 0;
}

/* ==========================================================================
   FastInfo Cards
   ========================================================================== */

.fi-cards {
  margin: -40px 0 0 0;
  position: relative;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  box-sizing: border-box;
}

.fi-card-col {
  box-sizing: border-box;
  flex: 0 0 calc(25% - 18px);
  max-width: calc(25% - 18px);
  text-align: center;
}

.fi-card {
  background-color: #ffffff;
  border-radius: 10px;
  /* box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1); */
  box-shadow: 0px 0px 20px 0px #00133333;
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-bottom: 4px solid transparent;
}

.fi-card-logo {
  height: 44px;
  margin-bottom: 16px;
  display: contents;
  align-items: center;
  justify-content: center;
}

.fi-card-logo img {
  height: auto;
  width: auto;
  object-fit: contain;
}

.fi-card-logo-script img {
  height: auto;
}

.fi-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-family: "Manrope", sans-serif;
}

.fi-card-text {
  font-size: 18px;
  color: #333333;
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}

.fi-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 19px 10px;
  border-radius: 20px;
  transition: opacity 0.15s ease;
}

.fi-cards-section {
  padding-bottom: 30px;
  margin-top: -125px;
}

.fi-card-green {
  border-bottom: 4px solid #119c09;
}

.fi-card-orange {
  border-bottom: 4px solid #c18519;
}

.fi-card-purple {
  border-bottom: 4px solid #6228bb;
}

.fi-card-blue {
  border-bottom: 4px solid #048bfe;
}

.oli_btn {
  background: #119c09;
}

.fic_btn {
  background: #048bfe;
}

.fih_btn {
  background: #6228bb;
}

.rk_btn {
  background: #c18519;
}

.eob_dv {
  display: none;
}

.fi-hero-btn.fi-mobile-only {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #1878e0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 13px;
  border-radius: 999px;
  margin-top: 18px;
}

.fi-card-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   Tablet — 768px to 991.98px
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .fi-cards {
    gap: 20px;
  }

  .fi-card-col {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  .fi-hero-title {
    font-size: 36px;
  }
  .fi-hero-title-blue {
    font-size: 23px;
    margin-bottom: 4px;
  }
}

/* ==========================================================================
   Mobile — below 768px
   ========================================================================== */
@media (max-width: 767.98px) {
  .fi-hero {
    padding-bottom: 30px;
    text-align: center;
    background-image: url("https://www.fastinfo.com/assets/images/fastinfo-modification/mobile-bg-fi.webp");
  }

  .fi-hero-copy {
    padding: 0 15px;
  }

  /* Photo is visible on mobile, stacked below the text/button */
  .fi-hero-visual {
    display: block;
    text-align: center;
    margin-top: 20px;
  }

  .fi-hero-img {
    display: none;
  }
  .fi-cards-section {
    margin-top: 0px;
  }

  .fi-hero-title {
    font-size: 35px;
    padding-top: 95px;
    line-height: normal;
  }

  .fi-hero-title-blue {
    font-size: 20px;
    line-height: 35px;
    padding-top: 0px;
  }

  .fi-hero-text {
    max-width: 260px;
    text-align: start;
    font-size: 16px;
    line-height: 26px;
  }

  .fi-hero-visual::before {
    display: none;
  }

  .eob_dv {
    display: block;
  }

  /* Cards: full-width, stacked one per row, all visible */
  .fi-cards {
    flex-direction: column;
    margin-top: -20px;
    padding: 0 12px;
    gap: 20px;
  }

  .fi-card-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .fi-card {
    padding: 22px 20px 24px;
  }

  .fi-mobile-only {
    display: block;
  }

  .fi-hero-btn {
    display: none;
    /* overridden below */
  }

  .fi-hero-btn.fi-mobile-only {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1878e0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 999px;
    margin-top: 18px;
  }

  .fi-cards-heading {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    margin-top: 30px;
  }
}

@media (max-width: 479.98px) {
  .fi-hero-btn.fi-mobile-only {
    margin-top: 150px;
  }
  .fi-hero-title {
    padding-top: 100px;
    line-height: 46px;
  }
  .fi-hero-text {
    max-width: 250px;
  }
  .fi-hero {
    padding-bottom: 10px;
  }
}

@media (max-width: 434.98px) {
  .fi-hero-title {
    font-size: 32px;
    line-height: 42px;
  }
  .fi-hero-text {
    max-width: 235px;
  }
}
@media (max-width: 414.98px) {
  .fi-hero-title {
    font-size: 29px;
    line-height: 38px;
  }
  .fi-hero-text {
    max-width: 220px;
  }
  .fi-hero-title-blue {
    font-size: 19px;
  }
}
@media (max-width: 345.98px) {
  .fi-hero-title {
    font-size: 26px;
    line-height: 34px;
  }
  .fi-hero-title-blue {
    font-size: 18px;
  }
  .fi-hero-text {
    max-width: 190px;
  }
}
