/**
 * Course single professor
 * Source: _static/course/08-singleprofessor/
 * Live: https://postmba.org/sales-specialist/ (#teacher / #pa-rtl-row / #cz_57151 / #cz_33033 / #cz_26586)
 *
 * Title + underline: assets/css/course-heading.css (macros/course-heading.twig)
 *
 * Ported from:
 * - stylish_list.css + inline #cz_57151 li/i
 * - button.css + theme options a.cz_btn (shine, txt_move_up)
 * - codevzplus.css: .cz_image_flip_h / .cz_image_in / caption
 * - core.rtl.css: .cz_image_caption
 * - js_composer: vc_col-sm-8 / vc_col-sm-4 gutters
 * - Live gaps: .cz_gap hide_on_mobile 50px / show_on_mobile 30px
 * - codevzplus-tablet.css: .center_on_mobile @ ≤768
 */

.postmba-course-professor {
	--postmba-course-professor-gold: #ccb892;
	--postmba-course-professor-blue: #285bbb;
	--postmba-course-professor-caption-bg: rgba(0, 0, 0, 0.5);

	position: relative;
}

.postmba-course-professor__placeholder {
	margin: 0;
	padding: 1.5rem;
	text-align: center;
	background: #f0f0f0;
	color: #555;
	border-radius: 3px;
	opacity: 0.65;
}

/* Legacy vc_row + vc_col-sm-8 / vc_col-sm-4 (credentials left, photo right) */
.postmba-course-professor__grid {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
	direction: ltr;
	margin-top: 20px;
}

.postmba-course-professor__credentials,
.postmba-course-professor__photo-col {
	box-sizing: border-box;
	position: relative;
	min-width: 0;
	padding-left: 15px;
	padding-right: 15px;
}

.postmba-course-professor__credentials {
	direction: rtl;
	width: 66.66666667%;
}

.postmba-course-professor__photo-col {
	width: 33.33333333%;
}

/*
 * Legacy: ul.cz_stylish_list + .cz_sl_icon_hover_zoom_in
 * Inline #cz_57151: li { font-size:18px; margin-bottom:15px }
 * Inline #cz_57151 i: { font-size:12px; background:#ccb892; margin-right:20px }
 */
.postmba-course-professor__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.postmba-course-professor__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	width: 100%;
	margin: 0 0 15px;
	font-size: 18px;
	line-height: 1.6;
	color: #444;
	transition: all 0.2s ease-in-out;
}

.postmba-course-professor__item:last-child {
	margin-bottom: 0;
}

.postmba-course-professor__icon {
	flex-shrink: 0;
	display: block;
	box-sizing: content-box;
	width: 2em;
	height: 2em;
	margin-inline-end: 20px;
	font-size: 12px;
	line-height: 2em;
	text-align: center;
	background-color: var(--postmba-course-professor-gold);
	transition: all 0.1s ease-in-out;
}

.postmba-course-professor__icon i {
	display: block;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.postmba-course-professor__item:hover .postmba-course-professor__icon {
	transform: scale(1.25, 1.25);
}

.postmba-course-professor__text {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.6;
}

/* Live inline on resume paragraph: margin-top 20px; margin-right 20px (RTL) */
.postmba-course-professor__resume-wrap {
	margin: 20px 0 0;
	margin-inline-start: 20px;
}

/*
 * Theme options a.cz_btn + button.css .cz_btn / .cz_btn_shine / .cz_btn_txt_move_up
 * padding 12px 32px; radius 5px; bg #285bbb; hover #ccb892 + shadow
 */
.postmba-course-professor__resume {
	position: relative;
	display: inline-block;
	box-sizing: border-box;
	margin: 0 0 -10px;
	padding: 12px 32px;
	overflow: hidden;
	color: #fff;
	font-weight: 700;
	line-height: 1.4;
	text-align: initial;
	text-decoration: none;
	background-color: var(--postmba-course-professor-blue);
	border: 0;
	border-radius: 5px;
	backface-visibility: hidden;
	transition: all 0.2s ease-in-out;
}

.postmba-course-professor__resume:hover,
.postmba-course-professor__resume:focus-visible {
	color: #fff;
	background-color: var(--postmba-course-professor-gold);
	margin-top: -2px;
	box-shadow: 0 10px 30px rgba(40, 91, 187, 0.3);
	text-decoration: none;
}

.postmba-course-professor__resume:focus-visible {
	outline: 3px solid var(--postmba-course-professor-blue);
	outline-offset: 3px;
}

.postmba-course-professor__resume strong {
	font-weight: inherit;
	vertical-align: middle;
	white-space: nowrap;
}

.postmba-course-professor__resume span {
	position: relative;
	z-index: 1;
	display: block;
	vertical-align: middle;
	white-space: nowrap;
	transition: all 0.3s ease-in-out;
}

.postmba-course-professor__resume b {
	width: auto;
	margin: 0;
	padding: inherit;
	font-weight: inherit;
	white-space: nowrap;
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, 25%);
	transition: all 0.3s ease-in-out;
}

.postmba-course-professor__resume:hover span,
.postmba-course-professor__resume:focus-visible span {
	opacity: 0;
	transform: translateY(-50%);
}

.postmba-course-professor__resume:hover b,
.postmba-course-professor__resume:focus-visible b {
	opacity: 1;
	transform: translate(-50%, -50%);
}

/* button.css .cz_btn_shine */
.postmba-course-professor__resume::before {
	position: absolute;
	top: 0;
	left: 125%;
	z-index: 2;
	display: block;
	width: 50%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
	transform: skewX(-25deg);
	animation: postmba-course-professor-shine-def 0.7s forwards;
	content: "";
}

.postmba-course-professor__resume:hover::before,
.postmba-course-professor__resume:focus-visible::before {
	left: -125%;
	animation: postmba-course-professor-shine 0.7s forwards;
}

@keyframes postmba-course-professor-shine {
	100% {
		left: 125%;
	}
}

@keyframes postmba-course-professor-shine-def {
	100% {
		left: -125%;
	}
}

.postmba-course-professor__resume--placeholder {
	pointer-events: none;
	opacity: 0.7;
}

/* Legacy #cz_26586 > div { position:relative; display:table; margin:0 auto } */
.postmba-course-professor__card {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.postmba-course-professor__card:hover,
.postmba-course-professor__card:focus-visible {
	color: inherit;
	text-decoration: none;
}

.postmba-course-professor__card:focus-visible {
	outline: 2px solid var(--postmba-course-professor-blue);
	outline-offset: 4px;
}

.postmba-course-professor__frame {
	position: relative;
	display: table;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
}

/*
 * codevzplus.css .cz_image_flip_h + inline #cz_26586 .cz_image_in { margin-bottom:10px }
 */
.postmba-course-professor__media {
	position: relative;
	z-index: 1;
	display: block;
	overflow: visible;
	margin: 0 0 10px;
	border-radius: 3px;
	perspective: 2500px;
	transition: all 0.2s ease-in-out;
}

.postmba-course-professor__face {
	display: block;
	border-radius: inherit;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.postmba-course-professor__face--front {
	position: relative;
	z-index: 9;
	transform: rotateY(0deg);
}

.postmba-course-professor__face--back {
	position: absolute !important;
	top: 50%;
	left: 50%;
	z-index: 8;
	width: 100%;
	overflow: hidden;
	opacity: 1;
	transform: translate(-50%, -50%) rotateY(-180deg);
	transform-style: preserve-3d;
}

.postmba-course-professor__card:hover .postmba-course-professor__face--front,
.postmba-course-professor__card:focus-visible .postmba-course-professor__face--front,
.postmba-course-professor__card:focus-within .postmba-course-professor__face--front {
	z-index: 9;
	transform: rotateY(180deg);
}

.postmba-course-professor__card:hover .postmba-course-professor__face--back,
.postmba-course-professor__card:focus-visible .postmba-course-professor__face--back,
.postmba-course-professor__card:focus-within .postmba-course-professor__face--back {
	z-index: 10;
	transform: translate(-50%, -50%) rotateY(0deg);
}

.postmba-course-professor__photo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 3px;
	vertical-align: middle;
}

/* core.rtl.css .cz_image_caption + .mt10 */
.postmba-course-professor__caption {
	position: absolute !important;
	right: 0;
	bottom: 5%;
	left: 0;
	z-index: 9;
	width: 100%;
	margin-top: 10px;
	color: #fff;
	font-weight: 700;
	background: var(--postmba-course-professor-caption-bg);
	border-radius: 3px;
	box-sizing: border-box;
	transition: all 0.2s ease-in-out;
}

.postmba-course-professor__name {
	display: block;
	padding-right: 7px;
	line-height: 2;
	text-align: right;
}

/* Live .cz_gap hide_on_mobile 50px / show_on_mobile 30px after #pa-rtl-row */
.postmba-course-professor__gap {
	display: block;
	height: 50px;
}

@media screen and (max-width: 768px) {
	.postmba-course-professor__grid {
		margin-left: 0;
		margin-right: 0;
	}

	.postmba-course-professor__credentials,
	.postmba-course-professor__photo-col {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	/* codevzplus-tablet.css .center_on_mobile */
	.postmba-course-professor__photo-col,
	.postmba-course-professor__photo-col * {
		text-align: center !important;
		float: none !important;
	}

	.postmba-course-professor__frame,
	.postmba-course-professor__photo {
		float: none;
		display: table !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	.postmba-course-professor__caption {
		bottom: 4% !important;
	}

	.postmba-course-professor__gap {
		height: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.postmba-course-professor__item,
	.postmba-course-professor__icon,
	.postmba-course-professor__resume,
	.postmba-course-professor__resume span,
	.postmba-course-professor__resume b,
	.postmba-course-professor__card,
	.postmba-course-professor__media,
	.postmba-course-professor__face,
	.postmba-course-professor__caption {
		transition: none;
	}

	.postmba-course-professor__resume::before {
		animation: none;
	}

	.postmba-course-professor__item:hover .postmba-course-professor__icon {
		transform: none;
	}

	.postmba-course-professor__resume:hover,
	.postmba-course-professor__resume:focus-visible {
		margin-top: 0;
		transform: none;
	}

	.postmba-course-professor__card:hover .postmba-course-professor__face--front,
	.postmba-course-professor__card:focus-visible .postmba-course-professor__face--front,
	.postmba-course-professor__card:focus-within .postmba-course-professor__face--front {
		transform: none;
	}

	.postmba-course-professor__face--back,
	.postmba-course-professor__card:hover .postmba-course-professor__face--back,
	.postmba-course-professor__card:focus-visible .postmba-course-professor__face--back,
	.postmba-course-professor__card:focus-within .postmba-course-professor__face--back {
		opacity: 0;
		transform: translate(-50%, -50%);
		pointer-events: none;
	}
}
