/* Home Service Slider Styles */
.home-service-slider-section {
	padding: 60px 20px;
	position: relative;
	margin: 0.8rem;
	border-radius: 0.5rem;
	background: #f7f7fb;
}

html.dark .home-service-slider-section {
	background: var(--bg-secondary);
}

/* Section Title */
.home-service-slider__section-title {
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 700;
	text-align: center;
	margin: 0 auto 40px;
	color: var(--fg, #0a0a0a);
	max-width: 1200px;
}

html.dark .home-service-slider__section-title {
	color: var(--text-primary, #ffffff);
}

.home-service-slider {
	width: 100%;
	margin: 0 auto;
	padding-bottom: 60px !important;
	position: relative;
}
.home-service-slider .swiper {
	padding: 14px 0px !important;
}

/* Linear transition for services slider autoplay */
.home-service-slider-section:not(.blog-slider-section)
	.home-service-slider
	.swiper-wrapper {
	transition-timing-function: linear !important;
}
/* Card Styles */
.home-service-slider__card {
	display: block;
	position: relative;
	width: 100%;
	height: 400px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
	cursor: none;
}

@media (max-width: 768px) {
	.home-service-slider__card {
		cursor: pointer;
	}
}

html.dark .home-service-slider__card {
	border-color: rgba(255, 255, 255, 0.15);
}

.home-service-slider__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

html.dark .home-service-slider__card:hover {
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* Image Background */
.home-service-slider__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	padding: 30px;
}

/* Content Box */
.home-service-slider__content {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 32px);
	margin-bottom: 16px;
	padding: 20px;
	padding-left: 72px; /* Reserve space for arrow (40px arrow + 16px left + 16px gap) */
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	z-index: 2;
	transition: all 0.3s ease;
}

html.dark .home-service-slider__content {
	background: rgba(0, 0, 0, 0.75);
	border-color: rgba(255, 255, 255, 0.15);
}

/* Title */
.home-service-slider__title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: #0a0a0a;
	line-height: 1.4;
}

html.dark .home-service-slider__title {
	color: #ffffff;
}

/* Description */
.home-service-slider__description {
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	color: #4a4a4a;
}

html.dark .home-service-slider__description {
	color: #b3b3b3;
}

/* Arrow Icon */
.home-service-slider__arrow {
	position: absolute;
	bottom: 16px;
	left: 16px;
	width: 40px;
	height: 40px;
	border-radius: 100px;
	background: rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 3;
}

html.dark .home-service-slider__arrow {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.15);
}

.home-service-slider__arrow svg {
	width: 20px;
	height: 20px;
	color: #0a0a0a;
	transition: transform 0.3s ease;
	transform: rotate(270deg);
}

html.dark .home-service-slider__arrow svg {
	color: #ffffff;
}

/* Arrow rotation on card hover - rotates to point left */
.home-service-slider__card:hover .home-service-slider__arrow svg {
	transform: rotate(223deg);
}

/* Navigation */
.home-service-slider__navigation {
	position: absolute;
	bottom: 0;
	right: 0;
	display: flex;
	gap: 12px;
	z-index: 10;
}

.home-service-slider__button-prev,
.home-service-slider__button-next {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	margin: 0;
}

html.dark .home-service-slider__button-prev,
html.dark .home-service-slider__button-next {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.15);
}

.home-service-slider__button-prev:hover,
.home-service-slider__button-next:hover {
	background: rgba(0, 0, 0, 0.1);
}

html.dark .home-service-slider__button-prev:hover,
html.dark .home-service-slider__button-next:hover {
	background: rgba(255, 255, 255, 0.1);
}

.home-service-slider__button-prev svg,
.home-service-slider__button-next svg {
	width: 20px;
	height: 20px;
	color: #0a0a0a;
}

html.dark .home-service-slider__button-prev svg,
html.dark .home-service-slider__button-next svg {
	color: #ffffff;
}

.home-service-slider__button-prev.swiper-button-disabled,
.home-service-slider__button-next.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.home-service-slider-section {
		padding: 40px 16px;
	}

	.home-service-slider {
		padding-bottom: 50px;
	}

	.home-service-slider__card {
		height: 350px;
	}

	.home-service-slider__content {
		width: calc(100% - 24px);
		margin-bottom: 12px;
		padding: 16px;
		padding-left: 64px; /* Reserve space for arrow on mobile (36px arrow + 12px left + 16px gap) */
	}

	.home-service-slider__title {
		font-size: 18px;
	}

	.home-service-slider__description {
		font-size: 13px;
	}

	.home-service-slider__arrow {
		width: 36px;
		height: 36px;
		bottom: 12px;
		left: 12px;
	}

	.home-service-slider__arrow svg {
		width: 18px;
		height: 18px;
	}

	.home-service-slider__navigation {
		/* bottom: -10px; */
		right: 0;
	}

	.home-service-slider__button-prev,
	.home-service-slider__button-next {
		width: 40px;
		height: 40px;
	}

	.home-service-slider__button-prev svg,
	.home-service-slider__button-next svg {
		width: 18px;
		height: 18px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.home-service-slider__card {
		height: 380px;
	}
}
.home-service-slider-section .swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after,
.home-service-slider-section .swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
	content: none;
}
.home-service-slider .swiper-button-prev,
.swiper-rtl .swiper-button-next {
	right: unset;
}

/* Blog Slider Section Title */
.blog-slider-section__title {
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 700;
	text-align: center;
	margin: 0 auto 40px;
	color: var(--fg, #0a0a0a);
	max-width: 1200px;
}

html.dark .blog-slider-section__title {
	color: var(--text-primary, #ffffff);
}

/* See More Button */
.home-service-slider__see-more {
	position: absolute;
	bottom: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: rgba(0, 0, 0, 0.85);
	border: 2px solid rgba(0, 0, 0, 0.85);
	border-radius: 999px;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
	overflow: hidden;
}

.home-service-slider__see-more::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: #ffffff;
	transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

html.dark .home-service-slider__see-more {
	background: rgba(0, 0, 0, 0.9);
	border-color: rgba(0, 0, 0, 0.9);
	color: #ffffff;
}

html.dark .home-service-slider__see-more::before {
	background: rgba(255, 255, 255, 0.95);
}

.home-service-slider__see-more:hover {
	color: #000000;
	border-color: rgba(0, 0, 0, 0.95);
}

.home-service-slider__see-more:hover::before {
	left: 0;
}

html.dark .home-service-slider__see-more:hover {
	color: #000000;
	border-color: rgba(255, 255, 255, 0.95);
}

.home-service-slider__see-more > * {
	position: relative;
	z-index: 1;
}

.home-service-slider__see-more svg {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

.home-service-slider__see-more:hover svg {
	transform: translateX(-4px);
}

/* Responsive adjustments for See More Button */
@media (max-width: 768px) {
	.home-service-slider__see-more {
		padding: 10px 16px;
		font-size: 13px;
	}

	.home-service-slider__see-more svg {
		width: 14px;
		height: 14px;
	}
}

/* Custom Cursor for Service Cards */
.home-service-slider__custom-cursor {
	position: fixed;
	left: 0;
	top: 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #ffffff;
	pointer-events: none;
	z-index: 999999;
	--cursor-x: 0px;
	--cursor-y: 0px;
	transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(0);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	will-change: transform, opacity;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

html.dark .home-service-slider__custom-cursor {
	background: #000000;
	box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.home-service-slider__custom-cursor.active {
	transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(1);
	opacity: 1;
}

.home-service-slider__custom-cursor-icon {
	width: 20px;
	height: 20px;
	stroke: #000000;
	stroke-width: 1px;
	fill: none;
	transition: stroke 0.2s ease;
}

html.dark .home-service-slider__custom-cursor-icon {
	stroke: #ffffff;
}

/* Hide default cursor when custom cursor is active */
body.hide-cursor {
	cursor: none !important;
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
	.home-service-slider__custom-cursor {
		display: none !important;
	}
}
