/* ---------------------------------
   Base news item card
---------------------------------- */
.news-item {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .03);
  transition: all .18s ease-in-out;
  position: relative;
  overflow: hidden;
}

/* ---------------------------------
   Featured (index) – full content
---------------------------------- */
.news-item.featured-full {
  padding: 2rem;
  border: 2px solid var(--qh-blue);
  margin-bottom: 3rem;
}

.news-item.featured-full .news-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ---------------------------------
   Featured ribbon (legacy / optional)
   (safe to remove later if unused)
---------------------------------- */
.news-item.featured {
  border-color: var(--qh-blue);
  box-shadow: 0 10px 26px rgba(56, 111, 168, .18);
}

.news-item.featured::before {
  content: "Featured";
  position: absolute;
  top: 1rem;
  right: -2.5rem;
  background: var(--qh-blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem 2.75rem;
  transform: rotate(35deg);
  text-transform: uppercase;
  letter-spacing: .12em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

/* ---------------------------------
   Article type / kicker (NEW)
   Used everywhere instead of pills
---------------------------------- */
.article-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--qh-blue);
  margin-bottom: 0.5rem;
}

.article-type svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}

/* ---------------------------------
   Date
---------------------------------- */
.news-date {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: .4rem;
}

/* ---------------------------------
   Titles (base – no size here)
---------------------------------- */
.news-title {
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

/* ---------------------------------
   NON-featured list items (index)
---------------------------------- */
.news-item:not(.featured-full) .news-title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.news-item:not(.featured-full) .news-title a {
  font-weight: 600;
}

/* ---------------------------------
   Summaries (index only)
---------------------------------- */
.news-summary {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

/* ---------------------------------
   Full post container
---------------------------------- */
.post-full {
  padding: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.post-full .news-content > *:last-child {
  margin-bottom: 0;
}

/* ---------------------------------
   Post meta (author, date, read time)
---------------------------------- */
.post-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------------------------
   Content typography
---------------------------------- */
.news-content {
  line-height: 1.6;
  color: #555;
}

/* ---------------------------------
   Article content images
---------------------------------- */
.news-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ---------------------------------
   Blockquotes (posts)
---------------------------------- */
.news-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid var(--qh-blue);
  background: #f8f9fa;
  border-radius: 0.5rem;
  font-style: italic;
  color: #495057;
}

.news-content blockquote p {
  margin: 0;
}

/* ---------------------------------
   Year grouping (if used)
---------------------------------- */
.news-year-group {
  margin-bottom: 2.5rem;
}

.news-year-heading {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}
