/* ==========================================================================
   v0.3.16 Blog index ("Style C v2 Magazine"). Loaded only on the blog index
   (home.php / page-blog.php), after landing.css + archives.css.
   Hover rule: every button darkens its own colour; text links blue -> blue-dark.
   ========================================================================== */
.hu-blog-index .hu-blog-section.wp-block-group { padding: 58px 0 84px; }
.hu-blog-grid { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 32px; align-items: start; }
.hu-blog-side { position: sticky; top: 112px; }
.admin-bar .hu-blog-side { top: 144px; }
.hu-blog-main { min-width: 0; }

/* Section titles */
.hu-blog-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.hu-blog-title > div > * { margin: 0; }
.hu-blog-title .hu-eyebrow { color: var(--hu-blue); }
.hu-blog-title h2 { margin-top: 6px !important; color: var(--hu-navy); font-size: 31px; font-weight: 800; line-height: 1.06; letter-spacing: -.04em; }
.hu-blog-index .hu-blog-title-link { flex: 0 0 auto; color: var(--hu-blue); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hu-blog-index .hu-blog-title-link:is(:hover, :focus-visible) { color: var(--hu-blue-dark); text-decoration: underline; }
.hu-blog-cards + .hu-blog-title, .hu-blog-cta--inline + .hu-blog-title { margin-top: 44px; }

/* Shared card bits */
.hu-blog-cat { margin: 0; color: var(--hu-blue); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hu-blog-link { color: inherit; text-decoration: none; }
.hu-blog-link::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* whole card clickable */
.hu-blog-meta { display: flex; justify-content: space-between; gap: 12px; margin: 15px 0 0; padding-top: 13px; border-top: 1px solid var(--hu-line); color: var(--hu-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Top story */
.hu-blog-top { position: relative; min-height: 430px; margin: 0 0 18px; overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, var(--hu-navy) 0%, var(--hu-navy-2) 55%, var(--hu-navy-glow) 100%); display: flex; align-items: flex-end; }
.hu-blog-top-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hu-blog-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--hu-navy-rgb), .92), rgba(var(--hu-navy-rgb), .42) 58%, rgba(var(--hu-navy-rgb), .05)); pointer-events: none; }
.hu-blog-top.is-fallback::after { background: radial-gradient(circle at 85% 20%, rgba(var(--hu-blue-rgb), .35), transparent 55%); }
.hu-blog-top-copy { position: relative; z-index: 2; max-width: 580px; padding: 56px 44px; color: var(--hu-white); }
.hu-blog-top .hu-blog-cat { color: var(--hu-yellow); }
.hu-blog-top h2 { margin: 12px 0 !important; color: var(--hu-white); font-size: 45px; font-weight: 800; line-height: 1.02; letter-spacing: -.05em; }
.hu-blog-top .hu-blog-excerpt { margin: 0; color: #CFD8E5; font-size: 15px; line-height: 1.58; }
.hu-blog-top .hu-blog-meta { border-color: rgba(var(--hu-white-rgb), .15); color: #C2CDDB; }
.hu-blog-top:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Card grid */
.hu-blog-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.hu-blog-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hu-line); border-radius: 9px; background: var(--hu-white); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.hu-blog-card:hover { transform: translateY(-2px); border-color: #C9D1DE; box-shadow: 0 13px 35px rgba(var(--hu-navy-rgb), .08); }
.hu-blog-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #DDE4EF; }
.hu-blog-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.hu-blog-card:hover .hu-blog-thumb img { transform: scale(1.025); }
.hu-blog-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--hu-navy-rgb), .18)); }
.hu-blog-thumb.is-fallback { background: radial-gradient(circle at 82% 18%, rgba(var(--hu-blue-rgb), .55), transparent 52%), linear-gradient(135deg, var(--hu-navy) 0%, var(--hu-navy-2) 60%, var(--hu-navy-glow) 100%); }
.hu-blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.hu-blog-card h3 { margin: 9px 0 8px !important; color: var(--hu-navy); font-size: 21px; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
.hu-blog-card:hover h3, .hu-blog-card .hu-blog-link:focus-visible { color: var(--hu-blue-dark); }
.hu-blog-card .hu-blog-excerpt { margin: 0; color: var(--hu-muted); font-size: 13.5px; line-height: 1.5; }
.hu-blog-card-body > .hu-blog-meta { margin-top: auto; }
.hu-blog-card .hu-blog-excerpt { margin-bottom: 15px; }

/* Founder Files */
.hu-blog-card--founder { min-height: 220px; border-color: var(--hu-navy); background: var(--hu-navy); }
.hu-blog-card--founder:hover { border-color: var(--hu-navy); box-shadow: 0 13px 35px rgba(var(--hu-navy-rgb), .22); }
.hu-blog-card--founder .hu-blog-card-body { padding: 22px; }
.hu-blog-card--founder .hu-blog-cat { color: var(--hu-yellow); }
.hu-blog-card--founder h3, .hu-blog-card--founder:hover h3 { color: var(--hu-white); }
.hu-blog-card--founder:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.hu-blog-card--founder .hu-blog-excerpt, .hu-blog-card--founder .hu-blog-meta { color: #B6C4D6; }
.hu-blog-card--founder .hu-blog-meta { border-color: rgba(var(--hu-white-rgb), .12); }

/* Yellow CTA */
.hu-blog-cta { padding: 24px; border: 1px solid rgba(var(--hu-navy-rgb), .15); border-radius: 9px; background: var(--hu-yellow); color: var(--hu-navy); }
.hu-blog-cta > * { margin: 0; }
.hu-blog-cta .hu-eyebrow { color: var(--hu-navy); }
.hu-blog-cta h3 { margin: 10px 0 !important; color: var(--hu-navy); font-size: 25px; font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }
.hu-blog-cta p:not(.hu-eyebrow) { margin-bottom: 18px; color: var(--hu-on-yellow); font-size: 13px; line-height: 1.58; }
.hu-blog-cta-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 5px; background: var(--hu-navy); color: var(--hu-white) !important; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color .16s ease; }
.hu-blog-cta-btn:is(:hover, :focus-visible, :active) { background: var(--hu-navy-hover); color: var(--hu-white) !important; }
.hu-blog-cta--inline { display: none; }
.hu-blog-top-fallback { display: none; }

.hu-blog-pagination { margin-top: 34px; }
.hu-blog-pagination .prev, .hu-blog-pagination .next { white-space: nowrap; }

/* Tablet / mobile: one column; CTA moves directly under the featured story. */
@media (max-width: 900px) {
	.hu-blog-index .hu-blog-section.wp-block-group { padding: 34px 0 62px; }
	.hu-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.hu-blog-side { display: none; }
	.hu-blog-cta--inline { display: block; margin: 0 0 18px; }
	.hu-blog-main > .hu-blog-cta--inline:last-child { margin: 34px 0 0; }
	.hu-blog-cards { grid-template-columns: minmax(0, 1fr); }
	.hu-blog-top { min-height: 0; }
	.hu-blog-top-copy { padding: 120px 24px 28px; }
	.hu-blog-top::after { background: linear-gradient(180deg, rgba(var(--hu-navy-rgb), .25), rgba(var(--hu-navy-rgb), .92) 55%); }
	.hu-blog-top.is-fallback::after { background: radial-gradient(circle at 85% 12%, rgba(var(--hu-blue-rgb), .35), transparent 55%); }
	.hu-blog-top h2 { font-size: 34px; }
	.hu-blog-top .hu-blog-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
	.hu-blog-cards + .hu-blog-title, .hu-blog-cta--inline + .hu-blog-title { margin-top: 36px; }
}
@media (max-width: 600px) {
	.hu-blog-top h2 { font-size: clamp(27px, 8vw, 32px); }
	.hu-blog-card h3 { font-size: 20px; }
	.hu-blog-pagination { gap: 6px; }
	.hu-blog-pagination a, .hu-blog-pagination span { min-width: 36px; min-height: 36px; padding: 0 10px; }
}

/* v0.3.17 compact mobile Featured area (<=720px): one-row section headers,
   stacked top story (image strip + navy body, no min-height), 24-32px rhythm. */
@media (max-width: 720px) {
	.hu-blog-index .hu-blog-section.wp-block-group { padding-top: 30px; }
	.hu-blog-title { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
	.hu-blog-title h2 { font-size: 28px; line-height: 1.06; }
	.hu-blog-index .hu-blog-title-link { padding-bottom: 4px; font-size: 12.5px; line-height: 1.2; }
	.hu-blog-cards + .hu-blog-title, .hu-blog-cta--inline + .hu-blog-title { margin-top: 32px; }

	.hu-blog-top { display: block; min-height: 0; margin: 0 0 24px; background: var(--hu-navy); }
	.hu-blog-top::after, .hu-blog-top.is-fallback::after { content: none; }
	.hu-blog-top-img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
	.hu-blog-top-fallback { display: block; aspect-ratio: 16 / 9; background: radial-gradient(circle at 82% 18%, rgba(var(--hu-blue-rgb), .55), transparent 52%), linear-gradient(135deg, var(--hu-navy) 0%, var(--hu-navy-2) 60%, var(--hu-navy-glow) 100%); }
	.hu-blog-top-copy { max-width: none; padding: 22px 22px 22px; }
	.hu-blog-top h2 { margin: 10px 0 !important; font-size: clamp(25px, 7vw, 30px); line-height: 1.06; }
	.hu-blog-top .hu-blog-excerpt { font-size: 14.5px; -webkit-line-clamp: 3; line-clamp: 3; }
	.hu-blog-top .hu-blog-meta { margin-top: 14px; padding-top: 12px; }

	.hu-blog-cta--inline { margin: 0 0 24px; }
	.hu-blog-main > .hu-blog-cta--inline:last-child { margin: 32px 0 0; }
	.hu-blog-cards { gap: 16px; }
	.hu-blog-pagination { margin-top: 28px; }
}
