/* ==========================================================================
   NEWS ROOM SPECIFIC STYLES
   Modern Editorial News Grid & Pill Filters
   ========================================================================== */

/* Page Header & Title Section */
.news-page-header {
  padding-top: 155px;
  padding-bottom: 2.25rem;
  background: #ffffff;
}

.news-page-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: clamp(2.35rem, 4.5vw, 3.4rem);
  font-weight: 600;
  color: #001507;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1.75rem 0;
  text-align: center;
}

/* Filter Pills */
.news-filter-pills-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

.news-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.15rem;
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  user-select: none;
  white-space: nowrap;
}

.news-filter-pill:hover {
  color: #111827;
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.news-filter-pill.active {
  background: var(--color-emerald-600);
  color: #ffffff;
  border-color: var(--color-emerald-600);
  transform: translateY(-1px);
}

/* News Editorial Grid Section */
.news-grid-section {
  padding: 1.5rem 0 6rem;
  background: #ffffff;
}

.news-editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem;
}

/* News Editorial Card (Matches index.html exactly) */
.news-editorial-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-fast, 0.2s) ease;
}

.news-editorial-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 1.15rem;
}

.news-editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-editorial-card:hover .news-editorial-img {
  transform: scale(1.04);
}

.news-editorial-date {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  color: #383a3f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-editorial-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: #111827;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-editorial-card:hover .news-editorial-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-editorial-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.news-editorial-tag {
  display: inline-block;
  background: rgba(0, 149, 57, 0.186);
  color: #007a2d;
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.news-editorial-readtime {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-editorial-readtime svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-page-header {
    padding-top: 140px;
    padding-bottom: 2rem;
  }

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

@media (max-width: 640px) {
  .news-page-header {
    padding-top: 125px;
    padding-bottom: 1.75rem;
  }

  .news-page-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .news-filter-pills-wrap {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem;
    padding: 0.25rem var(--space-4);
    margin: 0 calc(-1 * var(--space-4));
  }

  .news-filter-pills-wrap::-webkit-scrollbar {
    display: none;
  }

  .news-filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.35rem 0.95rem;
    font-size: 0.775rem;
  }

  .news-editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .news-grid-section {
    padding: 1rem 0 4rem;
  }
}