:root {
  --brand-navy: #1e4b82;
  --brand-teal: #268b97;
  --brand-green: #4aad82;
  --brand-red: #db242a;
  --brand-charcoal: #504a45;
  --brand-paper: #fcf9f4;
  --brand-white: #ffffff;
  --ink: #182334;
  --muted: #697483;
  --line: #d9e2ec;
  --soft: #f5f8fb;
  --shadow: 0 16px 34px rgba(30, 75, 130, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--brand-paper);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(30, 75, 130, 0.14);
  background: rgba(252, 249, 244, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

.news-topbar {
  min-height: 92px;
}

.brand img {
  display: block;
  width: min(330px, 52vw);
  height: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.news-word {
  flex: 1;
  color: var(--brand-navy);
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.topnav a {
  color: var(--brand-navy);
  font-weight: 800;
  text-decoration: none;
}

.hero {
  padding: clamp(28px, 5vw, 68px) clamp(18px, 4vw, 48px) 24px;
  background:
    linear-gradient(135deg, rgba(38, 139, 151, 0.12), rgba(74, 173, 130, 0.12)),
    var(--brand-paper);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  color: var(--brand-navy);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 830px;
  margin: 18px 0 0;
  color: var(--brand-charcoal);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 22px clamp(18px, 4vw, 48px);
  background: var(--brand-white);
  border-block: 1px solid var(--line);
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-white);
  color: var(--brand-navy);
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  color: var(--brand-white);
  border-color: var(--brand-navy);
  background: var(--brand-navy);
}

.news-wrap {
  padding: 28px clamp(18px, 4vw, 48px) 110px;
}

.masonry {
  column-count: 4;
  column-gap: 18px;
}

.article-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-white);
  box-shadow: var(--shadow);
  text-decoration: none;
  break-inside: avoid;
}

.article-card.hidden { display: none; }

.article-card img.article-image {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  background: var(--soft);
}

.article-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.source img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.category {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--brand-navy);
  background: rgba(38, 139, 151, 0.13);
  font-size: 12px;
  font-weight: 800;
}

.article-card h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.1;
  letter-spacing: 0;
}

.article-card p {
  margin: 0;
  color: var(--brand-charcoal);
  line-height: 1.45;
}

.date {
  color: var(--muted);
  font-size: 13px;
}

.powered-by {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px clamp(18px, 4vw, 48px) 84px;
  border-top: 1px solid rgba(30, 75, 130, 0.14);
  background: var(--brand-white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.powered-by img {
  display: block;
  max-width: 150px;
  max-height: 34px;
  object-fit: contain;
}

.bottom-marquee {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
  color: var(--brand-white);
  background: var(--brand-navy);
  box-shadow: 0 -12px 32px rgba(24, 35, 52, 0.22);
}

.marquee-track {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}

.book-now {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--brand-navy);
  background: var(--brand-white);
  font-weight: 900;
  text-decoration: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 1280px) {
  .masonry { column-count: 3; }
}

@media (max-width: 860px) {
  .masonry { column-count: 2; }
}

@media (max-width: 620px) {
  .topbar,
  .bottom-marquee {
    align-items: flex-start;
  }

  .news-word {
    order: 3;
    width: 100%;
    text-align: left;
  }

  .masonry { column-count: 1; }

  .bottom-marquee {
    grid-template-columns: 1fr;
  }
}
