/* Compilart Cálculos — carousels (Elementor Pro replacements) */
.jr-carousel {
	--jr-car-arrow: #092E3C;
	--jr-car-name: #B79D5B;
	--jr-car-role: #687799;
	--jr-car-title: #092E3C;
	--jr-car-border: #DBDBDB;
	--jr-car-radius: 15px;
	--jr-car-gap: 20px;
	--jr-per-view: 1; /* mobile default: 1 item */
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 8px 44px;
}

.jr-carousel *,
.jr-carousel *::before,
.jr-carousel *::after {
	box-sizing: border-box;
}

.jr-carousel__heading {
	margin: 0 0 18px;
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 600;
	line-height: 1.4;
	color: var(--jr-car-title);
	max-width: 720px;
}

.jr-carousel__viewport {
	overflow: hidden !important;
	width: 100%;
	border-radius: 16px;
}

.jr-carousel__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: var(--jr-car-gap);
	width: 100%;
	transition: transform 0.35s ease;
	will-change: transform;
}

.jr-carousel__slide {
	flex: 0 0 calc((100% - (var(--jr-per-view) - 1) * var(--jr-car-gap)) / var(--jr-per-view)) !important;
	width: calc((100% - (var(--jr-per-view) - 1) * var(--jr-car-gap)) / var(--jr-per-view)) !important;
	max-width: calc((100% - (var(--jr-per-view) - 1) * var(--jr-car-gap)) / var(--jr-per-view)) !important;
	min-width: 0 !important;
}

.jr-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: var(--jr-car-arrow);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(9, 46, 60, 0.25);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.jr-carousel__nav:hover {
	filter: brightness(1.08);
}

.jr-carousel__nav:disabled {
	opacity: 0.35;
	cursor: default;
	filter: none;
}

.jr-carousel__nav--prev { left: 0; }
.jr-carousel__nav--next { right: 0; }

.jr-carousel--offset .jr-carousel__viewport {
	margin: 0 8px;
}

/* Tablet: 2 itens */
@media (min-width: 768px) and (max-width: 1024px) {
	.jr-carousel {
		--jr-per-view: 2;
		padding: 8px 48px;
	}
}

/* Desktop: usa data-show via JS; fallback 3 */
@media (min-width: 1025px) {
	.jr-carousel {
		--jr-per-view: 3;
		padding: 8px 52px;
	}
	.jr-carousel[data-show="4"] { --jr-per-view: 4; }
	.jr-carousel[data-show="3"] { --jr-per-view: 3; }
	.jr-carousel[data-show="2"] { --jr-per-view: 2; }
	.jr-carousel[data-show="1"] { --jr-per-view: 1; }
}

/* Force mobile = 1 even if JS fails */
@media (max-width: 767px) {
	.jr-carousel {
		--jr-per-view: 1 !important;
		padding: 8px 40px;
	}
	.jr-carousel__nav {
		width: 36px;
		height: 36px;
	}
}

/* Team cards */
.jr-team-card {
	text-align: center;
	background: transparent;
}

.jr-team-card__media {
	border-radius: 18px;
	overflow: hidden;
	margin-bottom: 14px;
	aspect-ratio: 1 / 1.15;
	background: #f3f5f8;
}

.jr-team-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 18px;
}

.jr-team-card__name {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--jr-car-name);
	line-height: 1.3;
}

.jr-team-card__role {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--jr-car-role);
}

/* Testimonials (image cards) */
.jr-testimonial-card {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.jr-testimonial-card img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 18px;
}

/* Posts loop cards */
.jr-post-card {
	border: 1px solid var(--jr-car-border);
	border-radius: var(--jr-car-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
	height: 100%;
}

.jr-post-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.jr-post-card__media {
	overflow: hidden;
	border-radius: var(--jr-car-radius) var(--jr-car-radius) 0 0;
	aspect-ratio: 16 / 10;
	background: #eee;
}

.jr-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jr-post-card__title {
	margin: 0;
	padding: 12px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--jr-car-title);
}
