/**
 * VIVA News Slider styles.
 * Includes minimal Swiper base so it doesn't rely on Elementor's Swiper CSS.
 */

/* --- Swiper base (minimal) --- */
.viva-news .swiper { position: relative; overflow: hidden; }
.viva-news .swiper-wrapper { display: flex; box-sizing: content-box; }
.viva-news .swiper-slide { flex-shrink: 0; height: auto; }

.viva-news {
	--viva-news-accent: #f5b21c;
	font-family: 'Poppins', sans-serif;
	position: relative;
}

/* --- Top bar (View All) --- */
.viva-news-top { margin-bottom: 26px; text-align: right; }
.viva-news-viewall {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	background: #0d1116;
	color: #fff;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}
.viva-news-viewall:hover { background: var(--viva-news-accent); color: #0d1116; transform: translateY(-2px); }
.viva-news-viewall svg { width: 18px; height: 18px; }

/* --- Card --- */
.viva-news-card {
	position: relative;
	display: block;
	height: var(--viva-news-h, 420px);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 14px 34px rgba(7, 31, 59, 0.14);
}
.viva-news-bg {
	position: absolute;
	inset: 0;
	background-color: #1a2430;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
}
.viva-news-card:hover .viva-news-bg { transform: scale(1.06); }
.viva-news-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(9, 14, 20, 0) 30%, rgba(9, 14, 20, 0.9) 100%);
}

/* --- Card content --- */
.viva-news-content {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	padding: 26px 26px 28px;
}
.viva-news-cat {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 12px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #0d1116;
	background: var(--viva-news-accent);
	border-radius: 999px;
}
.viva-news-title {
	margin: 0 0 16px;
	color: #fff;
	font-family: 'Poppins', sans-serif !important;
	font-size: 1.24rem;
	font-weight: 800;
	line-height: 1.22;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.viva-news-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.viva-news-more svg {
	width: 18px;
	height: 18px;
	color: var(--viva-news-accent);
	transition: transform 0.25s ease;
}
.viva-news-card:hover .viva-news-more svg { transform: translateX(5px); }

/* --- Navigation --- */
.viva-news-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-top: 26px;
}
.viva-news-arrow {
	width: 52px;
	height: 52px;
	box-sizing: border-box;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: #0d1116;
	color: #fff;
	cursor: pointer;
	line-height: 0;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.viva-news-arrow:hover { background: var(--viva-news-accent); color: #0d1116; }
.viva-news-arrow svg,
.viva-news-arrow svg path {
	fill: none !important;
	stroke: currentColor !important;
}
.viva-news-arrow svg { width: 22px; height: 22px; }
.viva-news-arrow.swiper-button-disabled { opacity: 0.4; cursor: default; }

.viva-news-fraction {
	order: -1;            /* move the counter to the left so the arrows sit side by side */
	margin-right: auto;
	min-width: 42px;
	text-align: left;
	color: #0d1116;
	font-weight: 700;
	letter-spacing: 1px;
}
.viva-news-fraction .swiper-pagination-current { color: var(--viva-news-accent); }

/* --- Responsive --- */
@media (max-width: 600px) {
	.viva-news-nav { justify-content: center; }
	.viva-news-title { font-size: 1.1rem; }
}
