/* ==========================================================================
   Team Carousel — kerdia-elements
   ========================================================================== */

.kerdia-team-carousel {
	position: relative;
}

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

.kerdia-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Image wrapper
   ========================================================================== */

.kerdia-team-card__image-wrap {
	position: relative;
	width: 100%;
	/* padding-bottom creates the aspect ratio; Elementor control overrides this value */
	padding-bottom: 100%;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Square */
.kerdia-team-card--square .kerdia-team-card__image-wrap {
	border-radius: 0;
}

/* Circle — always locked to 1:1 */
.kerdia-team-card--circle .kerdia-team-card__image-wrap {
	border-radius: 50%;
	padding-bottom: 100% !important;
}

/* Rounded */
.kerdia-team-card--rounded .kerdia-team-card__image-wrap {
	border-radius: 12px;
}

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

/* Make linked images inherit cursor properly */
.kerdia-team-card__image-wrap a {
	position: absolute;
	inset: 0;
	display: block;
}

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

.kerdia-team-card__body {
	width: 100%;
}

.kerdia-team-card__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.kerdia-team-card__name a {
	color: inherit;
	text-decoration: none;
}

.kerdia-team-card__name a:hover {
	text-decoration: underline;
}

.kerdia-team-card__role {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	margin-bottom: 5px !important;
}

.kerdia-team-card__description {
	margin: 8px 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
}

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

.kerdia-tc-btn {
	position: absolute;
	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;
}

/* Default: centered on the full card height */
.kerdia-team-carousel:not([data-arrow-position="image"]) .kerdia-tc-btn {
	top: 50%;
	transform: translateY(-50%);
}

/* Aligned to image height */
.kerdia-team-carousel[data-arrow-position="image"] .kerdia-tc-btn {
	top: 0;
	height: var(--kerdia-tc-image-h, 50%);
	transform: none;
	align-items: center;
}

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

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

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

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

.kerdia-team-carousel .swiper-pagination {
	position: relative;
	margin-top: 16px;
}

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

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