/* =============================================================
   Axess Programs Directory — Front-end styles
   Brand: Poppins | #6d2b5f purple | #d6d927 yellow | #11253f navy
   ============================================================= */

/* ---- Wrapper ---- */
.apd-wrap {
	max-width: 1400px;
	margin: 0 auto;
	font-family: 'Poppins', sans-serif;
	color: #11253f;
	background: #fff;
}

/* ---- Filter Form ---- */
.apd-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 3rem;
}

.apd-filter-group {
	display: flex;
	flex-direction: column;
}

/* Hide the label — placeholder text in the select serves as label */
.apd-filter-group label {
	display: none;
}

.apd-filter-group select {
	padding: 0.75rem 3rem 0.75rem 1.1rem;
	border: 2px solid #11253f;
	/*border-radius: 4px;*/
	font-family: 'Poppins', sans-serif;
	/*font-size: 1rem;*/
	font-weight: 600;
	color: #11253f;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2311253f' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	min-width: 260px;
	transition: border-color 0.2s;
	margin-right: 0.75rem;
}

.apd-filter-group select:focus {
	outline: none;
	border-color: #6d2b5f;
}

.apd-filter-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.apd-btn-filter {
	background: #6d2b5f;
	color: #fff;
	border: none;
	padding: 0.75rem 2rem;
	/*border-radius: 4px;*/
	border-radius: 0 !important;
	font-family: 'Poppins', sans-serif;
	/*font-size: 1rem;*/
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: background 0.2s;
	white-space: nowrap;
	min-height: 39px;
}

.apd-btn-filter:hover,
.apd-btn-filter:focus {
	background: #531f49;
	outline: none;
}

.apd-reset-link {
	font-family: 'Poppins', sans-serif;
	/*font-size: 0.875rem;*/
	color: #6d2b5f;
	text-decoration: underline;
}

.apd-reset-link:hover {
	color: #531f49;
}

/* ---- Result count ---- */
.apd-result-count {
	/*font-size: 0.875rem;*/

	color: #555;
	margin-bottom: 1.5rem;
}

/* ---- Program List ---- */
.apd-program-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.apd-program-item {
	display: flex;
	gap: 2.5rem;
	padding: 2rem 0;
	/*border-bottom: 1px solid #e8e8e8;*/
	align-items: flex-start;
}

.apd-program-item:first-child {
	/*border-top: 1px solid #e8e8e8;*/
}

/* ---- Image ---- */
.apd-program-image {
	flex: 0 0 460px;
	width: 460px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.apd-program-image img {
	width: 100%;
	height: auto;
	max-height: 220px;
	display: block;
	object-fit: contain;
}

/* ---- Content ---- */
.apd-program-content {
	flex: 1;
	min-width: 0;
}

.apd-program-title {
	margin: 0 0 0.4rem;
	font-family: 'Poppins', sans-serif;
	/*font-size: 1.45rem;*/
	font-weight: 700;
	line-height: 1.2;
	color: #d6d927;
}

.apd-program-title a {
	color: #d6d927;
	text-decoration: none;
	transition: opacity 0.2s;
}

.apd-program-title a:hover {
	opacity: 0.8;
	text-decoration: none;
}

/* Counties / location line — bold italic navy */
.apd-program-meta {
	/*font-size: 0.95rem;*/
	margin: 0.25rem 0;
	color: #11253f;
}

.apd-program-meta strong {
	display: none; /* hide "Type of Service:" / "Program Location:" labels */
}

/* County meta — bold italic */
.apd-program-meta.apd-meta-county {
	font-weight: 700;
	font-style: italic;
	color: #11253f;
	margin-bottom: 0.9rem;
}

.apd-program-description {
	/*font-size: 0.975rem;*/
	color: #11253f;
	margin-bottom: 0.6rem;
	/*line-height: 1.7;*/
}

.apd-program-description p {
	margin: 0 0 0.6em;
}

/* Service meta — smaller, below description */
.apd-program-meta.apd-meta-service {
	/*font-size: 0.85rem;*/
	color: #555;
	margin-top: 0.5rem;
}

/* ---- Learn More ---- */
.apd-learn-more {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.5rem 1.4rem;
	background: #6d2b5f;
	color: #fff;
	border-radius: 4px;
	font-family: 'Poppins', sans-serif;
	/*font-size: 0.875rem;*/
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.apd-learn-more:hover {
	background: #531f49;
	color: #fff;
}

/* ---- No results ---- */
.apd-no-results {
	padding: 3rem;
	text-align: center;
	color: #555;
	/*font-size: 0.95rem;*/
}

.apd-no-results a {
	color: #6d2b5f;
	font-weight: 600;
}

/* ---- Pagination ---- */
.apd-pagination {
	margin-top: 3rem;
}

.apd-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0;
	margin: 0;
	justify-content: center;
}

.apd-pagination ul li a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	/*border: 2px solid #11253f;*/
	border: 2px solid transparent;
	/*	border-radius: 4px;*/
	border-radius: 0;
	font-family: 'Poppins', sans-serif;
	/*font-size: 1.25rem;*/	
	
	color: #11253f;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.apd-pagination ul li a:hover {
	background: #11253f;
	color: #fff;
}

.apd-pagination ul li a.apd-page-current,
.apd-pagination ul li a[aria-current="page"] {
	/*background: #6d2b5f;*/
	
	/*color: #fff;*/


	font-weight: 600;
}

/* ---- Responsive ---- */
@media ( max-width: 700px ) {
	.apd-program-item {
		flex-direction: column;
		gap: 1.25rem;
		padding: 2rem 0;
	}

	.apd-program-image {
		flex: 0 0 auto;
		width: 100%;
		max-width: 220px;
	}

	.apd-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.apd-filter-group select {
		min-width: 100%;
		width: 100%;
	}

	.apd-filter-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.apd-btn-filter {
		width: 100%;
	}
}
