/* ── GIMA Club Carousel ─────────────────────────────────────────────── */

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

/* Header */
.gima-carousel-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 4px;
}

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

.gima-carousel-count {
	font-size: 0.85rem;
	color: #888;
}

/* Viewport — padding lets rotated card corners breathe without clipping */
.gima-viewport {
	overflow: visible;
	width: 100%;
	padding: 12px 4px;
}

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

/* Individual slide */
.gima-slide {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

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

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

/* Alternating tilt — nth-child cycles across all slides */
.gima-slide:nth-child(3n+1) .gima-card { transform: rotate(-2deg); }
.gima-slide:nth-child(3n+2) .gima-card { transform: rotate(1.5deg); }
.gima-slide:nth-child(3n+3) .gima-card { transform: rotate(-1deg); }

/* Image */
.gima-img-wrap {
	position: relative;
	height: 180px;
	overflow: hidden;
	background: #f4f4f4;
	flex-shrink: 0;
}

.gima-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gima-img-ph {
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	color: #ccc;
}

/* Free trial badge */
.gima-free-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #cc0033;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	letter-spacing: 0.02em;
}

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

.gima-school-name {
	font-size: 14px;
	font-weight: 600;
	color: #222;
	margin-bottom: 10px;
	line-height: 1.35;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Our Details list */
.gima-detail-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.gima-detail-list li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	color: #444;
	padding: 5px 0;
	border-bottom: 1px solid #f0f0f0;
	line-height: 1.45;
}

.gima-detail-list li:last-child {
	border-bottom: none;
}

.gima-detail-icon-img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
	margin-top: 1px;
}

/* Fallback — keeps layout intact if an image fails to load */
.gima-detail-icon-img[src=""] {
	display: none;
}

.gima-detail-val {
	flex: 1;
	color: #333;
}

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

.gima-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;
}

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

/* ── Navigation row: dots left · arrow right · counter far right ── */
.gima-nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.85rem;
	gap: 8px;
}

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

.gima-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;
}

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

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

/* Dots */
.gima-dots {
	display: flex;
	gap: 6px;
	justify-content: flex-start;
	flex: 1;
	flex-wrap: wrap;
}

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

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

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

/* States (loading / error / empty) */
.gima-state {
	padding: 2.5rem 1rem;
	text-align: center;
	color: #888;
	font-size: 14px;
}

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

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

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

/* Logo variant — contained so it isn't cropped */
/* Logo — show full logo without crop, mirroring .elementor img overrides */
.gima-img-wrap--logo {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gima-card-img--logo {
	border: none;
	border-radius: 0;
	box-shadow: none;
	height: inherit;
	max-width: 100%;
	width: auto;
	object-fit: contain;
	padding: 1rem;
	background: #fff;
}

/* Paid trial badge — distinct colour from free */
.gima-free-badge--paid {
	background-color: #7a2d82;
}

.gima-free-badge--free {
	background-color: #cc0033;
}
