/* =========================================================
   YCM Trending Carousel widget — structural layout only.
   Colors/typography/spacing driven by Elementor Style controls.
   ========================================================= */

.ycm-trending {
	background-color: #1b2a4a;
	padding: 80px 0 90px;
	overflow: hidden;
}

.ycm-trending__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* --- Header --- */
.ycm-trending__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.ycm-trending__badge {
	display: inline-block;
	background-color: #fce9b5;
	color: #3a2e0a;
	font-size: 15px;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.ycm-trending__heading {
	font-size: 52px;
	line-height: 1.05;
	font-weight: 800;
	color: #fff;
	margin: 0;
}

.ycm-trending__nav {
	display: flex;
	gap: 12px;
	flex: 0 0 auto;
}

.ycm-trending__arrow {
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.ycm-trending__arrow:hover {
	filter: brightness( 0.96 );
}

.ycm-trending__arrow:active {
	transform: scale( 0.94 );
}

.ycm-trending__arrow--prev {
	background-color: #fff;
	color: #1b2a4a;
}

.ycm-trending__arrow--next {
	background-color: #0f67fe;
	color: #fff;
}

.ycm-trending__arrow[disabled] {
	opacity: 0.45;
	cursor: default;
}

/* --- Track (horizontal scroll) --- */
.ycm-trending__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.ycm-trending__track::-webkit-scrollbar {
	display: none;
}

/* --- Card (thumb left, title right) --- */
.ycm-trending__card {
	flex: 0 0 490px;
	max-width: 88%;
	display: flex;
	align-items: center;
	gap: 22px;
	background-color: #eff3ff;
	border-radius: 16px;
	padding: 24px;
	scroll-snap-align: start;
	text-decoration: none;
	box-sizing: border-box;
}

.ycm-trending__thumb {
	flex: 0 0 156px;
}

.ycm-trending__thumb img {
	display: block;
	width: 100%;
	height: 156px;
	object-fit: cover;
	border-radius: 10px;
}

.ycm-trending__card-title {
	font-size: 22px;
	line-height: 1.3;
	font-weight: 600;
	color: #111;
	margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.ycm-trending__heading {
		font-size: 40px;
	}
}

@media (max-width: 767px) {
	.ycm-trending {
		padding: 48px 0 56px;
	}
	.ycm-trending__head {
		flex-wrap: wrap;
	}
	.ycm-trending__heading {
		font-size: 30px;
	}
	.ycm-trending__card {
		flex-basis: 82%;
		padding: 16px;
		gap: 16px;
	}
	.ycm-trending__thumb {
		flex-basis: 116px;
	}
	.ycm-trending__thumb img {
		height: 116px;
	}
	.ycm-trending__card-title {
		font-size: 18px;
	}
}

/* ---- Typography: title + content use Roboto ---- */
.ycm-trending__badge,
.ycm-trending__heading,
.ycm-trending__card-title {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
