/* =============================================
   Blog Page
   ============================================= */

:root {
	--blog-accent:  #4ABBD5;
	--blog-ink:     #010D0A;
	--blog-grey:    #707070;
	--blog-blush:   #EEE5E6;
	--blog-beige:   #F7F5F1;
}


/* ── Page wrapper (max-width + padding) ───── */

.ds-blog-page {
	width: 100%;
}

.ds-blog-container {
	max-width: 1440px;
	margin: 0 auto;
	padding-left:  2rem;
	padding-right: 2rem;
}


/* ── Hero ─────────────────────────────────── */

.ds-blog-hero {
	background: var(--blog-blush);
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 420px;
	overflow: hidden;
}

.ds-blog-hero__side {
	display: flex;
}

.ds-blog-hero__side--content {
	justify-content: flex-end;
	padding: 0 48px 0 2rem;
}

.ds-blog-hero__side--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.ds-blog-hero__side--empty {
	background: var(--blog-blush);
}

.ds-blog-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 72px 0;
	max-width: 560px;
	width: 100%;
}

.ds-blog-hero__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blog-accent);
	margin: 0 0 16px;
}

.ds-blog-hero__headline {
	font-size: clamp(28px, 3.2vw, 48px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--blog-ink);
	margin: 0 0 16px;
}

.ds-blog-hero__subtitle {
	font-size: 15px;
	color: var(--blog-grey);
	line-height: 1.65;
	margin: 0;
}

@media (max-width: 900px) {
	.ds-blog-hero {
		grid-template-columns: 1fr;
	}
	.ds-blog-hero__side--content {
		padding: 0 2rem;
	}
	.ds-blog-hero__content {
		padding: 48px 0;
		max-width: 100%;
	}
	.ds-blog-hero__side--image {
		min-height: 280px;
	}
}


/* ── Body ─────────────────────────────────── */

.ds-blog-body {
	padding: 64px 0;
}


/* ── Featured post ────────────────────────── */

.ds-blog-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 64px;
	border: 1px solid #e0e0e0;
}

.ds-blog-featured__image {
	display: block;
	overflow: hidden;
	min-height: 340px;
	max-height: 580px;
    background-color: #edf0f7;
}

.ds-blog-featured__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.4s ease;
}

.ds-blog-featured:hover .ds-blog-featured__image img {
	transform: scale(1.03);
}

.ds-blog-featured__body {
	background-color: #fff;
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
}

.ds-blog-featured__label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blog-accent);
}

.ds-blog-featured__cat {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blog-grey);
	text-decoration: none;
}

.ds-blog-featured__cat:hover {
	color: var(--blog-accent);
}

.ds-blog-featured__title {
	font-family: var(--wp--preset--font-family--aperitif) !important;;
	font-size: clamp(52px, 2vw, 32px);
	font-weight: 400;
	line-height: 1.3;
	margin: 0;
}

.ds-blog-featured__title a {
	color: var(--blog-ink);
	text-decoration: none;
}

.ds-blog-featured__title a:hover {
	color: var(--blog-accent);
}

.ds-blog-featured__excerpt {
	font-size: 14px;
	color: var(--blog-grey);
	line-height: 1.65;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ds-blog-featured__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--blog-grey);
	margin-top: 4px;
}

.ds-blog-featured__avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.ds-blog-featured__date::before {
	content: '·';
	margin-right: 8px;
}

@media (max-width: 820px) {
	.ds-blog-featured {
		grid-template-columns: 1fr;
	}
	.ds-blog-featured__body {
		padding: 32px 24px;
	}
}


/* ── Category tag ─────────────────────────── */

.ds-blog-tag {
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blog-grey);
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
	line-height: 1.6;
}


/* ── Category filter ──────────────────────── */

.ds-blog-filter {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	overflow-x: auto;
	gap: 8px;
	margin-bottom: 40px;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.ds-blog-filter::-webkit-scrollbar {
	display: none;
}

.ds-blog-filter__tab {
	flex-shrink: 0;
	display: inline-block;
	padding: 7px 16px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--blog-ink);
	background: transparent;
	border: 1px solid #000000;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ds-blog-filter__tab:hover {
	border-color: var(--blog-ink);
	color: var(--blog-ink);
}

.ds-blog-filter__tab.is-active {
	background: var(--blog-accent);
	border-color: var(--blog-accent);
	color: #fff;
}


/* ── Post grid ────────────────────────────── */

.ds-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}

@media (max-width: 960px) {
	.ds-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.ds-blog-grid {
		grid-template-columns: 1fr;
	}
}


/* ── Post card ────────────────────────────── */

.ds-blog-card {
	background-color: #fff;
	border: 1px solid #e0e0e0;
	display: flex;
	flex-direction: column;
}

.ds-blog-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-bottom: 16px;
}

.ds-blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ds-blog-card:hover .ds-blog-card__image img {
	transform: scale(1.04);
}

.ds-blog-card__body {
	padding: 25px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.ds-blog-card__title {
	font-size: clamp(32px, 2vw, 28px);
	font-weight: 400;
	line-height: 1.35;
	margin: 0;
}

.ds-blog-card__title a {
	color: var(--blog-ink);
	text-decoration: none;
}

.ds-blog-card__title a:hover {
	color: var(--blog-accent);
}

.ds-blog-card__excerpt {
	font-size: 13px;
	color: var(--blog-grey);
	line-height: 1.65;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* ── Read more link ───────────────────────── */

.ds-blog-read-more {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blog-ink);
	text-decoration: none;
	margin-top: auto;
	padding-top: 4px;
	display: inline-block;
	border-bottom: 1px solid var(--blog-ink);
	padding-bottom: 1px;
	width: fit-content;
	transition: color 0.2s, border-color 0.2s;
}

.ds-blog-read-more:hover {
	color: var(--blog-accent);
	border-bottom-color: var(--blog-accent);
}


/* ── Pagination ───────────────────────────── */

.ds-blog-body .page-numbers,
.ds-blog-shortcode .page-numbers {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 25px;
	padding: 0;
}

.ds-blog-body .page-numbers a,
.ds-blog-body .page-numbers span,
.ds-blog-shortcode .page-numbers a,
.ds-blog-shortcode .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid #d0d0d0;
	color: var(--blog-accent);
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ds-blog-body .page-numbers a:hover,
.ds-blog-body .page-numbers .current,
.ds-blog-shortcode .page-numbers a:hover,
.ds-blog-shortcode .page-numbers .current {
	background: var(--blog-accent);
	border-color: var(--blog-accent);
	color: #fff;
}


/* ── Empty state ──────────────────────────── */

.ds-blog-empty {
	color: var(--blog-grey);
	padding: 48px 0;
	font-size: 15px;
}


/* ── CTA banner ───────────────────────────── */

.ds-blog-cta {
	background: var(--blog-ink);
}

.ds-blog-cta__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 56px 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.ds-blog-cta__headline {
	font-size: clamp(18px, 2vw, 26px);
	font-weight: 700;
	color: #fff;
	margin: 0;
	max-width: 600px;
	line-height: 1.3;
}

.ds-blog-cta__btn {
	flex-shrink: 0;
	display: inline-block;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.5);
	color: #fff;
	padding: 12px 28px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, border-color 0.2s;
}

.ds-blog-cta__btn:hover {
	background: rgba(255,255,255,0.1);
	border-color: #fff;
}

@media (max-width: 768px) {
	.ds-blog-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
