/* =========================================================
   NEWS.CSS
   news.html (index) + article.html (single article)
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */
.hero--news {
  position: relative;
  background: var(--color-navy);
  overflow: hidden;
}

.hero__background--news {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-images/news-hero.jpg');
  background-image: image-set(
    url('../img/hero-images/news-hero.webp') type('image/webp'),
    url('../img/hero-images/news-hero.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center top;
}

.hero__background--news::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 51, 108, 0.5);
}

.hero--news .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: var(--header-height);
}

.hero--news .hero__panel {
  grid-column: 2 / 3;
  background: var(--color-navy);
  padding: var(--space-4xl) var(--space-3xl);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 55vh;
}

.hero--news .hero__panel .btn { align-self: flex-start; }

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.hero--news .hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-xl);
}

.hero--news .hero__body {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 44ch;
}

/* =========================================================
   CATEGORY PILLS  (shared colour system)
   ========================================================= */
.news-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: var(--space-md);
}

.news-cat--competition { background: var(--color-red);        color: #fff; }
.news-cat--club-news   { background: var(--color-navy);       color: #fff; }
.news-cat--events      { background: var(--color-flat-blue);  color: #fff; }
.news-cat--welfare     { background: #5a8a44;                 color: #fff; }
.news-cat--coaching    { background: #7b5e9e;                 color: #fff; }

/* =========================================================
   FEATURED SPOTLIGHT
   ========================================================= */
.news-spotlight {
  background: var(--color-off-white);
  padding: var(--space-3xl) var(--gutter);
}

.news-spotlight__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.news-spotlight__label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-lg);
  max-width: none;
}

.news-featured {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 420px;
  box-shadow: 0 8px 40px rgba(4, 51, 108, 0.12);
  overflow: hidden;
}

.news-featured__img {
  overflow: hidden;
  background: var(--color-navy-25);
}

.news-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

.news-featured:hover .news-featured__img img {
  transform: scale(1.03);
}

.news-featured__panel {
  background: var(--color-navy);
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.news-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.news-featured__excerpt {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: none;
  margin: var(--space-xs) 0 var(--space-md);
}

.news-featured__meta {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-md);
}

/* =========================================================
   NEWS INDEX — filter + grid
   ========================================================= */
.news-index {
  padding: var(--space-3xl) var(--gutter) var(--space-4xl);
  background: var(--color-white);
}

.news-index__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.news-index__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.news-index__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-navy);
}

.news-index__count {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-grey);
  max-width: none;
}

.news-filters {
  margin-bottom: var(--space-2xl);
}

/* ── Category-tinted filter pills ── */
.filter-pill--competition:hover,
.filter-pill--competition.filter-pill--active { background: var(--color-red);       color: #fff; border-color: var(--color-red); }
.filter-pill--club-news:hover,
.filter-pill--club-news.filter-pill--active   { background: var(--color-navy);      color: #fff; border-color: var(--color-navy); }
.filter-pill--events:hover,
.filter-pill--events.filter-pill--active      { background: var(--color-flat-blue); color: #fff; border-color: var(--color-flat-blue); }
.filter-pill--welfare:hover,
.filter-pill--welfare.filter-pill--active     { background: #5a8a44;                color: #fff; border-color: #5a8a44; }
.filter-pill--coaching:hover,
.filter-pill--coaching.filter-pill--active    { background: #7b5e9e;                color: #fff; border-color: #7b5e9e; }

/* ── Article Grid ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-navy-25);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.news-card:hover {
  box-shadow: 0 8px 32px rgba(4, 51, 108, 0.12);
  transform: translateY(-3px);
}

/* First card in filtered results is wider */
.news-card--wide {
  grid-column: span 2;
  flex-direction: row;
}

.news-card--wide .news-card__img {
  width: 55%;
  flex-shrink: 0;
  aspect-ratio: unset;
}

.news-card--wide .news-card__body {
  flex: 1;
}

.news-card__img-link {
  display: block;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-navy-25);
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-smooth);
}

.news-card:hover .news-card__img img {
  transform: scale(1.04);
}

.news-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--color-navy);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--color-red);
}

.news-card__excerpt {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--color-text);
  flex: 1;
  max-width: none;
  margin: var(--space-xs) 0;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-off-white);
  margin-top: auto;
}

.news-card__date {
  font-size: var(--fs-xs);
  color: var(--color-grey);
}

.news-card__readmore {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  text-decoration: none;
  white-space: nowrap;
}

.news-card__readmore:hover {
  text-decoration: underline;
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-grey);
  font-size: var(--fs-md);
  max-width: none;
}

/* =========================================================
   SOCIAL STRIP
   ========================================================= */
.social-strip {
  background: var(--color-navy);
  padding: var(--space-3xl) var(--gutter);
  border-top: 4px solid var(--color-red);
}

.social-strip__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.social-strip__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.social-strip__body {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-base);
  max-width: 46ch;
}

.social-strip__links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  background: transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.social-link svg { display: block; }

.social-link:hover { transform: translateY(-3px); border-color: transparent; }
.social-link--facebook:hover  { background: #1877f2; }
.social-link--instagram:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-link--tiktok:hover    { background: #010101; border-color: #69c9d0; }

/* =========================================================
   ENQUIRY STRIP
   ========================================================= */
.enquiry-strip {
  background: var(--color-navy);
  padding: var(--space-3xl) var(--gutter);
}

.enquiry-strip__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.enquiry-strip__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.enquiry-strip__body {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-md);
  max-width: 52ch;
}

.enquiry-strip__actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* =========================================================
   ARTICLE PAGE — hero
   ========================================================= */
.article-hero {
  position: relative;
  height: 55vh;
  min-height: 340px;
  max-height: 520px;
  overflow: hidden;
  background: var(--color-navy);
}

.article-hero__img-wrap {
  position: absolute;
  inset: 0;
}

.article-hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,51,108,0.92) 0%, rgba(4,51,108,0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.article-hero__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: color var(--transition);
}

.article-back:hover { color: var(--color-white); }

.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: var(--space-sm) 0 var(--space-md);
}

.article-hero__date {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   ARTICLE PAGE — body
   ========================================================= */
.article-wrap {
  background: var(--color-white);
  padding: var(--space-4xl) var(--gutter);
}

.article-content {
  max-width: 68ch;
  margin: 0 auto;
}

.article-body p {
  font-size: var(--fs-md);
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  max-width: none;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: var(--space-2xl) 0 var(--space-md);
}

.article-body strong { color: var(--color-navy); }
.article-body a { color: var(--color-red); }

/* Bulleted lists, written as "- item" lines in the Sheet. Results articles
   lean on these heavily, so they are set tighter than body paragraphs. */
.article-body ul {
  margin: 0 0 var(--space-lg);
  padding-left: var(--space-xl);
  list-style: none;
}

.article-body ul li {
  position: relative;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: calc(var(--space-lg) * -1);
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-red);
}

/* A line break inside a paragraph is a deliberate new line, not a new
   paragraph, so it must not inherit the paragraph gap. */
.article-body p br { line-height: 1.85; }

/* Optional call to action at the foot of the article, set per article in
   the news Sheet (cta, ctaUrl, ctaText). Centred under the last
   paragraph, above the share row. */
.article-action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.article-action .btn {
  min-width: 220px;
}

/* The button is its own block, so it must not pick up the red inline-link
   colour or underline from .article-body a. */
.article-body .article-action a {
  color: var(--color-white);
  text-decoration: none;
}

.article-share {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-navy-25);
  flex-wrap: wrap;
}

.article-share__label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
  max-width: none;
}

.article-share .social-link {
  border-color: var(--color-navy-25);
  color: var(--color-navy);
  width: 48px;
  height: 48px;
}

.article-share .social-link--facebook:hover  { background: #1877f2; color: var(--color-white); border-color: transparent; }
.article-share .social-link--instagram:hover { background: #dc2743; color: var(--color-white); border-color: transparent; }

.article-back-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  text-decoration: none;
  margin-top: var(--space-2xl);
  transition: color var(--transition);
}

.article-back-footer:hover { color: var(--color-red); }

/* =========================================================
   RELATED ARTICLES
   ========================================================= */
.article-related {
  background: var(--color-off-white);
  padding: var(--space-3xl) var(--gutter);
}

.article-related__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.article-related__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--space-xl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.related-card {
  background: var(--color-white);
  overflow: hidden;
  border: 1px solid var(--color-navy-25);
  transition: box-shadow 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.related-card:hover {
  box-shadow: 0 6px 24px rgba(4,51,108,0.1);
  transform: translateY(-2px);
}

.related-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-navy-25);
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-smooth);
}

.related-card:hover .related-card__img img { transform: scale(1.04); }

.related-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.related-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  line-height: 1.2;
}

.related-card__title a {
  color: inherit;
  text-decoration: none;
}

.related-card__title a:hover { color: var(--color-red); }

.related-card__body time {
  font-size: var(--fs-xs);
  color: var(--color-grey);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .news-featured {
    grid-template-columns: 1fr 360px;
  }
}

@media (max-width: 900px) {
  .hero--news .hero__grid {
    grid-template-columns: 1fr;
    padding-top: var(--header-height-mobile);
  }

  .hero--news .hero__panel {
    grid-column: 1 / -1;
    margin: 24vh 0 0 auto;
    padding: var(--space-xl) var(--space-lg);
    min-height: auto;
    width: 80%;
    max-width: 380px;
  }

  .hero--news .hero__body { display: none; }

  .news-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .news-featured__img { aspect-ratio: 16 / 7; }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card--wide {
    grid-column: span 2;
    flex-direction: column;
  }

  .news-card--wide .news-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .social-strip__inner { flex-direction: column; align-items: flex-start; }
  .enquiry-strip__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero--news .hero__panel {
    width: 85%;
    padding: var(--space-lg);
  }

  .hero--news .hero__title {
    font-size: 1.9rem;
    margin-bottom: var(--space-md);
  }

  .news-spotlight,
  .news-index {
    padding: var(--space-2xl) var(--gutter-mobile);
  }

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

  .news-card--wide {
    grid-column: span 1;
  }

  .related-grid { grid-template-columns: 1fr; }

  .article-hero { height: 45vh; }

  .article-hero__inner { padding: var(--space-xl) var(--gutter-mobile); }

  .article-wrap {
    padding: var(--space-2xl) var(--gutter-mobile);
  }

  .article-related { padding: var(--space-2xl) var(--gutter-mobile); }

  .social-strip { padding: var(--space-2xl) var(--gutter-mobile); }

  .enquiry-strip { padding: var(--space-2xl) var(--gutter-mobile); }

  .enquiry-strip__actions { width: 100%; }
  .enquiry-strip__actions .btn { flex: 1; text-align: center; min-width: 120px; }
}
