/* ==========================================================================
   news.css — News & Insights page-specific styles
   Depends on: tokens.css, global.css, components.css
   ========================================================================== */


/* ==========================================================================
   PAGE HEADER (.news-header)
   Clean header with nav offset — no full hero
   ========================================================================== */

.news-header {
  padding-top: calc(var(--sp-20) + 80px);
  padding-bottom: var(--sp-12);
  text-align: center;
}

.news-header h1 {
  margin-bottom: var(--sp-3);
}

.news-header p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-inline: auto;
}


/* ==========================================================================
   CATEGORY FILTER TABS (.news-filters)
   ========================================================================== */

.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}

.news-filters__tab {
  padding: var(--sp-2) var(--sp-5);
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.news-filters__tab:hover {
  border-color: var(--color-primary-light);
  color: var(--color-text-heading);
}

.news-filters__tab--active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}


/* ==========================================================================
   FEATURED POST (.news-featured)
   Full-width wide card variant
   ========================================================================== */

.news-featured {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-12);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.news-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.news-featured__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-featured__image {
    aspect-ratio: auto;
    min-height: 320px;
  }
}

.news-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.news-featured:hover .news-featured__image img {
  transform: scale(1.05);
}

.news-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-8);
}

@media (min-width: 1280px) {
  .news-featured__body {
    padding: var(--sp-12);
  }
}

.news-featured__category {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  background-color: var(--color-surface-light);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
  width: fit-content;
}

.news-featured__body h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
}

@media (min-width: 1280px) {
  .news-featured__body h2 {
    font-size: var(--fs-3xl);
  }
}

.news-featured__excerpt {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.news-featured__date {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.news-featured__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--duration-base) var(--ease-out);
}

.news-featured__link:hover {
  gap: var(--sp-3);
  text-decoration: none;
}


/* ==========================================================================
   NEWS GRID (.news-grid)
   3-column responsive grid for standard cards
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .news-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


/* ==========================================================================
   STATUS LINE (.news-status)
   Live count of visible articles, updated by main.js when filter changes.
   Replaces the inert &quot;Load More&quot; button stub from earlier prototypes.
   ========================================================================== */

.news-status {
  text-align: center;
  margin-top: var(--sp-12);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}


/* Section override — remove top padding (follows page header) */
.news-listing-section {
  padding-top: 0;
}
