/* Blog Cards Addon — frontend styles
   Fonts (optional, load once site-wide if you want the exact look from the
   original design): Fraunces, Sora, IBM Plex Mono via Google Fonts. */

.bca-wrap * { box-sizing: border-box; }

.bca-wrap .mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.02em; }

/* ---------- Grid ---------- */
.bca-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

/* ---------- Card ---------- */
.bca-card {
	position: relative;
	background: #FBFAF4;
	border: 1px solid #D3D6C8;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
}

.bca-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.bca-thumb {
	position: relative;
	width: 100%;
	height: 240px;
	overflow: hidden;
	background: #C7D1BE;
}

.bca-thumb img,
.bca-thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.bca-thumb-fallback {
	background: linear-gradient(135deg, #C7D1BE, #8FA381);
}

.bca-category {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	display: inline-block;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: #26382B;
	color: #FBFAF4;
	padding: 5px 10px;
	border-radius: 2px;
}

.bca-body .bca-category {
	position: static;
	margin-bottom: 12px;
}

.bca-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bca-num {
	display: block;
	font-size: 12px;
	color: #93692A;
	margin-bottom: 14px;
}

.bca-title {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 19px;
	line-height: 1.25;
	margin-bottom: 10px;
	letter-spacing: -0.01em;
}

.bca-title a {
	color: #1B2318;
	text-decoration: none;
	transition: color .25s ease;
}

.bca-card:hover .bca-title a {
	color: #93692A;
}

.bca-excerpt {
	font-family: 'Sora', sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: #3C4437;
	margin: 0 0 14px;
	flex-grow: 1;
}

.bca-price {
	display: inline-block;
	font-family: 'Sora', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #B8863B;
	margin-bottom: 14px;
}

.bca-read {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	color: #182219;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	width: fit-content;
	transition: color .25s ease, gap .25s ease;
}

.bca-read:hover {
	color: #93692A;
	gap: 10px;
}

.bca-read svg { flex-shrink: 0; }

/* ---------- Pagination ---------- */
.bca-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.bca-pagination ul.page-numbers {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bca-pagination a,
.bca-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	color: #3C4437;
	text-decoration: none;
	border: 1px solid #D3D6C8;
	border-radius: 2px;
	transition: background-color .2s ease, color .2s ease;
}

.bca-pagination a:hover {
	background: #C7D1BE;
}

.bca-pagination .current {
	background: #26382B;
	color: #FBFAF4;
	border-color: #26382B;
}

/* ---------- Slider ---------- */
.bca-slider-outer {
	position: relative;
}

.bca-wrap .swiper {
	overflow: hidden;
	padding: 4px 4px 8px;
}

.bca-wrap .swiper-wrapper {
	display: flex;
}

.bca-wrap .swiper-slide {
	height: auto;
	display: flex;
}

.bca-wrap .swiper-slide .bca-card {
	width: 100%;
}

.bca-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FBFAF4;
	color: #1B2318;
	border: 1px solid #D3D6C8;
	border-radius: 50%;
	cursor: pointer;
	z-index: 5;
	transition: background-color .2s ease;
}

.bca-arrow:hover {
	background: #C7D1BE;
}

.bca-arrow-prev { left: -8px; }
.bca-arrow-next { right: -8px; }

.bca-wrap .swiper-pagination {
	position: static;
	margin-top: 18px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.bca-wrap .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #C7D1BE;
	opacity: 1;
	border-radius: 50%;
	margin: 0 !important;
	transition: transform .2s ease;
}

.bca-wrap .swiper-pagination-bullet-active {
	background: #26382B;
	transform: scale(1.25);
}

.bca-empty {
	font-family: 'Sora', sans-serif;
	color: #3C4437;
	padding: 40px;
	text-align: center;
	border: 1px dashed #D3D6C8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bca-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.bca-grid { grid-template-columns: 1fr; }
	.bca-arrow-prev { left: 4px; }
	.bca-arrow-next { right: 4px; }
}
