/**
 * Cooperadora Escolar - Colaboradores Carousel Styles
 *
 * @package Cooperadora_Escolar
 */

/* =========================================================
   Carousel container
   ========================================================= */

.ce-carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.ce-carousel__track-wrapper {
	overflow: hidden;
	width: 100%;
}

.ce-carousel__track {
	display: flex;
	transition: transform 0.35s ease;
	will-change: transform;
}

/* =========================================================
   Cards
   ========================================================= */

.ce-carousel__card {
	flex: 0 0 100%;          /* mobile default: 1 card */
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 8px;
	display: flex;
	flex-direction: column;
}

.ce-carousel__card-image {
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background-color: #f0f0f0;
	border-radius: 4px 4px 0 0;
}

.ce-carousel__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Placeholder when no featured image */
.ce-carousel__card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e0e0e0;
}

.ce-carousel__card-placeholder-text {
	font-size: 3rem;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	line-height: 1;
}

.ce-carousel__card-body {
	padding: 12px 8px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-top: none;
	border-radius: 0 0 4px 4px;
}

.ce-carousel__card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
}

.ce-carousel__card-description {
	margin: 0;
	font-size: 0.875rem;
	color: #555;
	line-height: 1.5;
}

/* =========================================================
   Navigation arrows
   ========================================================= */

.ce-carousel__btn {
	display: none;           /* hidden on mobile */
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background-color: rgba(255, 255, 255, 0.9);
	border: 1px solid #ccc;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	color: #333;
	padding: 0;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ce-carousel__btn:hover,
.ce-carousel__btn:focus {
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.ce-carousel__btn--prev {
	left: 4px;
}

.ce-carousel__btn--next {
	right: 4px;
}

/* =========================================================
   Empty state
   ========================================================= */

.ce-carousel__empty {
	text-align: center;
	color: #666;
	font-style: italic;
	padding: 24px 0;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Tablet: 768px – 1023px → 2 cards visible */
@media (min-width: 768px) {
	.ce-carousel__card {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.ce-carousel__btn {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Desktop: ≥1024px → 3 cards visible (4 on wide screens) */
@media (min-width: 1024px) {
	.ce-carousel__card {
		flex: 0 0 33.3333%;
		max-width: 33.3333%;
	}
}

@media (min-width: 1280px) {
	.ce-carousel__card {
		flex: 0 0 25%;
		max-width: 25%;
	}
}
