/* ═══════════════════════════════════════════
   News Listing — Blog Post Cards
   ═══════════════════════════════════════════ */

.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .04);
  transition: all .5s var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .06);
  border-color: transparent;
}

.news-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--blue-pale);
}

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

.news-card__badge {
  display: inline-block;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  background: var(--teal);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.news-card__date {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-card__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__link {
  font-weight: 600;
  font-size: 13px;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  transition: gap .3s var(--ease);
}
.news-card:hover .news-card__link {
  gap: 10px;
}


/* ═══════════════════════════════════════════
   Responsive — News Listing
   ═══════════════════════════════════════════ */

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

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


/* ═══════════════════════════════════════════
   Single Article / Blog Post detail
   ═══════════════════════════════════════════ */

.article {
  max-width: 760px;
  margin: 0 auto;
}

/* Back link — block-level (fit-content) so the badge always starts on its
   own line whether or not a featured image is present */
.article__back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.article__back:hover { color: var(--teal); gap: 12px; }

/* Featured image — optional; the page reads fine without it */
.article__hero {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--blue-pale);
}
.article__hero img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* Badge + date + title */
.article__badge {
  display: inline-block;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  background: var(--teal);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.article__date {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.article__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 46px);
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 32px;
}

/* Body typography (the_content) */
.article__body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 400;
}
.article__body > *:first-child { margin-top: 0; }
.article__body p { margin: 0 0 20px; }
.article__body h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--heading);
  line-height: 1.25;
  margin: 40px 0 16px;
}
.article__body h3 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  margin: 30px 0 12px;
}
.article__body ul,
.article__body ol { margin: 0 0 20px; padding-left: 24px; }
.article__body li { margin-bottom: 10px; line-height: 1.7; }
.article__body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s var(--ease);
}
.article__body a:hover { color: var(--teal); }
.article__body strong { color: var(--text); font-weight: 600; }
.article__body img { border-radius: 14px; margin: 8px 0 24px; }

/* Pull quote */
.article__quote {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--text);
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 28px;
  margin: 36px 0;
}
.article__quote-attr {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 14px;
}

/* Source link */
.article__source { margin: 32px 0 0; }

/* Share row */
.article__share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--warm);
}
.article__share-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.article__share a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light);
  border: 1px solid var(--warm);
  transition: all .25s var(--ease);
}
.article__share a:hover {
  background: var(--blue-pale);
  border-color: var(--blue-pale);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .article__hero { border-radius: 14px; margin-bottom: 24px; }
  .article__title { margin-bottom: 24px; }
}
