/**
 * Team Slider styles - matches Figma design specs.
 *
 * @package NexioEducation
 */

/* Wrapper */
.team-slider-wrapper {
	background: #010d18;
	padding: 120px 142px;
	margin-top: 120px;
}

/* College Counseling page - no top margin */
.page-template-page-college-counseling .team-slider-wrapper {
	margin-top: 0;
}

.team-slider-wrapper > .team-slider-header,
.team-slider-wrapper > .team-slider-divider {
	max-width: 1156px;
	margin-left: auto;
	margin-right: auto;
}

.team-slider-wrapper > .team-slider-header {
	margin-bottom: 32px;
}

.team-slider-wrapper > .team-slider-divider {
	margin-bottom: 32px;
}

.team-slider-wrapper > .team-slider {
	max-width: 1156px;
	margin-left: auto;
	margin-right: auto;
	overflow-x: clip;
	overflow-y: visible;
	padding-bottom: 80px;
}

/* Header */
.team-slider-header {
	display: flex;
	align-items: flex-start;
	gap: 48px;
}

.team-slider-header-left {
	display: flex;
	flex-direction: column;
	gap: 22px;
	flex-shrink: 0;
	max-width: 264px;
}

.team-slider-title {
	font-family: var(--wp--preset--font-family--body, 'Manrope', sans-serif);
	font-size: 48px;
	font-weight: 800;
	line-height: 58px;
	color: #fffefa;
	margin: 0;
}

.team-slider-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 32px;
	border: 1px solid rgba(255, 254, 250, 0.25);
	border-radius: 30px;
	font-family: var(--wp--preset--font-family--body, 'Manrope', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	color: #fffefa;
	background: transparent;
	text-decoration: none;
	transition: all 0.3s ease;
	width: fit-content;
}

.team-slider-cta:hover {
	background: rgba(255, 254, 250, 0.1);
	color: #fffefa;
}

/* Vertical divider between title and description */
.team-slider-header::before {
	content: '';
	width: 1px;
	align-self: stretch;
	background: linear-gradient(180deg, rgba(255, 254, 250, 0.05) 0%, rgba(255, 254, 250, 0.5) 50%, rgba(255, 254, 250, 0.05) 100%);
	flex-shrink: 0;
	order: 1;
}

.team-slider-header-left {
	order: 0;
}

.team-slider-description {
	order: 2;
	flex: 1;
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 32px;
	font-weight: 300;
	line-height: 38px;
	color: #fffefa;
	margin: 0;
}

/* Divider */
.team-slider-divider {
	border: none;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 254, 250, 0.05) 0%, rgba(255, 254, 250, 0.5) 33.17%, rgba(255, 254, 250, 0.5) 66.83%, rgba(255, 254, 250, 0.25) 100%);
	margin: 4px 0;
}

/* Slider */
.team-slider {
	width: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* Bottom line */
.team-slider::after {
	content: '';
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 254, 250, 0.05) 0%, rgba(255, 254, 250, 0.5) 33.17%, rgba(255, 254, 250, 0.5) 66.83%, rgba(255, 254, 250, 0.05) 100%);
}

.team-slider .splide__track {
	overflow: visible;
	order: 1;
}

/* Cards */
.team-slider-wrapper .team-card {
	background: #0e151c;
	width: 330px !important;
	min-width: 330px;
	min-height: 620px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	list-style: none;
	flex-shrink: 0;
}

.team-slider-wrapper .team-card-image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 50%;
	margin-bottom: 16px;
}

.team-slider-wrapper .team-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.team-slider-wrapper .team-card-image:hover img {
	transform: scale(1.03);
}

.team-slider-wrapper .team-card-name-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.team-slider-wrapper .team-card-name-link:hover .team-card-name {
	opacity: 0.8;
}

.team-slider-wrapper .team-card-name {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 24px;
	font-weight: 300;
	line-height: 28px;
	color: #fffefa;
	margin: 0 0 5px;
}

.team-slider-wrapper .team-card-details {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 8px 0 20px;
}

.team-slider-wrapper .team-card-label {
	display: block;
	font-family: var(--wp--preset--font-family--body, 'Manrope', sans-serif);
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
	color: #fffefa;
	margin-bottom: 10px;
}

.team-slider-wrapper .team-card-edu-item,
.team-slider-wrapper .team-card-spec-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--body, 'Manrope', sans-serif);
	font-size: 13px;
	font-weight: 400;
	line-height: 16px;
	color: #fffefa;
}

.team-slider-wrapper .team-card-spec-icon {
	flex-shrink: 0;
	filter: brightness(0) invert(1);
}

.team-slider-wrapper .team-card-specs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.team-slider-wrapper .team-card-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 32px;
	border: 1px solid rgba(255, 254, 250, 0.25);
	border-radius: 30px;
	font-family: var(--wp--preset--font-family--body, 'Manrope', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	color: #fffefa;
	background: transparent;
	text-decoration: none;
	margin-top: auto;
	transition: all 0.3s ease;
}

.team-slider-wrapper .team-card-link:hover {
	background: rgba(255, 254, 250, 0.1);
	color: #fffefa;
}

/* Splide arrows */
.team-slider .splide__arrows {
	position: absolute;
	bottom: 0;
	left: 47px;
	display: flex;
	gap: 24px;
	z-index: 2;
}

.team-slider .splide__arrow {
	position: static;
	background: #010d18;
	border: 1px solid rgba(255, 254, 250, 0.25);
	border-radius: 30px;
	width: 48px;
	height: 40px;
	opacity: 1;
	padding: 8px 12px;
}

.team-slider .splide__arrow svg {
	fill: #fffefa;
	width: 12px;
	height: 10px;
}

.team-slider .splide__arrow:hover {
	background: #1a2530;
}

.team-slider .splide__arrow--prev {
	order: 1;
	transform: rotate(180deg);
}

.team-slider .splide__arrow--next {
	order: 2;
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
	.team-slider-wrapper {
		padding: 80px 60px;
	}

	.team-slider-wrapper > .team-slider-header,
	.team-slider-wrapper > .team-slider-divider {
		max-width: 100%;
	}

	.team-slider-wrapper > .team-slider {
		max-width: 100%;
		padding-left: 0;
	}

	.team-slider-header {
		gap: 24px;
	}

	.team-slider-title {
		font-size: 40px;
		line-height: 48px;
	}

	.team-slider-description {
		font-size: 28px;
		line-height: 34px;
	}

	.team-slider-wrapper .team-card {
		width: 280px !important;
		min-width: 280px;
		min-height: 500px;
	}

	.team-slider-wrapper .team-card-image {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}
}

@media (max-width: 900px) {
	.team-slider-wrapper {
		padding: 60px 24px;
	}

	.team-slider-header {
		flex-direction: column;
		gap: 24px;
	}

	.team-slider-header::before {
		display: none;
	}

	.team-slider-title {
		font-size: 32px;
		line-height: 40px;
	}

	.team-slider-description {
		font-size: 24px;
		line-height: 30px;
	}

	.team-slider-wrapper .team-card {
		width: 280px !important;
		min-width: 280px;
		min-height: 480px;
	}

	.team-slider-wrapper .team-card-image {
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.team-slider-wrapper .team-card-name {
		font-size: 20px;
		line-height: 24px;
	}
}

@media (max-width: 480px) {
	.team-slider-wrapper {
		padding: 48px 16px;
	}

	.team-slider-title {
		font-size: 28px;
		line-height: 34px;
	}

	.team-slider-description {
		font-size: 20px;
		line-height: 26px;
	}

	.team-slider-wrapper .team-card {
		width: 100% !important;
		min-width: 100%;
		min-height: auto;
	}
}
