/* =========================================================
 * JHR Loop Carousel — frontend styles
 * Includes a minimal Swiper base so the widget still works
 * if Elementor's Swiper stylesheet is not enqueued.
 * ========================================================= */

.jhr-lc-wrapper {
	position: relative;
}

.jhr-loop-carousel {
	position: relative;
	overflow: hidden;
	list-style: none;
	padding: 0;
	margin: 0 auto;
	z-index: 1;
}

.jhr-loop-carousel .swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	box-sizing: content-box;
}

.jhr-loop-carousel .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	position: relative;
	transition-property: transform;
}

.jhr-loop-carousel .swiper-slide > .jhr-lc-slide-inner,
.jhr-loop-carousel .swiper-slide > .jhr-lc-slide-link {
	display: block;
	height: 100%;
}

.jhr-loop-carousel .jhr-lc-slide-link {
	color: inherit;
	text-decoration: none;
}

/* Equal height ------------------------------------------------------- */
.jhr-lc-equal-height-yes .jhr-loop-carousel .swiper-wrapper {
	align-items: stretch;
}

.jhr-lc-equal-height-yes .jhr-loop-carousel .swiper-slide {
	height: auto;
}

.jhr-lc-equal-height-yes .jhr-loop-carousel .swiper-slide > .jhr-lc-slide-inner,
.jhr-lc-equal-height-yes .jhr-loop-carousel .swiper-slide > .jhr-lc-slide-link,
.jhr-lc-equal-height-yes .jhr-loop-carousel .swiper-slide .elementor-section,
.jhr-lc-equal-height-yes .jhr-loop-carousel .swiper-slide .e-con,
.jhr-lc-equal-height-yes .jhr-loop-carousel .swiper-slide .elementor {
	height: 100%;
}

/* Arrows -------------------------------------------------------------- */
.jhr-lc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	cursor: pointer;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	user-select: none;
}

.jhr-lc-arrow svg {
	width: 24px;
	height: 24px;
	display: block;
}

.jhr-lc-arrow-prev {
	inset-inline-start: 10px;
}

.jhr-lc-arrow-next {
	inset-inline-end: 10px;
}

.jhr-lc-arrows-outside .jhr-lc-wrapper,
.jhr-lc-arrows-outside > .elementor-widget-container {
	--jhr-lc-arrow-gutter: 60px;
}

.jhr-lc-arrows-outside .jhr-lc-arrow-prev {
	inset-inline-start: -60px;
}

.jhr-lc-arrows-outside .jhr-lc-arrow-next {
	inset-inline-end: -60px;
}

.jhr-lc-arrow.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* Pagination ---------------------------------------------------------- */
.jhr-lc-pagination {
	position: relative;
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 20px;
	line-height: 1;
	transition: opacity 0.3s;
	z-index: 5;
}

.jhr-lc-pagination .swiper-pagination-bullet {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-inline: 4px;
	border-radius: 50%;
	background: #000;
	opacity: 0.2;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.jhr-lc-pagination .swiper-pagination-bullet-active {
	opacity: 1;
}

.jhr-lc-pagination.swiper-pagination-progressbar {
	height: 4px;
	background: rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.jhr-lc-pagination .swiper-pagination-progressbar-fill {
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #000;
	transform: scale(0);
	transform-origin: left top;
}

/* Custom (absolute) pagination position */
.jhr-lc-pagination-custom-yes .jhr-lc-pagination {
	position: absolute;
	bottom: 10px;
	inset-inline-start: 0;
	margin-top: 0;
}

/* Editor notices ------------------------------------------------------ */
.jhr-lc-notice {
	padding: 20px;
	border: 1px dashed #c4c9cc;
	border-radius: 4px;
	color: #6d7882;
	text-align: center;
	font-size: 14px;
}

.jhr-lc-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 50px 30px;
	border: 1px dashed #c4c9cc;
	border-radius: 5px;
	color: #6d7882;
	min-height: 320px;
}

.jhr-lc-empty-state-icon svg {
	width: 84px;
	height: 84px;
	color: #d5d8dc;
	margin-bottom: 20px;
}

.jhr-lc-empty-state h3 {
	margin: 0 0 12px;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	color: #495157;
	max-width: 340px;
}

.jhr-lc-empty-state p {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.6;
	max-width: 380px;
}

.jhr-lc-empty-state-button {
	display: inline-block;
	padding: 10px 22px;
	background: #6d7882;
	color: #fff;
	font-size: 13px;
	border-radius: 3px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.jhr-lc-empty-state-button:hover,
.jhr-lc-empty-state-button:focus {
	background: #495157;
	color: #fff;
}

/* Loop item widgets --------------------------------------------------- */
.jhr-post-title {
	margin: 0 0 10px;
}

.jhr-post-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.jhr-post-image {
	overflow: hidden;
	line-height: 0;
}

.jhr-post-image img {
	max-width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s ease;
}

.jhr-image-zoom-yes .jhr-post-image:hover img {
	transform: scale(1.06);
}

.jhr-post-excerpt {
	margin-bottom: 10px;
}

.jhr-post-terms a {
	text-decoration: none;
}

.jhr-post-read-more {
	display: inline-block;
	padding: 10px 22px;
	background: #61ce70;
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.jhr-lc-notice-warning {
	border-color: #f0b849;
	background: #fff8e5;
	color: #7a5c12;
	text-align: start;
	margin-bottom: 15px;
	line-height: 1.6;
}
