/* =========================================================================
 * Blog index shortcode — [pcc_blog_index]
 *
 * Follows the same conventions as .pcc-cat (uses --content-width from the theme,
 * zero horizontal padding on sections so Elementor container controls spacing,
 * and !important on color overrides to defeat Elementor's global colours).
 * ========================================================================= */

.pcc-blog {
	--pcc-navy: #01225f;
	--pcc-navy-dark: #011745;
	--pcc-red: #fe4b45;
	--pcc-red-hover: #e73d38;
	--pcc-ink: #3a4049;
	--pcc-muted: #6b7280;
	--pcc-line: #e4e7ec;
	--pcc-surface: #f7f8fa;
	--pcc-radius: 12px;
	--pcc-radius-lg: 16px;
	--pcc-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--pcc-gutter: clamp(16px, 4vw, 40px);
	color: var(--pcc-ink);
	font-size: 16px;
	line-height: 1.55;
}

/* Hero -------------------------------------------------------------------- */

.pcc-blog__hero {
	background: var(--pcc-navy);
	color: #fff;
	padding: 0;
}

.pcc-blog__hero-inner {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: clamp(28px, 4vw, 40px) 0 clamp(48px, 6vw, 72px);
}

.pcc-blog__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(20px, 3vw, 32px);
	font-family: var(--pcc-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.pcc-blog__crumbs a {
	color: var(--pcc-red) !important;
	text-decoration: none;
}

.pcc-blog__crumbs a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pcc-blog__crumb-sep {
	color: rgba(255, 255, 255, 0.35);
}

.pcc-blog__eyebrow {
	display: inline-flex;
	align-items: center;
	color: var(--pcc-red);
	font-family: var(--pcc-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
/* Main body wrapper (constrains everything below the hero) ---------------- */



/* Featured post ----------------------------------------------------------- */

.pcc-blog__featured {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 0;
	background: #fff;
	border: 1px solid var(--pcc-line);
	border-radius: var(--pcc-radius-lg);
	overflow: hidden;
	margin-bottom: clamp(32px, 5vw, 56px);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pcc-blog__featured:hover {
	border-color: var(--pcc-navy);
	box-shadow: 0 6px 20px -10px rgba(1, 34, 95, 0.2);
}

.pcc-blog__featured-media {
	position: relative;
	display: block;
	background: var(--pcc-surface);
	overflow: hidden;
	text-decoration: none;
}

.pcc-blog__featured-media img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.pcc-blog__featured-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--pcc-navy);
	font-family: var(--pcc-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.4;
}

.pcc-blog__featured-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 1;
	padding: 6px 14px;
	background: var(--pcc-red);
	border-radius: 4px;
	color: #fff;
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1;
}

.pcc-blog__featured-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(28px, 4vw, 48px);
	justify-content: center;
}

/* Meta row (dates, categories, read time) --------------------------------- */

.pcc-blog__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	font-family: var(--pcc-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pcc-muted);
}

.pcc-blog__meta-cat {
	color: var(--pcc-red);
	font-weight: 600;
}

.pcc-blog__meta-date,
.pcc-blog__meta-read {
	position: relative;
}

.pcc-blog__meta--small {
	font-size: 10px;
	gap: 8px 14px;
}

.pcc-blog__featured-title {
	margin: 0;
	color: var(--pcc-navy);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.pcc-blog__featured-title a {
	color: inherit;
	text-decoration: none;
}

.pcc-blog__featured-title a:hover {
	color: var(--pcc-red);
}

.pcc-blog__featured-excerpt {
	color: var(--pcc-ink);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 55ch;
}

/* Author byline ---------------------------------------------------------- */

.pcc-blog__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.pcc-blog__author-avatar {
	display: block;
	flex-shrink: 0;
}

.pcc-blog__author-avatar img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.pcc-blog__author-name {
	display: block;
	color: var(--pcc-navy);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
}

.pcc-blog__author-role {
	display: block;
	color: var(--pcc-muted);
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-top: 2px;
}

.pcc-blog__read-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pcc-red);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1;
	margin-top: auto;
}

.pcc-blog__read-link:hover {
	color: var(--pcc-red-hover);
}

.pcc-blog__read-link:hover span {
	transform: translateX(3px);
}

.pcc-blog__read-link span {
	transition: transform 0.15s ease;
}

/* Main grid + sidebar layout --------------------------------------------- */

.pcc-blog__main-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.pcc-blog__main {
	min-width: 0;
}

.pcc-blog__sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 100px;
}

/* Filter tabs ------------------------------------------------------------- */

.pcc-blog__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--pcc-line);
}

.pcc-blog__filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pcc-blog__tab {
	padding: 8px 16px;
	background: transparent !important;
	border: 1px solid var(--pcc-line) !important;
	border-radius: 999px;
	color: var(--pcc-navy) !important;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pcc-blog__tab:hover {
	border-color: var(--pcc-navy) !important;
}

.pcc-blog__tab.is-active {
	background: var(--pcc-navy) !important;
	border-color: var(--pcc-navy) !important;
	color: #fff !important;
}

.pcc-blog__filter-meta {
	display: flex;
	align-items: center;
	gap: 16px;
}

.pcc-blog__search {
	position: relative;
}

.pcc-blog__search-input {
	min-width: 220px;
	padding: 8px 16px !important;
	background: var(--pcc-surface) !important;
	border: 1px solid var(--pcc-line) !important;
	border-radius: 999px;
	color: var(--pcc-ink);
	font: inherit;
	font-size: 0.875rem;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.pcc-blog__search-input:focus {
	background: #fff !important;
	border-color: var(--pcc-navy) !important;
	outline: none;
}

.pcc-blog__count {
	color: var(--pcc-muted);
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pcc-blog__count strong {
	color: var(--pcc-red);
	font-weight: 700;
}

/* Article grid ------------------------------------------------------------ */

.pcc-blog__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.pcc-blog__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--pcc-line);
	border-radius: var(--pcc-radius);
	overflow: hidden;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pcc-blog__card[data-hidden] {
	display: none;
}

.pcc-blog__card:hover {
	border-color: var(--pcc-navy);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px -10px rgba(1, 34, 95, 0.2);
}

.pcc-blog__card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--pcc-surface);
	overflow: hidden;
	text-decoration: none;
}

.pcc-blog__card-media img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.pcc-blog__card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--pcc-navy);
	font-family: var(--pcc-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.4;
}

.pcc-blog__card-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	padding: 5px 12px;
	background: var(--pcc-navy);
	border-radius: 4px;
	color: #fff;
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
}

.pcc-blog__card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 22px;
	flex: 1 1 auto;
}

.pcc-blog__card-title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.pcc-blog__card-title a {
	color: var(--pcc-navy);
	text-decoration: none;
}

.pcc-blog__card-title a:hover {
	color: var(--pcc-red);
}

.pcc-blog__card-text {
	margin: 0;
	color: var(--pcc-ink);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* Pagination -------------------------------------------------------------- */

.pcc-blog__pagination {
	margin-top: 32px;
}

.pcc-blog__pagination ul {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pcc-blog__pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: transparent;
	border: 1px solid var(--pcc-line);
	border-radius: 8px;
	color: var(--pcc-navy);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pcc-blog__pagination .page-numbers:hover {
	border-color: var(--pcc-navy);
}

.pcc-blog__pagination .page-numbers.current {
	background: var(--pcc-navy);
	border-color: var(--pcc-navy);
	color: #fff;
}

.pcc-blog__pagination .page-numbers.dots {
	border: 0;
	background: transparent;
}

.pcc-blog__empty {
	padding: 40px 24px;
	background: var(--pcc-surface);
	border-radius: var(--pcc-radius);
	color: var(--pcc-muted);
	text-align: center;
}

/* Sidebar widgets --------------------------------------------------------- */

.pcc-blog__widget {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--pcc-line);
	border-radius: var(--pcc-radius);
}

.pcc-blog__widget-kicker {
	display: block;
	margin-bottom: 12px;
	color: var(--pcc-red);
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pcc-blog__widget-title {
	margin: 0 0 8px;
	color: var(--pcc-navy);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.pcc-blog__widget-text {
	margin: 0 0 16px;
	color: var(--pcc-ink);
	font-size: 0.875rem;
	line-height: 1.5;
}

.pcc-blog__widget-hint {
	margin: 12px 0 0;
	padding: 8px 10px;
	background: #fff4e5;
	border-left: 3px solid #d97706;
	color: #7c4a03;
	font-size: 0.75rem;
	line-height: 1.4;
}

/* Newsletter widget ------------------------------------------------------- */

.pcc-blog__widget--newsletter {
	background: var(--pcc-navy);
	border-color: var(--pcc-navy);
	color: #fff;
}

.pcc-blog__widget--newsletter .pcc-blog__widget-kicker {
	color: rgba(255, 255, 255, 0.6);
}

.pcc-blog__widget--newsletter .pcc-blog__widget-title {
	color: #fff !important;
}

.pcc-blog__widget--newsletter .pcc-blog__widget-text {
	color: rgba(255, 255, 255, 0.75);
}

.pcc-blog__newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pcc-blog__newsletter-form input[type="email"] {
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
}

.pcc-blog__newsletter-form input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.pcc-blog__newsletter-form input[type="email"]:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.4);
	outline: none;
}

.pcc-blog__newsletter-form button {
	padding: 10px 18px;
	background: var(--pcc-red);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.pcc-blog__newsletter-form button:hover {
	background: var(--pcc-red-hover);
}

/* CF7 form inside newsletter widget: match the same visual language */
.pcc-blog__newsletter-form .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 8px;
}

.pcc-blog__newsletter-form .wpcf7 input[type="email"],
.pcc-blog__newsletter-form .wpcf7 input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
}

.pcc-blog__newsletter-form .wpcf7 input[type="submit"] {
	width: 100%;
	padding: 10px 18px;
	background: var(--pcc-red);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
}

/* Topics widget ----------------------------------------------------------- */

.pcc-blog__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pcc-blog__topics li a {
	display: inline-block;
	padding: 6px 12px;
	background: var(--pcc-surface);
	border: 1px solid var(--pcc-line);
	border-radius: 999px;
	color: var(--pcc-navy);
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.pcc-blog__topics li a:hover {
	background: #fff;
	border-color: var(--pcc-navy);
}

/* Most read widget -------------------------------------------------------- */

.pcc-blog__most-read {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mostread;
}

.pcc-blog__most-read li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--pcc-line);
}

.pcc-blog__most-read li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.pcc-blog__most-read li:first-child {
	padding-top: 0;
}

.pcc-blog__most-read-num {
	flex-shrink: 0;
	color: var(--pcc-red);
	font-family: var(--pcc-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding-top: 2px;
}

.pcc-blog__most-read a {
	color: var(--pcc-navy);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.pcc-blog__most-read a:hover {
	color: var(--pcc-red);
}

/* Sidebar CTA widget ----------------------------------------------------- */

.pcc-blog__widget--cta {
	background: var(--pcc-red);
	border-color: var(--pcc-red);
	color: #fff;
	text-align: center;
}

.pcc-blog__cta-title {
	margin: 0 0 6px;
	color: #fff !important;
	font-size: 1.125rem;
	font-weight: 700;
}

.pcc-blog__cta-text {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	line-height: 1.5;
}

.pcc-btn--navy-on-red {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	background: var(--pcc-navy);
	border: 0;
	border-radius: 8px;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background 0.15s ease;
}

.pcc-btn--navy-on-red:hover {
	background: var(--pcc-navy-dark);
	color: #fff !important;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
	.pcc-blog__main-grid {
		grid-template-columns: 1fr;
	}

	.pcc-blog__sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.pcc-blog__featured {
		grid-template-columns: 1fr;
	}

	.pcc-blog__title {
		font-size: 2.4rem;
	}
}

@media (max-width: 767px) {
	.pcc-blog__filter {
		flex-direction: column;
		align-items: stretch;
	}

	.pcc-blog__filter-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		margin: 0 -20px;
		padding: 4px 20px;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.pcc-blog__filter-tabs::-webkit-scrollbar {
		display: none;
	}

	.pcc-blog__tab {
		flex: 0 0 auto;
	}

	.pcc-blog__filter-meta {
		justify-content: space-between;
	}

	.pcc-blog__search-input {
		width: 100%;
		min-width: 0;
	}

	.pcc-blog__grid {
		grid-template-columns: 1fr;
	}

	.pcc-blog__sidebar {
		grid-template-columns: 1fr;
	}

	.pcc-blog__title {
		font-size: 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcc-blog__card,
	.pcc-blog__featured,
	.pcc-blog__read-link span {
		transition: none;
	}

	.pcc-blog__card:hover,
	.pcc-blog__featured:hover {
		transform: none;
	}
}
