/* ═══════════════════════════════════════════════
   Redmind Logo Carousel — Premium Frontend Styles
   ═══════════════════════════════════════════════ */

/* ── Container ── */
.redmind-logo-carousel {
	position: relative;
	width: 100%;
	padding: 10px 48px;
	box-sizing: border-box;
}

/* ══════════════════════════════════════════
   SLIDE MODE
   ══════════════════════════════════════════ */
.redmind-logo-carousel .swiper-wrapper {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	flex-wrap: nowrap;
	width: 100%;
	gap: 20px;
	overflow: visible;
}

.redmind-logo-carousel .swiper-slide {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	height: auto;
}

.redmind-logo-carousel .rlc-swiper.swiper-initialized {
	overflow: hidden;
}

.redmind-logo-carousel .swiper-slide .rlc-logo-item {
	width: 100%;
}

/* ══════════════════════════════════════════
   LOGO ITEM — Premium Card Design
   ══════════════════════════════════════════ */
.rlc-logo-item {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 28px 32px;
	box-sizing: border-box;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
		box-shadow 0.35s ease,
		border-color 0.35s ease,
		opacity 0.35s ease;
	position: relative;
	overflow: hidden;
}

/* Shimmer overlay on hover */
.rlc-logo-item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 255, 255, 0.55) 50%,
		transparent 70%
	);
	transform: translateX(-100%);
	transition: transform 0.55s ease;
	pointer-events: none;
	border-radius: inherit;
}

.rlc-logo-item:hover::before {
	transform: translateX(100%);
}

/* Hover lift */
.rlc-logo-item:hover {
	transform: translateY(-4px) scale(1.04);
	box-shadow:
		0 8px 30px rgba(0, 0, 0, 0.13),
		0 2px 8px rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 0, 0, 0.12);
	opacity: 1 !important;
}

/* Accent bottom border line on hover */
.rlc-logo-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 10%;
	width: 80%;
	height: 2px;
	background: linear-gradient(90deg, #da242b, #ff6b6b);
	border-radius: 2px;
	transform: scaleX(0);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rlc-logo-item:hover::after {
	transform: scaleX(1);
}

.rlc-logo-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	width: 100%;
}

.rlc-logo-item img {
	max-width: 100%;
	max-height: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	transition: filter 0.4s ease;
	position: relative;
	z-index: 1;
}

/* Logo name text fallback */
.rlc-logo-name {
	font-size: 14px;
	font-weight: 700;
	color: #666;
	text-align: center;
	display: flex;
	align-items: center;
	min-height: 50px;
	letter-spacing: 0.03em;
}

/* ── Grayscale Mode ── */
.rlc-grayscale .rlc-logo-item img {
	filter: grayscale(100%) opacity(0.65);
}

.rlc-grayscale .rlc-logo-item:hover img {
	filter: grayscale(0%) opacity(1);
}

/* ── Arrow Navigation — Premium style ── */
.rlc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #ffffff;
	color: #333;
	border: 1px solid rgba(0,0,0,0.10);
	border-radius: 50%;
	cursor: pointer;
	box-shadow:
		0 2px 8px rgba(0,0,0,0.10),
		0 1px 3px rgba(0,0,0,0.06);
	transition: all 0.3s ease;
	padding: 0;
}

.rlc-arrow svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.rlc-arrow-prev { left: 0; }
.rlc-arrow-next { right: 0; }

.rlc-arrow-prev:hover svg { transform: translateX(-2px); }
.rlc-arrow-next:hover svg { transform: translateX(2px); }

.rlc-arrow:hover {
	background: #da242b;
	color: #fff;
	border-color: #da242b;
	box-shadow: 0 6px 20px rgba(218, 36, 43, 0.35);
	transform: translateY(-50%) scale(1.1);
}

/* ── Dot Navigation ── */
.rlc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.rlc-dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ddd;
	opacity: 1;
	transition: all 0.3s ease;
	cursor: pointer;
}

.rlc-dots .swiper-pagination-bullet-active {
	width: 24px;
	border-radius: 4px;
	background: #da242b;
}

/* ══════════════════════════════════════════
   CONTINUOUS TICKER MODE — Premium
   ══════════════════════════════════════════ */
.rlc-ticker-mode {
	padding: 10px 0;
}

/* Edge fade masks — premium effect */
.rlc-ticker-mode::before,
.rlc-ticker-mode::after {
	content: '';
	position: absolute;
	top: 0;
	width: 120px;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.rlc-ticker-mode::before {
	left: 0;
	background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.rlc-ticker-mode::after {
	right: 0;
	background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.rlc-ticker-track {
	overflow: hidden;
	width: 100%;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.rlc-ticker-track:active {
	cursor: grabbing;
}

.rlc-ticker-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: max-content;
	animation: rlcTicker var(--rlc-ticker-duration, 20s) linear infinite;
	animation-direction: var(--rlc-ticker-direction, normal);
}

/* Each ticker logo item */
.rlc-ticker-inner .rlc-logo-item {
	flex: 0 0 auto !important;
	width: auto !important;
	padding: 24px 40px !important;
	margin: 0 8px;
	/* Card style in ticker */
	background: #fff;
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,0.07);
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rlc-ticker-inner .rlc-logo-item img {
	height: 90px !important;
	width: auto !important;
	max-width: none !important;
	object-fit: contain;
}

/* No ::after accent line in ticker */
.rlc-ticker-inner .rlc-logo-item::after {
	display: none;
}

.rlc-ticker-track:hover .rlc-ticker-inner {
	animation-play-state: paused;
}

@keyframes rlcTicker {
	0%   { transform: translateX(0); }
	100% { transform: translateX(var(--rlc-ticker-translate, -50%)); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.redmind-logo-carousel .swiper-slide {
		flex: 0 0 calc(33.33% - 14px);
	}
}

@media (max-width: 767px) {
	.redmind-logo-carousel {
		padding: 10px 40px;
	}
	.redmind-logo-carousel .swiper-slide {
		flex: 0 0 calc(50% - 10px);
	}
	.rlc-ticker-mode::before,
	.rlc-ticker-mode::after {
		width: 60px;
	}
}
