.news-hero {
  min-height: 520px;
  background-color: #c6c7c4;
  background-image: url("../../images/new/energy-storage-news-banner.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.news-hero-inner {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 2px;
}

.news-hero h1 {
  margin: 0;
  color: #101010;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
}

.news-hero h1 span {
  display: inline-block;
  padding-bottom: 10px;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 94px 4px;
}

.news-hero p {
  margin: 34px 0 0;
  color: #272727;
  font-size: 16px;
  line-height: 24px;
}

.news-hero-button {
  width: 254px;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 190, 94, 0.56);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.news-hero-button:hover,
.news-hero-button:focus-visible {
  background: rgba(0, 149, 87, 0.86);
  box-shadow: 0 12px 26px rgba(0, 89, 51, 0.2);
  transform: translateY(-2px);
}

@media (min-width: 1421px) {
  .news-hero-inner {
    position: relative;
    left: 8px;
    transform: translateY(5px);
  }

  .news-hero-button {
    margin-top: 31px;
  }
}

.latest-articles {
  padding: 75px 0 68px;
  background: #fff;
}

.latest-articles h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 38px;
  margin-top: 20px;
}

.news-card {
  min-width: 0;
  height: auto;
  min-height: 382px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 22px rgba(69, 154, 215, 0.22);
}

.news-card-link {
  height: 100%;
  display: block;
  color: inherit;
}

.news-card-link:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: -3px;
}

.news-card-image {
  height: 180px;
  display: block;
  overflow: hidden;
  background: #d8e2e9;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.news-card--featured .news-card-image img {
  filter: brightness(0.72);
}

.news-card-link:hover .news-card-image img,
.news-card-link:focus-visible .news-card-image img {
  transform: scale(1.035);
}

.news-card-body {
  display: block;
  padding: 18px 22px 24px;
}

.news-card time {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #666;
  font-size: 16px;
  line-height: 1.2;
}

.news-card time .iconfont {
  color: #177599;
  font-size: 18px;
}

.news-card h3 {
  margin: 13px 0 0;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
}

.news-card-summary {
  display: block;
  margin: 5px 0 0;
  color: #666;
  font-size: 16px;
  line-height: 1.3;
}

.news-card h3,
.news-read-more {
  transition: color 160ms ease;
}

.news-card-link:hover h3,
.news-card-link:focus-visible h3,
.news-card-link:active h3 {
  color: #087f4d;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  color: var(--green-dark);
  font-size: 14px;
  line-height: 1.2;
}

.news-read-more span {
  margin-left: 4px;
  transition: transform 160ms ease;
}

.news-read-more:hover span,
.news-read-more:focus-visible span {
  transform: translateX(4px);
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.news-pagination > a,
.news-pagination > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #8c8c8c;
  border-radius: 7px;
  color: #111;
  background: #fff;
  font-size: 16px;
  line-height: 1;
}

.news-pagination > span[aria-current="page"] {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.news-pagination .prev,
.news-pagination .next {
  width: auto;
  min-width: 28px;
  padding: 0 8px;
}

.resources-empty {
  margin: 32px 0 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.resources-page .inquiry-section {
  scroll-margin-top: 100px;
}

@media (min-width: 1421px) {
  .latest-articles > .site-container {
    position: relative;
    left: 7px;
  }

  .resources-page .inquiry-section {
    min-height: 883px;
  }

  .resources-page .inquiry-section > .site-container {
    position: relative;
    left: 7px;
  }

  .news-grid {
    grid-template-columns: repeat(3, 402px);
    column-gap: 38px;
  }
}

@media (min-width: 1161px) and (max-width: 1420px) {
  .news-card {
    height: auto;
    min-height: 382px;
  }
}

@media (max-width: 1160px) {
  .news-hero,
  .news-hero-inner {
    min-height: 500px;
  }

  .news-hero {
    background-position: 43% center;
  }

  .news-hero h1 {
    font-size: 40px;
  }

  .news-grid {
    gap: 34px 26px;
  }

  .news-card {
    height: auto;
  }
}

@media (max-width: 900px) {
  .news-hero {
    position: relative;
    isolation: isolate;
  }

  .news-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12));
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card-image {
    height: 165px;
  }
}

@media (max-width: 640px) {
  .news-hero,
  .news-hero-inner {
    min-height: 430px;
  }

  .news-hero {
    background-position: 34% center;
  }

  .news-hero::before {
    background: rgba(255, 255, 255, 0.48);
  }

  .news-hero h1 {
    max-width: 330px;
    font-size: 34px;
  }

  .news-hero p {
    margin-top: 25px;
    font-size: 15px;
  }

  .news-hero-button {
    width: min(254px, 100%);
    min-height: 54px;
    margin-top: 28px;
    font-size: 16px;
  }

  .latest-articles {
    padding: 48px 0 58px;
  }

  .latest-articles h2 {
    font-size: 18px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 27px;
  }

  .news-card-image {
    height: auto;
    aspect-ratio: 402 / 176;
  }

  .news-card {
    min-height: 0;
  }

  .news-card-body {
    padding: 17px 18px 20px;
  }

  .news-card time,
  .news-card-summary {
    font-size: 14px;
  }

  .news-card h3 {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.2;
  }

  .news-pagination {
    margin-top: 38px;
  }

  .resources-page .inquiry-section {
    padding-top: 49px;
  }
}
