/* ============================================================
   NEWS & INSIGHTS — Acreage Developments
   ============================================================ */

.news-page { background: var(--bg) }

/* ---- HERO ---- */
.news-hero {
  position: relative; height: 52vh; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 0;
}
.news-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  transform: scale(1.06);
}
.news-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,14,11,0.7) 0%, rgba(15,14,11,0.75) 100%);
}
.news-hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 80px var(--pad) 0;
}
.news-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 72px); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.news-hero-sub {
  font-size: 13px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text2);
}

/* ---- FILTER BAR ---- */
.news-filter-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 100;
}
.news-filter-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; gap: 4px; padding: 12px var(--pad);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.news-filter-inner::-webkit-scrollbar { display: none }
.nf-btn {
  padding: 8px 18px; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; background: transparent;
  border: 1px solid var(--border); border-radius: 2px;
  color: var(--text3); cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.nf-btn:hover { border-color: var(--gold); color: var(--gold) }
.nf-btn.active { background: var(--gold); border-color: var(--gold); color: var(--bg) }

/* ---- INNER CONTAINER ---- */
.news-inner { max-width: var(--max); margin: 0 auto }
.news-main { padding-bottom: 0 }

/* ---- FEATURED POST ---- */
.news-featured { padding: 72px var(--pad) 0 }
.nf-card {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; transition: border-color 0.3s;
}
.nf-card:hover { border-color: var(--gold) }
.nf-card-img { position: relative; overflow: hidden }
.nf-card-img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; transition: transform 0.8s var(--ease) }
.nf-card:hover .nf-card-img img { transform: scale(1.04) }
.nf-cat-badge {
  position: absolute; top: 20px; left: 20px;
  padding: 5px 12px; background: var(--gold); color: var(--bg);
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  border-radius: 2px;
}
.nf-card-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center }
.nf-date { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block }
.nf-title {
  font-family: 'Playfair Display', serif; font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 500; line-height: 1.2; margin-bottom: 20px; color: var(--text);
}
.nf-excerpt { font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--text2); margin-bottom: 14px }
.nf-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text3); margin-top: 8px }
.nf-meta span:nth-child(2) { color: var(--gold); font-size: 8px }

/* ---- POST GRID ---- */
.news-grid-section { padding: 56px var(--pad) 80px }
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  /* align-items: stretch (default) — makes all cards in a row the same height */
}
/* Card link wrapper — flex column so inner card stretches to fill full grid-row height */
a.np-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.np-card {
  flex: 1;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  opacity: 0; transform: translateY(24px);
}
.np-card.np-visible { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s }
.np-card:hover { border-color: var(--gold); transform: translateY(-4px) }

.np-img-wrap { position: relative; height: 200px; overflow: hidden; flex-shrink: 0; }
.np-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease) }
.np-card:hover .np-img-wrap img { transform: scale(1.05) }
.np-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 10px; background: rgba(15,14,11,0.85); border: 1px solid var(--gold-dim);
  font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
  border-radius: 2px; backdrop-filter: blur(4px);
}
/* Body fills remaining card height; meta always at bottom */
.np-body { padding: 24px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.np-date { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; flex-shrink: 0; }
.np-title {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500;
  line-height: 1.35; margin-bottom: 12px; color: var(--text);
  /* Clamp to 3 lines — keeps all cards visually uniform */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  flex-shrink: 0;
}
/* Excerpt grows to fill space, clamped to 3 lines */
.np-excerpt {
  font-size: 13px; font-weight: 300; line-height: 1.65; color: var(--text2);
  margin-bottom: 16px; flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
/* Meta always pinned to the card bottom */
.np-meta { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text3); margin-top: auto; flex-shrink: 0; }
.np-meta span:nth-child(2) { color: var(--gold); font-size: 7px }

/* ---- NEWSLETTER CTA ---- */
.news-cta-section {
  position: relative; padding: 100px var(--pad); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.news-cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
}
.news-cta-overlay {
  position: absolute; inset: 0;
  background: rgba(15,14,11,0.78);
}
.news-cta-content {
  position: relative; z-index: 2; text-align: center; max-width: 540px;
}
.news-cta-title {
  font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 500; line-height: 1.15; margin: 14px 0 16px; color: var(--text);
}
.news-cta-sub {
  font-size: 15px; font-weight: 300; color: var(--text2); line-height: 1.7; margin-bottom: 32px;
}
.news-cta-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center }
.news-cta-input {
  flex: 1; min-width: 240px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 2px;
  padding: 13px 18px; font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text); transition: border-color 0.2s;
}
.news-cta-input:focus { outline: none; border-color: var(--gold) }
.news-cta-input::placeholder { color: var(--text3) }
.news-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--gold); color: var(--bg);
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer; transition: background 0.2s;
}
.news-cta-btn:hover { background: #B8872E }

/* ---- RESPONSIVE ---- */
@media(max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr) }
}
@media(max-width: 768px) {
  .nf-card { grid-template-columns: 1fr }
  .nf-card-img img { min-height: 240px }
  .nf-card-body { padding: 28px 24px }
  .news-grid { grid-template-columns: 1fr }
  .news-cta-form { flex-direction: column }
  .news-cta-input { min-width: 0; width: 100% }
}

/* ── Article card links ─────────────────────────────── */
/* Featured post link — block is fine since it's a single card */
a.nf-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.nf-card-link:hover .nf-card {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(200,153,63,0.15);
}
/* Grid card links — flex so card fills the full grid-row height */
a.np-card-link {
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  /* display:flex + flex-direction:column set in .news-grid block above */
}
