/* ─────────────────────────────────────────────
   RESET AND BASE
───────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   TOP NAVIGATION
───────────────────────────────────────────── */

body > header {
  background: #fff;
  color: #b00020;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body > header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b00020;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

body > header .logo img {
  width: auto;
  height: 120px;
}

body > header .logo span {
  color: #b00020;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: #b00020;
  margin-left: 1.5rem;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover,
nav a:focus {
  color: #750217;
  text-decoration: underline;
}

nav a[aria-current="page"] {
  font-weight: 700;
}


/* ─────────────────────────────────────────────
   INDIVIDUAL NEWS ARTICLE
───────────────────────────────────────────── */

.article-page {
  min-height: 70vh;
  background: #fff;
  color: #333;
  padding: 4rem 2rem;
}

.article {
  max-width: 820px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: #b00020;
  margin-bottom: 2rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus {
  color: #750217;
  text-decoration: underline;
}

/*
  This is the header inside the article.
  It is separate from the navigation header.
*/

.article-header {
  display: block;
  position: static;
  height: auto;
  background: transparent;
  color: #333;
  padding: 0 0 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 3px solid #b00020;
  box-shadow: none;
}

.article-date {
  color: #777;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/*
  ARTICLE TITLE SIZE

  Change this font-size if you want the title
  to be larger or smaller.
*/

.article h1 {
  color: #b00020;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article .lead {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-body h2 {
  color: #b00020;
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.article-body h3 {
  color: #750217;
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.article-body p {
  color: #444;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  color: #444;
  margin: 0 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body a {
  color: #b00020;
  font-weight: 600;
}

.article-body a:hover,
.article-body a:focus {
  color: #750217;
}

.article-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem 0 0.75rem;
  border-radius: 8px;
}

.image-caption {
  color: #777;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  line-height: 1.5;
}


/* ─────────────────────────────────────────────
   PUBLICATION OR INFORMATION BOX
───────────────────────────────────────────── */

.publication-box {
  background: #f7f7f7;
  border-left: 4px solid #b00020;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.publication-box h2 {
  margin-top: 0;
}

.publication-box p:last-child {
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────
   COMPLETE NEWS ARCHIVE
───────────────────────────────────────────── */

.news-archive-page {
  min-height: 70vh;
  background: #fff;
  color: #333;
}

.news-archive-header {
  background: linear-gradient(
    135deg,
    #750217 0%,
    #b00020 60%,
    #750217 100%
  );
  color: #fff;
  padding: 4rem 2rem;
}

.news-archive-header-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.news-archive-header .section-label {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-archive-header h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
}

.news-archive-header p {
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.news-archive {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.news-year {
  margin-bottom: 4rem;
}

.news-year:last-child {
  margin-bottom: 0;
}

.news-year-heading {
  color: #b00020;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #b00020;
  font-size: 2rem;
}

.news-year-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  );
  gap: 1.5rem;
}

.archive-news-item {
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  border-top: 4px solid #b00020;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.archive-news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.archive-news-date {
  color: #777;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.archive-news-item h2 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.archive-news-item h2 a {
  color: #b00020;
  text-decoration: none;
}

.archive-news-item h2 a:hover,
.archive-news-item h2 a:focus {
  color: #750217;
  text-decoration: underline;
}

.archive-news-item p {
  color: #555;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.read-more-link {
  color: #b00020;
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
}

.read-more-link:hover,
.read-more-link:focus {
  color: #750217;
  text-decoration: underline;
}

.loading-message,
.error-message {
  color: #555;
}


/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */

footer {
  background: #750217;
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer .contact-info {
  margin-bottom: 0.75rem;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}


/* ─────────────────────────────────────────────
   TABLETS AND MOBILE DEVICES
───────────────────────────────────────────── */

@media (max-width: 750px) {
  body > header {
    position: static;
    height: auto;
    padding: 1rem;
    flex-direction: column;
  }

  body > header .logo img {
    height: 80px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  nav a {
    margin-left: 0;
    font-size: 1rem;
  }

  .article-page {
    padding: 2.5rem 1.25rem;
  }

  .article h1 {
    font-size: 1.5rem;
  }

  .news-archive-header {
    padding: 3rem 1.25rem;
  }

  .news-archive {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 650px) {
  .news-year-grid {
    grid-template-columns: 1fr;
  }

  .news-year-heading {
    font-size: 1.7rem;
  }

  .archive-news-item {
    padding: 1.25rem;
  }
}
