/**
 * District CPT — Front-End Styles
 *
 * @package Listable_CCDC
 */

/* ── Layout Wrappers ─────────────────────────── */

.district-content-area,
.district-archive-content-area {
	width: 100%;
}

.district-content__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ── Hero Banner ─────────────────────────────── */

.district-hero {
	position: relative;
	width: 100%;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.district-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.district-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 40px 20px;
	max-width: 900px;
}

.district-hero__title {
	color: #ffffff;
	font-size: 48px;
	font-weight: 700;
	margin: 0 0 16px;
	line-height: 1.2;
}

.district-hero__breadcrumb {
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	letter-spacing: 0.5px;
}

.district-hero__breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.2s ease;
}

.district-hero__breadcrumb a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.district-hero__breadcrumb .breadcrumb-separator {
	margin: 0 8px;
	opacity: 0.6;
}

/* ── Archive — District Card Grid ────────────── */

.district-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

.district-archive__intro {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 48px;
}

.district-archive__intro h2 {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 16px;
}

.district-archive__intro p {
	font-size: 16px;
	line-height: 1.6;
	color: #555;
}

.district-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 32px;
}

.district-card {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
}

.district-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.district-card__image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.district-card__body {
	padding: 24px;
}

.district-card__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
}

.district-card__title a {
	color: inherit;
	text-decoration: none;
}

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

.district-card__excerpt {
	font-size: 15px;
	line-height: 1.5;
	color: #555;
	margin: 0 0 16px;
}

.district-card__link {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #333;
	text-decoration: none;
	border-bottom: 2px solid #333;
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.district-card__link:hover {
	color: #0073aa;
	border-color: #0073aa;
}

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

@media (max-width: 768px) {
	.district-hero {
		min-height: 320px;
	}

	.district-hero__title {
		font-size: 32px;
	}

	.district-card-grid {
		grid-template-columns: 1fr;
	}

	.district-archive {
		padding: 40px 16px;
	}
}
