/* News page layout — grid, centered imagery, scoped under .news-page */

/* Site header — AL WASL FANS */
.fans-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(145deg, #0a0a0a 0%, #161616 100%);
  border-bottom: 3px solid var(--color-primary, #ffec01);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.fans-site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.fans-site-header__brand {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.fans-site-header__brand:hover {
  color: var(--color-primary, #ffec01);
}

.fans-site-header__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fans-site-header__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.fans-site-header__link:hover {
  color: var(--color-primary, #ffec01);
  background: rgba(255, 236, 1, 0.08);
}

.fans-site-header__link[aria-current="page"] {
  color: #111;
  background: var(--color-primary, #ffec01);
}

/* Site footer — AL WASL FANS */
.fans-site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  border-top: 3px solid var(--color-primary, #ffec01);
  color: rgba(255, 255, 255, 0.9);
}

.fans-site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 1.5rem) 2.25rem;
  text-align: center;
}

.fans-site-footer__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.fans-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.fans-site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fans-site-footer__icon:hover {
  color: #111;
  background: var(--color-primary, #ffec01);
  transform: translateY(-2px);
}

.fans-site-footer__copy {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

/* About page prose */
.news-page .about-prose {
  max-width: 42rem;
  margin: 0 auto;
}

.news-page .about-prose p {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #fff;
}

.news-page .about-prose p:last-child {
  margin-bottom: 0;
}

/*
 * Some cards were saved with WOW.js inline `visibility: hidden`.
 * Force visibility for list items in the unified news grid.
 */
.news-page .news-grid--all .col-news-item {
  visibility: visible !important;
}

.news-page {
  --news-gap: clamp(1rem, 2.5vw, 1.75rem);
  --news-card-radius: 12px;
  --news-card-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  --news-img-ratio: 16 / 10;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem) 3rem;
}

/* Full-width team banner (replaces text page-banner-title) */
.news-hero-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  border-bottom: 3px solid var(--color-primary, #ffec01);
  overflow: hidden;
}

.news-hero-banner__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.news-page .section-header .heading {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.news-page .section-header .heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--color-primary, #ffec01);
  border-radius: 2px;
}

/* Bootstrap row → CSS grid */
.news-page .news-grid {
  display: grid;
  gap: var(--news-gap);
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.news-page .news-grid--all {
  grid-template-columns: 1fr;
  justify-items: stretch;
}

/* Grid children fill cell; kill legacy flex widths */
.news-page .news-grid > [class*="col-"],
.news-page .news-grid > .col-news-item {
  width: 100% !important;
  max-width: none;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Cards — height:auto so image box sizes from aspect-ratio (not collapsed %) */
.news-page .news-grid .rt-post-overlay {
  height: auto;
  border-radius: var(--news-card-radius);
  overflow: hidden;
  box-shadow: var(--news-card-shadow);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-page .news-grid .rt-post-overlay:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.news-page .news-grid .post-img {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  width: 100%;
  height: auto !important;
  aspect-ratio: var(--news-img-ratio);
}

.news-page .news-grid .post-img a.img-link {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 0;
}

.news-page .news-grid .post-img img {
  width: 100%;
  height: 100%;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-page .news-grid .rt-post-overlay .post-img + .post-content {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  padding: 1.1rem 1rem 1.25rem !important;
}

.news-page .news-grid .post-content {
  text-align: left;
}

/* Long headlines: theme gradient-underline breaks across line wraps — use simple hover */
.news-page .news-grid .post-content .post-title {
  font-size: clamp(0.95rem, 2.1vw, 1.12rem) !important;
  line-height: 1.38 !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
  color: #fff !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.news-page .news-grid .post-content .post-title a {
  color: inherit !important;
  background-image: none !important;
  background-size: unset !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: none;
  display: inline;
}

.news-page .news-grid .post-content .post-title:hover,
.news-page .news-grid .post-content .post-title:hover a {
  color: var(--color-primary, #ffec01) !important;
  background-size: unset !important;
}

.news-page .news-grid .post-content .post-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-primary, #ffec01);
  text-underline-offset: 0.2em;
}

.news-page .news-grid .post-meta ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile: narrow screens — center card column, keep image centered in frame */
@media (max-width: 575.98px) {
  .news-page .news-grid--all {
    justify-items: center;
  }

  .news-page .news-grid--all > * {
    width: min(100%, 400px);
  }

  .news-page .news-grid .post-content {
    text-align: center;
  }

  .news-page .news-grid .post-meta ul {
    justify-content: center;
  }
}

/* Tablet */
@media (min-width: 576px) {
  .news-page .news-grid--all {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 992px) {
  .news-page .news-grid--all {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .news-page .news-grid--all {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ad strips — light grey band, centered creative, caption (Flashscore-style) */
.news-ad-strip {
  background: #f2f2f2;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem);
  margin: 0;
}

.section-news-list.news-page > .news-ad-strip {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  margin-left: calc(-1 * clamp(1rem, 3vw, 1.5rem));
  margin-right: calc(-1 * clamp(1rem, 3vw, 1.5rem));
  width: calc(100% + 2 * clamp(1rem, 3vw, 1.5rem));
  max-width: none;
  box-sizing: border-box;
}

.news-ad-strip__contain {
  max-width: 1320px;
  margin: 0 auto;
}

.news-ad-slot {
  margin: 0;
}

.news-ad-slot__link {
  display: block;
  margin: 0 auto;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid #ddd;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.news-ad-slot__link:hover {
  opacity: 0.96;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.news-ad-slot--display .news-ad-slot__link {
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
}

.news-ad-slot--leaderboard .news-ad-slot__link {
  width: min(100%, 320px);
  aspect-ratio: 320 / 50;
}

.news-ad-slot__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9a9a9a;
  text-transform: uppercase;
}

.news-ad-slot__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e8e8e8;
}

.news-ad-slot__link:has(.news-ad-slot__img) .news-ad-slot__placeholder {
  display: none;
}

.news-ad-slot__label {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #888;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
}

/* Local article detail pages (articles/*.html) — match news.html card + section styling */
.article-page.article-page {
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem) 3rem;
}

/* Same “News” section title row as news.html */
.article-page > .section-header {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.article-page > .section-header .heading {
  color: #fff;
}

.article-detail {
  max-width: 52rem;
  margin: 0 auto;
  background: #fff;
  color: #222;
  border-radius: var(--news-card-radius, 12px);
  box-shadow: var(--news-card-shadow, 0 8px 28px rgba(0, 0, 0, 0.12));
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.article-detail__back {
  margin: 0 0 1.25rem;
}

.article-detail__back a {
  font-weight: 600;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.article-detail__back a:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-detail__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.25;
  text-align: center;
  color: #111;
  font-weight: 700;
}

.article-detail__meta {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
}

.article-detail__meta .post-meta ul {
  justify-content: center;
}

.article-detail__meta .rt-meta {
  color: #555;
}

.article-detail__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
}

.article-detail__body p {
  margin-bottom: 1.1rem;
}

.article-detail__gallery {
  margin-top: 2rem;
  max-width: 100%;
}

.article-detail__gallery.row {
  --bs-gutter-x: 1rem;
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
}

.article-detail__gallery [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.article-detail__gallery .post-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--news-card-radius, 12px);
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-detail__source {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 0.9rem;
}

.article-detail__source a {
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.article-detail__source a:hover {
  color: var(--color-primary, #c9b000);
  text-decoration: underline;
}

.article-detail__error {
  padding: 1.25rem;
  border-radius: 8px;
  background: #fff8e6;
  border: 1px solid #f0d060;
  margin-bottom: 1rem;
}

/* Fan Hub (merged site) */
.fanhub-landing-intro {
  max-width: 42rem;
  margin-inline: auto;
}

.fanhub-home-card .card-img-top {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.fanhub-article-tag {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(17, 17, 17, 0.55);
  margin: 0 0 0.5rem;
}

.article-detail__body .lead {
  font-size: 1.12rem;
  color: rgba(17, 17, 17, 0.78);
  margin-bottom: 1.25rem;
}

.fanhub-figure {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fanhub-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.fanhub-figure figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: #666;
  background: #f7f7f7;
}

.fanhub-source-box {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
  color: #555;
}

/* Fan stories wire — single centered column, same card style as club news */
.news-page.fanhub-wire-section {
  padding-bottom: 3rem;
}

.news-page .section-header.section-header--center {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.news-page .section-header.section-header--center .heading {
  display: inline-block;
}

.news-page .section-header.section-header--center .heading::after {
  left: 50%;
  transform: translateX(-50%);
}

.fanhub-wire-intro {
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.fanhub-wire-intro p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.news-page .news-grid--fanhub-wire {
  grid-template-columns: 1fr !important;
  max-width: 42rem;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  justify-items: stretch;
}

@media (min-width: 576px) {
  .news-page .news-grid--fanhub-wire {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 992px) {
  .news-page .news-grid--fanhub-wire {
    grid-template-columns: 1fr !important;
  }
}

.news-page .news-grid--fanhub-wire > .col-news-item {
  width: 100% !important;
  max-width: none !important;
}

.fanhub-wire-dek {
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0 0 0.65rem !important;
  font-weight: 400;
}

.fanhub-wire-source {
  margin: 0.35rem 0 0 !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

.fanhub-wire-source a {
  color: var(--color-primary, #ffec01) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.fanhub-wire-source a:hover {
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}
