/* news.css - styles unique to this page. Shared nav, footer, reset and colours are in base.css. */

/* ============================================
   NEWS & EVENTS PAGE
   ============================================ */

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 460px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.hero-content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fdfdfd;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  width: 90%;
  max-width: 1000px;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  font-weight: 100;
  line-height: 28px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .hero {
    height: 55vh; min-height: 380px;
  }

  .hero-content {
    top: 50%; max-width: 100%;
  }

  .hero-eyebrow {
    font-size: 0.75rem; margin-bottom: 10px;
  }

  .hero-content h1 {
    font-size: 1.7rem; margin-bottom: 14px;
  }

  .hero-content p {
    font-size: 0.8rem; line-height: 20px; margin-bottom: 18px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn,
.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary,
.cta-btn .btn:first-child {
  background-color: var(--brown-mid);
  color: #ffffff;
  border-color: var(--brown-mid);
}

.btn-primary:hover,
.cta-btn .btn:first-child:hover {
  background-color: var(--brown-hover);
  border-color: var(--brown-hover);
}

.btn-outline,
.cta-btn .btn:last-child {
  background-color: transparent;
  color: #ffffff;
  border-color: #f7f7f7;
}

.btn-outline:hover,
.cta-btn .btn:last-child:hover {
  color: var(--brown);
  border-color: #f8fafc;
  background-color: #f8fafc;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--brown);
  border-color: var(--brown);
}

.btn-outline-dark:hover {
  color: #ffffff;
  background-color: var(--brown);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* ============================================
   SECTION HEADINGS / LABELS
   ============================================ */

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-serif);
  color: var(--brown-dark);
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 10px;
  padding: 0 16px;
}

.section-intro h3 {
  color: var(--brown);
  font-size: 2rem;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.section-intro p {
  color: var(--brown);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   FEATURED NEWS
   ============================================ */

.featured-news {
  max-width: 1100px;
  margin: 30px auto 10px;
  padding: 0 16px 40px;
}

.featured-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.featured-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.featured-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold);
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.featured-date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.featured-body h3 {
  font-family: var(--font-serif);
  color: var(--brown-dark);
  font-size: 1.7rem;
  margin-bottom: 14px;
  line-height: 1.25;
}

.featured-body p {
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.7;
  margin-bottom: 22px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  width: fit-content;
  transition: gap 0.2s ease, color 0.2s ease;
}

.read-more:hover {
  gap: 10px;
  color: var(--brown-hover);
}

@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-img {
    min-height: 220px;
  }

  .featured-body {
    padding: 24px 20px;
  }

  .featured-body h3 {
    font-size: 1.35rem;
  }
}

/* ============================================
   NEWS CATEGORY FILTER
   ============================================ */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 4px auto 30px;
  padding: 0 16px;
}

.category-btn {
  background: #ffffff;
  border: 1px solid var(--cream-border);
  color: var(--brown);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: #ffffff;
}

/* ============================================
   NEWS GRID
   ============================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  max-width: 1200px;
  padding: 10px 16px 10px;
  margin: 0 auto;
}

.news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card.is-hidden {
  display: none;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.news-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--brown-mid);
  margin-bottom: 10px;
}

.news-card-body h3 {
  font-family: var(--font-serif);
  color: var(--brown-dark);
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card-body p {
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.news-empty-state {
  text-align: center;
  color: var(--brown-mid);
  font-size: 0.95rem;
  padding: 30px 16px;
  display: none;
}

.news-empty-state.show {
  display: block;
}

/* ============================================
   UPCOMING EVENTS
   ============================================ */

.events-list {
  max-width: 760px;
  margin: 10px auto 40px;
  padding: 0 16px;
  position: relative;
}

.events-list::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cream-border);
}

.event-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 26px;
}

.event-item:last-child {
  padding-bottom: 0;
}

.event-date-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brown);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  z-index: 1;
}

.event-item-body {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 16px 20px;
  flex: 1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.event-item-body h3 {
  color: var(--brown-dark);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.event-item-body p {
  color: var(--brown);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.event-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--brown-mid);
  font-weight: 600;
}

/* ============================================
   SCHOOL ANNOUNCEMENTS
   ============================================ */

.announcement-list {
  list-style: none;
  max-width: 760px;
  margin: 10px auto 40px;
  padding: 0 16px;
}

.announcement-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.announcement-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.announcement-body h3 {
  color: var(--brown-dark);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.announcement-body p {
  color: var(--brown);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.announcement-body a {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.announcement-body a:hover {
  color: var(--brown-hover);
}

/* ============================================
   ACHIEVEMENTS
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 10px 16px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.achievement-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.achievement-card h3 {
  font-family: var(--font-serif);
  color: var(--brown-dark);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.achievement-card p {
  font-size: 0.88rem;
  color: var(--brown);
  line-height: 1.6;
}

/* ============================================
   GALLERY PREVIEW
   ============================================ */

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 10px auto 24px;
  padding: 0 16px;
}

.gallery-preview-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-preview-grid img:hover {
  transform: scale(1.04);
}

.gallery-preview-cta {
  text-align: center;
  margin: 0 auto 40px;
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-band {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  max-width: 720px;
  margin: 10px auto 40px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.newsletter-band h3 {
  font-family: var(--font-serif);
  color: var(--brown-dark);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.newsletter-band p {
  color: var(--brown);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.newsletter-form input[type="email"] {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1px solid #e0d9b0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  flex: 1 1 260px;
  min-width: 0;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-note {
  display: none;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #2f6b3a;
}

.newsletter-note.show {
  display: block;
}

/* ============================================
   CTA BAND
   ============================================ */

.cta-band {
  background: var(--brown);
  color: #ffffff;
  text-align: center;
  padding: 50px 20px;
  margin: 10px 20px 40px;
  border-radius: 14px;
}

.cta-band h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.7;
  color: #f4f1ea;
}

@media (max-width: 768px) {
  .cta-band {
    padding: 36px 16px;
  }

  .cta-band h3 {
    font-size: 1.4rem;
  }
}
