/* ═══════════════════════════════════════════════════════════════
   RWA News Carousel - Elementor Widget Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Foundation: ensure containers fill available width ── */
.elementor-widget-rwa_news_carousel,
.elementor-widget-rwa_news_carousel .elementor-widget-container {
	width: 100% !important;
}

.rwa-nc {
	--rwa-nc-cols: 4;
	--rwa-nc-gap: 20px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.rwa-nc__viewport {
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

/* ── Static mode: CSS Grid (perfect for fixed layouts) ── */
.rwa-nc--static .rwa-nc__track {
	display: grid !important;
	grid-template-columns: repeat(var(--rwa-nc-cols), 1fr);
	gap: var(--rwa-nc-gap);
	width: 100%;
}
.rwa-nc--static .rwa-nc__card {
	min-width: 0;
	box-sizing: border-box;
}

/* ── Carousel mode: flex with explicit sizing ── */
.rwa-nc--carousel .rwa-nc__track {
	display: flex !important;
	flex-wrap: nowrap;
	gap: var(--rwa-nc-gap);
	width: 100%;
	transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.rwa-nc--carousel .rwa-nc__card {
	flex: 0 0 calc((100% - var(--rwa-nc-gap-total)) / var(--rwa-nc-cols));
	width: calc((100% - var(--rwa-nc-gap-total)) / var(--rwa-nc-cols));
	min-width: 0;
	box-sizing: border-box;
}

/* ── Card interactions ── */
.rwa-nc__card {
	transition: transform .3s ease;
}
.rwa-nc__card:hover {
	transform: translateY(-4px);
}
.rwa-nc__card:hover img {
	transform: scale(1.05) !important;
}
.rwa-nc__card:hover .rwa-nc__title {
	color: var(--rwa-primary, #ff6b35) !important;
}
.rwa-nc__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* ── Thumbnail ── */
.rwa-nc__thumb {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #1a1a2e;
	border-radius: 14px;
}
.rwa-nc__thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

/* ── Body ── */
.rwa-nc__body {
	padding: 14px 4px 0;
}

/* ── Thumbnail placeholder ── */
.rwa-nc__thumb-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1a2e;
}

/* ── Category ── */
.rwa-nc__category {
	display: block;
	margin-bottom: 4px;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 13px;
	color: rgba(255,255,255,.5);
	line-height: 1.3;
}

/* ── Date ── */
.rwa-nc__date {
	display: block;
	margin-bottom: 6px;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 12px;
	color: rgba(255,255,255,.4);
	line-height: 1.3;
}

/* ── Title ── */
.rwa-nc__title {
	margin: 0;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	color: #fff;
	transition: color .3s;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Header ── */
.rwa-nc__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 10px;
}
.rwa-nc__header h2 {
	margin: 0;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}
.rwa-nc__header a {
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 14px;
	color: rgba(255,255,255,.6);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color .3s;
}
.rwa-nc__header a:hover {
	color: #fff;
}

/* ── Arrows ── */
.rwa-nc__arrow {
	position: absolute;
	top: 40%;
	z-index: 10;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.6);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	padding: 0;
	outline: none;
	transform: translateY(-50%);
	transition: all .3s ease;
}
.rwa-nc__arrow:hover {
	background: var(--rwa-primary, #ff6b35);
	border-color: var(--rwa-primary, #ff6b35);
	transform: translateY(-50%) scale(1.1);
}
.rwa-nc__arrow--prev {
	left: -10px;
}
.rwa-nc__arrow--next {
	right: -10px;
}
.rwa-nc__arrow:disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

/* ── Progress Bar ── */
.rwa-nc__progress {
	position: relative;
	width: 100%;
	height: 3px;
	background: rgba(255,255,255,.08);
	border-radius: 3px;
	margin-top: 24px;
	overflow: hidden;
}
.rwa-nc__progress-bar {
	height: 100%;
	border-radius: 3px;
	transition: width .5s ease;
	width: 0;
	background: linear-gradient(90deg, var(--rwa-primary, #ff6b35), var(--rwa-accent, #e94560));
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.rwa-nc {
		--rwa-nc-cols: 3 !important;
		--rwa-nc-gap-total: calc(var(--rwa-nc-gap) * 2) !important;
	}
}
@media (max-width: 768px) {
	.rwa-nc {
		--rwa-nc-cols: 2 !important;
		--rwa-nc-gap-total: var(--rwa-nc-gap) !important;
	}
	.rwa-nc__arrow {
		width: 36px !important;
		height: 36px !important;
	}
	.rwa-nc__title {
		font-size: 14px !important;
	}
}
@media (max-width: 480px) {
	.rwa-nc {
		--rwa-nc-cols: 1 !important;
		--rwa-nc-gap-total: 0px !important;
	}
}
