/**
 * Widget Elementor — Contrafoc Cursos Seguro (escrit des de zero).
 */

.contrafoc-cursos-elementor-widget {
	margin: 20px 0;
	position: relative;
}

.contrafoc-cursos-slider-wrap {
	position: relative;
}

.contrafoc-cursos-elementor-widget .contrafoc-cursos-slider {
	margin: 0 -10px;
}

.contrafoc-cursos-elementor-widget .contrafoc-cursos-slider .slick-list,
.contrafoc-cursos-elementor-widget .contrafoc-cursos-slider .slick-track,
.contrafoc-cursos-elementor-widget .contrafoc-cursos-slider .slick-slide,
.contrafoc-cursos-elementor-widget .contrafoc-cursos-slider .slick-slide > div {
	background: transparent;
}

.contrafoc-cursos-elementor-widget:not([data-per-row="1"]) .contrafoc-cursos-slider .slick-list,
.contrafoc-cursos-elementor-widget:not([data-per-row="1"]) .contrafoc-cursos-slider .slick-track {
	height: 100%;
}

.contrafoc-cursos-elementor-widget:not([data-per-row="1"]) .contrafoc-cursos-slider .slick-slide,
.contrafoc-cursos-elementor-widget:not([data-per-row="1"]) .contrafoc-cursos-slider .slick-slide > div {
	height: 100%;
}

.contrafoc-cursos-slide {
	padding: 0 10px;
	height: 100%;
}

.contrafoc-cursos-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.35s ease;
}

.contrafoc-cursos-card:hover .contrafoc-cursos-card-bg {
	transform: scale(1.06);
}

.contrafoc-cursos-card-image {
	position: relative;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.contrafoc-cursos-card-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: transparent;
	transition: transform 0.45s ease;
}

.contrafoc-cursos-elementor-widget[data-per-row="1"] .slick-track,
.contrafoc-cursos-elementor-widget[data-per-row="1"] .slick-slide,
.contrafoc-cursos-elementor-widget[data-per-row="1"] .slick-slide > div {
	height: auto !important;
}

.contrafoc-cursos-elementor-widget[data-per-row="1"] .contrafoc-cursos-card-image {
	aspect-ratio: unset;
	height: auto;
	display: block;
	overflow: hidden;
}

.contrafoc-cursos-elementor-widget[data-per-row="1"] .contrafoc-cursos-card-bg {
	position: relative;
	inset: auto;
	width: 100%;
	height: clamp(200px, 28vw, 320px);
}

.contrafoc-cursos-elementor-widget[data-per-row="1"] .contrafoc-cursos-card-overlay {
	inset: auto;
	top: 0;
	left: 0;
	right: 0;
	height: clamp(200px, 28vw, 320px);
	bottom: auto;
}

.contrafoc-cursos-elementor-widget[data-per-row="1"] .contrafoc-cursos-card {
	overflow: hidden;
	background: #fff;
}

.contrafoc-cursos-elementor-widget[data-per-row="1"] .contrafoc-cursos-card-title {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
}

.contrafoc-cursos-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(26, 35, 50, 0.2) 100%);
	pointer-events: none;
}

.contrafoc-cursos-card-title {
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 1rem 1.15rem 1.15rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a2332;
	background: #fff;
	border-top: 3px solid #ee8516;
	text-shadow: none;
}

.contrafoc-cursos-card:hover .contrafoc-cursos-card-title {
	color: #ee8516;
}

.contrafoc-cursos-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #ee8516;
	box-shadow: none;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.contrafoc-cursos-arrow:hover {
	background: #ee8516;
	color: #fff;
}

.contrafoc-cursos-arrow svg {
	width: 20px;
	height: 20px;
}

.contrafoc-cursos-prev {
	left: -8px;
}

.contrafoc-cursos-next {
	right: -8px;
}

.contrafoc-cursos-elementor-widget .slick-dots {
	margin-top: 1.5rem;
	display: flex !important;
	justify-content: center;
	gap: 6px;
	list-style: none;
	padding: 0;
}

.contrafoc-cursos-elementor-widget .slick-dots li {
	margin: 0;
}

.contrafoc-cursos-elementor-widget .slick-dots li button {
	font-size: 0;
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: #c5ccd6;
	text-indent: -9999px;
	overflow: hidden;
	transition: width 0.25s ease, background 0.25s ease;
}

.contrafoc-cursos-elementor-widget .slick-dots li.slick-active button {
	width: 24px;
	background: #ee8516;
}

.contrafoc-cursos-elementor-widget .slick-dots li button:before {
	display: none !important;
}

.contrafoc-cursos-empty {
	color: #5c6578;
	padding: 20px;
	text-align: center;
}
