/* ============================================================
   NEWS — list & article pages (master site)
   ============================================================ */

/* ---- List hero (matches contact / about compact gold title) ---- */
body[data-news-mode="list"] .page-hero.news-hero {
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem) !important;
}
body[data-news-mode="list"] .page-hero.news-hero h1 {
  color: var(--brand-navy-deep) !important;
  margin-top: 0;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  max-width: 28ch;
}
body[data-news-mode="list"] .page-hero.news-hero p {
  margin-top: .75rem;
  font-size: 1rem;
  max-width: 52ch;
}

/* ---- List section — tighter to footer ---- */
body[data-news-mode] .news-section {
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem) !important;
}

/* ---- Dark news cards ---- */
body[data-news-mode="list"] .news-card,
body[data-news-mode="article"] .news-grid .news-card {
  background: linear-gradient(180deg, #0B1730 0%, #162447 100%);
  border: 1px solid rgba(201, 171, 101, .18);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 23, 48, .12);
}
body[data-news-mode="list"] .news-card__media,
body[data-news-mode="article"] .news-grid .news-card__media {
  aspect-ratio: 1 / 1;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
body[data-news-mode="list"] .news-card__media::after,
body[data-news-mode="article"] .news-grid .news-card__media::after {
  background: linear-gradient(180deg, transparent 55%, rgba(11, 23, 48, .45) 100%);
}
body[data-news-mode="list"] .news-card__body,
body[data-news-mode="article"] .news-grid .news-card__body {
  padding: 1.1rem 1.15rem 1.2rem;
  gap: .55rem;
}
body[data-news-mode="list"] .news-card__date,
body[data-news-mode="article"] .news-grid .news-card__date {
  color: #fff;
  font-size: .76rem;
  letter-spacing: .1em;
}
body[data-news-mode="list"] .news-card h3,
body[data-news-mode="list"] .news-card h3 a,
body[data-news-mode="article"] .news-grid .news-card h3,
body[data-news-mode="article"] .news-grid .news-card h3 a {
  color: #c9ab65 !important;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 600;
}
body[data-news-mode="list"] .news-card h3 a:hover,
body[data-news-mode="article"] .news-grid .news-card h3 a:hover {
  color: #e9ddb8 !important;
}
body[data-news-mode="list"] .news-card p {
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
  line-height: 1.5;
}
body[data-news-mode="list"] .news-card .link-arrow {
  color: #fff;
  margin-top: .65rem;
  font-size: .88rem;
}
body[data-news-mode="list"] .news-card .link-arrow:hover,
body[data-news-mode="list"] .news-card .link-arrow:hover svg {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .35);
}

/* ---- Pagination ---- */
body[data-news-mode="list"] .news-toolbar {
  margin-bottom: 1.35rem;
}

/* Search — gold border always visible */
body[data-news-mode="list"] .news-search input {
  min-width: min(100%, 280px);
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  border: 1.5px solid #c9ab65 !important;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-navy-deep);
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px rgba(201, 171, 101, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
body[data-news-mode="list"] .news-search input::placeholder {
  color: rgba(11, 23, 48, 0.45);
}
body[data-news-mode="list"] .news-search input:hover {
  border-color: #d4b872 !important;
  box-shadow: 0 0 0 2px rgba(201, 171, 101, 0.28);
}
body[data-news-mode="list"] .news-search input:focus {
  outline: none;
  border-color: #c9ab65 !important;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 171, 101, 0.32);
}

body[data-news-mode="list"] .news-pager__btn.is-active {
  background: #c9ab65 !important;
  border-color: #c9ab65 !important;
  color: #0B1730 !important;
}

/* Page numbers (not current / prev / next) — header-style hover */
body[data-news-mode="list"] .news-pager__btn[data-page] {
  position: relative;
  isolation: isolate;
  transition:
    color var(--dur-fast, 0.2s) var(--ease, ease),
    box-shadow var(--dur-fast, 0.2s) var(--ease, ease),
    transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color var(--dur-fast, 0.2s) var(--ease, ease);
}
body[data-news-mode="list"] .news-pager__btn[data-page]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ather-hover-gradient, linear-gradient(135deg, #ffffff 0%, #e8eef8 45%, #c5d0e8 100%));
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
body[data-news-mode="list"] .news-pager__btn[data-page]:not(.is-active):hover {
  color: #000000 !important;
  border-color: rgba(11, 23, 48, 0.12) !important;
  box-shadow: var(--link-tab-hover-shadow, 0 2px 12px rgba(11, 23, 48, 0.1)) !important;
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: no-preference) {
  body[data-news-mode="list"] .news-pager__btn[data-page]:not(.is-active):hover::after {
    animation: atherHoverGradientPulse 2.4s ease-in-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-news-mode="list"] .news-pager__btn[data-page]:not(.is-active):hover::after {
    opacity: 1;
  }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.news-article__hero {
  position: relative;
  min-height: clamp(340px, 58vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0B1730;
}
.news-article__media {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: scale(1.02);
}
.news-article__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 23, 48, .2) 0%, rgba(11, 23, 48, .72) 62%, #0B1730 100%),
    radial-gradient(80% 60% at 85% 15%, rgba(201, 171, 101, .18), transparent 55%);
  pointer-events: none;
}
.news-article__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.25rem, 4vw, 3rem);
}
.news-article__meta {
  margin: 0 0 .65rem;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}
.news-article__hero h1 {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 600;
  color: #c9ab65 !important;
}
.news-article__lede {
  margin: .85rem 0 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff !important;
}

/* Article image — aligned with body text column */
.news-article__col {
  max-width: 720px;
  width: 100%;
  margin-inline: 0;
}
.news-article__frame {
  position: relative;
  z-index: 3;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 0;
}
.news-article__frame .container {
  display: flex;
  justify-content: flex-start;
}
.news-article__visual {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  border: 1px solid rgba(201, 171, 101, .28);
  box-shadow:
    0 24px 50px rgba(11, 23, 48, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-bottom: .75rem;
}

.news-article__content {
  padding-block: 0 clamp(1rem, 2vw, 1.5rem) !important;
  background: #ffffff;
}
.news-article__content .article-body {
  max-width: 720px;
  width: 100%;
  margin-inline: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #000000 !important;
}
.news-article__content .article-body p,
.news-article__content .article-body li,
.news-article__content .article-body em,
.news-article__content .article-body strong {
  color: #000000 !important;
}
.news-article__content .article-body h3 {
  margin-top: 2rem;
  font-family: var(--font-serif);
  color: var(--brand-navy-deep) !important;
}
.news-article__content .article-body a {
  color: var(--brand-navy-deep) !important;
  text-decoration-color: rgba(11, 23, 48, 0.35);
}
.news-article__content .article-body a:hover {
  color: #000000 !important;
}
.news-article__content .article-tags .news-pill {
  background: var(--mist);
  color: var(--text);
  border: 1px solid var(--rule);
}
.news-article__content .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.news-article__content .article-tags {
  max-width: 720px;
  width: 100%;
  margin-inline: 0;
  margin-top: 1.25rem;
  padding: 0;
}
.news-article__content .article-body p {
  margin: 1rem 0;
}
.news-article__foot {
  max-width: 720px;
  width: 100%;
  margin: 1.25rem 0 0;
  padding-top: .25rem;
}
.news-article__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 12px 22px;
  border-radius: 999px;
  background: #c9ab65;
  color: #0B1730 !important;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(201, 171, 101, .35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.news-article__back:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 171, 101, .5);
  filter: brightness(1.04);
  color: #0B1730 !important;
}

body[data-news-mode="article"] .news-related {
  padding-block: 1.5rem 1.25rem !important;
}
body[data-news-mode="article"] .news-related h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #c9ab65;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .news-article__visual { aspect-ratio: 4 / 3; max-height: none; }
}
html[dir="rtl"] .news-article__frame .container,
html[dir="rtl"] .news-article__content .container {
  align-items: flex-end;
}
html[dir="rtl"] .news-article__content .article-body {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .news-article__content .article-tags .news-pill {
  font-size: 0.92rem;
  padding: 0.48rem 0.95rem;
}
