/* Home hero only. Keep banner photography in its original proportions. */
.yifon-home-hero {
  position: relative;
  isolation: isolate;
  background: #102c40;
}

.yifon-home-hero > .sk-index-slide {
  position: relative;
  z-index: 0;
}

.yifon-home-hero .sk-index-slide-box:not(.owl-loaded) {
  display: block;
}

.yifon-home-hero .sk-index-slide-box:not(.owl-loaded) > .sk-index-slide-item:not(:first-child) {
  display: none;
}

.yifon-home-hero .sk-index-slide-item > a {
  display: block;
}

.yifon-home-hero .sk-index-slide-item img {
  display: block;
  width: 100%;
  height: auto;
}

.yifon-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 27, 44, .76) 0%, rgba(8, 27, 44, .39) 39%, rgba(8, 27, 44, 0) 72%);
}

.yifon-home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.yifon-home-hero__inner {
  width: calc(100% - 96px);
  max-width: 1440px;
  margin: 0 auto;
  padding-top: clamp(28px, 3.3vw, 64px);
  padding-bottom: 28px;
}

.yifon-home-hero__copy {
  max-width: 600px;
  pointer-events: auto;
}

.yifon-home-hero .yifon-home-hero__title {
  margin: 0;
  color: #fff;
  font-family: var(--fonts-one, Arial, sans-serif);
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 700;
  line-height: 1.13;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .16);
}

.yifon-home-hero .yifon-home-hero__subtitle {
  max-width: 510px;
  margin: 16px 0 22px;
  color: #fff;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.5;
  font-weight: 400;
}

.yifon-home-hero .yifon-home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 24px;
  border: 1px solid #fff;
  border-radius: 3px;
  background: var(--blue, #007dd1);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease;
}

.yifon-home-hero .yifon-home-hero__cta:hover {
  background: #005f9f;
  color: #fff;
}

.yifon-home-hero .yifon-home-hero__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #102c40;
}

.yifon-home-hero--without-image .yifon-home-hero__content {
  position: relative;
}

.yifon-home-hero--without-image .yifon-home-hero__inner {
  padding-bottom: 40px;
}

@media (max-width: 1024px) {
  .yifon-home-hero {
    background: #f3f7fb;
  }

  .yifon-home-hero::before {
    content: none;
  }

  .yifon-home-hero__content {
    position: relative;
    inset: auto;
  }

  .yifon-home-hero__inner {
    width: calc(100% - 40px);
    padding: 22px 0 26px;
  }

  .yifon-home-hero__copy {
    max-width: 720px;
  }

  .yifon-home-hero .yifon-home-hero__title {
    color: #102c40;
    font-size: clamp(26px, 4.2vw, 36px);
    line-height: 1.18;
    text-shadow: none;
  }

  .yifon-home-hero .yifon-home-hero__subtitle {
    max-width: 650px;
    margin: 12px 0 18px;
    color: #314d61;
    font-size: 16px;
    line-height: 1.5;
  }

  .yifon-home-hero .yifon-home-hero__cta {
    border-color: var(--blue, #007dd1);
  }
}

/* Reserve space for the existing fixed contact buttons on small screens. */
@media (max-width: 767px) {
  .yifon-home-hero__copy {
    box-sizing: border-box;
    padding-right: 56px;
  }
}
