/* ==========================================================================
   Blog: index, cards, single post
   ========================================================================== */
.blog-filters { justify-content: center; margin-bottom: 36px; }
.blog-filters .filter { text-decoration: none; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 32px -22px rgba(10,26,92,.45); color: var(--text); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--text); }
.post-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.08); }
.post-card-cat { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 99px; background: var(--g-btn); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex: 1; }
.post-card-date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.post-card-date .ico { color: var(--blue-500); }
.post-card h3 { font-size: 1.3rem; margin: 0; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0 0 6px; }
.post-card .svc-more { margin-top: auto; }
.post-card:hover .svc-more .ico { transform: translateX(6px); }
.blog-pager { margin-top: 40px; display: flex; justify-content: center; }
.blog-pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-pager .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.blog-pager .page-numbers.current, .blog-pager .page-numbers:hover { background: var(--g-btn); color: #fff; border-color: transparent; }

/* Single */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 24px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .ico { color: var(--blue-500); }
.post-feature { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.post-feature img { width: 100%; height: 100%; object-fit: cover; }
.post-content { font-size: 1.07rem; line-height: 1.8; color: var(--text); }
.post-content > * + * { margin-top: 1.1em; }
.post-content p { margin: 0; }
.post-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.8em 0 .1em; padding-top: .2em; position: relative; }
.post-content h2::before { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; margin-bottom: 14px; background: var(--g-btn); }
.post-content h3 { font-size: 1.35rem; margin: 1.5em 0 0; }
.post-content ul, .post-content ol { padding-left: 0; display: grid; gap: 10px; }
.post-content ul li { position: relative; padding-left: 34px; list-style: none; }
.post-content ul li::before { content: ""; position: absolute; left: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%; background: var(--g-btn) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.post-content ol { counter-reset: n; }
.post-content ol li { position: relative; padding-left: 44px; list-style: none; counter-increment: n; }
.post-content ol li::before { content: counter(n); position: absolute; left: 0; top: .05em; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--g-btn); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: .9rem; }
.post-content a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(26,79,224,.35); text-underline-offset: 3px; }
.post-content a:hover { text-decoration-color: var(--blue-600); }
.post-content strong { color: var(--ink); }
.post-content blockquote, .post-content .callout { margin: 1.6em 0; padding: 22px 24px 22px 26px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 5px solid var(--blue-500); color: var(--ink); font-weight: 500; }
.post-content .callout strong:first-child { display: block; font-family: var(--f-display); font-size: 1.1rem; margin-bottom: 4px; color: var(--blue-600); }
.post-content table { width: 100%; border-collapse: collapse; font-size: .95rem; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.post-content th { background: var(--navy-800); color: #fff; text-align: left; font-family: var(--f-display); padding: 12px 14px; }
.post-content td { padding: 12px 14px; border-top: 1px solid var(--line); }
.post-content tr:nth-child(even) td { background: var(--bg-soft); }
.post-content .faq-q { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); margin-top: 1.4em; }
.post-author { display: flex; gap: 18px; align-items: center; margin-top: 44px; padding: 22px; border-radius: 20px; background: var(--g-dark); color: #c9d4f2; }
.post-author img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.post-author strong { color: #fff; font-family: var(--f-display); font-size: 1.15rem; }
.post-author p { margin: 4px 0 0; font-size: .92rem; line-height: 1.55; }
.post-side { position: sticky; top: 110px; display: grid; gap: 20px; }
.side-card { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px -24px rgba(10,26,92,.45); }
.side-card h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.side-card p { color: var(--muted); font-size: .94rem; }
.side-cta { background: var(--g-dark); border: 0; color: #c9d4f2; display: grid; gap: 10px; }
.side-cta h3 { color: #fff; margin-bottom: 0; }
.side-cta p { color: #c9d4f2; margin: 0 0 6px; }
.side-cta .qc-badge { justify-self: start; }
.side-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.side-links { display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .95rem; transition: background .25s; }
.side-links a .ico { color: var(--blue-500); }
.side-links a:hover, .side-links .is-current a { background: var(--bg-soft); }
.side-towns { display: flex; flex-wrap: wrap; gap: 6px; }
.side-towns a { padding: 6px 11px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink); transition: all .25s; }
.side-towns a:hover, .side-towns a.is-current { background: var(--g-btn); color: #fff; border-color: transparent; }

@media (max-width: 1100px) {
	.post-grid { grid-template-columns: 1fr; }
	.post-side { position: static; grid-template-columns: 1fr 1fr; }
	.post-side .side-cta { grid-column: 1 / -1; }
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
	.blog-grid, .post-side { grid-template-columns: 1fr; }
	.post-content { font-size: 1.02rem; }
	.post-author { flex-direction: column; text-align: center; }
	.post-content table { display: block; overflow-x: auto; }
}
