/* ═══════════════════════════════════════════════════
   ESCO TOOL — NEWS ARCHIVE + SINGLE NEWS
   ═══════════════════════════════════════════════════ */


/* ═══ NEWS ARCHIVE ═══ */

.news-archive {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* News cards — shared between archive and homepage */
.news-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.35s ease;
  border-radius: 4px;
  display: block;
  color: inherit;
}

.news-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.news-card-img {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
}

.news-card-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.news-card-body { padding: 24px; }

.news-card-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--esco-red);
  margin-bottom: 8px;
}

.news-card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.news-card-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--esco-red);
  transition: gap 0.3s;
}

.news-card:hover .news-card-link { gap: 12px; }

.news-card-link svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2.5;
}

/* Pagination */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.2s;
}

.news-pagination a:hover {
  border-color: var(--esco-red);
  color: var(--esco-red);
}

.news-pagination span.current {
  background: var(--esco-red);
  border-color: var(--esco-red);
  color: #fff;
}


/* ═══ SINGLE NEWS ═══ */

.single-news-hero {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--text-primary);
  overflow: hidden;
}

.single-news-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.single-news-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.single-news-hero .container {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.single-news-hero .news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.single-news-hero .news-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--esco-red-bright);
}

.single-news-hero .news-category {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.single-news-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

/* News content */
.single-news-content {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.single-news-content .container {
  max-width: 860px;
}

.single-news-content .entry-content p {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.single-news-content .entry-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 48px 0 20px;
}

.single-news-content .entry-content img {
  border-radius: 4px;
  margin: 32px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.single-news-content .entry-content blockquote {
  border-left: 3px solid var(--esco-red);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--esco-red-bg);
  font-style: italic;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Back to news link */
.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: color 0.2s;
}

.news-back-link:hover { color: var(--esco-red); }
.news-back-link svg { transform: rotate(180deg); }

/* Related news */
.related-news {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.related-news-header {
  text-align: center;
  margin-bottom: 48px;
}


/* ═══ RESPONSIVE ═══ */

@media (max-width: 1024px) {
  .news-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .news-archive-grid { grid-template-columns: 1fr; }
  .single-news-hero .news-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .single-news-hero .news-category { border-left: none; padding-left: 0; }
}
