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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 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;
  }
}

/* ==========================================================================
   FEATURED FULL-WIDTH ARTICLE SPOTLIGHT (NEWSROOM)
   ========================================================================== */
.news-featured-card-wide {
  grid-column: 1 / -1;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-featured-card-wide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.news-featured-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 400px;
}

.news-featured-img-wrap {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.news-featured-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

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

.news-featured-card-wide:hover .news-featured-img {
  transform: scale(1.03);
}

.news-featured-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: #009538;
  color: #ffffff;
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.news-featured-content {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-featured-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.news-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.news-featured-title a:hover {
  color: #009538;
}

.news-featured-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 1.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: #009538;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 149, 56, 0.25);
  align-self: flex-start;
}

.news-featured-cta:hover {
  background: #008230;
  transform: translateX(2px);
  color: #ffffff;
}

@media (max-width: 991px) {
  .news-featured-inner {
    grid-template-columns: 1fr;
  }

  .news-featured-img-wrap {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .news-featured-content {
    padding: 1.75rem;
  }
}

/* ==========================================================================
   FEATURED ARTICLE SPOTLIGHT — Full-width card (Newsroom page only)
   ========================================================================== */

.news-featured-card-wide {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 2rem;
}

.news-featured-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 420px;
}

.news-featured-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

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

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

.news-featured-badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: #009538;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  pointer-events: none;
}

.news-featured-content {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.news-featured-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #0a1628;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.news-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.news-featured-excerpt {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-cta-wrap {
  margin-top: 0.5rem;
}

.news-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: #009538;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.news-featured-cta:hover {
  background: #008230;
  transform: translateX(2px);
  color: #ffffff;
}

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

  .news-featured-img-wrap {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .news-featured-content {
    padding: 1.5rem;
  }
}