.elementor-widget-fhi_home_gateways {
  width: 100%;
}

.fhi-home-gateways {
  --fhi-gateway-red: #AA0A28;
  --fhi-gateway-navy: #122E44;
  --fhi-gateway-ink: #102A42;
  --fhi-gateway-blue: #DDEEFF;
  --fhi-gateway-line: rgba(18, 46, 68, .14);
  background: linear-gradient(180deg, #fff 0%, #F6FAFD 100%);
  color: var(--fhi-gateway-ink);
  overflow: hidden;
}

.fhi-home-gateways__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 76px 24px 84px;
}

.fhi-home-gateways__header {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.fhi-home-gateways__eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -14px;
  color: var(--fhi-gateway-red);
  font-family: Raleway, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fhi-home-gateways__heading {
  margin: 0;
  max-width: 660px;
  color: var(--fhi-gateway-navy);
  font-family: Raleway, Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.fhi-home-gateways__intro {
  margin: 0;
  max-width: 560px;
  color: rgba(16, 42, 66, .74);
  font-family: Raleway, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
}

.fhi-home-gateways__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fhi-home-gateways__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 34px;
  border: 1px solid var(--fhi-gateway-line);
  border-radius: 8px;
  background: #E6F3FF;
  color: var(--fhi-gateway-navy);
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .45s ease, border-color .3s ease, box-shadow .3s ease;
}

.fhi-home-gateways.is-visible .fhi-home-gateways__card {
  animation: fhiGatewayIn .65s cubic-bezier(.2, .8, .2, 1) forwards;
}

.fhi-home-gateways.is-visible .fhi-home-gateways__card:nth-child(2) {
  animation-delay: .08s;
}

.fhi-home-gateways.is-visible .fhi-home-gateways__card:nth-child(3) {
  animation-delay: .16s;
}

.fhi-home-gateways__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.1) 46%, rgba(170,10,40,.1)),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.6), transparent 30%);
  transition: transform .45s ease, opacity .45s ease;
}

.fhi-home-gateways__card::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -18%;
  z-index: -1;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  transition: transform .45s ease;
}

.fhi-home-gateways__card--navy {
  background: linear-gradient(145deg, #102D45, #1C4E71);
  color: #fff;
}

.fhi-home-gateways__card--navy::before {
  background:
    linear-gradient(150deg, rgba(255,255,255,.14), rgba(255,255,255,0) 44%, rgba(170,10,40,.28)),
    radial-gradient(circle at 72% 16%, rgba(255,255,255,.18), transparent 30%);
}

.fhi-home-gateways__card--red {
  background: linear-gradient(145deg, var(--fhi-gateway-red), #6D071B);
  color: #fff;
}

.fhi-home-gateways__card--red::before {
  background:
    linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,0) 46%, rgba(18,46,68,.32)),
    radial-gradient(circle at 75% 15%, rgba(255,255,255,.2), transparent 32%);
}

.fhi-home-gateways__index {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--fhi-gateway-red);
  font-family: Raleway, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.fhi-home-gateways__card--navy .fhi-home-gateways__index,
.fhi-home-gateways__card--red .fhi-home-gateways__index {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.fhi-home-gateways__media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 220px;
  margin: 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .94;
  transition: transform .45s ease;
}

.fhi-home-gateways__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: saturate(1.02);
}

.fhi-home-gateways__card--navy .fhi-home-gateways__media img {
  filter: brightness(0) invert(1);
  opacity: .78;
}

.fhi-home-gateways__copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: block;
  max-width: 360px;
  padding-top: 0;
}

.fhi-home-gateways__copy h3 {
  margin: 0 0 14px;
  color: inherit;
  font-family: Raleway, Arial, sans-serif;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.fhi-home-gateways__description {
  display: block;
  margin: 0 0 22px;
  color: currentColor;
  font-family: Raleway, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.58;
  opacity: .78;
}

.fhi-home-gateways__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--fhi-gateway-red);
  font-family: Raleway, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(18,46,68,.12);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

.fhi-home-gateways__card:hover,
.fhi-home-gateways__card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(170,10,40,.22);
  box-shadow: 0 24px 60px rgba(18,46,68,.16);
}

.fhi-home-gateways__card:hover::before,
.fhi-home-gateways__card:focus-visible::before {
  transform: scale(1.04);
  opacity: .9;
}

.fhi-home-gateways__card:hover::after,
.fhi-home-gateways__card:focus-visible::after {
  transform: scale(1.14) translate(-6%, -4%);
}

.fhi-home-gateways__card:hover .fhi-home-gateways__media,
.fhi-home-gateways__card:focus-visible .fhi-home-gateways__media {
  transform: translateY(-10px) scale(1.03);
}

.fhi-home-gateways__card:hover .fhi-home-gateways__action,
.fhi-home-gateways__card:focus-visible .fhi-home-gateways__action {
  transform: translateX(3px);
  background: var(--fhi-gateway-red);
  color: #fff;
}

.fhi-home-gateways__card--red:hover .fhi-home-gateways__action,
.fhi-home-gateways__card--red:focus-visible .fhi-home-gateways__action,
.fhi-home-gateways__card--navy:hover .fhi-home-gateways__action,
.fhi-home-gateways__card--navy:focus-visible .fhi-home-gateways__action {
  background: var(--fhi-gateway-navy);
  color: #fff;
}

.fhi-home-gateways__card:focus-visible {
  outline: 3px solid rgba(170,10,40,.35);
  outline-offset: 4px;
}

@keyframes fhiGatewayIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .fhi-home-gateways__header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fhi-home-gateways__eyebrow {
    margin-bottom: 0;
  }

  .fhi-home-gateways__grid {
    grid-template-columns: 1fr;
  }

  .fhi-home-gateways__card {
    min-height: 330px;
  }

  .fhi-home-gateways__media {
    width: 100%;
    height: 190px;
    margin: 18px 0 22px;
  }

  .fhi-home-gateways__copy {
    max-width: 540px;
  }
}

@media (max-width: 767px) {
  .fhi-home-gateways__inner {
    padding: 52px 18px 58px;
  }

  .fhi-home-gateways__heading {
    font-size: 30px;
    line-height: 1.16;
  }

  .fhi-home-gateways__intro {
    font-size: 16px;
    line-height: 1.55;
  }

  .fhi-home-gateways__card {
    min-height: auto;
    padding: 26px 22px 24px;
  }

  .fhi-home-gateways__media {
    width: 100%;
    height: 188px;
    margin: 18px auto 12px;
  }

  .fhi-home-gateways__copy {
    max-width: none;
    padding-top: 0;
  }

  .fhi-home-gateways__copy h3 {
    font-size: 25px;
  }

  .fhi-home-gateways__description {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .fhi-home-gateways__heading {
    font-size: 27px;
  }

  .fhi-home-gateways__copy h3 {
    font-size: 23px;
  }

  .fhi-home-gateways__action {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fhi-home-gateways__card,
  .fhi-home-gateways__card::before,
  .fhi-home-gateways__card::after,
  .fhi-home-gateways__media,
  .fhi-home-gateways__action {
    animation: none !important;
    transition: none !important;
  }

  .fhi-home-gateways__card {
    opacity: 1;
    transform: none;
  }
}
