/**
 * Capital Coil Blog Post Card styles.
 * Horizontal cards (thumbnail + body) stacked vertically, with box pagination.
 */

.ccc-blog {
	width: 100%;
}

.ccc-blog-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.ccc-blog-card {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 22px 26px;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.ccc-blog-thumb {
	flex: 0 0 150px;
	width: 150px;
	margin-right: 26px;
	line-height: 0;
	overflow: hidden;
}

.ccc-blog-thumb img {
	display: block;
	width: 100%;
	height: 116px;
	object-fit: cover;
}

.ccc-blog-body {
	flex: 1 1 auto;
	min-width: 0;
}

.ccc-blog-title {
	margin: 0 0 10px;
	font-size: 21px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
}

.ccc-blog-title a {
	color: #003166;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ccc-blog-title a:hover {
	color: #feb70a;
}

.ccc-blog-meta {
	margin: 0 0 12px;
	color: #727f8c;
	font-size: 15px;
	line-height: 1.4;
}

.ccc-blog-excerpt {
	color: #727f8c;
	font-size: 15px;
	line-height: 1.5;
}

.ccc-blog-empty {
	color: #727f8c;
	font-size: 16px;
}

/* ---------- Pagination ---------- */
/* Nav is a flex row so the whole pager block can be aligned left/center/right. */
.ccc-blog-pagination {
	display: flex;
	justify-content: flex-start;
	margin-top: 30px;
}

.ccc-blog-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccc-blog-pagination li {
	margin: 0;
	padding: 0;
}

.ccc-blog-pagination li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	color: #16266b;
	background-color: #ffffff;
	border: 1px solid transparent;
	border-radius: 0;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Ellipsis: no box. */
.ccc-blog-pagination li .page-numbers.dots {
	border-color: transparent;
	background-color: transparent;
	box-shadow: none;
}

/* Current page: plain number, no box. */
.ccc-blog-pagination li .page-numbers.current {
	color: #727f8c;
	background-color: transparent;
	border-color: transparent;
	box-shadow: none;
}

/* Links fill with navy and white text on hover. */
.ccc-blog-pagination li a.page-numbers:hover {
	color: #ffffff;
	background-color: #043669;
	border-color: #043669;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.ccc-blog-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.ccc-blog-thumb {
		flex: 0 0 auto;
		width: 100%;
		margin-right: 0;
		margin-bottom: 16px;
	}

	.ccc-blog-thumb img {
		width: 100%;
		height: auto;
	}
}
