body.news-page { background: #f2f0eb; color: #171717; }
body.news-page main { background: #fff; }

.news-hero { min-height: 440px; padding: 170px var(--page-gutter) 84px; border-radius: 28px 28px 0 0; background: #fff; color: #181a1c; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.news-hero::after { content: none; }
.news-hero__inner { max-width: 920px; position: relative; z-index: 1; }
.news-kicker { margin: 0 0 20px; color: #e42840; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.news-hero h1 { margin: 0; font-size: clamp(48px,8vw,112px); line-height: .9; letter-spacing: -.055em; }
.news-hero__lead { max-width: 690px; margin: 30px 0 0; font-size: clamp(18px,2vw,25px); line-height: 1.45; color: #625d56; }

.news-content { position: relative; padding: 64px var(--page-gutter) 120px; border-radius: 28px 28px 0 0; background: #f2f0eb; }
.news-filters {  padding: 26px 0; display: grid; gap: 24px; }
.news-filter { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
.news-filter > div { min-width: 0; }
.news-filter__label { padding-top: 9px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #777169; }
.news-filter__options { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; }
.news-filter-pill, .news-filter-tag, .news-tag, .news-card__section, .news-filter__more { font: inherit; }
.news-filter-pill, .news-filter-tag { border: 1px solid #c9c5bd; border-radius: 999px; padding: 9px 15px; color: #37332e; background: transparent; transition: .2s ease; }
.news-filter-pill span { margin-left: 7px; opacity: .55; font-size: 11px; }
.news-filter-tag { display: inline-flex; box-sizing: border-box; min-width: 0; max-width: 100%; align-items: center; min-height: 40px; border-color: transparent; padding-inline: 8px; color: #706a62; line-height: 20px; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.news-filter-pill:hover, .news-filter-pill.is-active, .news-filter-tag:hover, .news-filter-tag.is-active { border-color: #171717; background: #171717; color: #fff; }
.news-filter__options--tags { box-sizing: border-box; max-height: 88px; overflow: hidden; }
.news-filter--tags > div { min-width: 0; max-width: 100%; }
.news-filter--tags .news-filter__options { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
.news-filter--tags.is-expanded .news-filter__options--tags { max-height: none; }
.news-filter__more { margin-top: 10px; border: 0; border-bottom: 1px solid currentColor; padding: 0; background: transparent; color: #e42840; font-size: 13px; }

.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 52px 24px; }
.news-card { min-width: 0; display: flex; flex-direction: column; }
.news-card[hidden] { display: none; }
.news-card__media { display: block; aspect-ratio: 1.45; overflow: hidden; background: #ddd8ce; }
.news-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; }
.news-card__section { align-self: flex-start; border: 0; padding: 0; background: transparent; color: #e42840; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.news-card h2 { margin: 12px 0 14px; font-size: clamp(23px,2.2vw,34px); line-height: 1.06; letter-spacing: -.035em; }
.news-card h2 a:hover { color: #e42840; }
.news-card p { margin: 0; color: #635e57; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__tags { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 19px 0; }
.news-tag { border: 0; padding: 0; background: transparent; color: #777169; font-size: 13px; }
.news-tag:hover { color: #e42840; }
.news-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid #d5d1ca; font-size: 13px; }
.news-card__meta time { color: #777169; }
.news-card__meta a { font-weight: 700; }
.news-empty { padding: 60px 0; text-align: center; color: #777169; }

.news-pagination { margin-top: 72px; }
.news-pagination ul { display: flex; justify-content: center; align-items: center; gap: 8px; }
.news-pagination a, .news-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid #c9c5bd; border-radius: 50%; font-weight: 700; }
.news-pagination span, .news-pagination a:hover { background: #171717; border-color: #171717; color: #fff; }

.news-item-page { background: #f2f0eb; color: #171717; }
.news-detail { padding: 150px var(--page-gutter) 120px; }
.content-breadcrumbs, .news-detail > .content-breadcrumbs { max-width: 1280px; margin: 0 auto 38px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; color: #777169; font-size: 14px; }
.breadcrumbs-item a { color: inherit; text-decoration: none; }
.breadcrumbs-item a:hover { color: #e42840; }
.breadcrumb-separator { color: #aaa49b; }
.breadcrumbs-item.active { color: #37332e; }
.news-detail__header, .news-detail__body, .news-detail__image { max-width: 1280px; margin-inline: auto; }
.news-detail__header { margin-bottom: 48px; }
.news-detail__section { color: #e42840; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.content-detail__topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.content-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0; color: #837e91; font-size: 16px; line-height: 1.2; }
.content-meta time, .content-meta__views, .content-meta__reading { display: inline-flex; align-items: center; gap: 7px; }
.content-meta svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.news-detail h1 { margin: 18px 0 24px; font-size: clamp(42px,6vw,86px); line-height: .96; letter-spacing: -.055em; }
.news-detail__lead { margin: 0; color: #625d56; font-size: clamp(18px,2vw,24px); line-height: 1.5; }
.news-detail__date { display: block; margin: 24px 0 42px; color: #777169; }
.news-detail__image { width: 100%; max-height: 680px; object-fit: cover; display: block; margin: 0 auto 60px; }
.news-detail__body { font-size: 18px; line-height: 1.7; }
.news-detail__body h2 { margin: 64px 0 18px; font-size: clamp(30px,4vw,52px); line-height: 1.06; letter-spacing: -.035em; }
.news-detail__body h3 { margin: 42px 0 14px; font-size: 28px; }
.news-detail__body p, .news-detail__body ul, .news-detail__body ol { margin: 0 0 24px; }
.news-detail__body img { max-width: 100%; height: auto; display: block; }
.news-detail__body figure { margin: 42px 0; }
.news-detail__body figcaption { margin-top: 10px; color: #777169; font-size: 14px; }
.news-detail__body table { width: 100%; border-collapse: collapse; margin: 36px 0; font-size: 15px; }
.news-detail__body th, .news-detail__body td { padding: 13px; border: 1px solid #c9c5bd; text-align: left; vertical-align: top; }
.news-detail__body a { color: #c51d34; text-decoration: underline; text-underline-offset: 3px; }
.news-detail > .news-card__tags { max-width: 1280px; margin: 19px auto; }

/* Article cards use the same visual language as the News cards on the home page. */
.news-page .news-card { overflow: hidden; border: 1px solid #d6d8d4; border-radius: 18px; background: #eceeea; color: #181a1c; opacity: 1; box-shadow: 0 16px 42px rgba(22,25,27,.06); transition: transform .35s cubic-bezier(.22,.68,0,1), background .35s ease; }
.news-page .news-card__media { aspect-ratio: 1.54; background: #dcdfdb; }
.news-page .news-card__media img { filter: saturate(.78); transition: transform .5s cubic-bezier(.22,.68,0,1), filter .3s ease; }
.news-page .news-card__body { padding: 20px; }
.news-page .news-card:hover, .news-page .news-card:focus-within { transform: translateY(-5px); }
.news-page .news-card:hover .news-card__media img, .news-page .news-card:focus-within .news-card__media img { transform: scale(1.05); filter: saturate(1); }

/* Article view counter. */
.news-card__stats { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.news-card__views { display: inline-flex; align-items: center; gap: 7px; color: #837e91; font-size: inherit; line-height: inherit; }
.news-card__views svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Popular articles use the homepage-news carousel mechanics with article cards. */
.popular-news { position: relative; overflow: hidden; padding: 112px var(--page-gutter) 96px; border-radius: 28px 28px 0 0; background: var(--link-hover); color: #fff; box-shadow: 0 -28px 0 #f2f0eb; }
.popular-news__inner { width: 100%; max-width: 1920px; margin-inline: auto; }
.popular-news__heading { margin-bottom: 42px; }
.popular-news__heading h2 { margin: 0; font-size: clamp(42px, 5.2vw, 78px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.popular-news__carousel .splide__track { overflow: hidden; }
.popular-news .news-card { height: 100%; border: 0; background: #eceeea; color: #181a1c; }
.popular-news .news-card__media { background: #dcdfdb; }
.popular-news .news-card__media img { filter: saturate(.78); }
.popular-news .news-card:hover .news-card__media img, .popular-news .news-card:focus-within .news-card__media img { filter: saturate(1); }
.popular-news .news-card:hover, .popular-news .news-card:focus-within { transform: none; }
.popular-news .splide__pagination { position: static; display: flex; justify-content: center; gap: 10px; margin-top: 28px; padding: 0; }
.popular-news .splide__pagination__page { width: 8px; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.48); opacity: 1; transition: width .25s ease, background .25s ease; }
.popular-news .splide__pagination__page.is-active { width: 28px; background: #fff; transform: none; }

@media (min-width: 981px) {
  .news-content { display: grid; grid-template-columns: 200px repeat(3,minmax(0,1fr)); column-gap: 24px; row-gap: 52px; align-items: start; }
  .news-filters { grid-column: span 1; padding: 0; align-content: start; }
  .news-filter { display: block; }
  .news-filter__label { display: block; margin-bottom: 12px; padding-top: 0; }
  .news-filter__options { flex-direction: column; align-items: flex-start; gap: 7px; }
  .news-filter-pill, .news-filter-tag { align-self: flex-start; }
  .news-filter-pill { padding-inline: 10px; font-size: 15px; white-space: nowrap; }
  .news-filter-pill span { margin-left: 4px; }
  .news-filter--tags:not(.is-expanded) .news-filter__options--tags { max-height: var(--news-tags-collapsed-height, 400px); overflow: hidden; }
  .news-filter--tags.is-expanded .news-filter__options--tags { max-height: none; overflow: visible; }
  .news-filter__more { display: inline-block; }
  .news-grid { grid-column: span 3; }
  .news-pagination { grid-column: 2 / -1; margin-top: 0; }
}

/* Compact desktop and landscape tablets: keep the sidebar, give cards two full columns. */
@media (min-width: 981px) and (max-width: 1279px) {
  .news-content { grid-template-columns: 200px repeat(2,minmax(0,1fr)); }
  .news-grid { grid-column: span 2; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-filter { grid-template-columns: 1fr; gap: 10px; }
  .news-filter__label { padding-top: 0; }
  .news-filter--tags .news-filter__options { flex-direction: row; flex-wrap: wrap; }
  .popular-news { padding-top: 88px; }
}

@media (max-width: 640px) {
  .news-hero { min-height: 390px; padding-top: 145px; }
  .news-content { padding-top: 40px; padding-bottom: 80px; }
  .news-grid { grid-template-columns: 1fr; gap: 42px; }
  .popular-news { padding: 76px 16px 72px; }
  .popular-news__heading { margin-bottom: 30px; }
  .popular-news__heading h2 { font-size: 42px; }
  .popular-news .news-card { border-radius: 14px; }
  .popular-news .news-card__body { padding: 14px; }
  .popular-news .splide__pagination { margin-top: 20px; }
  .news-detail { padding-top: 128px; }
  .content-breadcrumbs, .news-detail > .content-breadcrumbs { margin-bottom: 28px; }
  .news-detail__body { font-size: 17px; }
  .news-detail__body table { display: block; overflow-x: auto; }
  .news-page .news-card { border-radius: 14px; }
  .news-page .news-card__body { padding: 14px; }
}

/* News article galleries */
.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 12px;
}
.news-gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #e7e4de;
  cursor: zoom-in;
}
.news-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22,.68,0,1), filter .3s ease;
}
.news-gallery__item:hover img,
.news-gallery__item:focus-visible img { transform: scale(1.04); }
.news-gallery__item:focus-visible { outline: 2px solid #c51d34; outline-offset: 3px; }

/* Shared media lightbox */
.media-lightbox {
  width: min(1120px, 94vw);
  max-width: 94vw;
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #111;
  color: #fff;
}
.media-lightbox::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); }
.media-lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  max-height: 92dvh;
  margin: 0;
  background: #111;
}
.media-lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(92dvh - 48px);
}
.media-lightbox__stage figcaption {
  width: 100%;
  padding: 10px 54px 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.media-lightbox__stage figcaption[hidden] { display: none; }
.media-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.media-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.media-lightbox__nav--prev { left: 12px; }
.media-lightbox__nav--next { right: 12px; }
.media-lightbox__close:hover,
.media-lightbox__nav:hover { background: #c51d34; border-color: #c51d34; }

@media (max-width: 900px) {
  .news-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 640px) {
  .news-gallery { margin-top: 28px; }
  .news-gallery__item { border-radius: 10px; }
  .media-lightbox__nav { width: 36px; height: 50px; font-size: 26px; }
  .media-lightbox__nav--prev { left: 6px; }
  .media-lightbox__nav--next { right: 6px; }
  .media-lightbox__close { top: 6px; right: 6px; width: 36px; height: 36px; }
}
