/* ============================================================
   Immigence Blog Widget — blog-widget.css
   ============================================================ */

.blg-section {
	background-color: #ffffff;
	width: 100%;
	box-sizing: border-box;
}

.blg-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
}

/* ── HEADER ──────────────────────────────────────────────── */
.blg-header {
	text-align: center;
	max-width: 680px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.blg-tag {
	display: inline-block;
	background-color: #0B1D3A;
	color: #C8983C;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 18px;
	border-radius: 100px;
}

.blg-heading {
	margin: 0;
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 700;
	line-height: 1.25;
	color: #0B1D3A;
}

.blg-subtext {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #4A5568;
}

/* ── SLIDER WRAPPER ──────────────────────────────────────── */
.blg-slider-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.blg-overflow {
	width: 100%;
	overflow: hidden;
}

/* ── TRACK — always flex, JS controls transform ─────────── */
.blg-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 24px;
	width: 100%;
	transition: transform 0.4s ease;
	will-change: transform;
}

/* ── CARD — width set by JS via data attribute ───────────── */
/* Default: 4 visible (desktop) */
.blg-card {
	flex: 0 0 calc(25% - 18px);   /* (100% - 3*24px) / 4 */
	min-width: calc(25% - 18px);
	max-width: calc(25% - 18px);
	position: relative;
	background-color: #ffffff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* tablet: 2 visible */
@media (max-width: 1023px) {
	.blg-card {
		flex: 0 0 calc(50% - 12px);
		min-width: calc(50% - 12px);
		max-width: calc(50% - 12px);
	}
}

/* mobile: 1 visible */
@media (max-width: 767px) {
	.blg-track {
		gap: 16px;
	}
	.blg-card {
		flex: 0 0 100%;
		min-width: 100%;
		max-width: 100%;
	}
}

/* Hover top accent */
.blg-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 3px;
	background: #C8983C;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.blg-card:hover::before { transform: scaleX(1); }

.blg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(11, 29, 58, 0.12);
}

/* ── CARD IMAGE ──────────────────────────────────────────── */
.blg-img-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	flex-shrink: 0;
}

.blg-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.blg-card:hover .blg-img-wrap img { transform: scale(1.04); }

/* ── CARD BODY ───────────────────────────────────────────── */
.blg-card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.blg-card-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.blg-cat {
	display: inline-block;
	background-color: #0B1D3A;
	color: #C8983C;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 100px;
	white-space: nowrap;
}

.blg-meta {
	font-size: 12px;
	color: #4A5568;
	display: flex;
	align-items: center;
	gap: 5px;
}

.blg-dot-sep {
	color: #C8983C;
	font-weight: 700;
}

.blg-card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #0B1D3A;
}

.blg-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.blg-card-title a:hover { color: #C8983C; }

.blg-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #4A5568;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blg-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #C8983C;
	text-decoration: none;
	margin-top: auto;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: color 0.2s;
}

.blg-read-more svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}

.blg-read-more:hover { color: #0B1D3A; }
.blg-read-more:hover svg { transform: translateX(4px); }

/* ── DOTS ────────────────────────────────────────────────── */
.blg-dots {
	display: none;
	justify-content: center;
	gap: 8px;
}

/* show dots on tablet + mobile */
@media (max-width: 1023px) {
	.blg-dots { display: flex; }
}

.blg-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	padding: 0;
	background-color: #E2E8F0;
	transition: background-color 0.25s, transform 0.25s;
}

.blg-dot.active {
	background-color: #C8983C;
	transform: scale(1.3);
}

/* ── CTA ─────────────────────────────────────────────────── */
.blg-cta-wrap {
	display: flex;
	justify-content: center;
}

.blg-cta {
	display: inline-block;
	background-color: #C8983C;
	color: #0B1D3A;
	border: 2px solid #C8983C;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 14px 40px;
	border-radius: 4px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.blg-cta:hover {
	background-color: transparent;
	color: #C8983C;
}

.blg-no-posts {
	color: #4A5568;
	text-align: center;
}

@media (max-width: 767px) {
	.blg-inner { gap: 36px; }
	.blg-cta { width: 100%; text-align: center; }
}