/**
 * Services Carousel widget styles.
 *
 * @package rahino
 */

.rahino-services-carousel {
	--rahino-card-hover-lift: 10px;
	--rahino-card-outer-spacing: 16px;
	--rahino-badge-offset: 0px;
	--rahino-image-zoom: 1.1;
	--rahino-overlay-opacity: 0.4;
	--rahino-transition: 0.35s ease;
	position: relative;
	width: 100%;
}

/* Section header */
.rahino-services-carousel__header {
	text-align: center;
	margin-bottom: 40px;
}

.rahino-services-carousel__subtitle {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.rahino-services-carousel__title {
	margin: 0;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	line-height: 1.2;
}

.rahino-services-carousel__title-highlight {
	display: inline;
}

/* Slider wrapper */
.rahino-services-carousel__slider {
	position: relative;
	padding: 0 48px;
}

.rahino-services-carousel__swiper {
	overflow: hidden;
}

.rahino-services-carousel__swiper .swiper-wrapper {
	box-sizing: border-box;
}

.rahino-services-carousel__swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
	overflow: visible;
}

/* Card shell – vertical safe area for shadow and hover lift only */
.rahino-service-card-shell {
	box-sizing: border-box;
	height: 100%;
	padding-top: calc(var(--rahino-card-hover-lift) + var(--rahino-card-outer-spacing));
	padding-bottom: var(--rahino-card-outer-spacing);
}

/*
 * Card frame: shadow, border and radius live here.
 * Must NOT use overflow:hidden here — it clips box-shadow and border glow.
 */
.rahino-service-card {
	position: relative;
	height: 100%;
	display: block;
	transition: transform var(--rahino-transition), box-shadow var(--rahino-transition);
}

.rahino-service-card:hover {
	transform: translateY(calc(-1 * var(--rahino-card-hover-lift)));
}

/* Inner clip layer for image zoom and rounded corners */
.rahino-service-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: inherit;
}

/* Media area */
.rahino-service-card__media {
	position: relative;
	flex-shrink: 0;
}

.rahino-service-card__image {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.rahino-service-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transform-origin: center center;
	transition: transform var(--rahino-transition);
}

.rahino-service-card:hover .rahino-service-card__image img {
	transform: scale(var(--rahino-image-zoom));
}

/* Number badge */
.rahino-service-card__number {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	min-height: 50px;
	padding: 8px 14px;
	background-color: #FDA311;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.rahino-badge-pos--top-left .rahino-service-card__number {
	top: var(--rahino-badge-offset);
	left: var(--rahino-badge-offset);
	right: auto;
	border-radius: 16px 0 24px 0;
}

.rahino-badge-pos--top-right .rahino-service-card__number {
	top: var(--rahino-badge-offset);
	right: var(--rahino-badge-offset);
	left: auto;
	border-radius: 0 16px 0 24px;
}

/* Image overlay */
.rahino-service-card__overlay {
	position: absolute;
	inset: 0;
	background-color: #000000;
	opacity: 0;
	transition: opacity var(--rahino-transition);
	pointer-events: none;
	z-index: 1;
}

.rahino-service-card__image.has-overlay .rahino-service-card__overlay {
	opacity: 0;
}

.rahino-service-card:hover .rahino-service-card__image.has-overlay .rahino-service-card__overlay {
	opacity: var(--rahino-overlay-opacity);
}

/* Floating icon – sits above inner clip layer */
.rahino-service-card__icon {
	position: absolute;
	bottom: 0;
	left: 50%;
	z-index: 4;
	transform: translate(-50%, 50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #FDA311;
	color: #ffffff;
	border: 3px solid #ffffff;
	transition: transform var(--rahino-transition);
}

.rahino-service-card__icon i,
.rahino-service-card__icon svg {
	display: block;
	line-height: 1;
}

.rahino-service-card:hover .rahino-service-card__icon {
	transform: translate(-50%, 50%) scale(1.05);
}

/* Content area */
.rahino-service-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 24px 32px;
}

.rahino-service-card__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
	transition: color var(--rahino-transition);
}

.rahino-service-card__description {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #777777;
}

/* Button */
.rahino-service-card__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
	transition: color var(--rahino-transition);
}

.rahino-service-card__button-arrow {
	display: inline-block;
	transition: transform var(--rahino-transition);
}

.rahino-service-card__button:hover .rahino-service-card__button-arrow {
	transform: translateX(-5px);
}

/* Navigation arrows */
.rahino-services-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	background-color: #ffffff;
	color: #1a1a1a;
	border-radius: 50%;
	cursor: pointer;
	transition: color var(--rahino-transition), background-color var(--rahino-transition), box-shadow var(--rahino-transition);
}

.rahino-services-carousel__arrow::after {
	content: none !important;
	display: none !important;
}

.rahino-services-carousel__arrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.rahino-services-carousel__arrow-icon svg {
	display: block;
	width: 10px;
	height: 16px;
}

.rahino-services-carousel__arrow--prev {
	left: 0;
}

.rahino-services-carousel__arrow--next {
	right: 0;
}

.rahino-services-carousel__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Pagination dots */
.rahino-services-carousel__pagination {
	position: relative;
	margin-top: 20px;
	text-align: center;
}

.rahino-services-carousel__pagination .swiper-pagination-bullet {
	opacity: 0.35;
	transition: opacity var(--rahino-transition), transform var(--rahino-transition);
}

.rahino-services-carousel__pagination .swiper-pagination-bullet-active {
	opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
	.rahino-services-carousel__header {
		margin-bottom: 30px;
	}

	.rahino-service-card__content {
		padding: 44px 20px 28px;
	}

	.rahino-services-carousel__arrow {
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}

	.rahino-services-carousel__arrow-icon svg {
		width: 8px;
		height: 14px;
	}
}
