/* Brightsun Blog Archive */
.bsba {
	--bsba-accent: #f39200;
	--bsba-text: #1d2327;
	--bsba-muted: #6b7280;
	--bsba-border: #e5e7eb;
	--bsba-radius: 6px;
	--bsba-gap: 28px;
	position: relative;
	transition: opacity .2s ease;
}
.bsba.is-loading { opacity: .45; pointer-events: none; }

.bsba-grid {
	display: grid;
	gap: var(--bsba-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bsba-cols-1 { grid-template-columns: 1fr; }
.bsba-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsba-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

.bsba-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--bsba-border);
	border-radius: var(--bsba-radius);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.bsba-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .08); transform: translateY(-3px); }

.bsba-thumb { display: block; aspect-ratio: 800 / 430; overflow: hidden; background: #eef0f3; }
.bsba-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bsba-card:hover .bsba-thumb img { transform: scale(1.04); }
.bsba-thumb-placeholder { display: block; width: 100%; height: 100%; }

.bsba-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.bsba-date { font-size: 13px; color: var(--bsba-muted); margin-bottom: 8px; }
/* Theme/Elementor heading styles can force a tiny line-height or fixed height,
   which makes 2-line titles overlap. Lock these values down. */
.bsba .bsba-card .bsba-title {
	font-size: 18px !important;
	line-height: 1.45 !important;
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	overflow: visible !important;
	white-space: normal !important;
	word-wrap: break-word;
}
.bsba .bsba-card .bsba-title a {
	display: inline !important;
	line-height: inherit !important;
	font-size: inherit !important;
	white-space: normal !important;
	color: var(--bsba-text);
	text-decoration: none;
}
.bsba .bsba-card .bsba-date { display: block; line-height: 1.4 !important; }
.bsba-title a:hover { color: var(--bsba-accent); }
.bsba-excerpt { color: var(--bsba-muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.bsba-more {
	margin-top: auto;
	align-self: flex-start;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--bsba-accent);
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}
.bsba-more:hover { opacity: .8; }

/* Pagination */
.bsba-pagination { margin-top: 44px; }
.bsba-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bsba-pagination li { margin: 0; }
.bsba-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--bsba-border);
	border-radius: var(--bsba-radius);
	color: var(--bsba-text);
	background: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s ease;
}
.bsba-pagination a.page-numbers:hover { border-color: var(--bsba-accent); color: var(--bsba-accent); }
.bsba-pagination .page-numbers.current { background: var(--bsba-accent); border-color: var(--bsba-accent); color: #fff; }
.bsba-pagination .page-numbers.dots { border: 0; background: transparent; min-width: auto; padding: 0 4px; }

.bsba .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.bsba-empty { text-align: center; color: var(--bsba-muted); }
