/*
 * Beyond The Practice carousel (Community Involvement template only).
 * Every selector is scoped to .btp-section so nothing else on the site is affected.
 */

.btp-section {
	padding: 3rem 1rem 0;
}

@media (min-width: 1024px) {
	.btp-section {
		padding-top: 4rem;
	}
}

@media (min-width: 1280px) {
	.btp-section {
		padding-top: 5rem;
	}
}

@media (min-width: 1536px) {
	.btp-section {
		padding-top: 6rem;
	}
}

.btp-section .btp-container {
	max-width: 87rem;
	margin: 0 auto;
}

.btp-section .btp-header {
	margin-bottom: 2rem;
}

@media (min-width: 1024px) {
	.btp-section .btp-header {
		margin-bottom: 3rem;
	}
}

/* Carousel shell */
.btp-section .btp-carousel-wrap {
	background: linear-gradient(180deg, #1147ad 0%, #082355 100%);
	padding: 1rem;
}

@media (min-width: 768px) {
	.btp-section .btp-carousel-wrap {
		padding: 1.5rem;
	}
}

/* Hide stacked slides until slick is ready (avoids layout jump) */
.btp-section .btp-carousel:not(.slick-initialized) .btp-slide:not(:first-child) {
	display: none;
}

/* Undo the theme's global .slick-list gutter inside this carousel */
.btp-section .btp-carousel .slick-list {
	margin: 0;
}

.btp-section .btp-slide-inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 1024px) {
	.btp-section .btp-slide-inner {
		flex-direction: row;
		align-items: center;
		gap: 2.5rem;
	}
}

/* Photo area: same footprint as the old header image (611 x 408) */
.btp-section .btp-media {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	aspect-ratio: 611 / 408;
	flex-shrink: 0;
	overflow: hidden;
}

@media (min-width: 1024px) {
	.btp-section .btp-media {
		width: 50%;
		max-width: 611px;
		height: 408px;
		aspect-ratio: auto;
	}
}

.btp-section .btp-figure {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	margin: 0;
}

.btp-section .btp-figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

/* Copy */
.btp-section .btp-content {
	flex: 1 1 auto;
	min-width: 0;
}

.btp-section .btp-title {
	margin: 0 0 1rem;
	font-size: 1.375rem;
	line-height: 1.25;
	color: #fff;
}

@media (min-width: 1024px) {
	.btp-section .btp-title {
		font-size: 1.75rem;
	}
}

@media (min-width: 1536px) {
	.btp-section .btp-title {
		font-size: 2rem;
	}
}

.btp-section .btp-text p {
	margin: 0 0 0.875rem;
	font-size: 1rem;
	line-height: 1.6;
}

.btp-section .btp-text p:last-child {
	margin-bottom: 0;
}

/* Controls: arrows + dots row (not using the theme's global .slick-arrow/.slick-dots styles) */
.btp-section .btp-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding-top: 1.25rem;
}

.btp-section .btp-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 9999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s;
}

.btp-section .btp-arrow::before {
	font-family: 'icomoon';
	font-size: 1rem;
	line-height: 1;
}

.btp-section .btp-prev::before {
	content: '\e90a';
}

.btp-section .btp-next::before {
	content: '\e90b';
}

.btp-section .btp-arrow:hover,
.btp-section .btp-arrow:focus-visible {
	background: #114ab4;
	border-color: #114ab4;
}

.btp-section .btp-dots-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.btp-section .btp-dots-list li {
	margin: 0;
	line-height: 0;
}

.btp-section .btp-dots-list button {
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.4);
	font-size: 0;
	cursor: pointer;
	transition: all 0.3s;
}

.btp-section .btp-dots-list .slick-active button {
	width: 0.75rem;
	height: 0.75rem;
	background: #fff;
}
