/* ============================================================
   MGM PUBLIC SCHOOL — NEWS.CSS
   News page sections: Banner · News Layout · Articles · Sidebar
   ============================================================ */

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.88) contrast(1.06);
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,31,58,0.65) 0%,
    rgba(11,31,58,0.88) 100%);
  z-index: 1;
}
.page-banner-overlay::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201,162,39,0.3);
  pointer-events: none;
}
.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-banner-h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-banner-sub {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.breadcrumb a { color: var(--gold-bright); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.6rem; }

/* ============================================================
   NEWS LAYOUT
   ============================================================ */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* ── Articles ── */
.news-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-article {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.news-article:last-child { border-bottom: none; }
.news-article::before {
  content: '';
  position: absolute;
  left: -48px; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.news-article:hover::before { transform: scaleY(1); }

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.news-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-date i { color: var(--gold); font-size: 0.65rem; }

/* Tags */
.news-tag {
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  color: var(--white);
  background: var(--navy);
}
.news-tag--spiritual  { background: #4A3060; }
.news-tag--environment { background: #2E7D52; }
.news-tag--event      { background: var(--navy); }

.news-article-title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 18px;
}
.news-article-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}
.news-article-img {
  margin-bottom: 20px;
}
.news-article-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--navy);
}
.news-article p {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.9;
}

/* Strapi Blocks rich text (headings, lists, quotes, code, images, links) */
.news-article-body > * + * { margin-top: 14px; }
.news-article-body h1,
.news-article-body h2,
.news-article-body h3,
.news-article-body h4,
.news-article-body h5,
.news-article-body h6 {
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.news-article-body ul,
.news-article-body ol {
  padding-left: 22px;
  color: var(--slate);
  font-family: var(--ff-body);
  line-height: 1.9;
}
.news-article-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  font-style: italic;
  color: var(--slate);
}
.news-article-body pre {
  background: var(--parchment);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.88rem;
}
.news-article-body img {
  width: 100%;
  border: 1px solid var(--navy);
}
.news-article-body a {
  color: var(--gold);
  text-decoration: underline;
}
.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--ff-ui);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: var(--transition);
}
.news-back-link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ── Sidebar ── */
.news-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-widget {
  border: 1px solid var(--border-light);
  border-bottom: none;
  background: var(--white);
}
.sidebar-widget:last-child { border-bottom: 1px solid var(--border-light); }
.sidebar-widget--navy {
  background: var(--navy);
  border-color: rgba(255,255,255,0.1);
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--parchment);
}
.sidebar-widget-header--light {
  background: rgba(255,255,255,0.05);
  border-bottom-color: rgba(255,255,255,0.1);
}
.sidebar-widget-header i {
  color: var(--gold);
  font-size: 0.9rem;
}
.sidebar-widget-header--light i { color: var(--gold-bright); }
.sidebar-widget-header h4 {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--navy);
}
.sidebar-widget-header--light h4 { color: var(--white); }

/* Sidebar links (article nav) */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
}
.sidebar-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px;
  font-family: var(--ff-body);
  font-size: 0.87rem;
  color: var(--navy);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover {
  background: var(--parchment);
  border-left-color: var(--gold);
  color: var(--navy);
}
.sidebar-link-tag {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  color: var(--white);
  width: fit-content;
}
.sidebar-link-tag.spiritual   { background: #4A3060; }
.sidebar-link-tag.environment { background: #2E7D52; }
.sidebar-link-tag.event       { background: var(--navy); }

/* Sidebar contact CTA */
.sidebar-widget--navy .sidebar-widget-header,
.sidebar-widget--navy > p { /* handled inline */ }

.sidebar-widget--navy > * { padding-left: 20px; padding-right: 20px; }
.sidebar-widget--navy .sidebar-widget-header { padding: 16px 20px; }

.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px 24px;
  background: var(--gold);
  color: var(--navy);
  padding: 11px 22px;
  font-family: var(--ff-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: var(--transition);
}
.sidebar-cta-btn:hover {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* Sidebar facts */
.sidebar-fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-fact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-fact-list li:last-child { border-bottom: none; }
.sidebar-fact-list li span {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.sidebar-fact-list li strong {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy);
  border-top: 1px solid var(--gold);
  padding: 64px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  max-width: 500px;
}
.cta-band h2 span { color: var(--gold-bright); font-style: italic; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .news-layout { grid-template-columns: 1fr; gap: 40px; }
  .news-sidebar { position: static; }
  .sidebar-links { flex-direction: row; flex-wrap: wrap; }
  .sidebar-link  { flex: 1 1 180px; border-bottom: 1px solid var(--border-light); }
}

@media (max-width: 860px) {
  .page-banner        { height: 320px; }
  .news-article::before { display: none; }
  .cta-band-inner     { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .page-banner   { height: 280px; }
  .news-article  { padding: 36px 0; }
  .sidebar-links { flex-direction: column; }
}