.sc-4838-container {
	position: relative;
	width: 100%;
	height: 100%;
	padding-bottom: 40px; /* space for pagination */
}

/* Ensure arrows are positioned absolutely within the container and don't affect flex layout */
.sc-4838-container .swiper-button-next,
.sc-4838-container .swiper-button-prev {
	position: absolute;
	z-index: 10;
	color: #611F66;
	background: rgba(255,255,255,0.8);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	/* Default top positioning, can be overridden by Elementor controls */
	top: 50%;
	transform: translateY(-50%);
	margin-top: 0;
}

.sc-4838-item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-4838-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.sc-4838-image-wrap {
	display: block;
	width: 100%;
	/* Default height if not overridden by Elementor controls */
	height: 250px; 
	overflow: hidden;
	flex-shrink: 0; /* Prevent the image wrap from shrinking */
}

/* Allow auto height if the toggle is set */
.sc-4838-auto-height .sc-4838-image-wrap {
	height: auto !important;
}

.sc-4838-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	display: block;
}

.sc-4838-item:hover .sc-4838-image {
	transform: scale(1.05);
}

.sc-4838-content {
	padding-right: 25px;
	padding-bottom: 25px;
	padding-left: 25px;
	/* padding-top is managed by elementor control */
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.sc-4838-title {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 22px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	display: block;
}

a.sc-4838-title:hover {
	color: #D3B352; /* Using the accent color from global settings */
}

.sc-4838-description {
	margin: 0;
	color: #666;
	line-height: 1.6;
	flex-grow: 1;
}

/* Swiper Controls Customization */
.sc-4838-container .swiper-pagination-bullet {
	background: #611F66; /* Primary color */
	opacity: 0.5;
}
.sc-4838-container .swiper-pagination-bullet-active {
	background: #611F66;
	opacity: 1;
}
