/* ==========================================================================
   Rank Holders Carousel — kerdia-elements
   ========================================================================== */

.kerdia-rh-carousel {
	position: relative;
	/* Override Swiper's overflow:hidden so card box-shadows are not clipped */
	overflow: visible;
}

/* Ensure slides stretch to equal height for uniform cards */
.kerdia-rh-carousel .swiper-wrapper {
	align-items: stretch;
}

.kerdia-rh-carousel .swiper-slide {
	height: auto;
}

/* Card
   ========================================================================== */

.kerdia-rh-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	background: #ffffff;
	border-radius: 20px;
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.06),
		0 8px 32px rgba(0, 0, 0, 0.08);
	padding: 28px 20px 24px;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
	will-change: transform;
}

.kerdia-rh-card:hover {
	transform: translateY(-6px);
	box-shadow:
		0 4px 16px rgba(0, 0, 0, 0.08),
		0 16px 48px rgba(0, 0, 0, 0.12);
}

.swiper-slide-active .kerdia-rh-card {
	transform: translateY(-4px);
	box-shadow:
		0 6px 20px rgba(0, 0, 0, 0.1),
		0 20px 56px rgba(0, 0, 0, 0.12);
}

/* Photo area
   ========================================================================== */

.kerdia-rh-card__photo-area {
	position: relative;
	width: 65%;
	margin-bottom: 32px;
	/* Center within the card */
	display: flex;
	justify-content: center;
}

/* Image wrapper — intrinsic-ratio square */
.kerdia-rh-card__image-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 100%;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Shape variants */
.kerdia-rh-card--circle .kerdia-rh-card__image-wrap {
	border-radius: 50%;
	padding-bottom: 100% !important;
}

.kerdia-rh-card--rounded .kerdia-rh-card__image-wrap {
	border-radius: 16px;
}

.kerdia-rh-card--square .kerdia-rh-card__image-wrap {
	border-radius: 0;
}

/* The actual <img> */
.kerdia-rh-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* Rank badge — pill centered at the bottom edge of the photo area
   ========================================================================== */

.kerdia-rh-card__rank-badge {
	position: absolute;
	bottom: -14px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	background: #D4AF37; /* gold — overridden by Elementor control */
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
	z-index: 2;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide-active .kerdia-rh-card__rank-badge {
	transform: translateX(-50%) scale(1.08);
	box-shadow: 0 4px 16px rgba(212, 175, 55, 0.55);
}

/* Text body
   ========================================================================== */

.kerdia-rh-card__body {
	width: 100%;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.kerdia-rh-card__name {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	width: 100%;
}

/* Meta rows
   ========================================================================== */

.kerdia-rh-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.kerdia-rh-card__meta-row {
	margin: 0;
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
	font-size: 0.8125rem;
	line-height: 1.45;
}

/* Dividers between rows */
.kerdia-rh-card__meta--dividers .kerdia-rh-card__meta-row + .kerdia-rh-card__meta-row {
	border-top: 1px solid #f0f0f0;
	padding-top: 6px;
}

.kerdia-rh-card__meta-label {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.5;
	white-space: nowrap;
}

.kerdia-rh-card__meta-value {
	font-weight: 500;
	color: inherit;
}

/* Navigation arrows
   ========================================================================== */

.kerdia-rh-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
	outline: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	/* Defaults matching the Elementor control defaults so arrows are visible
	   even before the user saves the widget for the first time. */
	width: 40px;
	height: 40px;
	font-size: 18px;
	color: #ffffff;
	background-color: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
}

.kerdia-rh-btn:hover {
	transform: translateY(-50%) scale(1.08);
}

.kerdia-rh-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.kerdia-rh-prev {
	left: 8px;
}

.kerdia-rh-next {
	right: 8px;
}

/* Pagination
   ========================================================================== */

.kerdia-rh-carousel .swiper-pagination {
	position: relative;
	margin-top: 20px;
}

.kerdia-rh-carousel .swiper-pagination-bullet {
	opacity: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.kerdia-rh-carousel .swiper-pagination-bullet-active {
	transform: scale(1.4);
}
