/* ==========================================================================
   Service Cards - Grid & Slider (Elementor Widget)
   ========================================================================== */

.sng-service-widget * {
	box-sizing: border-box;
}

/* ---- Grid layout ---- */
.sng-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	row-gap: 24px;
}

/* ---- Slider layout ---- */
.sng-service-widget.sng-view-slider {
	width: 100%;
}

.sng-slider-viewport {
	position: relative;
	width: 100%;
}

.sng-slider {
	width: 100%;
	overflow: hidden;
}

.sng-slider .swiper-wrapper {
	align-items: stretch;
}

.sng-slider .swiper-slide {
	height: auto;
}

/* ---- Card ---- */
.sng-card {
	position: relative;
	height: 356px;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	background-color: #0a1119;
}

.sng-card__thumb {
	--sng-overlay-top: #e9e9e9;
	--sng-overlay-bottom: #0a1119;
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sng-card__thumb a,
.sng-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sng-card__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		var(--sng-overlay-top) 0%,
		rgba(10, 17, 25, 0) 32%,
		rgba(10, 17, 25, 0.55) 66%,
		var(--sng-overlay-bottom) 100%
	);
	pointer-events: none;
}

/* ---- Arrow button (top right) ---- */
.sng-card__arrow {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 3;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #0d6efd;
	border-radius: 8px;
	text-decoration: none;
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.sng-card:hover .sng-card__arrow {
	transform: translate(2px, -2px);
}

.sng-card__arrow svg {
	width: 16px;
	height: 16px;
}

/* ---- Body / text content ---- */
.sng-card__body {
	position: relative;
	z-index: 2;
	padding: 24px 28px 28px;
}

.sng-card__icon {
	margin-bottom: 14px;
}

.sng-card__icon img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.sng-card__title {
	display: block;
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
}

a.sng-card__title:hover {
	text-decoration: underline;
}

.sng-card__divider {
	width: 100%;
	height: 1px;
	margin-bottom: 10px;
	background-color: rgba(255, 255, 255, 0.3);
}

.sng-card__badge {
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
}

.sng-card__description {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.5;
	color: #f5b400;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- Slider navigation buttons ---- */
.sng-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #0a1119;
	border-radius: 50%;
	cursor: pointer;
	z-index: 5;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sng-nav-btn:focus-visible {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

.sng-nav-prev {
	left: 0;
	transform: translate(-50%, -50%);
}

.sng-nav-next {
	right: 0;
	transform: translate(50%, -50%);
}

.sng-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ---- Pagination dots ---- */
.sng-view-slider .swiper-pagination {
	position: static;
	margin-top: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.sng-view-slider .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(10, 17, 25, 0.25);
	opacity: 1;
	margin: 0 !important;
	cursor: pointer;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.sng-view-slider .swiper-pagination-bullet-active {
	width: 22px;
	border-radius: 4px;
	background-color: #0d6efd;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.sng-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sng-nav-prev {
		left: 8px;
		transform: translateY(-50%);
	}

	.sng-nav-next {
		right: 8px;
		transform: translateY(-50%);
	}
}

@media (max-width: 600px) {
	.sng-grid {
		grid-template-columns: repeat(1, 1fr);
	}

	.sng-card {
		height: 320px;
	}
}
