/*
 * Blog index and archives (index.php, archive.php): header with search and category chips,
 * a featured latest post, a responsive card grid, pagination and a closing call to action.
 * Loaded only on those templates. Card markup lives in partials/blog-card.php.
 */

.blog-hero { margin: 0; padding: 56px 0 48px; color: #fff; background: linear-gradient(135deg, #27365a 0%, #34507f 100%); border-bottom: 4px solid var(--brand-primary); }
.blog-hero .container { max-width: 1100px; }
.blog-hero-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-primary); }
.blog-hero h1 { margin: 0 0 12px; font-size: 42px; line-height: 1.15; color: #fff; text-wrap: balance; }
.blog-hero-intro { max-width: 680px; margin: 0 0 24px; font-size: 19px; line-height: 1.55; color: #d6dce8; }
.blog-hero-intro p { margin: 0; }

.blog-tools { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.blog-search { display: flex; flex: 0 1 360px; min-width: 240px; }
.blog-search input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 6px 0 0 6px; font-size: 16px; color: #0a2540; background: #fff; }
.blog-search button { height: 44px; padding: 0 18px; border: 0; border-radius: 0 6px 6px 0; font-size: 15px; font-weight: 700; color: #1d2433; background: var(--brand-primary); cursor: pointer; }
.blog-search button:hover { filter: brightness(1.06); }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.blog-chips a { display: inline-block; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.blog-chips a:hover { background: rgba(255, 255, 255, .14); }
.blog-chips .is-current a { border-color: var(--brand-primary); color: #1d2433; background: var(--brand-primary); }

.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 15px 24px; }

.blog-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 0 0 48px; padding: 0; border: 1px solid #e3e7ee; border-radius: 10px; background: #fff; box-shadow: 0 14px 36px rgba(10, 37, 64, .08); overflow: hidden; }
.blog-featured .blog-media { aspect-ratio: auto; align-self: stretch; min-height: 300px; }
.blog-featured .blog-body { min-width: 0; padding: 28px 32px 28px 0; }
.blog-featured .blog-title { font-size: 30px; line-height: 1.2; }
.blog-featured .blog-excerpt { -webkit-line-clamp: 4; font-size: 17px; }
.blog-label { display: inline-block; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-link); }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.blog-card { display: flex; flex-direction: column; margin: 0; border: 1px solid #e3e7ee; border-radius: 10px; background: #fff; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover { box-shadow: 0 14px 32px rgba(10, 37, 64, .12); transform: translateY(-2px); }
.blog-media { position: relative; display: block; min-width: 0; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #27365a, #34507f); overflow: hidden; }
.blog-media img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border: 0; transition: transform .3s ease; }
.blog-card:hover .blog-media img, .blog-featured:hover .blog-media img { transform: scale(1.03); }
.blog-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.blog-cat { display: inline-block; align-self: flex-start; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #6b4a14; background: #f6ead7; text-decoration: none; }
.blog-title { margin: 0 0 10px; font-size: 20px; line-height: 1.3; color: #0a2540; text-wrap: balance; }
.blog-title a { color: inherit; text-decoration: none; }
.blog-title a:hover { color: var(--text-link); }
.blog-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #44506a; overflow: hidden; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0; font-size: 14px; color: #6b7384; }
.blog-more { font-weight: 700; color: var(--text-link); text-decoration: none; }
.blog-more:hover { text-decoration: underline; }

.blog-wrap .navigation { margin: 48px 0 8px; text-align: center; }
.blog-wrap .navigation ul { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.blog-wrap .navigation li a, .blog-wrap .navigation li.active a { display: inline-block; min-width: 40px; padding: 8px 14px; border: 1px solid #d5dbe6; border-radius: 6px; font-weight: 600; color: #0a2540; text-decoration: none; background: #fff; }
.blog-wrap .navigation li a:hover { border-color: var(--brand-primary); }
.blog-wrap .navigation li.active a { border-color: var(--brand-primary); color: #1d2433; background: var(--brand-primary); }

.blog-empty { padding: 48px 0; text-align: center; font-size: 18px; color: #44506a; }

.blog-cta { margin-top: 56px; padding: 44px 0; color: #fff; background: linear-gradient(135deg, #27365a 0%, #34507f 100%); border-top: 4px solid var(--brand-primary); }
.blog-cta .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; max-width: 1100px; }
.blog-cta h2 { margin: 0 0 6px; font-size: 26px; color: #fff; }
.blog-cta p { margin: 0; max-width: 560px; color: #d6dce8; }
.blog-cta .btn { margin: 4px 8px 4px 0; }

@media (max-width: 991px) {
	.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.blog-featured { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.blog-featured .blog-media { aspect-ratio: 16 / 9; min-height: 0; }
	.blog-featured .blog-body { padding: 22px; }
}
@media (max-width: 600px) {
	.blog-hero { padding: 40px 0 36px; }
	.blog-hero h1 { font-size: 32px; }
	.blog-grid { grid-template-columns: minmax(0, 1fr); }
	.blog-featured .blog-title { font-size: 24px; }
	.blog-search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.blog-card, .blog-media img { transition: none; }
	.blog-card:hover { transform: none; }
}

/* Space under the featured card (the theme resets article margins) and keep the top of its image in view. */
.blog-wrap > .blog-featured + .blog-grid { margin-top: 48px; }
.blog-featured .blog-media img { object-position: center top; }

/* "Start here" strip: the three destinations that produce form submissions. */
.blog-start { background: #f6f9fc; border-bottom: 1px solid #e3e7ee; }
.blog-start-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 18px 15px; }
.blog-start h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-link); }
.blog-start-list { display: grid; flex: 1 1 640px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.blog-start-list a { display: block; height: 100%; padding: 12px 16px; border: 1px solid #d5dbe6; border-left: 4px solid var(--brand-primary); border-radius: 6px; background: #fff; text-decoration: none; color: #0a2540; transition: box-shadow .15s ease; }
.blog-start-list a:hover { box-shadow: 0 8px 20px rgba(10, 37, 64, .1); }
.blog-start-kicker { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a6a2f; }
.blog-start-text { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; }
@media (max-width: 991px) { .blog-start-list { grid-template-columns: minmax(0, 1fr); } }
