/* YTC Team Members — base structural styles only.
   Visual styling (exact colors/fonts) to be applied per Figma design system.
   Diagonal photo-background treatment is intentionally NOT included here —
   handled separately in the page builder, per confirmed scope. */

.ytc-team-members-block { position: relative; z-index: 99;}

/* Nav arrows — same refined style as YTC Suggested Events, reused directly */
.ytc-team-members-nav {
	position: absolute;
	top: -90px;
	right: 0;
	display: flex;
	gap: 8px;
}
.ytc-team-members-prev,
.ytc-team-members-next {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #61BB46;
	font-size: 24px;
	line-height: 24px;
	border: solid 1px #61BB46;
}
.ytc-team-members-prev:hover,
.ytc-team-members-next:hover {
	background: #61BB46;
	color: #fff;
}

/* Card */
.ytc-team-card {
	background: #fff;
	border-radius: 16px;
	overflow: visible; /* the sector badge and chat icon intentionally float past the card edge */
	height: auto;
	padding: 32px 32px;
}

.ytc-team-card__photo {
	position: relative;
	border-radius: 24px;
	box-sizing: border-box;
}
.ytc-team-card__photo img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 0 !important;
	aspect-ratio: 1 / 1;
	border-radius: 24px;
	background: linear-gradient(0deg, #99D18C 0%, #99D18C 100%), #F7F9FB;
}

.ytc-team-card__sector {
	position: absolute;
	top: -46px;
	right: 0;
	background: #6fbf73;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 16px;
	border-radius: 999px;
	z-index: 2;
	line-height: 20px;
}

.ytc-team-card__linkedin {
	position: absolute;
	left: 24px;
	bottom: 24px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	z-index: 2;
}
.ytc-team-card__name { 
	margin: 10px 0 4px !important;
	font-size: 18px !important;
	line-height: 28px !important;
}
.ytc-team-card__subtitle { margin: 0; padding-bottom: 5px !important; font-size: 14px; color: #555; }
.ytc-team-card:has(.ytc-team-card__actions) .ytc-team-card__body{
	margin-bottom: 40px;
}
/* Label badges (label_one / label_two / label_three) — mirrors the
   Leadership Member Grid badges. */
.ytc-team-card .ytc-team-card__badges {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.ytc-team-card .ytc-team-card__badge {
	max-width: calc(100% + 24px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0 !important;
	padding: 4px 16px !important;
	border-radius: 99px;
	font-family: "Montserrat", sans-serif !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	list-style: none;
}

.ytc-team-card .ytc-team-card__badge::before,
.ytc-team-card .ytc-team-card__badge::marker {
	content: none;
}

.ytc-team-card__badge--one {
	background: #358526;
	color: #e8f1f1;
}

.ytc-team-card__badge--two {
	background: #c9e3c1;
	color: #18304d;
}

.ytc-team-card__badge--three {
	background: #d7f0f2;
	color: #18304d;
}

/* Phone + email buttons, bottom-right. The wrapper carries the notch that
   bites into the card, so the bite widens when both buttons are present. */
.ytc-team-card__actions {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	gap: 8px;
	height: 48px;
	z-index: 3;
}

/* Paints the section background over the card corner (the concave bite) */
.ytc-team-card__actions::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0px;
    width: calc(100% + 12px);
    height: 60px;
    background: #f7f9fb;
    border-top-left-radius: 20px;
    z-index: -1;
}

/* Concave fillets above and to the left of the bite */
.ytc-team-card__actions::after,
.ytc-team-card__actions-corner {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-bottom-right-radius: 18px;
    box-shadow: 8px 8px 0 #f7f9fb;
}
.ytc-team-card__actions::after {
  right: 0;
  bottom: 60px;
}
.ytc-team-card__actions-corner {
  right: calc(100% + 12px);
  bottom: 0;
}

/* Same green + hover as the Team Category Grid / Leadership Member Grid buttons */
.ytc-team-card__chat {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #358526;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.ytc-team-card__chat:hover {
	background: #4aa832;
}
.ytc-team-card__chat svg {
	display: block;
	width: 24px;
	height: 24px;
}
.ytc-team-card__phone img {
	display: block;
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
}

/* Pagination — elongated active pill, left-aligned (matches the retrofit
   applied to YTC Suggested Events for consistency) */
.ytc-team-members-swiper { padding-bottom: 36px; }
.ytc-team-members-swiper .swiper-pagination {
	text-align: left;
}
.ytc-team-members-swiper .swiper-pagination-bullet {
	transition: width 0.25s ease, border-radius 0.25s ease;
}
.ytc-team-members-swiper .swiper-pagination-bullet-active {
	width: 24px;
	border-radius: 16px;
	background: #61BB46;
}


/* Filter pills */
.ytc-team-members-block.is-loading {
	opacity: 0.6;
	pointer-events: none;
}
.ytc-team-members-block .ytc-filter-pills {
	display: flex;
	flex-wrap: nowrap;
	margin-bottom: 24px;
	border-radius: 99px;
	background: #E8F1F1;
	padding: 4px;
	gap: 0;
	overflow-x: auto;
	cursor: grab;
	scrollbar-width: none;    /* Firefox */
	-ms-overflow-style: none; /* old Edge/IE */
}
.ytc-filter-pills::-webkit-scrollbar {
	display: none;            /* Chrome/Safari/new Edge */
}
.ytc-filter-pills.is-dragging {
	cursor: grabbing;
	user-select: none;
}
.ytc-team-members-block .ytc-filter-pill {
	white-space: nowrap;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	color: #18304D;
	cursor: pointer;
	padding: 8px 16px;
	font-weight: 400;
	background: transparent;
}
.ytc-team-members-block .ytc-filter-pill.is-active {
	background: #fff;
	border-color: #fff;
	color: #18304D;
	font-weight: 700;
}
