/* ==========================================================================
   Divorcepath Blog Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --blog-primary: #3b7af6;
  --blog-dark: #273244;
  --blog-green: #0fbf95;
  --blog-bg-light: #f7fafc;
  --blog-border: #e9eef1;
  --blog-text-dark: #353e44;
  --blog-text-body: #4f5c65;
  --blog-text-meta: #999;
  --blog-text-summary: #666;
  --blog-radius: 12px;
  --blog-font-heading: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --blog-font-body: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Card dark theme */
  --blog-card-bg: #111827;
  --blog-card-border: rgba(255, 255, 255, 0.06);
  --blog-card-title: #f1f5f9;
  --blog-card-summary: rgba(255, 255, 255, 0.55);
  --blog-card-meta: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   1. Blog Hero
   -------------------------------------------------------------------------- */
.blog-hero {
  background: var(--blog-bg-light);
  padding: 40px 24px 0;
  border-bottom: none;
}

.blog-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 0;
}

.blog-hero-text {
  flex-shrink: 0;
  padding-bottom: 16px;
}

.blog-hero h1 {
  font-family: var(--blog-font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--blog-text-dark);
  margin: 0 0 6px;
  line-height: 1.2;
}

.blog-hero .blog-hero-subtitle {
  font-family: var(--blog-font-body);
  font-size: 15px;
  color: var(--blog-text-body);
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   1b. Blog Sections (override Webflow .section padding)
   -------------------------------------------------------------------------- */
.blog-section {
  padding: 32px 0 40px;
  position: relative;
}

.blog-section--grid {
  background-color: var(--blog-bg-light);
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   2. Category Filter Pills
   -------------------------------------------------------------------------- */
.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  margin-bottom: -1px; /* overlap the border */
}

.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 14px;
  font-family: var(--blog-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--blog-text-meta);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.blog-filter-pill:hover {
  color: var(--blog-text-dark);
}

.blog-filter-pill .blog-filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.blog-filter-pill--active {
  color: var(--blog-primary);
  border-bottom-color: var(--blog-primary);
  background: transparent;
}

/* --------------------------------------------------------------------------
   3. Featured Post Card
   -------------------------------------------------------------------------- */
.blog-featured {
  position: relative;
  border-radius: var(--blog-radius);
  overflow: hidden;
  margin-bottom: 32px;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  min-height: 400px;
  display: flex;
}

.blog-featured:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.blog-featured-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-featured:hover .blog-featured-image img {
  transform: scale(1.03);
}

.blog-featured-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  width: 100%;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-featured-content .blog-category-badge {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-featured-content h2 {
  font-family: var(--blog-font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.blog-featured-content h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-featured-content h2 a:hover {
  color: var(--blog-primary);
}

.blog-featured-content .blog-featured-summary {
  font-family: var(--blog-font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0 0 20px;
}

.blog-featured .blog-meta {
  color: rgba(255, 255, 255, 0.5);
}

.blog-featured .blog-meta a {
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   4. Post Grid
   -------------------------------------------------------------------------- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --------------------------------------------------------------------------
   5. Blog Card
   -------------------------------------------------------------------------- */
.blog-card {
  position: relative;
  border-radius: var(--blog-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.blog-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

/* Frosted glass overlay for text legibility */
.blog-card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-card-body .blog-category-badge {
  margin-bottom: 10px;
}

.blog-card-title {
  font-family: var(--blog-font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--blog-primary);
}

.blog-card-summary {
  font-family: var(--blog-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Category Badge
   -------------------------------------------------------------------------- */
.blog-category-badge {
  display: inline-block;
  font-family: var(--blog-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.4;
}

/* Solid-fill badges on dark card backgrounds */
.blog-card .blog-category-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   7. Blog Meta
   -------------------------------------------------------------------------- */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--blog-font-body);
  font-size: 13px;
  color: var(--blog-text-meta);
}

.blog-meta span + span::before {
  content: "\00B7";
  margin-right: 12px;
}

.blog-meta a {
  color: var(--blog-text-meta);
  text-decoration: none;
}

.blog-meta a:hover {
  color: var(--blog-text-dark);
}

/* Dark card meta overrides */
.blog-card .blog-meta {
  color: var(--blog-card-meta);
}

.blog-card .blog-meta a {
  color: var(--blog-card-meta);
}

.blog-card .blog-meta a:hover {
  color: var(--blog-card-title);
}

/* --------------------------------------------------------------------------
   8. Newsletter CTA
   -------------------------------------------------------------------------- */
.blog-newsletter {
  background: var(--blog-dark);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.blog-newsletter h2 {
  font-family: var(--blog-font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: #fff;
}

.blog-newsletter p {
  font-family: var(--blog-font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
  line-height: 1.6;
}

.blog-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.blog-newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--blog-font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.blog-newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.blog-newsletter-form input[type="email"]:focus {
  border-color: var(--blog-primary);
}

.blog-newsletter-form button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--blog-primary);
  color: #fff;
  font-family: var(--blog-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.blog-newsletter-form button:hover {
  background: #2563eb;
}

/* --------------------------------------------------------------------------
   9. Article Page Styles
   -------------------------------------------------------------------------- */
.blog-article-header {
  position: relative;
  text-align: center;
  padding: 100px 24px 72px;
  background-color: #273244;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.blog-article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(39, 50, 68, 0.7);
  z-index: 1;
}

.blog-article-header-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.blog-back-link {
  display: inline-block;
  font-family: var(--blog-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s ease;
}
.blog-back-link:hover {
  color: #fff;
  text-decoration: underline;
}

.blog-article-header .blog-category-badge {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.blog-article-title {
  font-family: var(--blog-font-heading);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 auto 24px;
  line-height: 1.15;
  max-width: 720px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--blog-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.blog-article-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.blog-meta-sep {
  color: rgba(255, 255, 255, 0.3);
}

.blog-article-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0 48px;
  font-family: var(--blog-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: #333;
}

.blog-article-body h2 {
  font-family: var(--blog-font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--blog-text-dark);
  margin: 40px 0 16px;
  line-height: 1.3;
}

.blog-article-body h3 {
  font-family: var(--blog-font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--blog-text-dark);
  margin: 32px 0 12px;
  line-height: 1.35;
}

.blog-article-body p {
  margin: 0 0 20px;
}

.blog-article-body a {
  color: var(--blog-primary);
  text-decoration: underline;
  text-decoration-color: rgba(59, 122, 246, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}

.blog-article-body a:hover {
  text-decoration-color: var(--blog-primary);
}

.blog-article-body blockquote {
  border-left: 3px solid var(--blog-primary);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: #555;
}

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

.blog-article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 24px auto;
  display: block;
  height: auto;
}

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

.blog-article-body li {
  margin-bottom: 8px;
}

.blog-article-body pre {
  background: var(--blog-bg-light);
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.blog-article-body code {
  background: var(--blog-bg-light);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
}

.blog-article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.blog-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  overflow: hidden;
}

.blog-article-body thead {
  background: var(--blog-bg-light);
}

.blog-article-body th {
  font-family: var(--blog-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--blog-text-dark);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--blog-border);
  white-space: nowrap;
}

.blog-article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--blog-border);
  color: var(--blog-text-body);
  vertical-align: top;
}

.blog-article-body tbody tr:last-child td {
  border-bottom: none;
}

.blog-article-body tbody tr:hover {
  background: rgba(59, 122, 246, 0.03);
}

.blog-article-body hr {
  border: none;
  border-top: 1px solid var(--blog-border);
  margin: 40px 0;
}

/* --------------------------------------------------------------------------
   10. Share Buttons
   -------------------------------------------------------------------------- */
.blog-share {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--blog-border);
  background: #fff;
  color: var(--blog-text-body);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-size: 14px;
}

.blog-share-btn:hover {
  border-color: transparent;
  color: #fff;
}

.blog-share-btn--twitter:hover {
  background: #1da1f2;
}

.blog-share-btn--facebook:hover {
  background: #1877f2;
}

.blog-share-btn--linkedin:hover {
  background: #0a66c2;
}

.blog-share-btn--email:hover {
  background: var(--blog-text-body);
}

.blog-share-btn--copy:hover {
  background: var(--blog-green);
}

/* --------------------------------------------------------------------------
   11. Mid-Article CTA
   -------------------------------------------------------------------------- */
.blog-inline-cta {
  background: #fff;
  border: 1px solid var(--blog-border);
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, var(--blog-primary), var(--blog-green)) 1;
  border-image-slice: 1;
  border-radius: var(--blog-radius);
  padding: 24px;
  margin: 32px 0;
  overflow: hidden;
}

.blog-inline-cta h3 {
  font-family: var(--blog-font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--blog-text-dark);
  margin: 0 0 8px;
}

.blog-inline-cta p {
  font-family: var(--blog-font-body);
  font-size: 14px;
  color: var(--blog-text-body);
  margin: 0 0 16px;
  line-height: 1.6;
}

.blog-inline-cta .blog-inline-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: var(--blog-primary);
  color: #fff;
  font-family: var(--blog-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.blog-inline-cta .blog-inline-cta-btn:hover {
  background: #2563eb;
}

/* --------------------------------------------------------------------------
   12. Related Posts
   -------------------------------------------------------------------------- */
.blog-related {
  background: var(--blog-bg-light);
  padding: 64px 24px;
}

.blog-related h2 {
  font-family: var(--blog-font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--blog-text-dark);
  text-align: center;
  margin: 0 0 32px;
}

.blog-related .blog-posts-grid {
  max-width: 1080px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   13. Load More Button
   -------------------------------------------------------------------------- */
.blog-load-more {
  display: flex;
  justify-content: center;
  padding: 40px 0 16px;
}

.blog-load-more-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--blog-primary);
  border-radius: 8px;
  background: #fff;
  font-family: var(--blog-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--blog-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.blog-load-more-btn:hover {
  background: var(--blog-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Wrapper / Container
   -------------------------------------------------------------------------- */
.blog-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   14. Product CTA + Newsletter (combined)
   -------------------------------------------------------------------------- */
div.blog-product-cta {
  background: #273244 !important;
  padding: 64px 24px !important;
  position: relative;
  overflow: hidden;
}

div.blog-product-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 122, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

div.blog-product-cta .blog-product-cta-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

div.blog-product-cta .blog-cta-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}

div.blog-product-cta .blog-cta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

div.blog-product-cta .blog-product-cta-eyebrow {
  display: inline-block;
  font-family: var(--blog-font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0fbf95;
  margin-bottom: 12px;
}

div.blog-product-cta h2 {
  font-family: var(--blog-font-heading) !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  margin: 0 0 12px !important;
  line-height: 1.2 !important;
}

div.blog-product-cta p {
  font-family: var(--blog-font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65) !important;
  line-height: 1.6;
  margin: 0 0 24px;
}

div.blog-product-cta .blog-product-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

div.blog-product-cta .blog-product-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--blog-font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
  cursor: pointer;
}

div.blog-product-cta .blog-product-cta-btn--primary {
  background: #3b7af6;
  color: #fff !important;
  border: 1px solid #3b7af6;
}

div.blog-product-cta .blog-product-cta-btn--primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

div.blog-product-cta .blog-product-cta-btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8) !important;
  border: none;
  padding: 12px 16px;
}

div.blog-product-cta .blog-product-cta-btn--secondary:hover {
  color: #fff !important;
}

/* Newsletter card (right side) */
div.blog-product-cta .blog-cta-newsletter-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
}

div.blog-product-cta .blog-cta-newsletter-card h3 {
  font-family: var(--blog-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 8px;
  line-height: 1.3;
}

div.blog-product-cta .blog-cta-newsletter-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55) !important;
  margin: 0 0 20px;
  line-height: 1.5;
}

div.blog-product-cta .blog-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

div.blog-product-cta .blog-newsletter-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--blog-font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

div.blog-product-cta .blog-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

div.blog-product-cta .blog-newsletter-input:focus {
  border-color: rgba(59, 122, 246, 0.5);
}

div.blog-product-cta .blog-newsletter-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #3b7af6;
  color: #fff;
  font-family: var(--blog-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

div.blog-product-cta .blog-newsletter-btn:hover {
  background: #2563eb;
}

div.blog-product-cta .blog-cta-newsletter-note {
  display: block;
  margin-top: 10px;
  font-family: var(--blog-font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .blog-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .blog-hero h1 {
    font-size: 26px;
  }

  .blog-filter-pills {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: calc(100% + 48px);
    margin-left: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  div.blog-product-cta {
    padding: 48px 24px !important;
  }

  div.blog-product-cta .blog-cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  div.blog-product-cta .blog-cta-left {
    align-items: center;
  }

  div.blog-product-cta h2 {
    font-size: 28px !important;
  }

  div.blog-product-cta .blog-product-cta-actions {
    justify-content: center;
  }

  div.blog-product-cta .blog-cta-newsletter-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .blog-featured {
    min-height: 320px;
  }

  .blog-featured-content {
    padding: 28px 24px 24px;
  }

  .blog-featured-content h2 {
    font-size: 22px;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-article-header {
    padding: 64px 24px 48px;
  }

  .blog-article-header h1,
  .blog-article-title {
    font-size: 30px;
  }

  .blog-article-section {
    padding: 0 24px;
  }

  .blog-article-body {
    font-size: 16px;
    padding: 32px 0 40px;
  }

  .blog-article-body h2 {
    font-size: 24px;
    margin-top: 32px;
  }

  .blog-article-body h3 {
    font-size: 20px;
    margin-top: 24px;
  }

  .blog-newsletter {
    padding: 48px 24px;
  }

  .blog-newsletter h2 {
    font-size: 24px;
  }

  .blog-newsletter-form {
    flex-direction: column;
  }

  .blog-newsletter-form button {
    width: 100%;
  }

  .blog-related {
    padding: 48px 24px;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .blog-hero {
    padding: 32px 16px 0;
  }

  .blog-hero h1 {
    font-size: 24px;
  }

  .blog-filter-pills {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-featured {
    min-height: 280px;
  }

  .blog-featured-content {
    padding: 24px 20px 20px;
  }

  .blog-featured-content h2 {
    font-size: 20px;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card {
    aspect-ratio: 16 / 9;
  }

  .blog-card-body {
    padding: 20px 16px 16px;
  }

  .blog-article-header {
    padding: 48px 16px 36px;
  }

  .blog-article-header h1,
  .blog-article-title {
    font-size: 26px;
  }

  .blog-article-section {
    padding: 0 16px;
  }

  .blog-article-body {
    padding: 24px 0 36px;
  }

  .blog-inline-cta {
    padding: 20px;
  }

  .blog-newsletter {
    padding: 40px 16px;
  }

  .blog-related {
    padding: 40px 16px;
  }

  div.blog-product-cta {
    padding: 40px 16px !important;
  }

  div.blog-product-cta h2 {
    font-size: 24px !important;
  }

  div.blog-product-cta .blog-product-cta-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  div.blog-product-cta .blog-cta-newsletter-card {
    padding: 24px;
  }


  .blog-related h2 {
    font-size: 24px;
  }

  .blog-container {
    padding: 0 16px;
  }
}
