/* ================================
   Fresh reusable news design
================================ */

:root {
  --blue-main: #0057b8;
  --blue-dark: #05386b;
  --blue-light: #eaf8ff;
  --green-main: #38d46a;
  --green-soft: #dffbea;
  --text-main: #102a43;
  --text-soft: #52616f;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(0, 50, 120, 0.14);
  --shadow-strong: 0 26px 70px rgba(0, 50, 120, 0.22);
}

/* Main wrapper */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* Hero section */
.news-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
  overflow: hidden;
}

.news-hero::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 212, 106, 0.38), transparent 70%);
  z-index: -1;
}

.news-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 119, 217, 0.24), transparent 70%);
  z-index: -1;
}

.hero-content {
  background:
    linear-gradient(135deg, rgba(0, 87, 184, 0.96), rgba(0, 119, 217, 0.86)),
    radial-gradient(circle at top right, rgba(56, 212, 106, 0.55), transparent 38%);
  color: var(--white);
  border-radius: 34px;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-strong);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(56, 212, 106, 0.18);
  color: var(--green-main);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  background: rgba(5, 56, 107, 0.08);
  color: var(--blue-dark);
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 1.3rem;
}

.hero-text {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--green-main);
  color: var(--blue-dark);
  box-shadow: 0 14px 30px rgba(56, 212, 106, 0.3);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
}

/* Hero side panel */
.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 87, 184, 0.1);
  border-radius: 34px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  background: var(--green-main);
  border-radius: 50%;
  opacity: 0.22;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 2rem;
  top: 2rem;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue-main), var(--green-main));
}

.panel-label {
  position: relative;
  z-index: 1;
  margin-top: 7rem;
  margin-bottom: 1rem;
  color: var(--green-main);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.hero-panel h2 {
  position: relative;
  z-index: 1;
  color: var(--blue-dark);
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-panel p {
  position: relative;
  z-index: 1;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.hero-panel a {
  position: relative;
  z-index: 1;
  color: var(--blue-main);
  font-weight: 800;
  text-decoration: none;
}

/* Topic bar */
.topic-bar {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.topic-chip {
  border: 1px solid rgba(0, 87, 184, 0.14);
  background: var(--white);
  color: var(--blue-dark);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 50, 120, 0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topic-chip:hover,
.topic-chip.active {
  background: var(--green-main);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.news-card {
  position: relative;
  min-height: 290px;
  background: var(--white);
  border: 1px solid rgba(0, 87, 184, 0.09);
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(56, 212, 106, 0.16);
  transition: transform 0.25s ease;
}

.news-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(56, 212, 106, 0.35);
}

.news-card:hover::before {
  transform: scale(1.25);
}

.large-card {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(5, 56, 107, 0.94), rgba(0, 87, 184, 0.86)),
    radial-gradient(circle at top right, rgba(56, 212, 106, 0.5), transparent 40%);
  color: var(--white);
}

.accent-card {
  background: linear-gradient(135deg, var(--green-main), #a6f3bd);
  color: var(--blue-dark);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--blue-main);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.large-card .card-meta,
.large-card p {
  color: rgba(255, 255, 255, 0.78);
}

.news-card h2 {
  position: relative;
  z-index: 1;
  color: var(--blue-dark);
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.large-card h2 {
  color: var(--white);
  max-width: 650px;
}

.news-card p {
  position: relative;
  z-index: 1;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.accent-card p,
.accent-card .card-meta {
  color: rgba(5, 56, 107, 0.75);
}

.card-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: var(--blue-main);
  font-weight: 900;
  text-decoration: none;
}

.large-card .card-link {
  color: var(--green-main);
}

.accent-card .card-link {
  color: var(--blue-dark);
}

/* Impact section */
.impact-section {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(234, 248, 255, 0.95), rgba(223, 251, 234, 0.95));
  border: 1px solid rgba(0, 87, 184, 0.1);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.impact-section h2 {
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.impact-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.impact-items div {
  background: var(--white);
  border-radius: 24px;
  padding: 1.3rem;
  box-shadow: 0 12px 28px rgba(0, 50, 120, 0.08);
}

.impact-items strong {
  display: block;
  color: var(--green-main);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.impact-items span {
  color: var(--blue-dark);
  font-weight: 800;
}

/* Hidden state for JS filtering */
.news-card.hidden {
  display: none;
}

/* Responsive design */
@media (max-width: 950px) {
  .news-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 320px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .large-card {
    grid-column: span 2;
  }

  .impact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 2rem 1rem 4rem;
  }

  .hero-content,
  .hero-panel,
  .impact-section {
    border-radius: 26px;
  }

  .hero-content {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .topic-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .topic-chip {
    white-space: nowrap;
  }

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

  .large-card {
    grid-column: span 1;
  }

  .impact-items {
    grid-template-columns: 1fr;
  }
}