/**
 * Single Expert Page
 *
 * Figma nodes 552:5177, 552:5226, 552:5236, 552:5301
 *
 * @package Irritech
 */

body.single-expert .site-main {
	padding-block: 0;
}

/* Profile — 552:5177 */
.expert-single-profile {
	padding-block: 40px 80px;
	background-color: var(--color-background);
}

.expert-single-profile__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 0 0 16px 2px;
	list-style: none;
}

.expert-single-profile__breadcrumb-item {
	display: flex;
	align-items: center;
}

.expert-single-profile__breadcrumb-link,
.expert-single-profile__breadcrumb-current {
	display: inline-flex;
	padding-block: 6px;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	line-height: 1.5;
	color: #222a2e;
	text-decoration: none;
}

.expert-single-profile__breadcrumb-link:hover,
.expert-single-profile__breadcrumb-link:focus-visible {
	text-decoration: underline;
}

.expert-single-profile__breadcrumb-current {
	font-weight: 600;
}

.expert-single-profile__breadcrumb-separator {
	display: flex;
	align-items: center;
}

.expert-single-profile__breadcrumb-separator img {
	display: block;
	width: 8px;
	height: 8px;
}

.expert-single-profile__layout {
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

.expert-single-profile__portrait {
	position: relative;
	flex-shrink: 0;
	width: min(100%, 394px);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(2, 33, 3, 0.05);
}

.expert-single-profile__portrait-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.expert-single-profile__portrait-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(2, 33, 3, 0.1);
	pointer-events: none;
}

.expert-single-profile__portrait-gradient {
	position: absolute;
	inset: auto 0 0;
	height: 72px;
	background: linear-gradient(180deg, rgba(2, 33, 3, 0) 0%, rgba(2, 33, 3, 0.4) 100%);
	pointer-events: none;
}

.expert-single-profile__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.expert-single-profile__identity {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.expert-single-profile__name {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.14;
	color: #222a2e;
}

.expert-single-profile__title {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.17;
	color: #222a2e;
}

.expert-single-profile__stats {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin: 0;
	padding-block: 41px 33px;
	border-block: 1px solid rgba(195, 200, 189, 0.2);
}

.expert-single-profile__stat {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.expert-single-profile__stat:first-child {
	flex: 0 0 150px;
}

.expert-single-profile__stat-label {
	margin: 0 0 4px;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #1d2529;
}

.expert-single-profile__stat-value {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.17;
	color: #022103;
}

.expert-single-profile__education {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.expert-single-profile__education-title {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.33;
	color: #1d2529;
}

.expert-single-profile__education-text {
	font-family: var(--font-family-heading);
	font-size: 1rem;
	line-height: 1.5;
	color: #222a2e;
}

.expert-single-profile__education-text p {
	margin: 0 0 0.5em;
}

.expert-single-profile__education-text p:last-child {
	margin-bottom: 0;
}

/* Biography — 552:5226 */
.expert-single-bio {
	padding-block: 0 120px;
	background-color: var(--color-background);
}

.expert-single-bio__layout {
	display: flex;
	gap: 43px;
	align-items: flex-start;
	justify-content: space-between;
}

.expert-single-bio__intro {
	flex: 0 0 400px;
	max-width: 400px;
}

.expert-single-bio__title {
	position: relative;
	margin: 0 0 24px;
	padding-left: 28px;
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.33;
	color: #1d2529;
	border-left: 4px solid #f7a700;
}

.expert-single-bio__quote {
	margin: 0;
}

.expert-single-bio__quote p {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.5;
	color: #222a2e;
}

.expert-single-bio__content {
	flex: 1;
	min-width: 0;
	max-width: 837px;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	line-height: 1.5;
	color: #222a2e;
}

.expert-single-bio__content p {
	margin: 0 0 1.5em;
}

.expert-single-bio__content p:last-child {
	margin-bottom: 0;
}

/* Contributions — 552:5236 */
.expert-single-contributions {
	padding-block: 120px;
	background-color: var(--color-background-alt);
}

.expert-single-contributions__inner {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.expert-single-contributions__header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	text-align: center;
}

.expert-single-contributions__title {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.14;
	color: #222a2e;
}

.expert-single-contributions__subtitle {
	margin: 0;
	max-width: 672px;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	line-height: 1.5;
	color: #222a2e;
}

.expert-single-contributions__tabs {
	border-bottom: 1px solid rgba(195, 200, 189, 0.2);
}

.expert-single-contributions__tabs-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.expert-single-contributions__tabs-item {
	flex-shrink: 0;
}

.expert-single-contributions__tab {
	display: block;
	padding: 12px 24px 14px;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #222a2e;
	white-space: nowrap;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: font-weight var(--transition-base), border-color var(--transition-base);
}

.expert-single-contributions__tab:hover,
.expert-single-contributions__tab:focus-visible {
	color: #222a2e;
	outline: none;
}

.expert-single-contributions__tab--active {
	font-weight: 600;
	border-bottom-color: #000000;
}

.expert-single-contributions__panel.is-active {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.expert-single-contributions__panel[hidden] {
	display: none !important;
}

.expert-single-contributions__carousel {
	position: relative;
}

.expert-single-contributions__track .slick-list {
	margin: 0 -16px;
	overflow: hidden;
}

.expert-single-contributions__track .slick-slide {
	height: auto;
	margin: 0 16px;
}

.expert-single-contributions__track .slick-slide > div {
	height: 100%;
}

.expert-single-contributions__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background-color: var(--color-background);
	border: 1px solid rgba(0, 0, 0, 0.5);
	border-radius: 9999px;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity var(--transition-base);
}

.expert-single-contributions__nav.slick-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.expert-single-contributions__nav--prev {
	left: -25px;
}

.expert-single-contributions__nav--next {
	right: -25px;
}

.expert-single-contributions__nav img {
	display: block;
	width: 8px;
	height: 12px;
}

.expert-single-contributions__nav.slick-prev::before,
.expert-single-contributions__nav.slick-next::before {
	display: none;
}

.expert-single-contributions__card {
	height: 100%;
	min-width: 0;
}

.expert-single-contributions__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	text-decoration: none;
	background-color: var(--color-background);
	border-radius: 16px;
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -4px rgba(0, 0, 0, 0.1);
	transition: box-shadow var(--transition-base);
}

.expert-single-contributions__card-link:hover,
.expert-single-contributions__card-link:focus-visible {
	box-shadow:
		0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.expert-single-contributions__card-media {
	position: relative;
	height: 256px;
	overflow: hidden;
}

.expert-single-contributions__card-image {
	position: absolute;
	width: 100%;
	height: 100%;
	max-width: none;
	inset: 0;
	object-fit: cover;
}

.expert-single-contributions__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 32px;
}

.expert-single-contributions__card-location {
	margin: 0;
	font-family: var(--font-family-base);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #506614;
}

.expert-single-contributions__card-title {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.17;
	color: #1d2529;
}

.expert-single-contributions__card-excerpt {
	margin: 0;
	padding-top: 8px;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #1d2529;
}

.expert-single-contributions__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 60px;
}

.expert-single-contributions__dots .slick-dots {
	position: static;
	bottom: auto;
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.expert-single-contributions__dots .slick-dots li {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
}

.expert-single-contributions__dots .slick-dots li button {
	display: block;
	width: 8px;
	height: 8px;
	padding: 0;
	font-size: 0;
	line-height: 0;
	color: transparent;
	background-color: #aeaca7;
	border: 0;
	border-radius: 100px;
	cursor: pointer;
	transition: background-color var(--transition-base);
}

.expert-single-contributions__dots .slick-dots li button::before {
	display: none;
	content: none;
}

.expert-single-contributions__dots .slick-dots li.slick-active button {
	background-color: #d71920;
}

/* Others — 552:5301 */
.expert-single-others {
	padding-block: 120px;
	background-color: var(--color-background);
	border-top: 1px solid rgba(195, 200, 189, 0.1);
}

.expert-single-others__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.expert-single-others__header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: center;
}

.expert-single-others__title {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.14;
	color: #222a2e;
}

.expert-single-others__subtitle {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	line-height: 1.5;
	color: #222a2e;
}

.expert-single-others__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 48px;
	padding-top: 8px;
}

.expert-single-others__item {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px 8px 17px;
	text-decoration: none;
	border-bottom: 1px solid rgba(195, 200, 189, 0.2);
	border-radius: 8px;
	transition: background-color var(--transition-base);
}

.expert-single-others__item:hover,
.expert-single-others__item:focus-visible {
	background-color: rgba(245, 245, 245, 0.6);
	outline: none;
}

.expert-single-others__avatar {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	overflow: hidden;
	background-color: #e7e8e9;
	border-radius: 9999px;
}

.expert-single-others__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.expert-single-others__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.expert-single-others__role {
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #222a2e;
}

.expert-single-others__name {
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #222a2e;
}

.expert-single-others__arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.expert-single-others__arrow img {
	display: block;
	width: 8px;
	height: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
	.expert-single-contributions__nav--prev {
		left: 0;
	}

	.expert-single-contributions__nav--next {
		right: 0;
	}
}

@media (max-width: 1024px) {
	.expert-single-profile__layout {
		flex-direction: column;
	}

	.expert-single-profile__portrait {
		width: 100%;
		max-width: 394px;
	}

	.expert-single-bio__layout {
		flex-direction: column;
		gap: 32px;
	}

	.expert-single-bio__intro {
		flex: none;
		max-width: none;
	}

	.expert-single-bio__content {
		max-width: none;
	}

	.expert-single-others__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
	}
}

@media (max-width: 768px) {
	.expert-single-profile {
		padding-block: 80px 48px;
	}

	.expert-single-profile__stats {
		flex-direction: column;
		gap: 16px;
		padding-block: 24px;
	}

	.expert-single-profile__stat:first-child {
		flex: none;
	}

	.expert-single-bio {
		padding-bottom: 80px;
	}

	.expert-single-contributions {
		padding-block: 80px;
	}

	.expert-single-contributions__inner {
		gap: 40px;
	}

	.expert-single-contributions__tabs-list {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.expert-single-contributions__carousel {
		padding-inline: 48px;
	}

	.expert-single-contributions__nav--prev {
		left: 0;
	}

	.expert-single-contributions__nav--next {
		right: 0;
	}

	.expert-single-others {
		padding-block: 80px;
	}

	.expert-single-others__grid {
		grid-template-columns: 1fr;
		column-gap: 0;
	}
}
