/* ==========================================================================
   Blog / content hub - NW Spray Foam & Insulation
   Mirrors the media-room design system (Montserrat headings, Inter body,
   navy #1F3C88 / #1e3a8a, amber #F59E0B, ground #F3F4F6).
   ========================================================================== */

.nw-blog { font-family: Inter, sans-serif; color: #1f2937; }

.nw-blog__wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.nw-blog__wrap--wide { max-width: 1100px; }

/* --- Hero ---------------------------------------------------------------- */
.nw-blog-hero {
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 56px 20px;
}
.nw-blog-hero__inner { max-width: 1100px; margin: 0 auto; }
.nw-blog-hero--center .nw-blog-hero__inner { text-align: center; }
.nw-blog-hero h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}
.nw-blog-hero p { margin: 0; font-size: 17px; opacity: 0.92; color: #fff; }
.nw-blog-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F59E0B;
  margin: 0 0 8px;
}
.nw-blog-hero__meta { font-size: 14px; opacity: 0.85; margin-top: 10px !important; }

/* --- Article ------------------------------------------------------------- */
.nw-blog-article { padding: 40px 0 60px; }
.nw-blog-article__hero {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 0 28px;
  display: block;
}
.nw-blog-article__body { font-size: 16.5px; line-height: 1.7; }
.nw-blog-article__body h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  margin: 34px 0 12px;
  color: #111;
}
.nw-blog-article__body h3 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin: 26px 0 10px;
  color: #111;
}
.nw-blog-article__body p { margin: 0 0 16px; }
.nw-blog-article__body ul,
.nw-blog-article__body ol { margin: 0 0 18px; padding-left: 22px; }
.nw-blog-article__body li { margin-bottom: 8px; }
.nw-blog-article__body a { color: #1e3a8a; text-decoration: underline; }
.nw-blog-article__body a:hover { color: #1e40af; }
.nw-blog-article__body strong { color: #111; }
.nw-blog-lead { font-size: 19px; line-height: 1.6; color: #374151; }

/* Table of contents */
.nw-blog-toc {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 18px 22px;
  margin: 0 0 28px;
}
.nw-blog-toc p {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  margin: 0 0 10px !important;
  color: #111;
}
.nw-blog-toc ol { margin: 0; padding-left: 20px; }
.nw-blog-toc li { margin-bottom: 6px; }

/* Callout */
.nw-blog-note {
  background: #F3F4F6;
  border-left: 4px solid #F59E0B;
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 26px 0;
}
.nw-blog-note p:last-child { margin-bottom: 0; }
.nw-blog-note strong { color: #1e3a8a; }

/* Tables */
.nw-blog-tablewrap { overflow-x: auto; margin: 24px 0; }
.nw-blog-article table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15.5px;
}
.nw-blog-article th,
.nw-blog-article td {
  border: 1px solid #e5e7eb;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.nw-blog-article thead th {
  background: #1e3a8a;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
}
.nw-blog-article tbody tr:nth-child(even) { background: #fafbfc; }

/* FAQ */
.nw-blog-faq { margin-top: 38px; }

/* --- CTA ----------------------------------------------------------------- */
.nw-blog-cta {
  background: #1e3a8a;
  color: #fff;
  border-radius: 10px;
  padding: 32px 34px;
  margin: 46px 0 10px;
}
.nw-blog-cta h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 25px;
  color: #fff;
  margin: 0 0 12px;
}
.nw-blog-cta p { color: rgba(255, 255, 255, 0.92); margin: 0 0 20px; }
.nw-blog-btn {
  display: inline-block;
  background: #F59E0B;
  color: #111 !important;
  font-weight: 700;
  text-decoration: none !important;
  padding: 13px 26px;
  border-radius: 6px;
  margin: 0 10px 8px 0;
}
.nw-blog-btn:hover { background: #EB980A; }
.nw-blog-btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 11px 24px;
}
.nw-blog-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* --- Cards (index + related) --------------------------------------------- */
.nw-blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.nw-blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nw-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.nw-blog-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #e5e7eb;
}
.nw-blog-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.nw-blog-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B45309;
  margin: 0 0 8px;
}
.nw-blog-card__title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.nw-blog-card__title a { color: #111; text-decoration: none; }
.nw-blog-card__title a:hover { color: #1e3a8a; }
.nw-blog-card__date { font-size: 13px; color: #6b7280; margin: 0 0 10px; }
.nw-blog-card__excerpt { font-size: 14.5px; color: #374151; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.nw-blog-card__more { align-self: flex-start; color: #1e3a8a; font-weight: 600; text-decoration: none; font-size: 14px; }
.nw-blog-card__more:hover { color: #1e40af; text-decoration: underline; }

.nw-blog-related { border-top: 1px solid #e5e7eb; margin-top: 44px; padding-top: 30px; }
.nw-blog-related > h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #111;
  margin: 0 0 22px;
}
.nw-blog-related .nw-blog-list { padding: 0; max-width: none; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 767px) {
  .nw-blog-hero { padding: 36px 20px; }
  .nw-blog-hero h1 { font-size: 27px; }
  .nw-blog-article { padding: 28px 0 44px; }
  .nw-blog-article__body { font-size: 16px; }
  .nw-blog-article__body h2 { font-size: 21px; }
  .nw-blog-lead { font-size: 17.5px; }
  .nw-blog-cta { padding: 26px 22px; }
  .nw-blog-cta h2 { font-size: 22px; }
  .nw-blog-list { padding: 32px 20px; }
}
