/* ═══════════════════════════════════════════════════
   news.css — TEN News & Updates Section Styles
   ═══════════════════════════════════════════════════ */

/* ─── News Index Section ─── */
.news-section {
  padding: 80px 0 100px;
  background: #f4f4f4;
}

/* ─── Filter Bar ─── */
.news-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.news-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.news-filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid #ccc;
  color: #555;
  text-decoration: none;
  border-radius: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}

.news-tag:hover {
  border-color: #68b5a5;
  color: #68b5a5;
}

.news-tag--active {
  background: #68b5a5;
  border-color: #68b5a5;
  color: #fff;
}

.news-tag--active:hover {
  background: #54a093;
  border-color: #54a093;
  color: #fff;
}

/* ─── News Grid ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

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

/* ─── Empty State (no stories yet — filter hidden) ─── */
.news-grid--empty {
  display: block;
}

/* Hide the filter bar while the grid has no cards (filter is inert with nothing to filter) */
.news-section:has(.news-grid--empty) .news-filter-bar {
  display: none;
}

.news-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 64px 24px;
  background: #fff;
  border-top: 3px solid #68b5a5;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  text-align: center;
}

.news-empty-state p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: #666;
  max-width: 480px;
  margin: 0;
}

/* ─── News Card ─── */
.news-card {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,0.12);
}

.news-card.is-hidden {
  display: none;
}

.news-card-image-link {
  display: block;
  overflow: hidden;
}

.news-card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
  border-radius: 0;
}

.news-card-image-link:hover .news-card-image {
  transform: scale(1.03);
}

.news-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* ─── Category Badges — all teal ─── */
.news-category {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 0;
  background: #68b5a5;
}

.news-category--projects {
  background: #68b5a5;
}

.news-category--community {
  background: #68b5a5;
}

.news-category--company {
  background: #68b5a5;
}

.news-date {
  font-size: 0.78rem;
  color: #999;
  font-weight: 400;
}

/* ─── Card Title ─── */
.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.news-card-title a {
  color: #00483a;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card-title a:hover {
  color: #68b5a5;
  text-decoration: underline;
}

/* ─── Card Excerpt ─── */
.news-card-excerpt {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: #444;
  margin: 0 0 16px;
  flex: 1;
}

/* ─── Tag Pills — sharp corners ─── */
.news-card-tags,
.news-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.news-tag-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 500;
  background: #f4f4f4;
  color: #555;
  border-radius: 0;
  letter-spacing: 0.02em;
}

/* ─── Read More — matches .service-card-link ─── */
.news-read-more {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #68b5a5;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.news-read-more:hover {
  gap: 10px;
  color: #00483a;
}

/* ═══════════════════════════════════════════════════
   News Post (Article) Styles
   ═══════════════════════════════════════════════════ */

.news-post {
  width: 100%;
}

/* ─── Post Header ─── */
.news-post-header {
  background: transparent;
  position: relative;
}

/* Full-screen hero with bottom-left content overlay */
.news-post-hero {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

/* Bottom gradient overlay */
.news-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(35,31,32,0.85) 0%,
    rgba(35,31,32,0.0) 65%);
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.news-post-hero-overlay .container {
  padding-bottom: 56px;
  padding-top: 0;
}

.news-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.news-post-meta .news-date {
  color: rgba(255,255,255,0.7);
}

.news-post-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 820px;
}

/* ─── Highway 8 Vimeo Video Hero ─── */
.news-post-hero--video {
  position: relative;
}
.news-post-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.news-post-hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 aspect ratio */
  min-width: 100%;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ─── Related Section ("You May Also Be Interested In") ─── */
.related-section {
  background: var(--grey-light, #f4f4f4);
  padding: 80px 0 100px;
}
.related-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 48px;
}
.related-section .news-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-section .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Clickable category links in hero overlay */
.news-category-link {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.news-category-link:hover {
  background: #00483a;
  color: #fff;
}

/* /news index hero: move background up 100px (flip removed — caused triangle to mirror) */
#news-index-hero {
  background-position: center center;
}

.news-post-hero-overlay .news-tag-pill {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  border-radius: 0;
}

/* ─── Post Body ─── */
.news-post-body {
  max-width: 760px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.news-post-lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.75;
  color: #222;
  margin-bottom: 28px;
  border-left: 3px solid #68b5a5;
  padding-left: 20px;
}

.news-post-body p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: #333;
  margin-bottom: 20px;
}

.news-post-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00483a;
  margin: 40px 0 16px;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .news-section {
    padding: 56px 0 72px;
  }

  .news-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .news-empty-state {
    min-height: 160px;
    padding: 48px 20px;
  }

  .news-post-hero {
    height: 60vh;
  }

  .news-post-title {
    font-size: 1.5rem;
  }

  .news-post-body {
    padding-top: 40px;
    padding-bottom: 56px;
  }
}

/* ─── Article links ─── */

/* Bold green links — teal hover (Dawson Civil, TNG, social, phone) */
.news-post-link--bold {
  color: #00483a;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}
.news-post-link--bold:hover {
  color: #68b5a5;
}

/* Plain black links — teal hover (Dalton Baptiste, hidden internal links) */
.news-post-link--plain {
  color: inherit;
  text-decoration: none;
  font-weight: 300;
  font-style: normal;
  transition: color 0.2s ease;
}
.news-post-link--plain:hover {
  color: #68b5a5;
}

/* Black internal links — teal hover (civil construction, mining) */
.news-post-link--internal {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.news-post-link--internal:hover {
  color: #68b5a5;
}
