/* ==========================================================
   Avalon Team Carousel – Widget Styles
   Matches the Kita Avalon "Unser Team" section exactly
   ========================================================== */

/* ---- Outer section: No background (controlled by Elementor section) ---- */
.avalon-team-section {
	padding: 20px 0 40px;
}

/* Section heading */
.avalon-team-section .avalon-team-heading {
	text-align: center;
	margin-bottom: 50px;
}
.avalon-team-section .avalon-team-heading h2 {
	font-family: 'Baloo', 'Poppins', sans-serif;
	font-size: 42px;
	text-transform: uppercase;
	color: #333;
	margin: 0 0 10px;
}
.avalon-team-section .avalon-team-heading .avalon-hr {
	width: 60px;
	height: 4px;
	background: #5c2d91;
	border-radius: 2px;
	margin: 0 auto;
}

/* ---- Swiper wrapper ---- */
.avalon-team-swiper-wrapper {
	position: relative;
	padding: 0 55px;
	box-sizing: border-box;
}

.avalon-team-swiper {
	overflow: hidden;
	position: relative;
}

/* ---- Single team card ---- */
.avalon-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: default;
}

/* ---- Circular photo area ----
   The container itself is the circle with border + overflow hidden.
   This guarantees the image is clipped into a perfect circle
   regardless of the image's original dimensions.
   ---------------------------------------------------------------- */
.avalon-team-pic {
	position: relative;
	width: 200px;
	height: 200px;
	flex-shrink: 0;
	border-radius: 50%;                    /* makes the container a circle  */
	border: 8px solid #5c2d91;            /* purple border                  */
	overflow: hidden;                      /* clips images to the circle     */
	margin: 0 auto -20px;                  /* overlaps the name box below    */
	z-index: 2;
	background: #e9e0f5;                   /* placeholder bg while loading   */
}

/* Both images fill the container completely */
.avalon-team-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	transition: opacity 0.45s ease-in-out;
	border-radius: 0; /* radius is on the container, not the img */
}

/* Main image – always visible */
.avalon-team-pic .avalon-img-main {
	opacity: 1;
	z-index: 2;
}

/* Hover image – hidden until hover */
.avalon-team-pic .avalon-img-hover {
	opacity: 0;
	z-index: 3;
}

/* On hover: main fades out, hover image fades in */
.avalon-team-card:hover .avalon-img-main {
	opacity: 0;
}
.avalon-team-card:hover .avalon-img-hover {
	opacity: 1;
}

/* ---- Name / Role box (purple box) ---- */
.avalon-team-info {
	background-color: #5c2d91;
	color: #fff;
	border-radius: 40px 10px;
	padding: 32px 20px 18px;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	z-index: 1;
	position: relative;
	transition: background-color 0.2s ease-out;
}

.avalon-team-info h4 {
	color: #fff;
	font-family: 'Baloo', 'Poppins', sans-serif;
	font-size: 22px;
	margin: 0 0 6px;
	line-height: 1.25;
}

.avalon-team-info .avalon-team-role {
	display: block;
	font-size: 11px;
	color: #fff;
	letter-spacing: 1px;
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ---- Description box (white box below) ---- */
.avalon-team-description {
	background: #fff;
	border-radius: 20px;
	padding: 20px;
	text-align: center;
	font-size: 14px;
	color: #444;
	line-height: 1.65;
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
}

/* ---- Navigation Arrows ---- */
.avalon-team-btn-prev,
.avalon-team-btn-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: #5c2d91;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(92,45,145,0.35);
}

.avalon-team-btn-prev:hover,
.avalon-team-btn-next:hover {
	background-color: #8a44d4;
	transform: translateY(-50%) scale(1.1);
}

.avalon-team-btn-prev {
	left: 0;
}

.avalon-team-btn-next {
	right: 0;
}

.avalon-team-btn-prev svg,
.avalon-team-btn-next svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---- Swiper Pagination Dots ---- */
.avalon-team-pagination {
	text-align: center;
	margin-top: 28px;
}

.avalon-team-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #c9a8e8;
	opacity: 1;
	margin: 0 4px;
	border-radius: 50%;
	display: inline-block;
	transition: background 0.3s;
}

.avalon-team-pagination .swiper-pagination-bullet-active {
	background: #5c2d91;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
	.avalon-team-swiper-wrapper {
		padding: 0 46px;
	}
}

@media (max-width: 600px) {
	.avalon-team-pic {
		width: 160px;
		height: 160px;
	}
	.avalon-team-info h4 {
		font-size: 18px;
	}
}
