/* =========================================
   SIMPLE & ATTRACTIVE STATS
========================================= */

.fb_stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 50px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.fb_stat_card {
  position: relative;
  min-height: 190px;
  padding: 30px 28px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: #fff;

  border-right: 1px solid #ddd;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.fb_stat_card:last-child {
  border-right: none;
}


/* Number */

.fb_stat_card strong {
  font-size: 58px;
  line-height: 1;

  font-weight: 700;
  letter-spacing: -3px;

  color: #111;

  transition: transform 0.3s ease;
}


/* Text */

.fb_stat_card span {
  display: block;

  max-width: 200px;

  font-size: 11px;
  line-height: 1.5;

  font-weight: 700;
  letter-spacing: 1.5px;

  color: #666;
}


/* Small top number */

.fb_stat_card::before {
  content: "01";

  position: absolute;
  top: 25px;
  right: 25px;

  font-size: 10px;
  font-weight: 600;

  color: #aaa;
}

.fb_stat_card:nth-child(2)::before {
  content: "02";
}

.fb_stat_card:nth-child(3)::before {
  content: "03";
}

.fb_stat_card:nth-child(4)::before {
  content: "04";
}


/* Bottom line */

.fb_stat_card::after {
  content: "";

  position: absolute;
  left: 28px;
  bottom: -1px;

  width: 0;
  height: 2px;

  background: #111;

  transition: width 0.35s ease;
}


/* Hover */

.fb_stat_card:hover {
  background: #fafafa;
}

.fb_stat_card:hover strong {
  transform: translateY(-4px);
}

.fb_stat_card:hover::after {
  width: calc(100% - 56px);
}


/* =========================================
   FEATURE CARDS
========================================= */

.fb_stat_card:nth-child(3),
.fb_stat_card:nth-child(4) {
  justify-content: flex-end;
}

.fb_stat_card:nth-child(3) strong,
.fb_stat_card:nth-child(4) strong {
  display: none;
}

.fb_stat_card:nth-child(3) span,
.fb_stat_card:nth-child(4) span {
  font-size: 18px;
  line-height: 1.3;

  font-weight: 600;
  letter-spacing: -0.3px;

  color: #111;
}


/* Small line above feature text */

.fb_stat_card:nth-child(3) span::before,
.fb_stat_card:nth-child(4) span::before {
  content: "";

  display: block;

  width: 30px;
  height: 2px;

  margin-bottom: 15px;

  background: #111;

  transition: width 0.3s ease;
}

.fb_stat_card:nth-child(3):hover span::before,
.fb_stat_card:nth-child(4):hover span::before {
  width: 50px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {
  .fb_stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .fb_stat_card:nth-child(2) {
    border-right: none;
  }

  .fb_stat_card:nth-child(3),
  .fb_stat_card:nth-child(4) {
    border-top: 1px solid #ddd;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {
  .fb_stats {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }

  .fb_stat_card {
    min-height: 160px;
    padding: 25px 22px;

    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .fb_stat_card:last-child {
    border-bottom: none;
  }

  .fb_stat_card strong {
    font-size: 48px;
  }

  .fb_stat_card:nth-child(3),
  .fb_stat_card:nth-child(4) {
    min-height: 140px;
  }

  .fb_stat_card:nth-child(3) span,
  .fb_stat_card:nth-child(4) span {
    font-size: 17px;
  }
}