/* ============================================================
 * Privato — blog.css
 * Loaded on the /blog/ discovery hub.
 *
 * Layout mirrors the /lifting/ service-category landing pattern:
 *   - Peach-warm-ivory page background (#f7f4ef)
 *   - Alternating cream / ivory / white section bands
 *   - Centered section headers with eyebrow + thin rule + Prata
 *     serif H2 + soft lead text
 *   - Large vertical rhythm (48/64/80 padding)
 *   - "ดูทั้งหมด" CTA below the grid as a centered footer link
 *
 * Card geometry preserved from the earlier hub pass: 3-up grid,
 * aspect-ratio media to avoid CLS, fetchpriority/lazy split.
 * ============================================================ */

.pc-blog-hub {
	--pc-blog-peach-a: #faefe0;
	--pc-blog-peach-b: #fffbf6;
	--pc-blog-band-cream: #f5ebde;
	--pc-blog-band-ivory: #fffbf6;
	--pc-blog-band-white: #ffffff;
	--pc-blog-text-soft: #5c5247;
	--pc-blog-text-ink: #261f1b;
	--pc-blog-rule: rgba(150, 105, 94, .32);

	background: #f7f4ef;
	color: var(--pc-blog-text-ink);
	padding-bottom: 0;
}

/* ===== HERO BAND (peach gradient — /lifting/-style) ===== */
.pc-blog-hub__hero {
	background: linear-gradient(180deg, var(--pc-blog-peach-a) 0%, var(--pc-blog-peach-b) 100%);
	padding: 36px 0 44px;
}

@media (min-width: 768px) {
	.pc-blog-hub__hero { padding: 56px 0 72px; }
}

@media (min-width: 1024px) {
	.pc-blog-hub__hero { padding: 72px 0 88px; }
}

.pc-blog-hub__hero-inner { text-align: center; }

.pc-blog-hub__eyebrow {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	color: var(--pc-mocha-dk);
	letter-spacing: 2px;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.pc-blog-hub__eyebrow {
		font-size: 13px;
		letter-spacing: 2.4px;
		margin-bottom: 18px;
	}
}

.pc-blog-hub__title {
	margin: 0;
	font-family: "Prata", "Noto Serif Thai", Georgia, "Times New Roman", serif;
	font-size: 32px;
	font-weight: 400;
	color: var(--pc-blog-text-ink);
	line-height: 1.1;
	letter-spacing: 0;
	text-wrap: balance;
}

@media (min-width: 768px) {
	.pc-blog-hub__title { font-size: 48px; }
}

@media (min-width: 1280px) {
	.pc-blog-hub__title { font-size: 58px; line-height: 1.05; }
}

.pc-blog-hub__lead {
	max-width: 720px;
	margin: 16px auto 0;
	color: var(--pc-blog-text-soft);
	font-size: 15px;
	line-height: 1.85;
}

@media (min-width: 768px) {
	.pc-blog-hub__lead { font-size: 16.5px; margin-top: 20px; }
}

.pc-blog-hub__rule {
	display: block;
	width: 56px;
	height: 1px;
	margin: 22px auto 0;
	background: var(--pc-mocha);
	opacity: .55;
}

@media (min-width: 768px) {
	.pc-blog-hub__rule { width: 72px; margin-top: 28px; }
}

/* ===== SECTION BANDS (cream / ivory / white alternation) ===== */
.pc-blog-hub__band { padding: 48px 0; }

@media (min-width: 768px) {
	.pc-blog-hub__band { padding: 64px 0; }
}

@media (min-width: 1024px) {
	.pc-blog-hub__band { padding: 80px 0; }
}

.pc-blog-hub__band--cream { background: var(--pc-blog-band-cream); }
.pc-blog-hub__band--ivory { background: var(--pc-blog-band-ivory); }
.pc-blog-hub__band--white { background: var(--pc-blog-band-white); }

/* ===== SHARED SECTION HEAD (centered, /lifting/-style) ===== */
.pc-blog-hub__section-head {
	margin: 0 auto 32px;
	max-width: 820px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

@media (min-width: 768px) {
	.pc-blog-hub__section-head { margin-bottom: 44px; gap: 14px; }
}

.pc-blog-hub__section-head--compact {
	margin-bottom: 20px;
	gap: 10px;
}

@media (min-width: 768px) {
	.pc-blog-hub__section-head--compact { margin-bottom: 28px; }
}

.pc-blog-hub__section-eyebrow {
	margin: 0;
	color: var(--pc-mocha-dk);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.pc-blog-hub__section-eyebrow { font-size: 13px; letter-spacing: 2.4px; }
}

.pc-blog-hub__section-rule {
	display: block;
	width: 56px;
	height: 1px;
	background: var(--pc-blog-rule);
	margin: 4px auto 6px;
}

@media (min-width: 768px) {
	.pc-blog-hub__section-rule { width: 72px; margin: 6px auto 8px; }
}

.pc-blog-hub__section-title {
	margin: 0;
	color: var(--pc-blog-text-ink);
	font-family: "Prata", "Noto Serif Thai", Georgia, "Times New Roman", serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.22;
	letter-spacing: 0;
	text-wrap: balance;
}

@media (min-width: 768px) {
	.pc-blog-hub__section-title { font-size: 36px; }
}

@media (min-width: 1280px) {
	.pc-blog-hub__section-title { font-size: 40px; }
}

.pc-blog-hub__section-subtitle {
	margin: 0;
	color: var(--pc-blog-text-soft);
	font-size: 15px;
	line-height: 1.75;
	max-width: 680px;
}

@media (min-width: 768px) {
	.pc-blog-hub__section-subtitle { font-size: 16px; }
}

/* ===== SECTION FOOTER (centered "ดูทั้งหมด" CTA below the grid) ===== */
.pc-blog-hub__section-footer {
	margin-top: 32px;
	display: flex;
	justify-content: center;
}

@media (min-width: 768px) {
	.pc-blog-hub__section-footer { margin-top: 40px; }
}

/* ===== SECTION "ดูทั้งหมด" CTA (footer link below grid) ===== */
.pc-blog-hub__section-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	background: transparent;
	color: var(--pc-mocha-dk);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: .3px;
	border: 1px solid var(--pc-mocha-dk);
	border-radius: 999px;
	text-decoration: none;
	min-height: 44px;
	transition: gap .2s, color .2s, background .2s, border-color .2s, transform .2s;
}

.pc-blog-hub__section-more:hover,
.pc-blog-hub__section-more:focus-visible {
	gap: 12px;
	color: var(--pc-white);
	background: var(--pc-mocha);
	border-color: var(--pc-mocha);
	transform: translateY(-1px);
}

.pc-blog-hub__section-more svg {
	transition: transform .2s;
}

.pc-blog-hub__section-more:hover svg,
.pc-blog-hub__section-more:focus-visible svg {
	transform: translateX(2px);
}

/* ===== CARD GRID ===== */
.pc-blog-hub__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.pc-blog-hub__empty {
	margin: 0;
	padding: 18px 20px;
	color: var(--pc-muted);
	background: rgba(255, 255, 255, .68);
	border: 1px solid rgba(155, 121, 73, .14);
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.6;
}

@media (min-width: 560px) {
	.pc-blog-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.pc-blog-hub__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px;
	}
}

.pc-blog-card {
	background: var(--pc-white);
	border: 1px solid rgba(0, 0, 0, .04);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
	transition: box-shadow .25s, transform .25s;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pc-blog-card:hover,
.pc-blog-card:focus-within {
	box-shadow: 0 14px 30px rgba(155, 121, 73, .14);
	transform: translateY(-3px);
}

.pc-blog-card__link {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.pc-blog-card__link:focus-visible {
	outline: 2px solid var(--pc-mocha);
	outline-offset: 2px;
}

.pc-blog-card__media {
	margin: 0;
	overflow: hidden;
	background: var(--pc-ivory);
	display: block;
}

.pc-blog-card__media--placeholder {
	background: linear-gradient(135deg, var(--pc-cream) 0%, var(--pc-ivory) 100%);
}

.pc-blog-card__media img,
.pc-blog-card__image {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .4s ease;
}

.pc-blog-card:hover .pc-blog-card__image,
.pc-blog-card:focus-within .pc-blog-card__image {
	transform: scale(1.04);
}

.pc-blog-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

@media (min-width: 1024px) {
	.pc-blog-card__body {
		padding: 20px 22px 22px;
		gap: 12px;
	}
}

.pc-blog-card__badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 5px 12px;
	background: var(--pc-cream);
	color: var(--pc-dark);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .3px;
	border-radius: 999px;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.pc-blog-card__badge { font-size: 12px; }
}

.pc-blog-card--aging .pc-blog-card__badge,
.pc-blog-card--acne .pc-blog-card__badge,
.pc-blog-card--injection .pc-blog-card__badge,
.pc-blog-card--laser .pc-blog-card__badge,
.pc-blog-card--treatment .pc-blog-card__badge,
.pc-blog-card--lifting .pc-blog-card__badge {
	background: rgba(155, 121, 73, .14);
	color: var(--pc-mocha-dk);
}

.pc-blog-card__title {
	margin: 0;
	color: var(--pc-ink);
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .1px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 1024px) {
	.pc-blog-card__title {
		font-size: 17.5px;
		-webkit-line-clamp: 2;
	}
}

.pc-blog-card__excerpt {
	margin: 0;
	color: var(--pc-muted);
	font-size: 13.5px;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

@media (min-width: 1024px) {
	.pc-blog-card__excerpt { font-size: 14px; }
}

.pc-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	color: var(--pc-muted);
	font-size: 12.5px;
	margin-top: 2px;
}

.pc-blog-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pc-blog-card__meta-sep {
	color: var(--pc-line);
	font-weight: 300;
}

.pc-blog-card__meta-icon {
	color: var(--pc-mocha-dk);
	flex-shrink: 0;
}

.pc-blog-card__author {
	color: var(--pc-muted);
}

/* ===== BROWSE STRIP (white band, centered chips) ===== */
.pc-blog-hub__browse-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
}

.pc-blog-hub__browse-title {
	font-size: 24px;
}

@media (min-width: 768px) {
	.pc-blog-hub__browse-title { font-size: 30px; }
}

.pc-blog-hub__browse-nav { width: 100%; }

.pc-blog-hub__browse-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 12px;
}

.pc-blog-hub__browse-item { display: inline-flex; }

.pc-blog-hub__browse-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: var(--pc-white);
	color: var(--pc-ink);
	font-size: 14px;
	font-weight: 600;
	border-radius: 999px;
	border: 1px solid var(--pc-line);
	text-decoration: none;
	min-height: 40px;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.pc-blog-hub__browse-chip:hover,
.pc-blog-hub__browse-chip:focus-visible {
	background: var(--pc-mocha);
	color: var(--pc-white);
	border-color: var(--pc-mocha);
	transform: translateY(-1px);
}
