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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #202735;
  background: #f5f6f8;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: #111c32;
  color: white;
  padding: 9px 6%;
  font-size: 12px;
}

.topbar-logo {
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-block;
}

.topbar-logo:hover {
  opacity: 0.8;
}

.header {
  background: white;
  padding: 24px 6%;
  border-bottom: 1px solid #e5e7eb;
}

.brand {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #142747;
}

.tagline {
  font-size: 11px;
  letter-spacing: 2px;
  color: #687386;
}

nav {
  background: #142747;
  color: white;
  padding: 0 6%;
  display: flex;
  flex-wrap: wrap;
}

nav a {
  padding: 15px 17px;
  font-size: 13px;
  font-weight: bold;
}

nav a:hover,
nav a.active {
  background: #263d62;
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.page-banner {
  background: #142747;
  color: white;
  padding: 45px 35px;
  border-radius: 5px;
  margin-bottom: 35px;
}

.page-banner small {
  color: #f0a29c;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-banner h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  margin: 10px 0;
}

.page-banner p {
  color: #d6deeb;
  max-width: 650px;
}

.section-title {
  font-size: 21px;
  border-left: 5px solid #d7473f;
  padding-left: 12px;
  margin-bottom: 20px;
}

.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.story-image {
  height: 175px;
  background: #e1e5eb;
  display: grid;
  place-items: center;
  color: #687386;
  font-size: 13px;
}

.story-content {
  padding: 18px;
}

.category {
  color: #c4433b;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.story h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.35;
}

.story p {
  color: #687386;
  font-size: 13px;
}

.info-panel {
  background: white;
  padding: 30px;
  border: 1px solid #e5e7eb;
  margin-bottom: 25px;
}

footer {
  background: #111c32;
  color: white;
  padding: 40px 6%;
  margin-top: 50px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0;
  font-size: 13px;
}

footer p {
  color: #b9c3d2;
  font-size: 12px;
}

/* Entertainment visual identity */

body.entertainment {
  background: #faf7ff;
}

.entertainment .topbar {
  background: #3e205f;
}

.entertainment .brand {
  color: #642c91;
}

.entertainment nav {
  background: #642c91;
}

.entertainment nav a:hover,
.entertainment nav a.active {
  background: #8249b3;
}

.entertainment .page-banner {
  background: linear-gradient(120deg, #642c91, #9872d3);
  border-radius: 12px;
}

.entertainment .page-banner small {
  color: #ffe58c;
}

.entertainment .section-title {
  border-color: #e88ab9;
}

.entertainment .category {
  color: #8b45b5;
}

.entertainment .story {
  border-radius: 10px;
}

.entertainment .story:nth-child(4n+1) .story-image {
  background: #f6b9d9;
}

.entertainment .story:nth-child(4n+2) .story-image {
  background: #b9dfff;
}

.entertainment .story:nth-child(4n+3) .story-image {
  background: #ffe58c;
}

.entertainment .story:nth-child(4n) .story-image {
  background: #d8c5f5;
}

.entertainment footer {
  background: #3e205f;
}

@media (max-width: 750px) {
  .stories {
    grid-template-columns: repeat(2, 1fr);
  }

  nav a {
    padding: 12px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .stories {
    grid-template-columns: 1fr;
  }

  .page-banner {
    padding: 35px 22px;
  }

  .brand {
    font-size: 27px;
  }
    }

.news-header {
  text-align: center;
}

.news-brand {
  font-size: 32px;
  color: #142747;
  letter-spacing: 1px;
}

.news-header .tagline {
  margin-top: 4px;
}

.article-container {
  max-width: 900px;
  margin: 35px auto;
  padding: 0 20px;
}

.article-category {
  color: #c4433b;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.article-title {
  color: #142747;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-summary {
  font-size: 18px;
  color: #687386;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 12px;
  color: #687386;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 18px;
  margin-bottom: 25px;
}

.article-meta span {
  margin-right: 15px;
}

.article-hero {
  margin-bottom: 25px;
}

.article-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.article-caption {
  color: #687386;
  font-size: 12px;
  margin-top: 8px;
}

.article-body {
  color: #283243;
  font-size: 17px;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2 {
  color: #142747;
  font-size: 25px;
  margin: 32px 0 15px;
}

.article-body h3 {
  color: #142747;
  font-size: 20px;
  margin: 25px 0 12px;
}

.article-body a {
  color: #bd4039;
  text-decoration: underline;
}

.article-body blockquote {
  border-left: 4px solid #d7473f;
  padding: 12px 20px;
  margin: 25px 0;
  background: #f0f2f5;
  color: #4b5563;
}

.article-sources {
  margin-top: 40px;
  padding: 22px;
  background: white;
  border: 1px solid #e5e7eb;
}

.article-sources h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #142747;
}

.article-sources ul {
  padding-left: 22px;
}

.article-sources li {
  margin-bottom: 8px;
}

.related-articles {
  margin-top: 40px;
}

@media (max-width: 600px) {
  .article-container {
    margin: 25px auto;
  }

  .article-body {
    font-size: 16px;
  }

  .article-summary {
    font-size: 16px;
  }
  }

.story-link {
  display: block;
  height: 100%;
}

.story-link:hover h3 {
  color: #bd4039;
}

.story-image {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
  background: #e1e5eb;
}

.article-card-date {
  margin-top: 12px;
  font-size: 11px !important;
  color: #87909e !important;
}

.article-loading-error {
  grid-column: 1 / -1;
  padding: 25px;
  background: white;
  color: #687386;
  text-align: center;
  border: 1px solid #e5e7eb;
}


/* Shared article page template */
.article-site-header .brand { font-size: 27px; }
.article-container { max-width: 900px; margin: 34px auto; padding: 0 22px; }
.article-back { display: inline-block; color: #53647d; font-size: 13px; font-weight: bold; margin-bottom: 18px; }
.article-back:hover { text-decoration: underline; }
.article-heading { background: #fff; padding: 0 0 22px; border-bottom: 1px solid #e5e7eb; margin-bottom: 22px; }
.article-heading .article-category { margin-bottom: 10px; }
.article-heading .article-title { color: #142747; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; overflow-wrap: anywhere; }
.article-heading .article-meta { color: #687386; font-size: 13px; margin-top: 16px; }
.article-summary { color: #687386; font-size: 18px; line-height: 1.65; margin: 0 0 24px; }
.article-hero { margin: 0 0 28px; }
.article-hero img { display: block; width: 100%; max-height: 540px; object-fit: cover; }
.article-body { background: #fff; color: #283243; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { color: #142747; font-size: 26px; line-height: 1.3; margin: 34px 0 14px; }
.article-body h3 { color: #142747; font-size: 21px; margin: 28px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px 25px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 4px solid #d7473f; padding: 12px 20px; margin: 25px 0; background: #f0f2f5; color: #4b5563; }
.article-body a, .article-sources a { color: #bd4039; text-decoration: underline; }
.article-body hr { border: 0; border-top: 1px solid #e5e7eb; margin: 28px 0; }
.article-sources { background: white; border: 1px solid #e5e7eb; padding: 22px; margin-top: 38px; }
.article-sources h2 { color: #142747; font-size: 19px; margin-bottom: 12px; }
.article-sources ul { padding-left: 22px; }
.article-sources li { margin-bottom: 8px; }
.article-loading { padding: 30px; color: #687386; }
.article-entertainment { background: #fff; }
.article-entertainment .article-site-header .brand { color: #642c91; }
.article-entertainment .article-heading-entertainment {
  border: 0; border-radius: 8px; padding: 25px 28px 20px; margin-bottom: 25px;
  background: linear-gradient(90deg, #b9dfff 0%, #b9dfff 25%, #ffe58c 25%, #ffe58c 50%, #f6b9d9 50%, #f6b9d9 75%, #d8c5f5 75%, #d8c5f5 100%);
}
.article-entertainment .article-heading-entertainment .article-category { color: #56316f; }
.article-entertainment .article-heading-entertainment .article-title { color: #25213a; }
.article-entertainment .article-heading-entertainment .article-meta { color: #51465d; border: 0; padding: 0; margin: 12px 0 0; }
.article-entertainment .article-body { background: #fff; }
@media (max-width: 600px) {
  .article-container { margin: 24px auto; padding: 0 16px; }
  .article-body { font-size: 16px; }
  .article-summary { font-size: 16px; }
  .article-entertainment .article-heading-entertainment { padding: 20px 18px 17px; }
}

.eeg-news-masthead-logo {
  display: block;
  width: min(100%, 420px);
  max-height: 130px;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .eeg-news-masthead-logo {
    width: min(90%, 320px);
    max-height: 100px;
  }
    }
