/* =========================================================
   Paces — News (blog) templates
   Hero banner + post-card grid (home.php / archive.php) and
   the single-post layout (single.php).

   Palette: pink #E92593, secondary #5B62A4, page bg #F4F6FA.
   Font: Lexend. Consumes the --paces-* tokens declared in
   paces-header.css (with literal fallbacks), which is loaded
   first as an enqueue dependency.
   ========================================================= */

.paces-hero,
.paces-news,
.paces-post {
	font-family: var(--paces-font, "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.paces-hero *,
.paces-hero *::before,
.paces-hero *::after,
.paces-news *,
.paces-news *::before,
.paces-news *::after,
.paces-post *,
.paces-post *::before,
.paces-post *::after {
	box-sizing: border-box;
}

/* Page backdrop for all News templates. */
body.paces-news-page {
	background: #f4f6fa;
}

.paces-news,
.paces-post {
	background: #f4f6fa;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.paces-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 340px;
	background-color: var(--paces-blue, #5b62a4);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

/* Two stacked overlays over the image (or the solid fallback):
   1) black at 31%, then
   2) brand pink #DA7BB0 at 25% (== the 8-digit hex #DA7BB040) on top. */
.paces-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.31);
}

.paces-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(218, 123, 176, 0.25);
}

.paces-hero__inner {
	position: relative;
	z-index: 1;
	width: min(1500px, 100% - 40px);
	margin: 0 auto;
	padding: 48px 0;
}

.paces-hero__title {
	display: inline-block;
	margin: 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--paces-pink, #e92593);
	color: #ffffff;
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.2px;
}

.paces-hero__subtitle {
	max-width: 640px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(15px, 2vw, 18px);
	font-weight: 400;
	line-height: 1.55;
}

/* ---------------------------------------------------------
   NEWS LISTING — card grid
   --------------------------------------------------------- */
.paces-news__inner {
	width: min(1500px, 100% - 40px);
	margin: 0 auto;
	padding: 56px 0 88px;
}

.paces-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 24px;
}

@media (max-width: 900px) {
	.paces-news__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.paces-news__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Card ---- */
.paces-news-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.paces-news-card:hover,
.paces-news-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.paces-news-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--paces-top-bg, #fde9f4);
	overflow: hidden;
}

.paces-news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
	transition: transform 0.35s ease;
	will-change: transform;
}

/* Zoom the featured image when hovering the card. */
.paces-news-card:hover .paces-news-card__media img,
.paces-news-card:focus-within .paces-news-card__media img {
	transform: scale(1.08);
}

/* Pale pink placeholder when a post has no featured image. */
.paces-news-card__media--empty {
	background: var(--paces-top-bg, #fde9f4);
}

.paces-news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 20px 24px;
}

.paces-news-card__meta {
	margin: 0 0 8px;
	color: var(--paces-blue, #5b62a4);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.paces-news-card__title {
	margin: 0 0 10px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.paces-news-card__title a {
	color: var(--paces-pink, #e92593);
	text-decoration: none;
}

.paces-news-card__title a:hover,
.paces-news-card__title a:focus-visible {
	text-decoration: underline;
}

.paces-news-card__excerpt {
	margin: 0 0 20px;
	color: #55555a;
	font-size: 0.95rem;
	line-height: 1.6;
}

.paces-news-card__excerpt p {
	margin: 0;
}

/* Full-width outline button — matches the paces-cards plugin. */
.paces-news-card__button {
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 10px 16px;
	border: 2px solid var(--paces-pink, #e92593);
	border-radius: 6px;
	background: #ffffff;
	color: var(--paces-pink, #e92593);
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.paces-news-card__button:hover,
.paces-news-card__button:focus-visible {
	background: var(--paces-pink, #e92593);
	color: #ffffff;
}

/* ---- Empty state ---- */
.paces-news__empty {
	padding: 40px 0;
	text-align: center;
}

.paces-news__empty-title {
	margin: 0 0 8px;
	color: var(--paces-pink, #e92593);
	font-size: 22px;
	font-weight: 700;
}

.paces-news__empty-text {
	margin: 0;
	color: #55555a;
	font-size: 16px;
}

/* ---- Pagination ---- */
.paces-news__pagination {
	display: flex;
	align-items: center;
	margin-top: 56px;
}

.paces-news__pagination .nav-next {
	margin-left: auto;
}

.paces-news__pagination a {
	display: inline-block;
	padding: 10px 22px;
	border: 2px solid var(--paces-pink, #e92593);
	border-radius: 8px;
	color: var(--paces-pink, #e92593);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.paces-news__pagination a:hover,
.paces-news__pagination a:focus-visible {
	background: var(--paces-pink, #e92593);
	color: #ffffff;
}

.paces-news__pagination .meta-nav {
	display: inline-block;
}

/* ---------------------------------------------------------
   FILTER BAR — category pills + search (News index)
   --------------------------------------------------------- */
.paces-news-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 40px;
}

.paces-news-filters__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.paces-news-filters__pill {
	display: inline-block;
	padding: 8px 18px;
	border: 2px solid var(--paces-submenu-line, #f3d7e7);
	border-radius: 72px;
	background: #ffffff;
	color: var(--paces-blue, #5b62a4);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.paces-news-filters__pill:hover,
.paces-news-filters__pill:focus-visible {
	border-color: var(--paces-pink, #e92593);
	color: var(--paces-pink, #e92593);
}

.paces-news-filters__pill.is-active {
	background: var(--paces-pink, #e92593);
	border-color: var(--paces-pink, #e92593);
	color: #ffffff;
}

.paces-news-filters__search {
	display: flex;
	flex: 0 1 340px;
	gap: 8px;
}

.paces-news-filters__search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 10px 16px;
	border: 2px solid var(--paces-submenu-line, #f3d7e7);
	border-radius: 8px;
	background: #ffffff;
	color: #333333;
	font-family: inherit;
	font-size: 15px;
}

.paces-news-filters__search input[type="search"]:focus {
	border-color: var(--paces-pink, #e92593);
	outline: none;
}

.paces-news-filters__search button {
	flex: 0 0 auto;
	padding: 10px 20px;
	border: 2px solid var(--paces-pink, #e92593);
	border-radius: 8px;
	background: var(--paces-pink, #e92593);
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.paces-news-filters__search button:hover,
.paces-news-filters__search button:focus-visible {
	background: #ffffff;
	color: var(--paces-pink, #e92593);
}

@media (max-width: 600px) {
	.paces-news-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.paces-news-filters__search {
		flex-basis: auto;
	}
}

/* ---------------------------------------------------------
   SINGLE POST
   --------------------------------------------------------- */
.paces-post__inner {
	width: min(1500px, 100% - 40px);
	margin: 0 auto;
	padding: 56px 0 88px;
}

.paces-post__article {
	padding: 40px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.paces-post__content {
	color: #4a4a4a;
	font-size: 1.05rem;
	line-height: 1.7;
}

.paces-post__content > *:first-child {
	margin-top: 0;
}

.paces-post__content p {
	margin: 0 0 1.2em;
}

.paces-post__content h2,
.paces-post__content h3,
.paces-post__content h4 {
	margin: 1.6em 0 0.5em;
	color: var(--paces-blue, #5b62a4);
	font-weight: 700;
	line-height: 1.25;
}

.paces-post__content a {
	color: var(--paces-pink, #e92593);
	text-decoration: underline;
}

.paces-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.paces-post__content ul,
.paces-post__content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.paces-post__content li {
	margin: 0 0 0.4em;
}

.paces-post__content blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--paces-pink, #e92593);
	color: #55555a;
	font-style: italic;
}

/* Tags */
.paces-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--paces-submenu-line, #f3d7e7);
	list-style: none;
}

.paces-post__tags a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--paces-submenu-line, #f3d7e7);
	border-radius: 72px;
	color: var(--paces-blue, #5b62a4);
	font-size: 13px;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.paces-post__tags a:hover,
.paces-post__tags a:focus-visible {
	border-color: var(--paces-pink, #e92593);
	color: var(--paces-pink, #e92593);
}

/* Back to News */
.paces-post__foot {
	margin-top: 28px;
}

.paces-post__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--paces-pink, #e92593);
	font-weight: 600;
	text-decoration: none;
}

.paces-post__back:hover,
.paces-post__back:focus-visible {
	text-decoration: underline;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 782px) {
	.paces-hero {
		min-height: 240px;
	}

	.paces-hero__inner {
		padding: 36px 0;
	}

	.paces-news__inner {
		padding: 40px 0 64px;
	}

	.paces-post__inner {
		padding: 40px 0 64px;
	}

	.paces-post__article {
		padding: 28px 22px;
	}
}
