/* ==========================================================================
   FastInfo Hero
   ========================================================================== */

.fi-hero {
  background-image: url("https://www.fastinfo.com/assets/images/fastinfo-modification/bg-fi.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
}

.fi-hero-img {
  padding-top: 76px;

}

.fi-hero-visual {
  text-align: end;
}

/* ---------- Text ---------- */
.fi-hero-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 56px;
  color: #1a1a1a;
}

.fi-hero-title-blue {
  color: #0A63D5;
  font-size: 43px;
  line-height: 53px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  max-width: 500px;
}

.fi-hero-underline {
  width: 46px;
  height: 3px;
  background-color: #1878e0;
  margin-bottom: 20px;
}

.fi-hero-text {
  color: #5f6368;
  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);
}

.fi-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
  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: #6b6f76;
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}

.fi-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 20px;
  transition: opacity 0.15s ease;
}

.fi-cards-section {
  padding-bottom: 30px;
}

.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;
}

.fi-mobile-only {
  display: none;
}
.fi-card-btn:hover {

  color: #ffffff;

}

/* ==========================================================================
   Mobile — the ONLY breakpoint. Desktop styles above apply unchanged for
   everything 768px and up; below 768px this takes over.
   ========================================================================== */
@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;
  }

  .fi-hero-visual {
    display: none;
  }

  .fi-hero-img {
    display: none;
  }

  .fi-hero-title {
    font-size: 17px;
    padding-top: 84px;
    line-height: normal;
    text-align: start;
  }

  .fi-hero-title-blue {
    font-size: 25px;
    text-align: start;
    line-height: 35px;
    padding-top: 10px;
  }

  .fi-hero-text {
    max-width: 160px;
    text-align: start;
    font-size: 16px;
    line-height: 26px;
  }

  .fi-hero-visual::before {
    display: none;
  }

  /* Cards: full-width, stacked one per row */
  .fi-cards {
    flex-direction: column;
    margin-top: -32px;
    padding: 0 12px;
    gap: 20px;
  }

  .fi-card-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .fi-card {
    padding: 22px 20px 24px;
  }

  .eob_dv {
    text-align: start;
  }

  .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 6px;
    border-radius: 999px;
    margin-top: 18px;
  }

  .fi-cards-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 50px;
    margin-top: 20px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .fi-hero-text{
    max-width: 317px;
  }
 
  .fi-cards {
    gap: 20px;
  }
 
  .fi-card-col {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}