/* Premium Care — blog archive & single */

:root {
	--pce-green-dark: #123524;
	--pce-green: #394743;
	--pce-green-mid: #346857;
	--pce-accent: #61ce70;
	--pce-text: #4a4a4a;
	--pce-muted: #626d69;
	--pce-border: #b6b6b6;
	--pce-max: 1200px;
}

.pce-blog-wrap {
	max-width: var(--pce-max);
	margin: 0 auto;
	padding: 50px 20px 80px;
	box-sizing: border-box;
}

/* —— Archive —— */
.pce-archive-header {
	margin-bottom: 40px;
	text-align: center;
}

.pce-archive-kicker {
	margin: 0 0 6px;
	font-family: Roboto, sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pce-green-mid);
}

.pce-archive-title {
	font-family: Montserrat, sans-serif;
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 800;
	color: var(--pce-green-dark);
	margin: 0;
}

.pce-archive-description {
	max-width: 720px;
	margin: 16px auto 0;
	font-family: Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--pce-text);
}

.pce-archive-description p:last-child {
	margin-bottom: 0;
}

.pce-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 35px 40px;
}

.pce-post-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
	padding: 15px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pce-post-card__thumb {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 16px;
	aspect-ratio: 2 / 1;
}

.pce-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pce-post-card__title {
	font-family: Roboto, sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.35;
}

.pce-post-card__title a {
	color: var(--pce-green-mid);
	text-decoration: none;
}

.pce-post-card__title a:hover {
	text-decoration: underline;
}

.pce-post-card__meta {
	font-size: 0.85rem;
	color: var(--pce-muted);
	margin: 0 0 10px;
}

.pce-post-card__excerpt {
	font-size: 0.95rem;
	color: var(--pce-text);
	line-height: 1.5;
	flex: 1;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.pce-post-card__excerpt p {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.pce-post-card__more {
	display: inline-block;
	margin-top: 14px;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--pce-accent);
	text-decoration: none;
}

.pce-post-card__more:hover {
	text-decoration: underline;
}

.pce-pagination {
	margin-top: 40px;
	text-align: center;
}

.pce-pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 4px;
	text-decoration: none;
	color: var(--pce-green);
}

.pce-pagination .current {
	font-weight: 700;
}

/* —— Single layout —— */
.pce-blog-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	align-items: flex-start;
}

.pce-article {
	flex: 1 1 100%;
	min-width: 0;
	padding: 40px 0;
}

.pce-sidebar {
	flex: 1 1 100%;
	padding: 40px 0 0;
}

@media (min-width: 768px) {
	.pce-article {
		flex: 0 0 66.666%;
		padding: 40px 50px 40px 0;
	}

	.pce-sidebar {
		flex: 0 0 33.333%;
		padding: 40px 0 40px 20px;
	}
}

.pce-article__thumb {
	margin-bottom: 12px;
	border-radius: 4px;
	overflow: hidden;
}

.pce-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	gap: 0;
	font-family: Roboto, sans-serif;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--pce-muted);
}

.pce-article__meta-item {
	display: inline-flex;
	align-items: center;
}

.pce-article__meta-item:not(:last-child)::after {
	content: "|";
	margin: 0 12px;
	color: var(--pce-border);
	font-weight: 300;
}

.pce-article__meta a {
	color: var(--pce-green-mid);
	text-decoration: none;
}

.pce-article__meta a:hover {
	text-decoration: underline;
}

.pce-article__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.pce-article__title {
	font-family: Roboto, sans-serif;
	font-size: clamp(22px, 4vw, 28px);
	font-weight: 600;
	color: var(--pce-green);
	margin: 0 0 20px;
	line-height: 1.3;
}

.pce-article__content {
	font-family: Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--pce-text);
}

.pce-article__content h2 {
	font-family: Montserrat, sans-serif;
	font-size: clamp(22px, 3.5vw, 30px);
	font-weight: 600;
	color: var(--pce-green);
	margin: 2rem 0 1rem;
	scroll-margin-top: 100px;
}

.pce-article__content h3,
.pce-article__content h4 {
	color: var(--pce-green);
	margin: 1.5rem 0 0.75rem;
}

.pce-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.pce-article__content .wp-caption {
	max-width: 100%;
}

.pce-article__tags {
	margin-top: 24px;
	font-size: 0.9rem;
}

.pce-article__tags a {
	color: var(--pce-green-mid);
}

/* TOC */
.pce-toc {
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	padding: 16px 20px;
	margin: 0 0 28px;
	background: #fafafa;
}

.pce-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.pce-toc__title {
	font-family: Roboto, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
	color: var(--pce-green);
}

.pce-toc__toggle {
	background: none;
	border: 0;
	padding: 4px;
	cursor: pointer;
	color: var(--pce-green);
	line-height: 1;
}

.pce-toc__list {
	margin: 0;
	padding-left: 1.25rem;
}

.pce-toc__list li {
	margin: 0.35rem 0;
}

.pce-toc__list a {
	color: var(--pce-text);
	text-decoration: none;
	font-size: 0.95rem;
}

.pce-toc__list a:hover,
.pce-toc__list a.is-active {
	color: var(--pce-green-mid);
	text-decoration: underline;
}

.pce-toc.is-collapsed .pce-toc__body {
	display: none;
}

/* Sidebar */
.pce-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pce-search-form input[type="search"] {
	flex: 1 1 140px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

.pce-search-form button {
	padding: 10px 18px;
	background: #2a2a2a;
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95rem;
}

.pce-search-form button:hover {
	background: #111;
}

.pce-sidebar__divider {
	border: 0;
	border-top: 1px solid var(--pce-border);
	width: 80%;
	margin: 20px auto;
}

.pce-btn-whatsapp {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 20px;
	border-radius: 6px;
	background: linear-gradient(126deg, #394743 0%, #2c7960 100%);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
}

.pce-btn-whatsapp:hover {
	opacity: 0.92;
}

.pce-recent-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pce-recent-posts__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 28px;
}

.pce-recent-posts__thumb {
	flex: 0 0 30%;
	max-width: 120px;
	border-radius: 4px;
	overflow: hidden;
}

.pce-recent-posts__thumb img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.pce-recent-posts__title {
	flex: 1;
	font-family: Roboto, sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pce-green);
	text-decoration: none;
}

.pce-recent-posts__title:hover {
	text-decoration: underline;
}

.pce-comments {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* Mobile */
@media (max-width: 767px) {
	.pce-blog-wrap {
		padding-top: 24px;
		padding-bottom: 48px;
	}

	.pce-posts-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.pce-article {
		padding: 0 0 24px;
	}

	.pce-sidebar {
		padding: 0;
		border-top: 1px solid #eee;
		margin-top: 8px;
		padding-top: 28px;
	}

	.pce-recent-posts__item {
		flex-direction: column;
	}

	.pce-recent-posts__thumb {
		max-width: 100%;
		flex: none;
		width: 100%;
	}

	.pce-recent-posts__thumb img {
		aspect-ratio: 16 / 9;
	}
}
