.modal {
	background-color: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(10px);
	margin-top: 0;
}

.modal img.mk25-avatar-img {
	width: 100% !important;
	display: block;
	margin: 0 auto;
}

.mk-modal-image-wrap {
	height: 100%;
	background-color: #F4F4F4;
}

.modal-image {
	background-color: #f4f4f4;
}

.mk-team-section .row.g-4 > [class*="col-"] {
	display: flex;
}

.mk-team-section .team-card {
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

.mk-team-section .team-card-media {
	position: relative;
	height: 360px;
	overflow: hidden;
	border-radius: 12px;
	cursor: pointer;
}

.mk-team-section .team-card-bg,
.mk-team-section .team-card-bg-hover {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: opacity 0.4s ease;
}

.mk-team-section .team-card-bg {
	opacity: 1;
	z-index: 1;
	background-position-x: 80%;
	background-color: #ecf0f0;
}

.mk-team-section .team-card-bg-hover {
	opacity: 0;
	z-index: 2;
}

.mk-team-section .team-card-media:hover .team-card-bg {
	opacity: 0;
}

.mk-team-section .team-card-media:hover .team-card-bg-hover {
	opacity: 1;
}

.mk-team-section .team-image {
	position: relative;
	z-index: 3;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.mk-team-section .team-card-media:hover .team-image {
	transform: scale(1.05);
}

.mk-team-section .team-card:hover .info-btn .btn-icon svg {
	transform: rotate(45deg);
}

.mk-team-section .team-card-body .team-linkedin {
	font-size: 14px;
	font-weight: 400;
	font-style: italic;
}

.mk-team-section .team-card-body h5,
.mk-team-section .team-card-body .team-card-name {
	font-weight: 700;
	font-size: 21px;
	margin-top: 10px;
	text-align: left;
	line-height: 1.35;
	min-height: calc(1.35em * 2);
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
}

.mk-team-section .team-card-body--has-info .team-card-name {
	padding-right: 2.75rem;
}

.mk-team-section .team-card-body--no-role .team-card-name {
	min-height: auto;
}

.mk-team-section .team-card-body--no-role {
	min-height: auto;
}

.mk-team-section .team-card-body {
	display: flex;
	flex-direction: column;
	align-items: baseline;
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	min-height: 5.5rem;
}

#atanas-bliznakoff-scholarship-recipients .team-card-body .faculty-name {
	text-align: left;
	width: 100%;
}

.mk-team-section .info-btn .btn-icon {
	border: 1px solid var(--tj-color-theme-primary);
	background-color: transparent;
}

.mk-team-section .info-btn .btn-icon svg {
	transition: all .3s ease-out;
}

.mk-team-section .info-btn {
	position: absolute;
	right: 0;
}

/* body.page-our-team .mk-team-modal .fake-bottom{
    bottom: 66px !important;
}
body.page-our-team .mk-modal-content{
    height: 62% !important;
}

body.page-ambassadors-club .mk-modal-content,
body.page-about-us-our-community-board-of-directors .mk-modal-content,
body.page-advisory-board .mk-modal-content{
    height: 67% !important;
}
body.page-ambassadors-club .mk-team-modal .fake-bottom,
body.page-board-of-directors .mk-team-modal .fake-bottom,
body.page-advisory-board .mk-team-modal .fake-bottom{
    height: 56px !important;
}
body.page-board-of-directors .mk-modal-title,
body.page-our-team .mk-modal-title{
    margin: 1rem 2rem 0 2rem !important;
    padding-bottom: 1rem !important;
} */

/* modal overwrties */
@media (min-width: 1200px) {
	.modal-xl {
		--bs-modal-width: 1480px;
	}
}

@media (min-width: 992px) {

	.modal-lg,
	.modal-xl {
		--bs-modal-width: 1480px;
	}
}

/* Prod modal */
.people-share-inline {
	cursor: pointer;
}

#copy-notice {
	font-style: italic;
	margin-right: 10px;
}

.modal .horizontal-line {
	height: 1px;
	width: 100%;
	background-color: #D2D2D2;
	margin: 30px 0 34px 0;
	min-height: 1px;
}

.modal-title {
	font-weight: 700;
	font-size: 38px;
	line-height: 125%;
	letter-spacing: 0%;
}

.modal-role {
	font-weight: 400;
	font-style: italic;
	font-size: 20px;
	line-height: 125%;
	color: var(--tj-color-theme-primary);
	display: block;
	padding-top: 10px;
}

.people-share-row::before {
	opacity: 1;
	transition: opacity 0.3s ease;
}

.people-share-row.off::before {
	opacity: 0;
}

.people-share-row::before {
	content: "";
	display: block;
	width: 100%;
	height: 125px;
	position: absolute;
	bottom: 82px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95));
}

.people-share-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid #d2d2d2;
	padding-top: 26px;
	padding-bottom: 30px;
	/* margin-top: 30px !important; */

	position: sticky;
	background: white;
	bottom: 0;
}

.modal .publication-navigation .arrow-svg {
	width: 24px !important;
	height: 34px !important;
}

.publication-navigation .arrow-svg {
	stroke: #777e8d;
}

.prev-arrow-btn {
	transform: scaleX(-1);
}

@media (min-width: 992px) {
	.arrow-svg {
		width: 30px;
	}
}

.arrow-svg {
	display: block;
	fill: none;
	width: 20px;
	stroke: white;
	transition: all .3s ease;
	position: relative;
	overflow: visible;
	stroke-width: 2px;
	will-change: transform;
}

.custom-close-btn {
	position: absolute;
	top: -33px;
	right: -23px;
	background-color: var(--tj-color-theme-primary);
	color: white;
	border: none;
	font-size: 2rem;
	font-weight: 200;
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
	z-index: 1055;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	padding-bottom: 6px;
	padding-left: 4px;
}

.modal-footer {
	justify-content: flex-end !important;
}

.service-modal video {
	width: 100%;
}

.service-modal .modal-content {
	background: transparent;
	border: 0;
	position: relative;
}

.service-modal .modal-content .btn-close {
	position: absolute;
	top: 2.5rem;
	right: 2.5rem;
	filter: invert(1);
	z-index: 1;
}

.service-modal .modal-dialog {
	max-width: 1200px;
}

.modal-submit-btn {
	padding: .8rem 2rem;
	text-transform: uppercase;
}

.modal-submit-btn:hover {
	background-color: #fff !important;
	border: 1px solid #CAA260 !important;
	color: #333 !important;
}

.modal .people-cta-left a {
	font-weight: 400;
	font-size: 16px;
	line-height: 149%;
	letter-spacing: -3%;
	color: #777777;
}

.modal .people-cta-left a:hover {
	color: #F44343;
}

body.modal-open {
/*	position: fixed;
	width: 100%;
	overflow-y: hidden;*/
}

.clients-service-modal .modal-body .text-content p {
	color: #777777;
}
/* Mobile-specific: Hide ALL scrollbars including gold scrollbar */
@media (max-width: 991px) {

	/* Hide ALL scrollbars on mobile when modal is open */
	body.modal-open::-webkit-scrollbar,
	html.modal-open::-webkit-scrollbar,
	*::-webkit-scrollbar {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		background: transparent !important;
	}

	/* For Firefox mobile - hide ALL scrollbars */
	body.modal-open,
	html.modal-open,
	* {
		scrollbar-width: none !important;
		-ms-overflow-style: none !important;
	}

	/* Additional aggressive hiding for Samsung devices */
	body.modal-open {
		-webkit-overflow-scrolling: touch !important;
		overflow: hidden !important;
		position: fixed !important;
		width: 100% !important;
		height: 100% !important;
		top: 0 !important;
		left: 0 !important;
	}

	html.modal-open {
		-webkit-overflow-scrolling: touch !important;
		overflow: hidden !important;
		position: fixed !important;
		width: 100% !important;
		height: 100% !important;
	}

	/* Ensure modal text content scrollbar remains visible and overrides any hiding */
	.clients-service-modal .text-content::-webkit-scrollbar {
		display: block !important;
		width: 6px !important;
		height: 6px !important;
		background: transparent !important;
	}

	.clients-service-modal .text-content::-webkit-scrollbar-thumb {
		background-color: #ccc !important;
		border-radius: 3px !important;
		display: block !important;
	}

	.clients-service-modal .text-content::-webkit-scrollbar-track {
		background-color: #f1f1f1 !important;
		display: block !important;
	}

	.clients-service-modal .text-content {
		scrollbar-width: auto !important;
		-ms-overflow-style: auto !important;
	}

	/* Override any universal scrollbar hiding for modal content */
	.clients-service-modal *::-webkit-scrollbar {
		display: block !important;
	}

	.clients-service-modal .text-content {
		scrollbar-width: auto !important;
		-ms-overflow-style: auto !important;
	}
}

/* Desktop only: keep buttons fixed while content scrolls */
@media (min-width: 992px) {
	.clients-service-modal .modal-content {
		height: 75vh;
		max-height: 75vh;
	}

	.clients-service-modal .modal-body {
		display: flex !important;
		flex-direction: column !important;
		height: 100% !important;
		overflow: hidden;
		min-height: 0;
		position: relative;
		padding-bottom: 0 !important;
		padding-top: 42px !important;
	}

	.clients-service-modal .modal-body .text-content {
		overflow-y: auto;
		flex: 1 1 auto;
		min-height: 0;
		margin-bottom: 45px;
		scroll-behavior: smooth;
		tabindex: 0;
	}

	.clients-service-modal .modal-body .d-flex.flex-row.gap-3 {
		flex-shrink: 0;
		margin-top: auto;
	}
}

/* Tablet fix: ensure CTA buttons fit between 768px and 880px */
@media (min-width: 768px) and (max-width: 880px) {
	.clients-service-modal .d-flex.flex-row.gap-3 {
		gap: 0.5rem;
		flex-wrap: nowrap;
	}

	.clients-service-modal .cta-button {
		padding: 0.5rem 0.9rem;
		font-size: 12px;
		line-height: 1.2;
	}
}

/* Mobile/tablet fix: keep in one row between 480px and 660px, make smaller */
@media (min-width: 480px) and (max-width: 660px) {
	.clients-service-modal .d-flex.flex-row.gap-3 {
		flex-direction: column !important;
		gap: 0.5rem;
		align-items: stretch;
	}

	.people-share-row {
		flex-direction: row !important;
		gap: 0.5rem;
		align-items: center;
		flex-wrap: nowrap;
	}

	.clients-service-modal .cta-button {
		padding: 0.6rem 1rem;
		font-size: 12px;
		width: 100%;
		text-align: center;
	}

	.people-cta-left .cta-button {
		padding: 0.55rem 1rem;
		font-size: 12px;
		flex: 1 1 auto;
		min-width: 0;
	}

	.people-share-inline {
		margin-left: auto;
		flex-shrink: 0;
	}

	.people-share-inline .share-inline-label {
		font-size: 0.9rem;
	}

	.people-share-inline .share-inline-btn svg {
		width: 20px;
		height: 20px;
		flex-shrink: 0;
		display: block;
	}
}