/**
 * MindX Reference - Frontend Styles
 *
 * Carousel with dark testimonial cards and purple sport icons.
 */

/* ===========================
   CSS Custom Properties
   =========================== */
:root {
	--mxr-card-bg: #1e1e22;
	--mxr-card-radius: 18px;
	--mxr-icon-bg: #7732FF;
	--mxr-icon-size: 58px;
	--mxr-text-white: #ffffff;
	--mxr-text-light: rgba(255, 255, 255, 0.75);
	--mxr-arrow-color: #ffffff;
	--mxr-slide-speed: 0.5s;
}

/* ===========================
   Section Container
   =========================== */
.mxr-references {
	max-width: 1060px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ===========================
   Carousel
   =========================== */
.mxr-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Viewport (overflow hidden) */
.mxr-carousel__viewport {
	flex: 1;
	overflow: hidden;
	border-radius: var(--mxr-card-radius);
}

/* Track (moves via JS transform) */
.mxr-carousel__track {
	display: flex;
	will-change: transform;
}

/* Each slide: 50% width on desktop = 2 per view */
.mxr-carousel__slide {
	flex: 0 0 50%;
	max-width: 50%;
	padding: 0 8px;
	box-sizing: border-box;
}

/* ===========================
   Arrows
   =========================== */
.mxr-carousel__arrow {
	flex-shrink: 0;
	width: 28px;
	height: 56px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--mxr-arrow-color);
	padding: 0;
	opacity: 0.6;
	transition: opacity 0.3s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.mxr-carousel__arrow:hover,
.mxr-carousel__arrow:focus {
	opacity: 1;
}

.mxr-carousel__arrow svg {
	width: 100%;
	height: 100%;
}

/* ===========================
   Card
   =========================== */
.mxr-card {
	background: var(--mxr-card-bg);
	border-radius: var(--mxr-card-radius);
	padding: 26px 24px;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* Header: icon + name/title */
.mxr-card__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

/* Icon circle */
.mxr-card__icon {
	width: var(--mxr-icon-size);
	height: var(--mxr-icon-size);
	min-width: var(--mxr-icon-size);
	border-radius: 50%;
	background: var(--mxr-icon-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	overflow: hidden;
}

.mxr-card__icon svg {
	width: 58%;
	height: 58%;
}

.mxr-card__icon img {
	width: 60%;
	height: 60%;
	object-fit: contain;
}

/* Name + Title */
.mxr-card__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mxr-card__name {
	font-size: 15px;
	font-weight: 400;
	color: var(--mxr-text-light);
	line-height: 1.3;
}

.mxr-card__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--mxr-text-white);
	line-height: 1.3;
}

/* Quote */
.mxr-card__quote {
	font-size: 15px;
	font-weight: 400;
	color: var(--mxr-text-white);
	line-height: 1.65;
	text-align: justify;
	margin: 0;
	padding: 0;
	border: none;
	font-style: normal;
	flex: 1;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
	.mxr-references {
		padding: 30px 16px;
	}

	.mxr-card {
		padding: 22px 20px;
	}

	.mxr-card__quote {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	/* Switch to 1 card per view */
	.mxr-carousel__slide {
		flex: 0 0 100%;
		max-width: 100%;
		padding: 0 6px;
	}

	.mxr-carousel {
		gap: 8px;
	}

	.mxr-carousel__arrow {
		width: 22px;
		height: 44px;
	}

	:root {
		--mxr-icon-size: 50px;
	}

	.mxr-card__name {
		font-size: 14px;
	}

	.mxr-card__title {
		font-size: 14px;
	}

	.mxr-card__quote {
		font-size: 14px;
		line-height: 1.6;
	}
}

@media (max-width: 480px) {
	.mxr-references {
		padding: 20px 10px;
	}

	.mxr-card {
		padding: 18px 16px;
		border-radius: 14px;
	}

	:root {
		--mxr-icon-size: 44px;
	}

	.mxr-card__header {
		gap: 10px;
		margin-bottom: 14px;
	}

	.mxr-card__name {
		font-size: 13px;
	}

	.mxr-card__title {
		font-size: 13px;
	}

	.mxr-card__quote {
		font-size: 13px;
	}
}
