/* News Center — hero banner, sub-nav below image, animated tagline */
.page-news {
  background: #fff;
  --news-font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--news-font);
}

.page-news .news-hero,
.page-news .news-hero *,
.page-news .news-subnav,
.page-news .news-subnav *,
.page-news .news-main,
.page-news .news-main *,
.page-news .news-aside,
.page-news .news-aside * {
  font-family: var(--news-font) !important;
}

.page-news .inner-main,
.page-news .news-page-main {
  padding-top: 0;
  border-top: none;
}

/* —— Hero —— */
.news-hero {
  position: relative;
  margin-top: var(--cat-header-h, 90px);
  /* Initial banner ≈ 3/5 of viewport (reference: ALIGNED news hero) */
  min-height: 60vh;
  min-height: 60dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  padding-bottom: 3.25rem;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    min-height 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.75s ease;
}

.news-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.news-hero.is-animated .news-hero-bg {
  transform: scale(1);
}

.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 20, 30, 0.45) 0%,
    rgba(15, 20, 30, 0.62) 55%,
    rgba(15, 20, 30, 0.78) 100%
  );
}

.news-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 920px);
  margin: 0 auto;
  text-align: center;
  padding: 1.75rem 0 0;
}

.news-hero-intro {
  margin-bottom: 0.5rem;
}

.news-hero-anim-line {
  margin: 0;
  text-transform: uppercase;
  line-height: 1.45;
}

.news-hero-anim-line--brand {
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.24em;
}

.news-hero-anim-line--tag {
  margin-top: 0.5rem;
  font-size: clamp(0.72rem, 1.55vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.news-hero-anim-line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.35rem);
  filter: blur(6px);
}

.news-hero-intro.is-animated .news-hero-anim-line span {
  animation: newsHeroLineIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.news-hero-intro.is-animated .news-hero-anim-line--tag span {
  animation-delay: 0.4s;
}

.news-hero-title {
  margin: 0.85rem 0 0;
  font-size: clamp(2.35rem, 6.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(1rem);
}

.news-hero-intro.is-animated .news-hero-title {
  animation: newsHeroTitleIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.82s forwards;
}

.news-hero-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.75rem auto 0;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
}

.news-hero-intro.is-animated .news-hero-title::after {
  animation: newsHeroRuleIn 0.5s ease 1.05s forwards;
}

@keyframes newsHeroLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes newsHeroTitleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes newsHeroRuleIn {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.news-hero-scroll-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
}

.news-hero.is-animated .news-hero-scroll-wrap {
  animation: newsHeroScrollCueIn 0.6s ease 1.2s forwards;
}

@keyframes newsHeroScrollCueIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-hero-scroll-hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.news-hero-scroll {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 28px;
  height: 44px;
  padding: 8px 0 0;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.news-hero-scroll:hover {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.28);
}

.news-hero-scroll:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.news-hero-scroll-mouse {
  display: block;
  width: 5px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  animation: newsScrollDot 1.8s ease-in-out 1.5s infinite;
}

@keyframes newsScrollDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.35;
  }
}

/* —— Content stage (tabs + list) —— */
.news-content-stage {
  background: #fff;
}

#news-content-start {
  scroll-margin-top: calc(var(--cat-header-h, 90px) + 8px);
}

.news-subnav {
  position: sticky;
  top: var(--cat-header-h, 90px);
  z-index: 120;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(15, 20, 30, 0.06);
  transition: top 0.45s ease;
}

.news-shell {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  background: #fff;
}

.page-news.news-reveal-content .news-content-stage {
  animation: newsContentReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes newsContentReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll cue: jump to content; hero stays in page so user can scroll back up */
.page-news.news-content-focused .news-content-stage {
  animation: newsContentReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#news-content-stage {
  scroll-margin-top: calc(var(--cat-header-h, 90px) + 4px);
}

.news-subnav-inner {
  width: min(100% - 1.5rem, 1100px);
  margin: 0 auto;
}

.news-subnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.news-subnav-list a {
  display: block;
  padding: 1rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.news-subnav-list a:hover {
  color: var(--orange);
}

.news-subnav-list a.is-active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* —— Content —— */
.news-shell {
  width: min(100% - 1.5rem, 1100px);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.news-content-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

.news-main {
  min-width: 0;
}

/* List — ALIGNED-style rows */
.news-list--cards .news-list-item.is-highlighted {
  box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.35);
  border-radius: 4px;
}

.news-list--cards .news-list-item {
  display: grid;
  grid-template-columns: min(240px, 34vw) 1fr;
  gap: 1.5rem 1.75rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid #e8eaef;
}

.news-list--cards .news-list-item:last-child {
  border-bottom: none;
}

.news-list-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-soft);
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-body {
  min-width: 0;
}

.news-list-date-top {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c2410c;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.news-list-title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #1a1f2e;
}

.news-list-title a {
  color: var(--ink);
  text-decoration: none;
}

.news-list-title a:hover {
  color: var(--orange);
}

.news-list-excerpt {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: #5c6578;
  line-height: 1.65;
}

.news-list-meta {
  margin-top: 1rem;
}

.news-learn-more {
  display: inline-flex;
  align-items: stretch;
  min-width: 10.5rem;
  border: 1px solid #c2410c;
  text-decoration: none;
  color: #c2410c;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-learn-more:hover {
  background: #c2410c;
  color: #fff;
}

.news-learn-more-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
}

.news-learn-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  border-left: 1px solid #c2410c;
  font-size: 1rem;
  line-height: 1;
}

.news-learn-more-icon::before {
  content: "›";
  font-weight: 700;
}

.news-learn-more:hover .news-learn-more-icon {
  border-left-color: rgba(255, 255, 255, 0.45);
}

.news-empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sidebar */
.news-aside-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
}

.news-aside-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-aside-links li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dotted var(--line);
}

.news-aside-links li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-aside-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1f2e;
  text-decoration: none;
  line-height: 1.45;
}

.news-aside-links a:hover {
  color: var(--orange);
}

.news-aside-links .news-aside-date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.news-pagination button {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
}

.news-pagination button:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.news-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.news-pagination .news-page-info {
  margin: 0 0.35rem;
}

.news-pagination .news-goto {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-pagination .news-goto input {
  width: 3rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.82rem;
  text-align: center;
}

/* Detail page — compact hero (no replay animation) */
.news-hero--compact {
  min-height: clamp(200px, 28vh, 280px);
}

.news-hero--compact .news-hero-intro .news-hero-anim-line span,
.news-hero--compact .news-hero-title,
.news-hero--compact .news-hero-scroll {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.news-hero--compact .news-hero-title::after {
  opacity: 1;
  transform: scaleX(1);
}

.news-article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.news-article-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
}

.news-article-date {
  font-size: 0.9rem;
  color: var(--muted);
}

.news-article-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.news-article-body p {
  margin: 0 0 1rem;
}

.news-article-body a {
  color: var(--orange);
}

.news-article-body .news-article-h2 {
  margin: 1.75rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.news-article-body .news-article-h2:first-child {
  margin-top: 0;
}

.news-article-body .news-article-h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.news-article-body .news-article-list {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.news-article-body .news-article-list li {
  margin-bottom: 0.45rem;
}

.news-article-body .news-intl-org {
  margin: 0 0 1.25rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.news-article-body .news-intl-org:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-article-body .news-intl-org p {
  margin: 0.25rem 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.news-article-body .news-intl-org p strong {
  font-weight: 600;
  color: var(--ink);
}

.news-article-body .news-article-tagline {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-left: 4px solid #3d9b4a;
  color: var(--ink);
}

.news-article-figure {
  margin: 1.25rem 0 1.5rem;
}

.news-article-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  background: var(--bg-soft);
}

.news-article-figcaption {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted, #64748b);
}

.news-article-figure--gallery {
  margin-top: 1.75rem;
}

.news-back-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.news-back-category {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.news-back-category:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .news-hero-bg {
    transform: none;
    transition: none;
  }

  .news-hero-anim-line span,
  .news-hero-title,
  .news-hero-scroll-wrap,
  .news-hero-title::after {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .news-hero-scroll-mouse {
    animation: none;
  }
}

@media (max-width: 900px) {
  .news-content-layout {
    grid-template-columns: 1fr;
  }

  .news-aside {
    order: -1;
  }

  .news-list--cards .news-list-item {
    grid-template-columns: 100px 1fr;
  }

  .news-list-detail {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .news-subnav-list a {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }

  .news-list--cards .news-list-item {
    grid-template-columns: 1fr;
  }

  .news-list-thumb {
    width: 100%;
    max-width: 280px;
  }
}
