/* Thrive Carousel Posts — Elementor Widget */

/* ── Outer wrapper ── */
.thrive-cp {
	position: relative;
	overflow: hidden;
}

/* ── Track wrap: padding-left set by JS to align with nav container ── */
.thrive-cp__track-wrap {
	box-sizing: border-box;
	cursor: grab;
	user-select: none;
}

/* ── Track ── */
.thrive-cp__track {
	display: flex;
	transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: transform;
}

/* ── Slide ── */
.thrive-cp__slide {
	flex: 0 0 auto;
}

/* ── Card ── */
.thrive-cp__card {
	display: flex;
	overflow: hidden;
	background-color: #ffffff;
	border-radius: 24px;
	border: 1px solid #EFEDE9;
	padding: 8px;
	box-sizing: border-box;
	height: 440px;
}
.thrive-cp .thrive-cp__image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.thrive-cp__card {
		flex-direction: column;
		height: auto;
	}
}

/* ── Image ── */
.thrive-cp__image {
	flex: 0 0 60%;
	overflow: hidden;
	border-radius: 16px;
	align-self: stretch;
}

@media (max-width: 767px) {
	.thrive-cp__image {
		flex: none;
		height: var(--tcp-mob-img-h, 260px);
	}
}

.thrive-cp__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Content area ── */
.thrive-cp__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 40px;
	box-sizing: border-box;
	min-width: 0;
}

/* ── Category badge ── */
.thrive-cp__category {
	display: inline-block;
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
	background-color: #e0f0ee;
	color: #025760;
	margin-bottom: 16px;
	line-height: 1.4;
}

/* ── Title ── */
.thrive-cp__title {
	color: #1a2b2b;
	margin: 0 0 24px;
	line-height: 1.2;
	font-weight: 600;
	font-size: clamp(1.25rem, 2vw, 2rem);
}

/* ── Read More link ── */
.thrive-cp__read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	align-self: flex-start;
	transition: color 0.2s ease;
}

.thrive-cp__rm-text {
	color: #025760;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s ease;
}

/* ── Read More icon wrapper ── */
.thrive-cp__rm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.thrive-cp__rm-icon--hover {
	display: none;
}

.thrive-cp__read-more:hover .thrive-cp__rm-icon--normal {
	display: none;
}

.thrive-cp__read-more:hover .thrive-cp__rm-icon--hover {
	display: inline-flex;
}

/* ── Nav container ── */
.thrive-cp__nav-container {
	max-width: 1200px;
	margin: 28px auto 0;
	box-sizing: border-box;
}

.thrive-cp__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ── Dots ── */
.thrive-cp__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.thrive-cp__dot {
	display: block;
	aspect-ratio: 1;
	height: 4px;
	border-radius: 99px;
	border: none;
	padding: 0;
	cursor: pointer;
	background-color: #c8d0d0;
	transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
	flex-shrink: 0;
}

.thrive-cp__dot.is-active {
	width: 40px;
	background-color: #1a4040;
}

.thrive-cp__dot:focus-visible {
	outline: 2px solid #1a4040;
	outline-offset: 3px;
	border-radius: 2px;
}

/* ── Arrows ── */
.thrive-cp__arrows {
	display: flex;
	gap: 8px;
}

.thrive-cp__btn-prev,
.thrive-cp__btn-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	border: 1px solid #c8d4d4;
	background-color: transparent;
	color: #025760;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	padding: 0;
	flex-shrink: 0;
}

.thrive-cp__btn-prev:hover,
.thrive-cp__btn-next:hover {
	background-color: #e8eded;
	border-color: #a8bcbc;
}

.thrive-cp__btn-prev:focus-visible,
.thrive-cp__btn-next:focus-visible {
	outline: 2px solid #1a4040;
	outline-offset: 2px;
}

.thrive-cp__btn-prev:disabled,
.thrive-cp__btn-next:disabled {
	opacity: 0.38;
	cursor: not-allowed;
	pointer-events: none;
}
