/* ==========================================================================
   BLOG POST — single-page template styles
   Loaded on every blog post. Depends on:
     - css/core/tokens.css
     - css/core/shared-components.css  (.biz-section, .biz-inner, .sp-cta-*, .wk-label, etc.)
     - css/core/styles.css
     - css/components/mega-menu.css
     - css/components/footer.css
   ========================================================================== */


/* -----------------------------------------------------------------------
   1. ARTICLE HEADER — cream band with blue top border
   ----------------------------------------------------------------------- */

.blog-article-header {
  background: var(--wk-cream);
  border-top: 4px solid var(--wk-blue-500);
  padding: 52px 0 44px;
}

.blog-article-header .biz-section-label {
  display: inline-block;
  margin-bottom: 10px;
}

.blog-article-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--wk-near-black);
  line-height: 1.2;
  margin: 0 0 14px;
  max-width: 760px;
}

.blog-article-header .blog-meta {
  font-size: 13px;
  color: var(--wk-gray-500);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.blog-breadcrumb {
  margin-bottom: 20px;
}

.blog-breadcrumb a {
  font-size: 14px;
  color: var(--wk-blue-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.blog-breadcrumb a:hover {
  color: var(--wk-blue-600);
  text-decoration: underline;
}

.blog-meta {
  font-size: 14px;
  color: var(--wk-gray-400);
  margin: 8px 0 0;
}

.blog-hero-section {
  padding-top: 32px;
}

.blog-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-cta-sub {
  margin-bottom: 24px;
}


/* -----------------------------------------------------------------------
   2. TWO-COLUMN LAYOUT — article + sticky sidebar
   ----------------------------------------------------------------------- */

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 272px;
  gap: 44px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.blog-post-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 900px) {
  .blog-post-sidebar {
    position: static;
  }
}


/* -----------------------------------------------------------------------
   3. ARTICLE BODY — typography for the prose content
   ----------------------------------------------------------------------- */

.blog-body {
  max-width: 680px;
}

.blog-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--wk-near-black);
  margin: 36px 0 12px;
  line-height: 1.3;
  padding-top: 4px;
}

.blog-body h2:first-child {
  margin-top: 0;
}

.blog-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--wk-near-black);
  margin: 28px 0 10px;
  line-height: 1.3;
}

.blog-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--wk-gray-700);
  margin: 0 0 20px;
}

.blog-body p:last-child {
  margin-bottom: 0;
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.blog-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--wk-gray-700);
  margin-bottom: 8px;
}

.blog-body strong {
  color: var(--wk-near-black);
  font-weight: 700;
}

.blog-body a {
  color: var(--wk-blue-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.blog-body a:hover {
  color: var(--wk-blue-600);
}


/* -----------------------------------------------------------------------
   4. SIDEBAR — ZIP widget + table of contents
   ----------------------------------------------------------------------- */

.blog-sidebar-zip {
  background: var(--wk-white);
  border: 1px solid var(--wk-gray-200);
  border-top: 4px solid var(--wk-blue-500);
  border-radius: 12px;
  padding: 20px 18px 22px;
}

.blog-sidebar-zip-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--wk-blue-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.blog-sidebar-zip h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--wk-near-black);
  margin: 0 0 14px;
  line-height: 1.3;
}

.blog-zip-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-zip-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--wk-border-slate);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  color: var(--wk-near-black);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.blog-zip-input::placeholder {
  color: var(--wk-gray-400);
}

.blog-zip-input:focus {
  border-color: var(--wk-blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.blog-zip-btn {
  background: var(--wk-blue-500);
  color: var(--wk-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  padding: 11px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.blog-zip-btn:hover {
  background: var(--wk-blue-600);
}

/* Table of contents */
.blog-sidebar-toc {
  background: var(--wk-white);
  border: 1px solid var(--wk-gray-200);
  border-radius: 12px;
  padding: 16px 18px 18px;
}

.blog-sidebar-toc-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--wk-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 10px;
}

.blog-sidebar-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-sidebar-toc ul li {
  border-bottom: 1px solid var(--wk-gray-100);
}

.blog-sidebar-toc ul li:last-child {
  border-bottom: none;
}

.blog-sidebar-toc ul li a {
  font-size: 13px;
  color: var(--wk-gray-700);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 7px 0;
  transition: color 0.15s;
}

.blog-sidebar-toc ul li a:hover {
  color: var(--wk-blue-500);
}


/* -----------------------------------------------------------------------
   5. RELATED ARTICLES — "Keep Reading" card grid
   ----------------------------------------------------------------------- */

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.blog-related-card {
  background: var(--wk-white);
  border: 1px solid var(--wk-gray-200);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.blog-related-card:hover {
  border-color: var(--wk-blue-500);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
  transform: translateY(-1px);
}

.blog-related-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--wk-near-black);
  line-height: 1.35;
}

.blog-related-card-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--wk-blue-500);
  margin-top: auto;
}


/* -----------------------------------------------------------------------
   6. HOVER-REVEAL BACKGROUND — image bg for "Keep Reading" section
      Shared pattern with city/industry pages.
   ----------------------------------------------------------------------- */

.as-industries-hover {
  position: relative;
  overflow: hidden;
  transition: background 0.45s ease;
}

.as-ind-bg-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.as-ind-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.as-ind-bg.is-active {
  opacity: 1;
}

.as-ind-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.as-ind-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 38, 0.72);
}

/* Hover-active state — text goes white */
.ind-hover-active .as-ind-label {
  color: rgba(255, 255, 255, 0.60);
  transition: color 0.35s ease;
}

.ind-hover-active .as-ind-heading {
  color: var(--wk-white);
  transition: color 0.35s ease;
}

/* Cards go translucent on hover-active */
.ind-hover-active .blog-related-card {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  transition: all 0.25s ease;
}

.ind-hover-active .blog-related-card-title {
  color: rgba(255, 255, 255, 0.90);
  transition: color 0.25s ease;
}

.ind-hover-active .blog-related-card-arrow {
  color: rgba(255, 255, 255, 0.60);
  transition: color 0.25s ease;
}

.ind-hover-active .blog-related-card:hover {
  background: var(--wk-white);
  border-color: var(--wk-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.ind-hover-active .blog-related-card:hover .blog-related-card-title {
  color: var(--wk-near-black);
}

.ind-hover-active .blog-related-card:hover .blog-related-card-arrow {
  color: var(--wk-blue-500);
}

/* Raised inner content above the background images */
.biz-inner--raised {
  position: relative;
  z-index: 1;
}
