/* ============================================================
   news.css — Missahoe Montessori School
   Ultra-modern professional news page
   Uniform with about / programs / gallery design system
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: #2d2d2d; background: #ffffff;
  line-height: 1.65; overflow-x: hidden;
}
a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

:root {
  --teal:    #58d4f0;
  --gold:    #cfa900;
  --gold-dk: #a88200;
  --dark:    #0b3d2e;
  --text:    #555;
  --light:   #f7fbfd;
  --radius:  16px;
  --shadow:  0 8px 32px rgba(0,0,0,0.08);
  --header-h: 70px;
}

.container { width: 92%; max-width: 1180px; margin: 0 auto; }

/* ─────────────────────────────────────────────
   HEADER  (identical to about / programs / gallery)
───────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(88,212,240,0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(88,212,240,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; width: 92%; max-width: 1180px; margin: 0 auto;
  gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img  { width: 48px; height: 48px; object-fit: contain; }
.logo-name { display: block; font-size: 1rem; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.logo-tag  { display: block; font-size: 0.7rem; color: #333; }
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  font-size: 0.9rem; font-weight: 500; color: #222;
  padding: 6px 10px; border-radius: 6px; transition: color 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--gold-dk); }
.btn-enroll {
  background: var(--gold) !important; color: #fff !important;
  padding: 8px 18px !important; border-radius: 8px !important;
  font-weight: 600 !important; transition: background 0.2s !important;
}
.btn-enroll:hover { background: var(--gold-dk) !important; }

/* ─────────────────────────────────────────────
   HAMBURGER  — hidden on desktop, shown on tablet/mobile
───────────────────────────────────────────── */
.hamburger {
  display: none;            /* hidden by default on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.2);
  border: none; border-radius: 9px;
  cursor: pointer; padding: 8px;
  margin-left: auto;        /* push to far right when visible */
  flex-shrink: 0;
  z-index: 1100;
  transition: background 0.25s;
}
.hamburger:hover { background: rgba(207,169,0,0.2); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #1a1a1a; border-radius: 3px;
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1), opacity 0.25s, width 0.25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   DRAWER
───────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
  z-index: 1050; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; right: 0;
  width: 300px; max-width: 85vw; height: 100vh;
  background: #fff; z-index: 1100;
  display: flex; flex-direction: column;
  padding: 0 0 30px;
  box-shadow: -6px 0 40px rgba(0,0,0,0.14);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.23,1,0.32,1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.drawer-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 24px 20px; border-bottom: 1px solid #f0f0f0; margin-bottom: 10px;
}
.drawer-brand img  { width: 38px; }
.drawer-brand span { font-weight: 700; font-size: 0.95rem; color: #1a1a1a; }
.nav-drawer a {
  display: block; padding: 13px 24px;
  font-size: 0.97rem; font-weight: 500; color: #333;
  opacity: 0; transform: translateX(16px);
  transition: background 0.2s, color 0.2s, opacity 0.35s, transform 0.35s, padding-left 0.2s;
}
.nav-drawer.open a               { opacity: 1; transform: translateX(0); }
.nav-drawer.open a:nth-child(2)  { transition-delay: 0.06s; }
.nav-drawer.open a:nth-child(3)  { transition-delay: 0.10s; }
.nav-drawer.open a:nth-child(4)  { transition-delay: 0.14s; }
.nav-drawer.open a:nth-child(5)  { transition-delay: 0.18s; }
.nav-drawer.open a:nth-child(6)  { transition-delay: 0.22s; }
.nav-drawer.open a:nth-child(7)  { transition-delay: 0.26s; }
.nav-drawer.open a:nth-child(8)  { transition-delay: 0.30s; }
.nav-drawer a:hover               { background: #f5fbfe; color: var(--gold); padding-left: 30px; }
.nav-drawer a.active              { color: var(--gold); font-weight: 600; background: rgba(207,169,0,0.07); }
.drawer-enroll {
  margin: 14px 24px 0 !important; padding: 13px 24px !important;
  background: var(--gold) !important; color: #fff !important;
  border-radius: 10px !important; text-align: center !important; font-weight: 600 !important;
}
.drawer-enroll:hover { background: var(--gold-dk) !important; padding-left: 24px !important; }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative; height: 88vh; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: var(--header-h);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,61,46,0.75) 0%, rgba(0,0,0,0.48) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff; padding: 0 24px; max-width: 760px;
}
.hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700;
  line-height: 1.12; margin: 14px 0 18px; letter-spacing: -0.01em;
}
.hero-content h1 em { font-style: italic; color: var(--gold); }
.hero-content p {
  font-size: clamp(0.97rem, 1.8vw, 1.13rem); opacity: 0.88; margin-bottom: 28px;
}
.hero-meta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero-meta-pill {
  background: rgba(255,255,255,0.13); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 50px;
  padding: 8px 20px; font-size: 0.82rem; color: rgba(255,255,255,0.92);
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.65); font-size: 0.72rem; z-index: 2;
  animation: bounceY 2.4s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,0.5); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: rgba(255,255,255,0.8); border-radius: 3px;
  animation: wheelSpin 1.8s ease-in-out infinite;
}
@keyframes wheelSpin { 0%,100%{opacity:1;transform:translateY(0)} 50%{opacity:0;transform:translateY(8px)} }
@keyframes bounceY  { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-6px)} }

/* ─────────────────────────────────────────────
   BADGES
───────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 10px;
}
.badge-gold     { background: rgba(207,169,0,0.18); color: #a88200; }
.badge-gold-inv { background: rgba(207,169,0,0.28); color: #f0c840; }
.badge-teal     { background: rgba(88,212,240,0.16); color: #0a8faa; }

/* ─────────────────────────────────────────────
   BREAKING TICKER
───────────────────────────────────────────── */
.breaking-bar {
  background: var(--dark); color: #fff;
  height: 50px; display: flex; align-items: center;
  position: relative; z-index: 50;
}
.breaking-inner {
  display: flex; align-items: center;
  height: 100%; gap: 0; width: 100%;
}
.breaking-label {
  background: var(--gold); color: #fff;
  padding: 0 30px 0 22px; height: 100%;
  display: flex; align-items: center;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.ticker-wrap {
  overflow: hidden; flex: 1; height: 100%;
  display: flex; align-items: center;
  padding-left: 20px;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}
.ticker-content {
  white-space: nowrap; font-size: 0.85rem;
  animation: ticker 28s linear infinite;
  display: inline-block; color: rgba(255,255,255,0.88);
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ─────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────── */
.section     { padding: 78px 0; }
.section-alt { background: var(--light); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--dark); margin: 8px 0 12px; letter-spacing: -0.01em;
}
.section-header p { color: var(--text); max-width: 520px; margin: 0 auto; font-size: 0.97rem; }

/* ─────────────────────────────────────────────
   FEATURED CARD
───────────────────────────────────────────── */
.featured-section { background: #fff; }
.featured-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,0.10);
  background: #fff;
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1), box-shadow 0.45s ease;
}
.featured-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.14);
}

.featured-image {
  position: relative; overflow: hidden; min-height: 500px;
}
.featured-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23,1,0.32,1);
}
.featured-card:hover .featured-image img { transform: scale(1.06); }
/* Gradient on image bottom */
.featured-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,61,46,0.45) 0%, transparent 55%);
  pointer-events: none;
}

.featured-badges {
  position: absolute; top: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; z-index: 2;
}
.feat-cat-badge {
  background: rgba(11,61,46,0.88); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 50px;
  backdrop-filter: blur(5px);
}
.feat-flash-badge {
  background: var(--gold); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 5px 13px; border-radius: 50px;
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(207,169,0,0.55); }
  50%     { box-shadow: 0 0 0 9px rgba(207,169,0,0); }
}

.featured-body {
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.featured-meta-row {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.news-date    { font-size: 0.78rem; color: #999; font-weight: 500; }
.reading-time { font-size: 0.75rem; color: #bbb; }

.featured-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 700;
  color: var(--dark); line-height: 1.22; margin-bottom: 14px; letter-spacing: -0.01em;
}
.featured-subtitle {
  font-size: 0.9rem; font-weight: 600; color: var(--gold-dk);
  margin-bottom: 16px; line-height: 1.5;
}
.featured-text {
  font-size: 0.92rem; color: var(--text); line-height: 1.75; margin-bottom: 22px;
}
.featured-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.tag {
  background: #f3f3f3; color: #555;
  font-size: 0.72rem; font-weight: 600;
  padding: 5px 12px; border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}
.tag:hover { background: rgba(207,169,0,0.12); color: var(--gold-dk); }

.btn-feature-read {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--dark); color: #fff;
  padding: 13px 28px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  width: fit-content; border: 2px solid transparent;
}
.btn-arrow { transition: transform 0.25s; }
.btn-feature-read:hover {
  background: var(--gold); transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(207,169,0,0.35);
}
.btn-feature-read:hover .btn-arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────
   NEWS GRID
───────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Card */
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s ease;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.13);
}

/* Gold top accent line on flash cards */
.news-flash::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  z-index: 1;
}
.news-flash { border: 1px solid rgba(207,169,0,0.2); }

/* Image */
.card-img-wrap {
  position: relative; height: 240px; overflow: hidden; flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.news-card:hover .card-img-wrap img { transform: scale(1.07); }
.card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.card-cat {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  background: rgba(11,61,46,0.88); color: #fff; backdrop-filter: blur(4px);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 50px;
}

/* Body */
.card-body {
  padding: 24px 26px 26px; flex: 1;
  display: flex; flex-direction: column;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 6px;
}
.flash-pill {
  background: rgba(207,169,0,0.1); color: var(--gold-dk);
  font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 50px;
  animation: glowPulse 2s ease-in-out infinite;
}
.card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem; font-weight: 700;
  color: var(--dark); line-height: 1.3; margin-bottom: 12px;
}
.card-body p {
  font-size: 0.875rem; color: var(--text); line-height: 1.7; flex: 1;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0;
}
.read-more-link {
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.2s, gap 0.25s;
}
.read-more-link span { transition: transform 0.25s; }
.read-more-link:hover { color: var(--gold-dk); gap: 9px; }
.read-more-link:hover span { transform: translateX(3px); }

/* ─────────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────────── */
.newsletter-section { padding: 50px 0 80px; }
.newsletter-card {
  background: linear-gradient(135deg, var(--dark) 0%, #1a6b4a 100%);
  border-radius: 22px; padding: 58px 54px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 44px;
  box-shadow: 0 24px 70px rgba(11,61,46,0.22);
  overflow: hidden; position: relative;
}
.nl-deco {
  position: absolute; right: -24px; top: -36px;
  font-size: 12rem; opacity: 0.04; pointer-events: none;
  transform: rotate(10deg); line-height: 1;
  user-select: none;
}
.nl-text .badge-gold-inv { background: rgba(207,169,0,0.25); color: #f0c840; }
.nl-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700;
  color: #fff; margin: 10px 0 14px;
}
.nl-text p { color: rgba(255,255,255,0.75); font-size: 0.97rem; max-width: 440px; }
.nl-action { text-align: center; flex-shrink: 0; }
.btn-subscribe {
  display: inline-block;
  background: var(--gold); color: #fff;
  padding: 15px 30px; border-radius: 50px;
  font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  border: 2px solid transparent;
}
.btn-subscribe:hover {
  background: #f0c840; color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(207,169,0,0.45);
}
.nl-note { font-size: 0.76rem; color: rgba(255,255,255,0.42); margin-top: 12px; }

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
[data-animate] { opacity: 0; transition: opacity 0.72s ease, transform 0.72s ease; }
[data-animate="fade-up"]    { transform: translateY(42px); }
[data-animate="fade-left"]  { transform: translateX(-46px); }
[data-animate="fade-right"] { transform: translateX(46px); }
[data-animate].animated     { opacity: 1; transform: translate(0, 0); }
.news-grid [data-animate].animated:nth-child(2) { transition-delay: 0.13s; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  background: #1c1c1c; color: #bbb;
  padding: 28px 0; text-align: center; font-size: 0.88rem;
}

/* ─────────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px; background: var(--gold); color: #fff;
  border: none; border-radius: 50%; font-size: 1.15rem;
  cursor: pointer; z-index: 999;
  box-shadow: 0 4px 18px rgba(207,169,0,0.42);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
#back-to-top.show  { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--gold-dk); }

/* ═══════════════════════════════════════════
   TABLET (≤ 960px)
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-desktop { display: none !important; }
  .hamburger   { display: flex !important; }

  .featured-card { grid-template-columns: 1fr; }
  .featured-image { min-height: 340px; }
  .featured-body  { padding: 34px 30px; }

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

  .newsletter-card { grid-template-columns: 1fr; padding: 42px 34px; gap: 28px; }
  .nl-action { width: 100%; }
  .btn-subscribe { width: 100%; text-align: center; padding: 16px; display: block; }
}

/* ═══════════════════════════════════════════
   MOBILE (≤ 600px)
═══════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --header-h: 62px; }
  .logo-tag { display: none; }

  .hero { height: 76vh; min-height: 430px; }
  .hero-meta { flex-direction: column; align-items: center; gap: 8px; }

  .section { padding: 52px 0; }
  .section-header { margin-bottom: 36px; }

  .breaking-bar   { height: 44px; }
  .breaking-label { padding: 0 14px; clip-path: none; font-size: 0.68rem; }

  .featured-image { min-height: 240px; }
  .featured-body  { padding: 26px 22px; }
  .featured-body h2 { font-size: 1.4rem; }

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

  .newsletter-card { padding: 32px 22px; border-radius: 16px; }
  .nl-text h2 { font-size: 1.5rem; }

  #back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; font-size: 1rem; }
}

/* ═══════════════════════════════════════════
   VERY SMALL (≤ 380px)
═══════════════════════════════════════════ */
@media (max-width: 380px) {
  .logo-name      { font-size: 0.88rem; }
  .hero-content h1{ font-size: 1.9rem; }
  .btn-subscribe  { font-size: 0.82rem; padding: 13px 18px; }
}
