/* ================================================
   FC HANLEY — News Page Styles (news.css)
   Matches site palette:
     Blues:  #004080 (dark)  #0055a4  #0f76dd (mid)
     Gold:   #ffcc00
     Font:   Poppins / Barlow
   ================================================ */


/* ── HERO IMAGE (first section) ─────────────────
   Left as original — uses default styles.css card */


/* ── NEWS CONTAINER (Firebase block) ────────────
   Was: grey/white box. Now: on-brand blue card   */

#newsContainer {
  background: linear-gradient(160deg, #0d6ecf 0%, #004080 100%) !important;
  color: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 28px rgba(0, 40, 100, 0.35) !important;
  max-width: 680px !important;
  margin: 20px auto 28px !important;
  padding: 30px 32px !important;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-section article {
  margin: 50px auto 28px !important;
}

/* Gold shimmer accent line along top */
#newsContainer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffcc00, transparent);
  border-radius: 14px 14px 0 0;
}

#newsContainer > h2 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: 0.01em;
}

#newsList p,
.news-item {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}


/* ── NEWS IMAGE CARDS (static sections) ─────────
   Was: plain/inconsistent. Now: polished cards   */

.content-section:not(.news-background) .news-article,
.content-section:not(.news-background) article {
  background: linear-gradient(160deg, #0d6ecf 0%, #004080 100%);
  border-radius: 14px;
  padding: 20px;
  margin: 50px auto 28px;
  max-width: 680px;
  box-shadow: 0 8px 28px rgba(0, 40, 100, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Gold shimmer on all cards */
.content-section:not(.news-background) .news-article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

.content-section:not(.news-background) .news-article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px 0;
}

/* News images fill the card width */
.content-section:not(.news-background) .news-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.content-section:not(.news-background) .news-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}


/* ── FACEBOOK SECTION ───────────────────────────*/

#facebook.content-section .news-article {
  background: linear-gradient(160deg, #003a70 0%, #002244 100%);
  border: 1px solid rgba(255, 204, 0, 0.2);
}

#facebook.content-section .news-article h2 {
  font-size: 1.4rem;
  color: #ffcc00;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Add Facebook icon before the heading */
#facebook.content-section .news-article h2::before {
  content: 'f';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #1877F2;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Centre the Facebook embed widget */
.fb-page {
  display: block;
  margin: 0 auto;
}


/* ── RESPONSIVE ─────────────────────────────────*/

@media (max-width: 720px) {
  .content-section:not(.news-background) .news-article {
    max-width: 94%;
    padding: 16px;
    margin: 12px auto 20px;
  }

  #newsContainer {
    max-width: 94% !important;
    padding: 22px 18px !important;
    margin: 14px auto 20px !important;
  }
}