/* Homepage refresh — featured news and mobile visual refinement */

.home-news-section,
.home-news-section * {
  box-sizing: border-box;
}

.home-news-section {
  position: relative;
  overflow: hidden;
  padding: 112px 0 128px;
  background:
    radial-gradient(circle at 90% 18%, rgba(57, 133, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 58%, #ffffff 100%);
}

.home-news-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 38px;
}

.home-news-heading h2 {
  margin: 0;
  color: #173b78;
  font-family: HarmonyOS_Sans_SC_Bold, "Microsoft YaHei", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.home-news-read i {
  font-style: normal;
}

.home-news-feature {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(36, 94, 177, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(28, 75, 145, 0.14);
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-news-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 82px rgba(28, 75, 145, 0.19);
}

.home-news-media {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: #dce8f8;
}

.home-news-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 68%, rgba(15, 52, 115, 0.1) 100%);
  pointer-events: none;
}

.home-news-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-news-feature:hover .home-news-media img {
  transform: scale(1.025);
}

.home-news-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px 62px 58px;
}

.home-news-copy::before {
  content: "";
  position: absolute;
  top: 62px;
  left: 0;
  width: 4px;
  height: 72px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #35bbff 0%, #17499d 100%);
}

.home-news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  color: #73829a;
  font-family: HarmonyOS_Sans_SC, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.home-news-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1653a5;
  font-weight: 600;
}

.home-news-copy h3 {
  margin: 0 0 22px;
  color: #172f57;
  font-family: HarmonyOS_Sans_SC_Bold, "Microsoft YaHei", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.025em;
}

.home-news-copy h3 .title-line {
  display: block;
}

.home-news-copy p {
  margin: 0 0 34px;
  color: #5b6980;
  font-family: HarmonyOS_Sans_SC, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

.home-news-read {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 18px;
  min-height: 48px;
  padding: 0 23px;
  border: 1px solid rgba(16, 59, 149, 0.2);
  border-radius: 5px;
  color: #103b95;
  font-family: HarmonyOS_Sans_SC_Bold, "Microsoft YaHei", sans-serif;
  font-size: 15px;
  transition: color 0.25s ease, background 0.25s ease, gap 0.25s ease;
}

.home-news-feature:hover .home-news-read {
  gap: 24px;
  background: #103b95;
  color: #ffffff;
}

@media screen and (max-width: 1240px) and (min-width: 601px) {
  .home-news-section {
    padding: calc(92 / 1240 * 100vw) 0 calc(112 / 1240 * 100vw);
  }

  .home-news-heading h2 {
    font-size: calc(40 / 1240 * 100vw);
  }

  .home-news-feature {
    grid-template-columns: 1.04fr 0.96fr;
    min-height: calc(500 / 1240 * 100vw);
  }

  .home-news-media {
    min-height: calc(500 / 1240 * 100vw);
  }

  .home-news-copy {
    padding: calc(48 / 1240 * 100vw);
  }

  .home-news-copy h3 {
    font-size: calc(32 / 1240 * 100vw);
  }
}

@media screen and (max-width: 600px) {
  /* Mobile hero: dedicate the upper area to message and the lower area to the product visual. */
  .hero.type2 {
    display: block;
    height: clamp(480px, 112vw, 560px);
    min-height: 480px;
    padding: 0;
  }

  .hero.type2 .bg {
    background-image: url(../images/banner2-mobile-v2.jpg) !important;
    background-repeat: no-repeat !important;
    background-position: 58% center !important;
    background-size: cover !important;
  }

  .hero.type2 .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 35%, rgba(255, 255, 255, 0.42) 61%, rgba(255, 255, 255, 0.03) 86%);
    pointer-events: none;
  }

  .hero.type2 .wrapper,
  .hero.type2 .hero-content {
    height: 100%;
  }

  .hero.type2 .hero-content {
    align-items: flex-start;
    padding: 40px 24px 28px;
  }

  .hero.type2 .hero-text {
    width: 100%;
  }

  .hero.type2 .hero-text h1 {
    width: 100%;
    max-width: 420px;
    margin: 0;
    font-size: clamp(35px, 9.1vw, 44px);
    line-height: 1.2;
    letter-spacing: -0.035em;
  }

  .hero.type2 .hero-text .subtitle {
    width: min(82%, 360px);
    margin: 16px 0 22px;
    color: #38475c;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.65;
  }

  .hero.type2 .hero-text .subtitle br {
    display: none;
  }

  .hero.type2 .btn-primary {
    width: 184px;
    height: 48px;
    padding-left: 58px;
    border-radius: 5px;
    background-position: 28px center;
    background-size: 18px;
    font-size: 15px;
    box-shadow: 0 12px 28px rgba(16, 59, 149, 0.2);
  }

  [data-lang="en"] .hero.type2 .hero-text h1 {
    max-width: 100%;
    font-size: clamp(31px, 8.1vw, 39px);
  }

  [data-lang="en"] .hero.type2 .hero-text .subtitle {
    width: 88%;
  }

  [data-lang="en"] .hero.type2 .btn-primary {
    width: auto;
    padding: 0 24px 0 58px;
  }

  /* Center and strengthen the homepage capability illustrations on phones. */
  .features-section {
    padding-top: 72px;
    padding-bottom: 86px;
  }

  .feature-card {
    padding: 38px 28px 34px;
    border: 1px solid rgba(52, 105, 186, 0.08);
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 16px 38px rgba(34, 83, 154, 0.07);
  }

  .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 142px;
    height: 142px;
    margin: 0 auto 28px;
  }

  .icon-box img {
    width: 132px;
    height: 132px;
    margin: 0 auto;
  }

  .feature-card h3 {
    margin-bottom: 14px;
    font-size: 23px;
    text-align: center;
  }

  .feature-card p,
  [data-lang="en"] .feature-card p {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
  }

  /* Featured newsroom card */
  .home-news-section {
    padding: 70px 0 82px;
  }

  .home-news-heading {
    margin-bottom: 24px;
  }

  .home-news-heading h2 {
    font-size: 27px;
    line-height: 1.32;
  }

  .home-news-feature {
    display: block;
    min-height: 0;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(28, 75, 145, 0.14);
  }

  .home-news-feature:hover {
    transform: none;
  }

  .home-news-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .home-news-media::after {
    background: linear-gradient(180deg, transparent 72%, rgba(17, 54, 114, 0.12) 100%);
  }

  .home-news-copy {
    padding: 28px 25px 30px;
  }

  .home-news-copy::before {
    top: 29px;
    width: 3px;
    height: 54px;
  }

  .home-news-meta {
    margin-bottom: 17px;
    font-size: 13px;
  }

  .home-news-meta span {
    min-height: 27px;
    padding: 0 11px;
  }

  .home-news-copy h3 {
    margin-bottom: 16px;
    font-size: 25px;
    line-height: 1.36;
  }

  .home-news-copy p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.8;
  }

  .home-news-read {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-news-feature,
  .home-news-media img,
  .home-news-read {
    transition: none;
  }
}
