/**
 * Blog listing page — Figma layout (brand: Owners, red #D32323).
 * Hero spacing aligned with case studies archive banner (--cc-header-offset).
 */

.cc-blog-main {
	padding: 0;
}

.cc-blog-listing-page {
	--blog-listing-gutter: clamp(20px, 3.125vw, 60px);
}

/* ── Blog listing hero (Figma) ─────────────────────────────────────────── */

.cc-blog-listing-page .blog-listing-hero {
	background: #fff;
	padding: calc(var(--cc-header-offset, 105px) + 90px) var(--blog-listing-gutter) 90px;
	text-align: center;
}

.cc-blog-listing-page .blog-listing-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.cc-blog-listing-page .blog-listing-hero__title {
	display: block;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	font-family: var(--cc-nav-font, 'Owners', sans-serif);
	font-weight: 500;
	font-size: 94px;
	line-height: 85px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #111;
}

.cc-blog-listing-page .blog-listing-hero__accent {
	color: #d32323;
	font-weight: inherit;
}

.cc-blog-listing-page .blog-listing-hero__description {
	max-width: 720px;
	margin: 24px auto 0;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #555;
}

.cc-blog-listing-page .blog-listing-hero__br {
	display: none;
}

@media (max-width: 1400px) {
	.cc-blog-listing-page .blog-listing-hero__title {
		font-size: 65px;
    	line-height: 75px;
	}
}

@media (min-width: 769px) and (max-width: 1400px) {
	.cc-blog-listing-page .blog-listing-hero__br {
		display: inline;
	}
}

@media (max-width: 1200px) {
	.cc-blog-listing-page .blog-listing-hero__title {
		width: 100%;
		font-size: clamp(48px, 7vw, 74px);
		line-height: 0.95;
		letter-spacing: 0.05em;
	}
}


@media (max-width: 1024px) {
	.cc-blog-listing-page .blog-listing-hero {
		padding-top: calc(var(--cc-header-offset, 105px) + 64px);
		padding-bottom: 64px;
	}
}

/* Shared blog post headings — recent featured + grid cards */
.cc-blog-card__title,
.cc-blog-recent__title {
	text-align: left;
	font-family: 'Owners', sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 129%;
	letter-spacing: 0.5px;
	leading-trim: both;
	text-edge: cap;
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
	margin: 0 0 12px;
	color: #111;
}

.cc-blog-card__title a,
.cc-blog-recent__title a {
	color: inherit;
	text-decoration: none;
}

.cc-blog-card__title a:hover,
.cc-blog-card__title a:visited,
.cc-blog-card__title a:active,
.cc-blog-recent__title a:hover,
.cc-blog-recent__title a:visited,
.cc-blog-recent__title a:active {
	color: inherit;
	text-decoration: none;
}

.cc-blog-card__title a:hover,
.cc-blog-recent__title a:hover {
	color: #d32323;
}

/* ── Recent post ───────────────────────────────────────────────────────── */

.cc-blog-recent {
	padding: 24px 20px 64px;
	background: #fff;
}

.cc-blog-recent__inner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: left;
}

.cc-blog-recent__label {
    font-family: 'Owners', sans-serif;
    font-size: 26px;
    line-height: 54px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #333333;
    margin: 0 0 24px;
}

.cc-blog-recent__card {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}

.cc-blog-recent__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.cc-blog-recent__media {
	display: block;
	border-radius: 16px;
	overflow: hidden;
}

.cc-blog-recent__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.cc-blog-recent__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.cc-blog-recent__category {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #444;
	padding: 6px 14px;
	border: none;
	border-radius: 999px;
	background: #f0f0f0;
}

.cc-blog-recent__date {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #888;
}

.cc-blog-recent__excerpt {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	line-height: 26px;
	letter-spacing: 0.005em;
	color: #666;
	margin: 0 0 24px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

@media (min-width: 769px) {
	.cc-blog-categories__filters[hidden],
	.cc-blog-categories__filters.is-collapsed {
		display: flex !important;
	}

	.cc-blog-categories__toggle {
		display: none !important;
	}
}

.cc-blog-categories {
	background-image: url('https://staging.project-in-progress.com/cc.com/wp-content/themes/cc-com/assets/images/experiencebg.png');
    padding: 53px 20px 33px;
    background-repeat: no-repeat;
    background-position: center center;
}
.cc-blog-categories__inner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.cc-blog-categories__header {
	display: block;
}

.cc-blog-categories__title {
	font-family: 'Owners', sans-serif;

	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 36px;
	    font-size: 54px;
    line-height: 54px;
}

.cc-blog-categories__toggle {
	display: none;
}

.cc-blog-categories__accent {
	color: #d32323;
}

.cc-blog-categories__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

button.cc-blog-categories__pill {
	-webkit-appearance: none;
	appearance: none;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button.cc-blog-categories__pill:hover,
button.cc-blog-categories__pill:focus-visible {
	border-color: #d32323;
	outline: none;
}

button.cc-blog-categories__pill.is-active {
	background: #d32323;
	border-color: #d32323;
	color: #fff;
}

/* ── Grid ──────────────────────────────────────────────────────────────── */

.cc-blog-grid-section {
	padding: 56px 20px 80px;
	background: #fff;
}

.cc-blog-grid-section__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.cc-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 28px;
	align-items: stretch;
}

.cc-blog-grid__empty {
	grid-column: 1 / -1;
	font-family: 'Inter', sans-serif;
	color: #666;
	text-align: center;
	padding: 40px 0;
}

/* ── Card (Figma) ─────────────────────────────────────────────────────── */

.cc-blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cc-blog-card__media {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 20px;
}

.cc-blog-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.cc-blog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-align: left;
}

.cc-blog-card__category {
	display: inline-block;
	align-self: flex-start;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #444;
	padding: 6px 14px;
	border: none;
	border-radius: 999px;
	background: #f0f0f0;
	margin-bottom: 14px;
}

.cc-blog-card__excerpt {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 15px;
	line-height: 24px;
	letter-spacing: 0.005em;
	color: #666;
	margin: 0 0 20px;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cc-blog-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #e8e8e8;
}

.cc-blog-card__read-more {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #d32323;
	text-decoration: none;
	text-transform: none;
}

.cc-blog-card__read-more:hover,
.cc-blog-card__read-more:focus,
.cc-blog-card__read-more:visited,
.cc-blog-card__read-more:active {
	color: #d32323;
	text-decoration: none;
}

.cc-blog-card__read-more:hover {
	text-decoration: underline;
}

.cc-blog-card__date {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #999;
	white-space: nowrap;
}

.cc-blog-load-more-wrap {
	text-align: center;
	margin-top: 48px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

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

@media (max-width: 768px) {
	/* Blog listing hero — mobile stack */
	.cc-blog-listing-page .blog-listing-hero {
		padding: calc(var(--cc-header-offset, 105px) + 32px) 20px 32px;
	}

	.cc-blog-listing-page .blog-listing-hero__title {
		font-size: clamp(28px, 8.5vw, 40px);
		line-height: 1.08;
		letter-spacing: 0.04em;
		padding: 0 4px;
	}

	.cc-blog-listing-page .blog-listing-hero__description {
		margin-top: 16px;
		padding: 0 4px;
		font-size: 14px;
		line-height: 1.55;
	}

	/* Recent post — single column stack */
	.cc-blog-recent {
		padding: 20px 20px 40px;
	}

	.cc-blog-recent__label {
		margin-bottom: 20px;
	}

	.cc-blog-recent__card {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cc-blog-recent__media {
		border-radius: 12px;
	}

	.cc-blog-recent__meta {
		width: 100%;
		margin-bottom: 12px;
	}

	.cc-blog-listing-page .cc-blog-recent__read-more.btn {
		width: auto;
		max-width: none;
		align-self: flex-start;
	}

	/* Categories — Figma mobile collapsed bar by default */
/* 	.cc-blog-categories {
		margin: 0 0 24px;
		padding: 18px 20px;
		background-color: #000;
		background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
		background-size: 22px 22px;
	} */

	.cc-blog-categories.is-expanded {
		padding-bottom: 24px;
	}

	.cc-blog-categories__inner {
		max-width: none;
		padding: 0;
		text-align: left;
	}

	.cc-blog-categories__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin-bottom: 0;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.cc-blog-categories.is-expanded .cc-blog-categories__header {
		margin-bottom: 20px;
	}

	.cc-blog-categories__title {
		margin: 0;
		font-size: 18px;
		font-weight: 500;
		line-height: 1.2;
		letter-spacing: 0.08em;
		text-align: left;
	}

	.cc-blog-categories__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 32px;
		height: 32px;
		padding: 0;
		border: none;
		background: transparent;
		cursor: pointer;
	}

	.cc-blog-categories__toggle-icon {
		display: block;
		width: 10px;
		height: 10px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.cc-blog-categories__toggle[aria-expanded="true"] .cc-blog-categories__toggle-icon {
		transform: rotate(-135deg);
	}

	.cc-blog-categories__toggle:focus-visible {
		outline: 2px solid #d32323;
		outline-offset: 2px;
	}

	.cc-blog-categories__filters {
		justify-content: flex-start;
		gap: 10px;
	}

	.cc-blog-categories__filters.is-collapsed,
	.cc-blog-categories__filters[hidden] {
		display: none !important;
	}

	button.cc-blog-categories__pill {
		font-size: 13px;
		padding: 9px 16px;
	}

	/* Grid — single column */
	.cc-blog-grid-section {
		padding: 28px 20px 56px;
	}

	.cc-blog-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.cc-blog-card__media {
		margin-bottom: 16px;
	}

	.cc-blog-load-more-wrap {
		margin-top: 36px;
	}

	.cc-blog-listing-page .cc-blog-load-more.btn {
		width: auto;
		max-width: none;
	}
}

@media (max-width: 480px) {
	.cc-blog-card__title,
	.cc-blog-recent__title {
		font-size: 24px;
		letter-spacing: 0.4px;
	}
}
