/* WPLB News Master - News Carousel Styles */

/* WPLB News Master - Carousel Loader */
.wplb-carousel-loader {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.9);
	z-index: 100;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wplb-carousel-loader.hidden {
	opacity: 0;
	visibility: hidden;
}

.wplb-carousel-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0066cc;
	border-radius: 50%;
	animation: wplb-spin 1s linear infinite;
}

@keyframes wplb-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.wplb-carousel-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 20px 0;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.wplb-carousel-wrapper.loaded {
	opacity: 1;
}

.wplb-carousel-container {
	overflow: hidden;
	width: 100%;
}

.wplb-carousel-track {
	display: flex;
	transition: transform 0.5s ease;
	will-change: transform;
}

.wplb-carousel-card {
	flex: 0 0 auto;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wplb-carousel-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.wplb-carousel-image {
	width: 100%;
	overflow: hidden;
	background-color: #f5f5f5;
	aspect-ratio: 16 / 9;
}

.wplb-carousel-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wplb-carousel-card:hover .wplb-carousel-image img {
	transform: scale(1.05);
}

.wplb-carousel-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.wplb-carousel-content {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-grow: 1;
}

.wplb-carousel-date {
	font-size: 13px;
	color: #999999;
	margin: 0;
}

.wplb-carousel-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.wplb-carousel-title a {
	color: #000000;
	text-decoration: none;
	transition: color 0.3s ease;
}

.wplb-carousel-title a:hover {
	color: #0066cc;
}

.wplb-carousel-excerpt {
	color: #666666;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.wplb-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wplb-carousel-arrow:hover {
	background-color: #0066cc;
	color: #ffffff;
	border-color: #0066cc;
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.wplb-carousel-arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.wplb-carousel-arrow svg {
	width: 20px;
	height: 20px;
	display: block;
}

.wplb-carousel-prev {
	left: 10px;
}

.wplb-carousel-next {
	right: 10px;
}

.wplb-carousel-arrow:focus {
	outline: 2px solid #0066cc;
	outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.wplb-carousel-arrow {
		width: 32px;
		height: 32px;
	}

	.wplb-carousel-arrow svg {
		width: 16px;
		height: 16px;
	}

	.wplb-carousel-prev {
		left: 5px;
	}

	.wplb-carousel-next {
		right: 5px;
	}

	.wplb-carousel-title {
		font-size: 14px;
	}

	.wplb-carousel-date {
		font-size: 12px;
	}

	.wplb-carousel-excerpt {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.wplb-carousel-content {
		padding: 12px;
	}

	.wplb-carousel-title {
		font-size: 13px;
	}

	.wplb-carousel-excerpt {
		font-size: 12px;
	}
}
