/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Apr 30 2025 | 23:47:43 */

.county-cards .card-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 25px;
}

.county-cards .card {
	width: 100%;
	padding: 20px;
	background-color: #fff;
	transition: all 0.6s ease;
	border-top: none;
	border-left: none;
	border-right: none;
	border-radius: 0;
	border-bottom: 1px solid black;
	position: relative;
	overflow: hidden;
}

.county-cards .card.expanded {
	padding: 0 25px;
}

.county-cards .card-body {
	display: flex;
	align-items: center;
	transition: all 0.6s ease;
	cursor: pointer; /* Style the label as clickable */
}

.county-cards .card-icon {
	font-family: 'Material Icons';
	min-width: 48px;
	height: 48px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	background-color: #00543d;
	color: white;
	margin-right: 15px;
	transition: all 0.6s ease;
	position: relative;
}

.county-cards .card.expanded .card-icon {
	@media (min-width: 576px) {
		min-width: 96px;
		height: 96px;
		font-size: 48px;
		transform: translateY(30px);
	}
}

.county-cards .card-title {
	flex-grow: 1;
	margin: 0 25px;
}

.county-cards .card-button {
	display: block;
	position: relative;
	width: 32px;
	height: 32px;
}

.county-cards .card-button span:nth-child(1) {
	display: block;
	position: absolute;
	top: 50%;
	margin: 0 5%;
	width: 80%;
	height: 6px;
	border-radius: 3px;
	background: #9c9c9c;
	box-shadow: 2px -2px black;
	top: calc(50% - 4px);
	transition: all 0.25s ease;
}

.county-cards .card-button span:nth-child(2) {
	display: block;
	position: absolute;
	margin: 5% 0;
	width: 6px;
	height: 80%;
	border-radius: 3px;
	background: #9c9c9c;
	box-shadow: 2px -2px black;
	left: calc(50% - 5px);
	transition: all 0.25s ease;
}

/* Initially hide the content */
.county-cards .card-content {
	transform: scaleY(0);
	max-height: 0;
	overflow: hidden;
	margin-top: 0;
	padding: 0 20px;
	transition: transform 0.6s ease-in-out, max-height 0.6s ease-in-out, margin-top 0.6s ease-in-out, padding 0.6s ease-in-out;
	@media (min-width: 576px) {
		float: right;
		width: calc(100% - 129px);
	}
}

/* New CSS for Checkbox-Based Expansion */
.county-cards .card input[type="checkbox"] {
	display: none; /* Hide the actual checkbox */
}

.county-cards .card input[type="checkbox"]:checked + .card-body {
	/* Apply expanded styles to the card body if needed */
}

.county-cards .card input[type="checkbox"]:checked + .card-body .card-icon {
	@media (min-width: 576px) {
		min-width: 96px;
		height: 96px;
		font-size: 48px;
		transform: translateY(30px);
	}
}

.county-cards .card input[type="checkbox"]:checked + .card-body .card-button span:nth-child(2) {
	transform: rotate(-90deg);
}

.county-cards .card input[type="checkbox"]:checked ~ .card-content {
	transform: scaleY(1);
	max-height: 500px; /* Adjust as needed */
	margin-top: 15px;
	padding-top: 20px;
	padding-bottom: 20px;
	@media (max-width: 575px) {
		margin-top: 20px;
		width: 100%;
		float: none;
	}
}