/* ==========================================================================
   Digi Pro Articles Carousel Widget
   ========================================================================== */

.digi-articles-carousel-wrapper {
	position: relative;
	width: 100%;
}

.digi-article-card {
	position: relative;
	width: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	/* Defaults, overridden by Elementor controls */
	border-radius: 16px;
	height: 320px; 
}

.digi-article-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.digi-article-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
}

.digi-article-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Default, overridden by Elementor controls */
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
	z-index: 1;
}

.digi-article-content {
	position: relative;
	z-index: 3;
	padding: 25px;
	pointer-events: none; /* Let clicks pass through to the link */
}

.digi-article-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 12px;
	/* Defaults, overridden by Elementor controls */
	background-color: #C59D5F;
	color: #FFFFFF;
}

.digi-article-title {
	margin: 0 0 15px 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	/* Default, overridden by Elementor controls */
	color: #FFFFFF;
	
	/* Limit to 3 lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.digi-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	font-size: 13px;
	font-weight: 500;
	/* Default, overridden by Elementor controls */
	color: #E0E0E0;
}

.digi-article-meta span {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Custom Dots Styling */
.digi-articles-carousel-wrapper .owl-theme .owl-dots {
	margin-top: 20px !important;
}
.digi-articles-carousel-wrapper .owl-theme .owl-dots .owl-dot span {
	width: 8px;
	height: 8px;
	background: #D6D6D6;
	transition: all 0.3s ease;
}
.digi-articles-carousel-wrapper .owl-theme .owl-dots .owl-dot.active span,
.digi-articles-carousel-wrapper .owl-theme .owl-dots .owl-dot:hover span {
	background: #C59D5F; /* Active dot color matching Digi Pro branding */
	transform: scale(1.3);
}

/* ==========================================================================
   Responsive Adjustments (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 767px) {
	.digi-article-content {
		padding: 15px; /* Reduce padding for narrow cards */
	}
	.digi-article-badge {
		font-size: 10px;
		padding: 3px 8px;
		margin-bottom: 8px;
	}
	.digi-article-title {
		font-size: 15px; /* Smaller title to fit narrow space */
		margin-bottom: 10px;
	}
	.digi-article-meta {
		font-size: 11px;
		gap: 8px; /* Reduce gap between meta items */
	}
	.digi-article-meta span {
		gap: 3px;
	}
}
