/* WPLB News Master - News Horizontal Styles */

.wplb-news-horizontal-wrapper {
	width: 100%;
}

.wplb-news-horizontal-card {
	display: flex;
	align-items: stretch;
	gap: 20px;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

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

.wplb-news-horizontal-card:last-child {
	margin-bottom: 0;
}

.wplb-image-right {
	flex-direction: row;
}

.wplb-image-left {
	flex-direction: row-reverse;
}

.wplb-news-horizontal-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
}

.wplb-news-horizontal-date {
	font-size: 14px;
	color: #999999;
	font-weight: 400;
	margin: 0;
	margin-top: auto;
}

.wplb-news-horizontal-title {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}

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

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

.wplb-news-horizontal-excerpt {
	color: #666666;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 10px 0;
}

.wplb-news-horizontal-image {
	flex: 0 0 60%;
	max-width: 60%;
	overflow: hidden;
	border-radius: 8px;
}

.wplb-news-horizontal-image img {
	width: fit-content !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
	border-radius: 8px !important;
	min-height: 240px;
}

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

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

.wplb-news-no-posts {
	text-align: center;
	padding: 40px 20px;
	color: #999999;
	font-size: 16px;
}

/* Carousel Mode Styles */
.wplb-news-horizontal-carousel-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 20px 0;
	opacity: 0;
	transition: opacity 0.5s ease;
}

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

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

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

.wplb-horizontal-carousel-track .wplb-news-horizontal-card {
	flex: 0 0 auto;
	margin-bottom: 0;
}

.wplb-horizontal-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-horizontal-carousel-arrow:hover {
	background-color: #0066cc;
	color: #ffffff;
	border-color: #0066cc;
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
	.wplb-news-horizontal-card {
		flex-direction: column !important;
		gap: 15px;
		padding: 15px;
	}

	.wplb-news-horizontal-image {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.wplb-news-horizontal-title {
		font-size: 20px;
	}

	.wplb-news-horizontal-date {
		font-size: 13px;
	}

	.wplb-news-horizontal-excerpt {
		font-size: 14px;
	}

	.wplb-horizontal-carousel-arrow {
		width: 32px;
		height: 32px;
	}

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

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

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

@media (max-width: 480px) {
	.wplb-news-horizontal-card {
		padding: 12px;
		gap: 12px;
	}

	.wplb-news-horizontal-title {
		font-size: 18px;
	}

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

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