/* ==========================================================
   NEWS PAGE — hadi_architects
   Font: Avenir Next (loaded via @font-face in style.css)
   All tokens match style.css variables.
   ========================================================== */

/* ── Hero Banner ──
   The hero container/sizing itself now comes from the shared
   .services-hero component in style.css (same size as Services,
   Portfolio, Contact, About). Only the bits unique to this page's
   hero content — the badge, the meta row, the small dot separator —
   live here, recolored for the light background instead of the old
   full-bleed dark photo hero. */
.news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 7px 14px;
  margin-bottom: 20px;
  font-family: 'Avenir Next Heading', 'Helvetica Neue', Arial, sans-serif;
}
.news-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-family: 'Avenir Next Subheading2', 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 28px;
}
.news-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── Filter Bar ── */
.news-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 32px 80px;
  border-bottom: 1px solid #E5E5E5;
  background: var(--cream);
}
.news-filter-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.news-filter-cats button {
  font-family: 'Avenir Next Subheading', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 10px 20px;
  border: 1px solid #E4E4E4;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.news-filter-cats button:hover,
.news-filter-cats button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.news-filter-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.news-filter-right label {
  font-family: 'Avenir Next Subheading', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.news-filter-select {
  position: relative;
}
.news-filter-select select {
  appearance: none;
  -webkit-appearance: none;
  font-family: 'Avenir Next Subheading2', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  background: var(--light);
  border: 1px solid #E4E4E4;
  padding: 10px 38px 10px 14px;
  cursor: pointer;
  min-width: 140px;
  outline: none;
}
.news-filter-select::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-55%);
  color: var(--orange);
  pointer-events: none;
  font-size: 14px;
}

/* ── 3-Column Grid ── */
.news-grid-section {
  padding: 56px 80px 20px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
.news-card {
  background: #fff;
  box-shadow: 0 4px 18px rgba(48,48,48, .06);
  display: flex;
  flex-direction: column;
}
.news-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.04);
}
.news-card-img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3A3A3A 0%, #1A1A1A 100%);
}
.news-card-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--orange);
  color: #fff;
  font-family: 'Avenir Next Heading', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 11px;
}
.news-card-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.news-card-date {
  font-family: 'Avenir Next Subheading2', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #262626;
  font-family: 'Avenir Next Heading', 'Helvetica Neue', Arial, sans-serif;
}
.news-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  font-family: 'Avenir Next Subheading2', 'Helvetica Neue', Arial, sans-serif;
  flex: 1;
}
.news-card-more {
  font-family: 'Avenir Next Heading', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-top: 4px;
}
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
  font-family: 'Avenir Next Subheading2', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Load More ── */
.news-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 0 0;
}
.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--dark);
  color: var(--dark);
  padding: 15px 36px;
  font-family: 'Avenir Next Heading', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: #fff;
}

/* ── Newsletter ── */
.news-newsletter {
  margin: 80px 80px 80px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 64px;
  flex-wrap: wrap;
}
.news-nl-text {
  flex: 1;
  min-width: 280px;
}
.news-eyebrow-alt {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-family: 'Avenir Next Heading', 'Helvetica Neue', Arial, sans-serif;
}
.news-nl-text h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  font-family: 'Avenir Next Heading', 'Helvetica Neue', Arial, sans-serif;
}
.news-nl-text p {
  color: #CFCFCF;
  font-size: 15px;
  line-height: 1.7;
  max-width: 400px;
  font-family: 'Avenir Next Subheading2', 'Helvetica Neue', Arial, sans-serif;
}
.news-nl-form {
  display: flex;
  flex: 1;
  min-width: 300px;
  max-width: 440px;
}
.news-nl-form input {
  flex: 1;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-family: 'Avenir Next Subheading2', 'Helvetica Neue', Arial, sans-serif;
  outline: none;
}
.news-nl-form input::placeholder { color: #C4C4C4; }
.news-nl-form button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0 26px;
  font-family: 'Avenir Next Heading', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.news-nl-form button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

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

@media (max-width: 768px) {
  /* Long author names/emails plus date/category/read-time in one flex row
     had no wrap — could overflow off-screen on a narrow phone. */
  .news-hero-meta { flex-wrap: wrap; row-gap: 8px; }

  .news-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px;
  }
  .news-filter-cats { gap: 8px; }
  .news-filter-cats button { font-size: 11px; padding: 8px 14px; }
  .news-filter-right { flex-wrap: wrap; }

  .news-grid-section { padding: 36px 24px 16px; }
  .news-grid { grid-template-columns: 1fr; gap: 24px; }

  .news-newsletter {
    margin: 48px 24px 24px;
    padding: 40px 28px;
    flex-direction: column;
    gap: 32px;
    width: auto;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
  }
  .news-nl-text {
    min-width: unset;
    width: 100%;
  }
  .news-nl-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    min-width: unset;
    width: 100%;
  }
  .news-nl-form input,
  .news-nl-form button {
    width: 100%;
    min-width: 0;
  }
  .news-nl-form button {
    font-size: 16px;
    white-space: normal;
  }
  .news-nl-form button{
     height: 50px;
  }
  .news-nl-text h2 { font-size: 18px; }
}
