:root {
  --blog-ink: #10110f;
  --blog-muted: #5f645c;
  --blog-lime: #c8ff3d;
  --blog-mint: #f3faee;
  --blog-line: rgba(16, 17, 15, .12);
  --blog-radius: 28px;
  --blog-heading-font: "Host Grotesk", "Arial Narrow", Arial, sans-serif;
  --blog-body-font: "Instrument Sans", Arial, sans-serif;
  --blog-ui-font: "Geist", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: #fff; color: var(--blog-ink); font-family: var(--blog-body-font); font-size: 15px; letter-spacing: -.01em; }
button, a { font: inherit; }
img, svg { display: block; max-width: 100%; }

.about-header-source { display: none !important; }
.blog-container { width: min(calc(100% - 48px), 1280px); margin-inline: auto; }
.blog-section { padding: clamp(64px, 7vw, 100px) 0; }
.blog-eyebrow { margin: 0 0 16px; color: #39402f; font-family: var(--blog-ui-font); font-size: 12px; font-weight: 500; letter-spacing: .13em; line-height: 1.2; }

/* 1. Hero styling */
.blog-hero { position: relative; padding: clamp(120px, 11vw, 160px) 0 64px; overflow: hidden; background: radial-gradient(circle at 10% 20%, rgba(200,255,61,.14), transparent 30%), linear-gradient(145deg, #f8fcf5, #f0f7f0); border-bottom: 1px solid var(--blog-line); }
.blog-hero-content { max-width: 780px; position: relative; z-index: 2; }
.blog-hero h1 { margin: 0; font-family: var(--blog-heading-font); font-size: clamp(38px, 5.5vw, 56px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; color: var(--blog-ink); }
.blog-hero h1 span { color: #78a800; }
.blog-hero-lead { margin: 20px 0 0; font-size: 16px; line-height: 1.45; color: var(--blog-muted); max-width: 680px; }

/* Search Bar Wrapper */
.blog-search-wrap { margin-top: 32px; position: relative; max-width: 480px; display: flex; align-items: center; }
.blog-search-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.blog-search-input {
  width: 100%; height: 50px; padding: 10px 45px 10px 48px; border: 1px solid rgba(16, 17, 15, 0.15); border-radius: 14px; background: #fff; font-family: var(--blog-body-font); font-size: 14.5px; color: var(--blog-ink); outline: none; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.blog-search-input:focus { border-color: var(--blog-ink); box-shadow: 0 4px 18px rgba(16, 17, 15, 0.05); }
.blog-search-icon { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--blog-muted); pointer-events: none; }
.blog-search-clear {
  position: absolute; right: 16px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16, 17, 15, 0.05); color: var(--blog-ink); display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background-color 0.2s ease;
}
.blog-search-clear:hover { background: rgba(16, 17, 15, 0.1); }
.blog-search-clear svg { width: 12px; height: 12px; }

/* 2. Featured Article */
.blog-featured { padding-top: clamp(64px, 7vw, 100px); }
.blog-featured-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); background: #fcfdfa; border: 1px solid var(--blog-line); border-radius: var(--blog-radius); overflow: hidden; padding: clamp(24px, 3.5vw, 44px); align-items: center;
}
.blog-featured-visual { position: relative; aspect-ratio: 1.5; border-radius: 20px; overflow: hidden; border: 1px solid rgba(16, 17, 15, 0.05); }
.blog-featured-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.blog-featured-card:hover .blog-featured-visual img { transform: scale(1.03); }

.blog-featured-meta { display: flex; align-items: center; gap: 12px; font-family: var(--blog-ui-font); font-size: 13px; font-weight: 500; color: var(--blog-muted); margin-bottom: 16px; }
.blog-tag { background: var(--blog-lime); color: var(--blog-ink); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-featured-copy h2 { margin: 0; font-family: var(--blog-heading-font); font-size: clamp(28px, 4vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.blog-featured-copy h2 a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.blog-featured-copy h2 a:hover { color: #78a800; }
.blog-featured-excerpt { margin: 18px 0 28px; font-size: 15.5px; line-height: 1.45; color: var(--blog-muted); }

/* 3. Category Filters */
.blog-filters-section { border-bottom: 1px solid var(--blog-line); padding: 32px 0 20px; background: #fff; position: sticky; top: 0; z-index: 100; }
.blog-filters-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.blog-filters-scroll::-webkit-scrollbar { display: none; }
.blog-filter-btn {
  white-space: nowrap; border: 1px solid var(--blog-line); border-radius: 999px; background: #fff; color: var(--blog-ink); padding: 10px 18px; font-family: var(--blog-ui-font); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.blog-filter-btn:hover { background: rgba(16, 17, 15, 0.03); border-color: rgba(16, 17, 15, 0.25); }
.blog-filter-btn.is-active { background: var(--blog-ink); color: #fff; border-color: var(--blog-ink); }

/* 4. Article Grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 32px); }
.blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(16, 17, 15, 0.08); border-radius: 20px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(112, 157, 0, .32); box-shadow: 0 10px 30px rgba(16, 17, 15, 0.04); }
.blog-card-visual { position: relative; aspect-ratio: 1.6; overflow: hidden; border-bottom: 1px solid rgba(16, 17, 15, 0.04); }
.blog-card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.blog-card:hover .blog-card-visual img { transform: scale(1.04); }

.blog-card-content { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--blog-ui-font); font-size: 12px; font-weight: 500; color: var(--blog-muted); margin-bottom: 14px; }
.blog-card h3 { margin: 0; font-family: var(--blog-heading-font); font-size: clamp(19px, 2.5vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.blog-card h3 a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.blog-card h3 a:hover { color: #78a800; }
.blog-card-excerpt { margin: 12px 0 24px; font-size: 14px; line-height: 1.45; color: var(--blog-muted); flex: 1; }

.blog-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(16, 17, 15, 0.06); padding-top: 16px; margin-top: auto; }
.blog-read-link {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--blog-ui-font); font-size: 13px; font-weight: 500; color: var(--blog-ink); text-decoration: none;
}
.blog-read-link span { position: relative; }
.blog-read-arrow { font-size: 15px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.blog-card:hover .blog-read-arrow, .blog-featured-card:hover .blog-read-arrow { transform: translateX(4px); }

/* Empty state */
.blog-empty-state {
  grid-column: 1 / -1; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; border: 1px dashed var(--blog-line); border-radius: 20px; background: #fafbfc;
}
.blog-empty-state svg { width: 48px; height: 48px; color: var(--blog-muted); margin-bottom: 16px; }
.blog-empty-state h3 { margin: 0; font-family: var(--blog-heading-font); font-size: 22px; font-weight: 500; }
.blog-empty-state p { margin: 8px 0 0; color: var(--blog-muted); font-size: 14.5px; }

/* 5. Popular Guides Section */
.blog-guides-section { background: var(--blog-ink); color: #fff; padding: clamp(64px, 7vw, 100px) 0; border-radius: var(--blog-radius); margin: 0 24px 20px; }
.blog-guides-container { width: min(calc(100% - 48px), 1200px); margin-inline: auto; }
.blog-guides-header { margin-bottom: 48px; }
.blog-guides-header p { color: rgba(255, 255, 255, 0.6); }
.blog-guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-guide-card {
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); text-decoration: none; color: inherit; transition: background-color 0.3s ease, border-color 0.3s ease;
}
.blog-guide-card:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--blog-lime); }
.blog-guide-num { font-family: var(--blog-heading-font); font-size: 40px; color: var(--blog-lime); font-weight: 500; opacity: 0.8; margin-bottom: 32px; line-height: 1; }
.blog-guide-category { font-family: var(--blog-ui-font); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.blog-guide-card h3 { margin: 0; font-family: var(--blog-heading-font); font-size: 20px; font-weight: 400; line-height: 1.25; flex: 1; }
.blog-guide-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-family: var(--blog-ui-font); font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* 6. Lead CTA (Consulation CTA) */
.blog-final-wrap { padding: 0 0 20px; background: #fff; }
.blog-final { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 42px; border-radius: 24px; background: var(--blog-lime); }
.blog-final h2 { max-width: 790px; font-family: var(--blog-heading-font); font-size: 40px; font-weight: 400; letter-spacing: -.04em; line-height: 1.2; margin: 0; }
.blog-final p { margin: 24px 0 0; max-width: 610px; color: rgba(16,17,15,.72); font-size: 15px; line-height: 1.4; }
.blog-final-actions { display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; margin: 12px 0 0; }

/* Reveal transitions */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Responsive layout adjustments */
@media (max-width: 1199px) {
  .blog-featured-card { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
  .blog-featured-visual { aspect-ratio: 1.8; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .blog-guides-grid { grid-template-columns: 1fr; }
  /* Tablet final CTA section style matches desktop stacked style */
  .blog-guides-section { margin-inline: 12px; }
}

@media (max-width: 809px) {
  .blog-hero { padding-top: 110px; }
  .blog-hero h1 { font-size: 34px; }
  .blog-featured-visual { aspect-ratio: 1.6; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-final { padding: 32px 24px; border-radius: 24px; gap: 24px; }
  .blog-final-actions { flex-direction: column; width: 100%; }
}

@media (max-width: 480px) {
  .blog-final-actions { flex-direction: column; width: 100%; align-items: stretch; }
}
