/* =============================================
   BLOG.CSS — QuestWorks Blog Styles
   Prefix: blog-
   Design system: League Spartan, QuestWorks blue palette
   ============================================= */

/* ── Nav Override ── */
.blog-hero ~ .brix---header-wrapper,
.blog-body-section ~ .brix---header-wrapper,
.brix---header-wrapper {
  background-color: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ── Hero ── */
.blog-hero {
  background: linear-gradient(117deg, #2991dee6 24%, #7abdede6), url('../images/backdrop.webp') center / cover no-repeat;
  padding: 80px 0 64px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'League Spartan', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.15;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.blog-breadcrumb {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.blog-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.blog-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.blog-breadcrumb-sep {
  margin: 0 6px;
}
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.blog-category {
  display: inline-block;
  font-family: 'League Spartan', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 14px;
  border-radius: 20px;
}
.blog-date,
.blog-read-time {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}
.blog-subtitle {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 auto 24px;
}
.blog-author {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

/* ── TL;DR Card ── */
.blog-tldr-section {
  background: #ecf6ff;
  padding: 32px 0 40px;
}
.blog-tldr {
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #2991de;
}
.blog-tldr h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #296590;
  margin: 0 0 10px;
}
.blog-tldr p {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #292929;
  margin: 0;
}

/* ── Article Body ── */
.blog-body-section {
  background: #ecf6ff;
  padding: 40px 0 60px;
}
.blog-body-inner {
  max-width: 760px;
  margin: 0 auto;
}
.blog-body-inner h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #296590;
  margin: 48px 0 20px;
  line-height: 1.2;
}
.blog-body-inner h2:first-child {
  margin-top: 0;
}
.blog-body-inner h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2991de;
  margin: 36px 0 12px;
  line-height: 1.3;
}
.blog-body-inner p {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #292929;
  margin: 0 0 18px;
}
.blog-body-inner ul,
.blog-body-inner ol {
  padding-left: 24px;
  margin: 0 0 18px;
}
.blog-body-inner li {
  font-family: 'League Spartan', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #292929;
  margin-bottom: 8px;
}
.blog-body-inner blockquote {
  border-left: 4px solid #7abded;
  margin: 28px 0;
  padding: 16px 24px;
  background: rgba(41, 145, 222, 0.05);
  border-radius: 0 8px 8px 0;
}
.blog-body-inner blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: #296590;
  margin: 0;
}
.blog-body-inner a {
  color: #2991de;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.blog-body-inner a:hover {
  border-bottom-color: #2991de;
}
.blog-body-inner strong {
  font-weight: 700;
  color: #296590;
}

/* ── Stat Callout Cards ── */
.blog-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  text-align: center;
  box-shadow: 0 2px 12px rgba(41, 101, 144, 0.08);
  border-top: 3px solid #2991de;
}
.blog-stat-number {
  display: block;
  font-family: 'League Spartan', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #2991de;
  line-height: 1.1;
  margin-bottom: 8px;
}
.blog-stat-label {
  display: block;
  font-family: 'League Spartan', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #292929;
  margin-bottom: 8px;
}
.blog-stat-source {
  display: block;
  font-family: 'League Spartan', sans-serif;
  font-size: 0.8rem;
  color: #5a7a95;
  font-style: normal;
}

/* ── Inline CTA (mid-article) ── */
.blog-inline-cta {
  background: linear-gradient(117deg, #2991dee6 24%, #7abdede6);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 36px 0;
  text-align: center;
}
.blog-inline-cta p {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 16px;
}
.blog-inline-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #2991de;
  font-family: 'League Spartan', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  border-bottom: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-inline-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-bottom: none;
}

/* ── Product Card (for roundup entries) ── */
.blog-product-card {
  background: #fff;
  border: 1px solid #e3f3ff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 28px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.blog-product-card h3 {
  margin-top: 0 !important;
  padding-top: 0;
}
.blog-product-card .blog-product-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-family: 'League Spartan', sans-serif;
  font-size: 0.85rem;
  color: #5a7a95;
}

/* ── FAQ Section ── */
.blog-faq-section {
  background: #e3f3ff;
  padding: 60px 0 72px;
}
.blog-faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.blog-faq-section h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #296590;
  margin: 0 0 36px;
  text-align: center;
}
.blog-faq-item {
  border-bottom: 1px solid rgba(41, 145, 222, 0.15);
  padding: 20px 0;
}
.blog-faq-item:first-of-type {
  border-top: 1px solid rgba(41, 145, 222, 0.15);
}
.blog-faq-q {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #296590;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-faq-q::after {
  content: "+";
  font-size: 22px;
  color: #2991de;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.blog-faq-item.blog-open .blog-faq-q::after {
  content: "\2212";
}
.blog-faq-a {
  font-family: 'League Spartan', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #292929;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
}
.blog-faq-item.blog-open .blog-faq-a {
  max-height: 500px;
  padding-top: 12px;
}

/* ── Related Articles ── */
.blog-related-section {
  background: #ecf6ff;
  padding: 60px 0;
}
.blog-related-section h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #296590;
  text-align: center;
  margin: 0 0 32px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.blog-related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(41, 101, 144, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
}
.blog-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(41, 101, 144, 0.12);
}
.blog-related-card-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #296590;
  line-height: 1.4;
  display: block;
}
.blog-related-card::after {
  content: "Read →";
  font-family: 'League Spartan', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2991de;
  margin-top: 16px;
}
.blog-related-card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-related-card .blog-category {
  color: #2991de;
  background: rgba(41, 145, 222, 0.08);
  font-size: 0.7rem;
  margin-bottom: 8px;
  align-self: flex-start;
}
.blog-related-card h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #296590;
  margin: 0 0 8px;
  line-height: 1.35;
}
.blog-related-card p {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.85rem;
  color: #5a7a95;
  line-height: 1.5;
  margin: 0;
}
.blog-related-arrow {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2991de;
  margin-top: auto;
  padding-top: 12px;
}

/* ── CTA Section ── */
.blog-cta-section {
  background: linear-gradient(117deg, #2991dee6 24%, #7abdede6), url('../images/backdrop.webp') center / cover no-repeat;
  padding: 80px 0;
  text-align: center;
}
.blog-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.blog-cta-section h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}
.blog-cta-section p {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 28px;
}
.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-image: linear-gradient(99deg, #2991de, #7abded);
  border: 1px solid #2991de;
  color: #fff;
  font-family: 'League Spartan', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.blog-cta-btn img {
  width: 24px;
  height: 24px;
}

/* ── Sticky CTA Bar ── */
.blog-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: #296590;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
}
.blog-sticky-cta.blog-visible {
  transform: translateY(0);
}
.blog-sticky-cta-text {
  font-family: 'League Spartan', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.blog-sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-image: linear-gradient(99deg, #2991de, #7abded);
  border: 1px solid #2991de;
  color: #fff;
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-sticky-cta-btn:hover { opacity: 0.92; }
.blog-sticky-cta-btn img { width: 18px; height: 18px; }
.blog-sticky-cta-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.blog-sticky-cta-close:hover { color: #fff; }

/* ── Blog Index Page ── */
.blog-index-hero {
  background: linear-gradient(117deg, #2991dee6 24%, #7abdede6), url('../images/backdrop.webp') center / cover no-repeat;
  padding: 120px 0 60px;
  text-align: center;
}
.blog-index-hero h1 {
  font-family: 'League Spartan', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.blog-index-hero p {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.blog-index-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0 0;
  flex-wrap: wrap;
}
.blog-filter-btn {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #296590;
  background: #fff;
  border: 1px solid #e3f3ff;
  border-radius: 24px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.blog-filter-btn:hover {
  background: #f4faff;
  border-color: #7abded;
}
.blog-filter-btn.blog-active {
  background: #296590;
  color: #fff;
  border-color: #296590;
}
.blog-index-content {
  background: #ecf6ff;
  padding: 48px 0 80px;
}
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.blog-index-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(41, 101, 144, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.blog-index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(41, 101, 144, 0.12);
}
.blog-index-card-body {
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-index-card .blog-category {
  color: #2991de;
  background: rgba(41, 145, 222, 0.08);
  font-size: 0.7rem;
  margin-bottom: 10px;
  align-self: flex-start;
}
.blog-index-card h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #296590;
  margin: 0 0 8px;
  line-height: 1.35;
}
.blog-index-card .blog-card-excerpt {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.9rem;
  color: #5a7a95;
  line-height: 1.5;
  margin: 0 0 12px;
  flex: 1;
}
.blog-index-card .blog-card-meta {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.8rem;
  color: #7abded;
  margin-top: auto;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .blog-hero { padding: 72px 0 48px; }
  .blog-hero h1 { font-size: 2.4rem; }
  .blog-index-hero h1 { font-size: 2.6rem; }
  .blog-body-inner h2 { font-size: 1.6rem; }
  .blog-index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .blog-hero { padding: 64px 0 40px; }
  .blog-hero h1 { font-size: 1.9rem; }
  .blog-index-hero h1 { font-size: 2rem; }
  .blog-subtitle { font-size: 1rem; }
  .blog-body-section { padding: 28px 0 48px; }
  .blog-body-inner h2 { font-size: 1.5rem; }
  .blog-body-inner p { font-size: 1rem; }
  .blog-tldr { padding: 24px 20px; }
  .blog-stat-card { padding: 20px 20px; }
  .blog-stat-number { font-size: 2rem; }
  .blog-faq-section { padding: 48px 0 56px; }
  .blog-faq-section h2 { font-size: 1.6rem; }
  .blog-cta-section h2 { font-size: 1.8rem; }
  .blog-cta-section { padding: 60px 0; }
  .blog-related-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .blog-sticky-cta-text { display: none; }
}
@media (max-width: 479px) {
  .blog-hero h1 { font-size: 1.6rem; }
  .blog-index-hero h1 { font-size: 1.7rem; }
  .blog-body-inner h2 { font-size: 1.35rem; }
  .blog-tldr { padding: 20px 16px; }
  .blog-cta-section h2 { font-size: 1.5rem; }
}
