.news-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}

.news-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 45, 69, 0.46);
}

.news-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.news-hero h1 {
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.15;
}

.news-hero--list h1 {
  font-family: Arial, Helvetica, sans-serif;
}

.news-hero--detail h1 {
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
}

.news-hero__breadcrumb {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.news-hero__breadcrumb a {
  transition: color 180ms ease;
}

.news-hero__breadcrumb a:hover,
.news-hero__breadcrumb a:focus-visible {
  color: #65b1ff;
}

.news-listing {
  padding: 0 0 20px;
  background: #ffffff;
}

.news-tabs {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-right: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.news-tabs::-webkit-scrollbar {
  display: none;
}

.news-tabs__link {
  min-height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  background: #ffffff;
  color: #0567cc;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.news-tabs__link:hover,
.news-tabs__link:focus-visible {
  border-color: #0567cc;
  background: #0567cc;
  color: #ffffff;
}

.news-tabs__link.is-active {
  border-color: #0567cc;
  background: #0567cc;
  color: #fff;
}

.news-listing__grid {
  display: grid;
  grid-template-columns: repeat(3, 432px);
  gap: 20px 43px;
  padding: 40px 0 0 22px;
}

.news-list-card {
  width: 432px;
  height: 513px;
  min-width: 0;
  display: block;
  overflow: hidden;
  background: #f7f7f7;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 180ms ease;
}

.news-list-card:focus-visible {
  outline: 2px solid #0567cc;
  outline-offset: 3px;
}

.news-list-card__image {
  width: 100%;
  height: 294px;
  display: block;
  overflow: hidden;
  background: #eceff2;
}

.news-list-card__image img {
  width: 100%;
  height: 324px;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.news-list-card__body {
  height: 219px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 15px;
}

.news-list-card h3 {
  max-height: 64px;
  margin: 0;
  overflow: hidden;
  color: #101325;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
}

.news-list-card h3 span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 180ms ease;
}

.news-list-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 15px 0 0;
  color: #312e39;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-list-card time {
  display: block;
  margin-top: 10px;
  color: #888888;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 12.8px;
  font-weight: 400;
  line-height: 15px;
}

.news-list-card:hover .news-list-card__image img {
  transform: scale(1.05);
}

.news-list-card:hover h3 span,
.news-list-card:focus-visible h3 span {
  color: #0567cc;
}

.news-listing .site-pagination {
  min-height: 88px;
  margin-top: 50px;
  gap: 20px;
}

.news-empty {
  min-height: 1146px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding-top: 160px;
  color: #777777;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.news-detail {
  padding: 80px 0;
  background: #ffffff;
}

.news-detail__inner {
  max-width: 1440px;
}

.news-detail__header {
  width: 100%;
  margin: 0;
  text-align: center;
}

.news-detail__header h1 {
  margin: 0;
  color: #222222;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: capitalize;
}

.news-detail__header time {
  min-height: 47px;
  display: block;
  padding: 15px 0 16px;
  border-bottom: 1px solid #e3e3e3;
  color: #999999;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 13.6px;
  font-weight: 400;
  line-height: 16px;
}

.news-detail__content {
  width: 100%;
  padding: 60px 30px 30px;
  color: #222222;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
}

.news-detail__content > :first-child {
  margin-top: 0;
}

.news-detail__content > :last-child {
  margin-bottom: 0;
}

.news-detail__content p {
  margin: 0 0 30px;
}

.news-detail__content p:has(> img) {
  margin-bottom: 10px;
  line-height: 0;
  text-align: center;
}

.news-detail__content h2,
.news-detail__content h3,
.news-detail__content h4 {
  margin: 30px 0 15px;
  color: #222222;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 18.72px;
  font-weight: 700;
  line-height: 30px;
}

.news-detail__content img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.news-detail__content ul,
.news-detail__content ol {
  margin: 18px 0;
  padding-left: 24px;
}

.news-detail__content a {
  color: #0567cc;
  text-decoration: underline;
}

.news-detail__siblings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #e3e3e3;
}

.news-detail__sibling {
  min-width: 0;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #798497;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
}

.news-detail__sibling--next {
  justify-content: flex-end;
  text-align: right;
}

.news-detail__sibling img {
  width: 24px;
  height: 30px;
  flex: 0 0 24px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.news-detail__sibling--next img {
  transform: rotateY(180deg);
}

.news-detail__sibling strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.news-detail__sibling--empty {
  color: #c0c5c8;
  font-size: 16px;
}

.news-detail__sibling--empty-next {
  justify-content: flex-end;
  text-align: right;
}

.news-detail__sibling:hover strong,
.news-detail__sibling:focus-visible strong {
  color: #0567cc;
}

.news-detail__sibling--prev:hover img {
  transform: translateX(-4px);
}

.news-detail__sibling--next:hover img {
  transform: translateX(4px) rotateY(180deg);
}

@media (max-width: 1499px) {
  .news-listing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 32px;
    padding-right: 22px;
  }

  .news-list-card {
    width: 100%;
  }
}

@media (max-width: 1199px) {
  .news-listing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-tabs {
    justify-content: flex-start;
  }

  .news-empty {
    min-height: 680px;
  }
}

@media (max-width: 767px) {
  .news-hero {
    height: 220px;
  }

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

  .news-hero__breadcrumb {
    min-height: 30px;
    font-size: 13px;
  }

  .news-listing {
    padding-bottom: 36px;
  }

  .news-tabs {
    width: calc(100% + 30px);
    min-height: 76px;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 -15px;
    padding: 0 15px;
  }

  .news-tabs__link {
    min-height: 38px;
    padding: 9px 20px;
    font-size: 14px;
  }

  .news-listing__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0 0;
  }

  .news-list-card {
    height: auto;
  }

  .news-list-card__image {
    height: auto;
    aspect-ratio: 432 / 294;
  }

  .news-list-card__image img {
    height: 110%;
  }

  .news-list-card__body {
    height: 219px;
  }

  .news-list-card h3 {
    font-size: 18px;
    line-height: 28px;
  }

  .news-listing .site-pagination {
    margin-top: 30px;
  }

  .news-empty {
    min-height: 430px;
    padding-top: 100px;
  }

  .news-detail {
    padding: 48px 0 56px;
  }

  .news-detail__header h1 {
    font-size: 28px;
    line-height: 1.4;
  }

  .news-detail__header time {
    min-height: 43px;
    padding: 12px 0 15px;
  }

  .news-detail__content {
    padding: 36px 0 20px;
    font-size: 15px;
    line-height: 28px;
  }

  .news-detail__content img {
    max-width: 100%;
  }

  .news-detail__content h2,
  .news-detail__content h3,
  .news-detail__content h4 {
    margin-top: 26px;
    font-size: 18px;
    line-height: 28px;
  }

  .news-detail__content p {
    margin-bottom: 24px;
  }

  .news-detail__siblings {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .news-detail__sibling--next,
  .news-detail__sibling--empty-next {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .news-hero { height: 180px; }
  .news-hero__content { padding-top: 38px; }
  .news-hero h1 { font-size: 30px; line-height: 38px; }
  .news-listing { padding-bottom: 30px; }
  .news-tabs { min-height: 64px; gap: 10px; }
  .news-tabs__link { min-height: 36px; padding: 8px 16px; font-size: 13px; }
  .news-listing__grid { gap: 18px; padding-top: 22px; }
  .news-list-card__body { height: auto; min-height: 186px; padding: 18px 16px; }
  .news-list-card h3 { font-size: 17px; line-height: 25px; }
}
