/* ── GIMA Testimonials Carousel ─────────────────────────────────────── */

.gimat-wrap {
	font-family: inherit;
	width: 100%;
	overflow: hidden;
}

.gimat-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	gap: 4px;
}

.gimat-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: inherit;
}

/* Viewport */
.gimat-viewport {
	overflow: visible;
	width: 100%;
	padding: 12px 4px;
}

.gimat-track {
	display: flex;
	align-items: stretch;
	transition: transform 0.38s cubic-bezier(.4,0,.2,1);
	will-change: transform;
}

.gimat-slide {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

/* Card */
.gimat-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	transform-origin: center center;
}

.gimat-card:hover {
	transform: rotate(0deg) scale(1.02) !important;
	box-shadow: 0 12px 32px rgba(0,0,0,0.15);
	position: relative;
	z-index: 10;
}

/* Alternating tilt */
.gimat-slide:nth-child(3n+1) .gimat-card { transform: rotate(-1.5deg); }
.gimat-slide:nth-child(3n+2) .gimat-card { transform: rotate(1deg); }
.gimat-slide:nth-child(3n+3) .gimat-card { transform: rotate(-0.75deg); }

/* Card body */
.gimat-card-body {
	padding: 1.25rem 1.25rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Quote mark */
.gimat-quote-mark {
	font-size: 3.5rem;
	line-height: 1;
	color: #cc0033;
	font-family: Georgia, serif;
	margin-bottom: -0.5rem;
	margin-left: -0.2rem;
}

/* Quote text */
.gimat-quote {
	font-size: 14px;
	color: #333;
	line-height: 1.6;
	margin-bottom: 1rem;
	flex: 1;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: 5;
	font-style: italic;
}

/* Attribution */
.gimat-attribution {
	margin-bottom: 0.85rem;
}

.gimat-name {
	font-size: 13px;
	font-weight: 600;
	color: #222;
}

.gimat-company {
	font-size: 12px;
	color: #888;
	margin-top: 2px;
}

/* School row */
.gimat-school-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 0.75rem;
	border-top: 1px solid #f0f0f0;
	margin-top: auto;
}

.gimat-logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 4px;
}

.gimat-school-name {
	font-size: 12px;
	font-weight: 600;
	color: #cc0033;
	text-decoration: none;
	line-height: 1.3;
}

.gimat-school-name:hover {
	text-decoration: underline;
}

/* Card footer */
.gimat-card-footer {
	padding: 0.65rem 1.25rem;
	border-top: 1px solid #f0f0f0;
	display: flex;
	justify-content: flex-end;
}

.gimat-view-btn {
	font-size: 12px;
	font-weight: 600;
	color: #cc0033;
	text-decoration: none;
	border: 1px solid #cc0033;
	border-radius: 6px;
	padding: 5px 14px;
	transition: background 0.15s, color 0.15s;
	display: inline-block;
}

.gimat-view-btn:hover {
	background: #cc0033;
	color: #fff;
	text-decoration: none;
}

/* Navigation */
.gimat-nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.85rem;
	gap: 8px;
	position: relative;
}

.gimat-nav-btns {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.gimat-nav-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #cccccc;
	background: #ffffff;
	color: #333333;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	line-height: 1;
	padding: 0;
}

.gimat-nav-btn:hover:not(:disabled) {
	background: #f5f5f5;
	border-color: #999;
}

.gimat-nav-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.gimat-nav-btn img { display: block; }

.gimat-nav-btn:has(img) {
	border: none;
	background: transparent;
	width: auto;
	height: auto;
	border-radius: 0;
	padding: 0;
}

.gimat-nav-btn:has(img):hover:not(:disabled) {
	background: transparent;
	opacity: 0.75;
}

/* Dots */
.gimat-dots {
	display: flex;
	gap: 6px;
	justify-content: center;
	flex-wrap: wrap;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.gimat-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #cccccc;
	cursor: pointer;
	transition: background 0.2s;
	flex-shrink: 0;
}

.gimat-dot-active {
	background: #333333;
}

.gimat-counter {
	font-size: 12px;
	color: #888888;
	white-space: nowrap;
	flex-shrink: 0;
}

/* States */
.gimat-state {
	padding: 2.5rem 1rem;
	text-align: center;
	color: #888;
	font-size: 14px;
}

.gimat-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-top-color: #555;
	border-radius: 50%;
	animation: gimat-spin 0.7s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}

@keyframes gimat-spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 519px)  { .gimat-title { font-size: 1rem; } }
