/* CuciQu Pro — Blog index (/blog/). Loaded after site.css. */

/* ---------- Hero ---------- */
.blog-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.blog-hero__eyebrow { margin-top: 22px; }
.blog-hero__title { margin-top: 18px; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; max-width: 820px; }
.blog-hero__lead { margin-top: 18px; max-width: 640px; }
.blog-search { margin-top: 28px; max-width: 560px; }
.blog-search__field { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; cursor: text; }
.blog-search__field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(42, 157, 143, .14); }
.blog-search__icon { position: relative; flex: none; width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; margin-top: -3px; }
.blog-search__icon::after { content: ""; position: absolute; width: 2px; height: 6px; background: var(--muted); border-radius: 2px; right: -4px; bottom: -6px; transform: rotate(-45deg); }
.blog-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.blog-search input::placeholder { color: #6f8385; }
.blog-search__meta { margin: 10px 0 0 4px; font-size: 14px; color: var(--muted); }
.blog-search__meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Featured + cards (same component as the homepage blog section) ---------- */
.blog-list { padding-top: clamp(40px, 5vw, 64px); }
.post-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); text-decoration: none; color: var(--ink); border-radius: 28px; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, border-color .25s; background: #fff; }
.post-feature:hover { box-shadow: var(--shadow-card); border-color: var(--line-hover); color: var(--ink); }
.post-feature__media { background: #eef6f4; display: flex; align-items: center; }
.post-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 960px) { .post-feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.post-feature__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.post-feature__tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-feature__title { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.18; letter-spacing: -.025em; font-weight: 800; color: var(--ink); }
.post-feature__body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-3); }

.post-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s, border-color .25s; }
.post-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); border-color: var(--line-hover); color: var(--ink); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--tint); }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__body .h3 { font-size: 19px; line-height: 1.35; }
.post-card__body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-3); }
.post-card__body .meta { margin-top: auto; padding-top: 4px; font-size: 13px; }
.post-card__more { font-size: 14px; font-weight: 700; color: var(--primary); }
.post-card:hover .post-card__more { color: var(--primary-deep); }
.post-card__more--lg { margin-top: 4px; font-size: 15px; }

/* ---------- List head, chips, grid ---------- */
.blog-list__head { margin-top: clamp(56px, 7vw, 80px); }
.blog-chips { margin-top: 24px; flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
.blog-grid { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.blog-grid > li { min-width: 0; }
.blog-grid > li[hidden] { display: none; }
.blog-more { margin-top: 36px; display: flex; justify-content: center; }
.blog-more:has(> [hidden]) { display: none; }
.blog-empty { margin-top: 20px; padding: 40px 24px; border-radius: 24px; border: 1px dashed #cfdedb; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.blog-empty[hidden] { display: none; }
.blog-empty strong { font-size: 18px; color: var(--ink); }
.blog-empty span { font-size: 15px; color: var(--text-3); max-width: 520px; }
.blog-empty .btn { margin-top: 12px; }

/* Mobile: one scrollable row of chips instead of five wrapped rows */
@media (max-width: 640px) {
  .blog-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
}

/* ---------- Related links ---------- */
.blog-related { margin-top: clamp(56px, 7vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.blog-related__link { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 20px; background: var(--tint); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.blog-related__link:hover { border-color: var(--line-hover); box-shadow: var(--shadow-card); color: var(--ink); }
.blog-related__link strong { font-size: 17px; line-height: 1.35; }
.blog-related__link span:last-child { font-size: 14px; line-height: 1.6; color: var(--text-3); }

/* ---------- CTA ---------- */
.cta-wrap { padding-bottom: var(--section-y-sub); }
.blog-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; align-items: center; padding: clamp(40px, 6vw, 72px); }
.blog-cta__title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.blog-cta .cta-band__text { margin-top: 14px; font-size: 17px; }
.blog-cta .btn-row .btn { height: 56px; }
