/**
 * Blog grid shortcode — [blogs]
 * Breakpoints: 1024px, 768px
 */

.blogs-grid-wrap {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
}

.blogs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.blogs-grid__card {
	min-width: 0;
	opacity: 0;
	transform: translateY(24px);
	animation: blogsGridFadeIn 0.5s ease forwards;
}

.blogs-grid__card:nth-child(1) { animation-delay: 0.05s; }
.blogs-grid__card:nth-child(2) { animation-delay: 0.1s; }
.blogs-grid__card:nth-child(3) { animation-delay: 0.15s; }
.blogs-grid__card:nth-child(4) { animation-delay: 0.2s; }
.blogs-grid__card:nth-child(5) { animation-delay: 0.25s; }
.blogs-grid__card:nth-child(6) { animation-delay: 0.3s; }
.blogs-grid__card:nth-child(7) { animation-delay: 0.35s; }
.blogs-grid__card:nth-child(8) { animation-delay: 0.4s; }
.blogs-grid__card:nth-child(9) { animation-delay: 0.45s; }

@keyframes blogsGridFadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.blogs-grid__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	text-decoration: none;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 26, 61, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blogs-grid__link:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 26, 61, 0.1);
}

.blogs-grid__media {
	overflow: hidden;
	height: 220px;
	background-color: #e8edf3;
}

.blogs-grid__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blogs-grid__img--fallback {
	background: linear-gradient(135deg, #d9e2ec 0%, #f7f8fa 100%);
}

.blogs-grid__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.blogs-grid__category {
	margin: 0 0 10px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FF6C2C;
}

.blogs-grid__title {
	margin: 0 0 12px;
	font-family: "Playfair Display", serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #001a3d;
}

.blogs-grid__excerpt {
	margin: 0 0 16px;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 26px;
	color: #4a4a4a;
}

.blogs-grid__meta {
	margin: 0 0 12px;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #6b7280;
}

.blogs-grid__read-more {
	margin-top: auto;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #FF6C2C;
}

.blogs-grid__actions {
	margin-top: 40px;
	text-align: center;
}

.blogs-grid__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	padding: 14px 32px;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff;
	background-color: #001a3d;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.blogs-grid__load-more:hover {
	background-color: #FF6C2C;
	transform: translateY(-2px);
}

.blogs-grid__load-more:disabled,
.blogs-grid__load-more.is-loading {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

.blogs-grid__empty {
	padding: 40px 20px;
	text-align: center;
	font-family: "Inter", sans-serif;
	font-size: 18px;
	color: #4a4a4a;
}

@media (max-width: 1024px) {
	.blogs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.blogs-grid {
		grid-template-columns: 1fr;
	}

	.blogs-grid__media {
		height: 200px;
	}

	.blogs-grid__title {
		font-size: 22px;
	}

	.blogs-grid__load-more {
		width: 100%;
	}
}
