/* Blog index + archives (index.php / archive.php → archive-loop.php → content-index.php).
   Matches Figma "Blog" (node 662:11314). Reuses the theme design system:
   Inter Tight, ink #071030, grey #f6f7f8, success green #22cc6b, lavender #e6eaff. */

.blog-index { font-family: "Inter Tight", sans-serif; color: #071030; padding-top: 24px; padding-bottom: 80px; }

/* Header */
.blog-header { border-bottom: 1px solid rgba(7, 16, 48, 0.08); padding-bottom: 24px; margin-bottom: 32px; }
.blog-header .blog-title { font-weight: 600; font-size: 44px; line-height: 52px; letter-spacing: -0.04em; margin: 0 0 8px; }
.blog-header .blog-subtitle { font-weight: 400; font-size: 16px; line-height: 24px; color: rgba(7, 16, 48, 0.64); margin: 0; }

/* Category filter tabs */
.blog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.blog-tab {
	font-size: 14px; font-weight: 600; line-height: 20px;
	color: rgba(7, 16, 48, 0.56);
	text-decoration: none;
	padding: 6px 12px; border-radius: 8px;
	white-space: nowrap; transition: background 0.15s ease, color 0.15s ease;
}
.blog-tab:hover { color: #071030; background: #f6f7f8; }
.blog-tab.is-active { color: #071030; background: #f6f7f8; }

/* Shared meta row: green category + date */
.blog-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.blog-meta .blog-cat { color: #22cc6b; text-decoration: none; }
.blog-meta .blog-cat:hover { text-decoration: underline; }
.blog-meta .blog-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(7, 16, 48, 0.24); flex: none; }
.blog-meta .blog-date { color: rgba(7, 16, 48, 0.4); }

/* Featured (every 13th post) - text left, image right */
.blog-featured {
	grid-column: 1 / -1;
	display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
	background: #f6f7f8; border-radius: 24px; padding: 24px; margin-bottom: 12px;
}
.blog-featured-text { display: flex; flex-direction: column; }
.blog-featured-body { margin-top: auto; padding-top: 24px; }
.blog-featured-title { font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.02em; margin: 0 0 16px; }
.blog-featured-title a { color: #071030; text-decoration: none; }
.blog-featured-title a:hover { color: #2580ff; }
.blog-featured-excerpt { font-size: 16px; line-height: 24px; color: rgba(7, 16, 48, 0.64); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-featured-media { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 564 / 315; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Post grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; margin-bottom: 48px; }
.blog-card { display: flex; flex-direction: column; }
.blog-card-media { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 383 / 200; margin-bottom: 16px; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.blog-card-media:hover img { transform: scale(1.04); }
.blog-card-title { font-weight: 600; font-size: 16px; line-height: 22px; margin: 12px 0 0; }
.blog-card-title a { color: #071030; text-decoration: none; }
.blog-card-title a:hover { color: #2580ff; }

/* Newsletter */
.blog-newsletter {
	position: relative; overflow: hidden;
	background: #e6eaff; border-radius: 24px;
	padding: 36px; margin-bottom: 48px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.blog-newsletter-text { max-width: 552px; flex: 1 1 auto; }
.blog-newsletter-title { font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.02em; margin: 0 0 12px; }
.blog-newsletter-desc { font-size: 16px; line-height: 24px; color: rgba(7, 16, 48, 0.64); margin: 0 0 24px; }
.blog-newsletter-label { display: block; font-size: 12px; font-weight: 600; line-height: 16px; margin-bottom: 8px; }
.blog-newsletter-form { width: 100%; }
.blog-newsletter-form-row { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.blog-newsletter-input { flex: 1 1 260px; padding: 16px 20px; border-radius: 12px; border: none; background: #fff; font-family: inherit; font-size: 16px; color: #071030; }
.blog-newsletter-input::placeholder { color: rgba(7, 16, 48, 0.4); }
.blog-newsletter-btn { padding: 0 24px; border: none; border-radius: 12px; background: #22cc6b; color: #fff; font-family: inherit; font-weight: 600; font-size: 16px; cursor: pointer; box-shadow: 0 4px 2px rgba(41, 186, 85, 0.24); }
.blog-newsletter-btn:hover { background: #1eb85f; }
.blog-newsletter-image { flex: none; width: 244px; }
.blog-newsletter-image img { width: 100%; height: auto; display: block; }

/* Load more */
.blog-loadmore { display: flex; justify-content: center; }
.blog-loadmore a { font-weight: 600; font-size: 14px; color: #071030; text-decoration: none; padding: 10px 20px; border: 1px solid rgba(7, 16, 48, 0.16); border-radius: 8px; }
.blog-loadmore a:hover { border-color: #071030; }

/* Tablet */
@media (max-width: 991px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-featured { grid-template-columns: 1fr; }
	.blog-featured-media { order: -1; aspect-ratio: 16 / 9; }
	.blog-featured-body { padding-top: 16px; }
}

/* Mobile */
@media (max-width: 640px) {
	.blog-index { padding-bottom: 56px; }
	.blog-header .blog-title { font-size: 32px; line-height: 40px; }
	.blog-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
	.blog-grid { grid-template-columns: 1fr; gap: 32px; }
	.blog-featured { padding: 16px; border-radius: 20px; }
	.blog-featured-title { font-size: 22px; line-height: 28px; }
	.blog-newsletter { flex-direction: column; align-items: flex-start; padding: 24px; }
	.blog-newsletter-title { font-size: 22px; line-height: 28px; }
	.blog-newsletter-image { display: none; }
}
