/* =========================================================
   HOME EXPERTS
   4-CARD DESKTOP LAYOUT
========================================================= */

.home-experts {
	--expert-brand: #a9003d;
	--expert-brand-dark: #7d002e;
	--expert-heading: #292326;
	--expert-text: #675f63;
	--expert-soft: #fff6f8;

	position: relative;

	width: 100%;

	min-height: 100svh;

	display: flex;

	align-items: center;

	overflow: hidden;

	padding:
		52px
		0;

	background:
		radial-gradient(
			circle at 7% 12%,
			rgba(169, 0, 61, .07),
			transparent 26%
		),
		radial-gradient(
			circle at 94% 87%,
			rgba(169, 0, 61, .055),
			transparent 25%
		),
		linear-gradient(
			135deg,
			#fff8f8 0%,
			#fffdfb 48%,
			#fdf5f7 100%
		);
}


/* =========================================================
   BACKGROUND DECOR
========================================================= */

.home-experts__decor {
	position: absolute;

	pointer-events: none;
}


.home-experts__decor--one {
	top: -250px;
	left: -230px;

	width: 600px;
	height: 600px;

	border-radius: 50%;

	border:
		1px solid
		rgba(169, 0, 61, .07);
}


.home-experts__decor--two {
	right: -120px;
	bottom: -230px;

	width: 500px;
	height: 500px;

	border-radius: 50%;

	background:
		radial-gradient(
			circle,
			rgba(169, 0, 61, .055),
			transparent 69%
		);
}


/* =========================================================
   CONTAINER
========================================================= */

.home-experts__container {
	position: relative;

	z-index: 2;

	width: min(
		calc(100% - 80px),
		1380px
	);

	margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.home-experts__header {
	max-width: 720px;

	margin:
		0
		auto
		28px;

	text-align: center;
}


.home-experts__eyebrow {
	display: flex;

	align-items: center;
	justify-content: center;

	gap: 12px;

	margin-bottom: 8px;

	color:
		var(--expert-brand);

	font-size: 10px;

	font-weight: 800;

	letter-spacing: 2.5px;

	text-transform: uppercase;
}


.home-experts__eyebrow span {
	width: 32px;
	height: 1px;

	background:
		var(--expert-brand);
}


.home-experts__header h2 {
	margin:
		0
		0
		10px;

	color:
		var(--expert-heading);

	font-family:
		"Playfair Display",
		Georgia,
		serif;

	font-size:
		clamp(
			38px,
			3.5vw,
			52px
		);

	font-weight: 500;

	line-height: 1;

	letter-spacing: -1.4px;
}


.home-experts__header h2 span {
	color:
		var(--expert-brand);
}


.home-experts__header p {
	max-width: 610px;

	margin:
		0
		auto;

	color:
		var(--expert-text);

	font-size: 14px;

	line-height: 1.55;
}


/* =========================================================
   GRID
   4 CARDS ON DESKTOP
========================================================= */

.home-experts__grid {
	display: grid;

	grid-template-columns:
		repeat(
			4,
			minmax(0, 1fr)
		);

	gap: 18px;

	align-items: stretch;
}


/* =========================================================
   EXPERT CARD
========================================================= */

.home-expert-card {
	position: relative;

	min-width: 0;

	display: flex;

	flex-direction: column;

	overflow: hidden;

	border:
		1px solid
		rgba(169, 0, 61, .09);

	border-radius: 18px;

	background:
		rgba(255, 255, 255, .94);

	box-shadow:
		0
		10px
		28px
		rgba(78, 37, 51, .055);

	transition:
		transform .4s
		cubic-bezier(.22, 1, .36, 1),
		border-color .4s ease,
		box-shadow .4s ease;
}


.home-expert-card:hover {
	transform:
		translateY(-7px);

	border-color:
		rgba(169, 0, 61, .18);

	box-shadow:
		0
		22px
		44px
		rgba(76, 35, 50, .11);
}


/* =========================================================
   IMAGE
========================================================= */

.home-expert-card__image {
	position: relative;

	display: block;

	width: 100%;

	height: 225px;

	overflow: hidden;

	background:
		linear-gradient(
			135deg,
			#f5e9ed,
			#f7f1ef
		);
}


.home-expert-card__photo {
	width: 100%;
	height: 100%;

	display: block;

	object-fit: cover;

	object-position:
		center 18%;

	transition:
		transform .7s
		cubic-bezier(.22, 1, .36, 1),
		filter .5s ease;
}


.home-expert-card:hover
.home-expert-card__photo {
	transform:
		scale(1.045);
}


.home-expert-card__image-overlay {
	position: absolute;

	inset: 0;

	background:
		linear-gradient(
			to top,
			rgba(83, 0, 29, .16),
			transparent 44%
		);

	pointer-events: none;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.home-expert-card__placeholder {
	width: 100%;
	height: 100%;

	display: flex;

	align-items: center;
	justify-content: center;

	color:
		var(--expert-brand);
}


.home-expert-card__placeholder svg {
	width: 72px;
	height: 72px;

	opacity: .72;
}


/* =========================================================
   IMAGE ARROW
========================================================= */

.home-expert-card__arrow {
	position: absolute;

	right: 15px;
	bottom: 15px;

	width: 42px;
	height: 42px;

	display: flex;

	align-items: center;
	justify-content: center;

	border-radius: 50%;

	color:
		var(--expert-brand);

	background:
		#ffffff;

	box-shadow:
		0
		8px
		20px
		rgba(43, 18, 27, .15);

	transition:
		transform .35s ease,
		color .3s ease,
		background .3s ease;
}


.home-expert-card__arrow svg {
	width: 18px;
	height: 18px;
}


.home-expert-card:hover
.home-expert-card__arrow {
	color: #ffffff;

	background:
		var(--expert-brand);

	transform:
		translateX(4px);
}


/* =========================================================
   CONTENT
========================================================= */

.home-expert-card__content {
	flex: 1;

	display: flex;

	flex-direction: column;

	padding:
		19px
		20px
		21px;
}


/* =========================================================
   SPECIALITY
========================================================= */

.home-expert-card__speciality {
	margin-bottom: 6px;

	color:
		var(--expert-brand);

	font-size: 9px;

	font-weight: 800;

	line-height: 1.3;

	letter-spacing: 1.35px;

	text-transform: uppercase;
}


/* =========================================================
   NAME
========================================================= */

.home-expert-card__content h3 {
	margin:
		0
		0
		6px;

	font-family:
		"Playfair Display",
		Georgia,
		serif;

	font-size:
		clamp(
			22px,
			1.5vw,
			27px
		);

	font-weight: 600;

	line-height: 1.08;

	letter-spacing: -.45px;
}


.home-expert-card__content h3 a {
	color:
		var(--expert-heading);

	text-decoration: none;
}


/* =========================================================
   QUALIFICATION
========================================================= */

.home-expert-card__qualification {
	display: -webkit-box;

	overflow: hidden;

	margin-bottom: 8px;

	color:
		var(--expert-brand);

	font-size: 10.5px;

	font-weight: 700;

	line-height: 1.45;

	-webkit-box-orient: vertical;

	-webkit-line-clamp: 2;
}


/* =========================================================
   DESIGNATION
========================================================= */

.home-expert-card__designation {
	display: -webkit-box;

	overflow: hidden;

	margin:
		0
		0
		9px;

	color:
		#51494d;

	font-size: 12.5px;

	line-height: 1.45;

	-webkit-box-orient: vertical;

	-webkit-line-clamp: 2;
}


/* =========================================================
   HOSPITAL
========================================================= */

.home-expert-card__hospital {
	display: flex;

	align-items: flex-start;

	gap: 7px;

	margin-bottom: 11px;

	color:
		#756c70;

	font-size: 10.5px;

	line-height: 1.4;
}


.home-expert-card__hospital svg {
	width: 15px;
	height: 15px;

	flex:
		0
		0
		15px;

	margin-top: 1px;

	color:
		var(--expert-brand);
}


/* =========================================================
   INTRO
========================================================= */

.home-expert-card__intro {
	display: -webkit-box;

	overflow: hidden;

	margin:
		0
		0
		13px;

	color:
		#6d6569;

	font-size: 11px;

	line-height: 1.5;

	-webkit-box-orient: vertical;

	-webkit-line-clamp: 2;
}


/* =========================================================
   PROFILE LINK
========================================================= */

.home-expert-card__profile-link {
	display: inline-flex;

	align-items: center;

	gap: 8px;

	width: fit-content;

	margin-top: auto;

	color:
		var(--expert-brand);

	font-size: 10.5px;

	font-weight: 800;

	text-decoration: none;
}


.home-expert-card__profile-link span {
	font-size: 17px;

	line-height: 1;

	transition:
		transform .3s ease;
}


.home-expert-card__profile-link:hover span {
	transform:
		translateX(5px);
}


/* =========================================================
   SECTION FOOTER
========================================================= */

.home-experts__footer {
	display: flex;

	justify-content: center;

	margin-top: 24px;
}


.home-experts__all {
	min-height: 46px;

	display: inline-flex;

	align-items: center;
	justify-content: center;

	gap: 10px;

	padding:
		10px
		22px;

	border:
		1px solid
		rgba(169, 0, 61, .18);

	border-radius: 8px;

	color:
		var(--expert-brand);

	background:
		#ffffff;

	box-shadow:
		0
		7px
		20px
		rgba(75, 35, 49, .045);

	font-size: 11px;

	font-weight: 800;

	text-decoration: none;

	transition:
		transform .3s ease,
		color .3s ease,
		background .3s ease,
		box-shadow .3s ease;
}


.home-experts__all svg {
	width: 18px;
	height: 18px;

	transition:
		transform .3s ease;
}


.home-experts__all:hover {
	color: #ffffff;

	background:
		var(--expert-brand);

	transform:
		translateY(-3px);

	box-shadow:
		0
		13px
		28px
		rgba(169, 0, 61, .18);
}


.home-experts__all:hover svg {
	transform:
		translateX(4px);
}


/* =========================================================
   ENTRANCE ANIMATION
========================================================= */

.experts-reveal {
	opacity: 1;

	transform: none;
}


html.experts-ready
.experts-reveal {
	opacity: 0;

	transform:
		translateY(25px);

	transition:
		opacity .72s
		cubic-bezier(.22, 1, .36, 1),
		transform .72s
		cubic-bezier(.22, 1, .36, 1);

	transition-delay:
		var(
			--expert-delay,
			0s
		);
}


html.experts-ready
.experts-reveal.is-visible {
	opacity: 1;

	transform:
		translate3d(
			0,
			0,
			0
		);
}


/* =========================================================
   SHORT DESKTOP VIEWPORT
========================================================= */

@media (
	max-height: 820px
) and (
	min-width: 1201px
) {

	.home-experts {
		padding:
			32px
			0;
	}


	.home-experts__header {
		margin-bottom: 20px;
	}


	.home-experts__header h2 {
		font-size:
			clamp(
				34px,
				3vw,
				44px
			);
	}


	.home-expert-card__image {
		height: 205px;
	}


	.home-expert-card__content {
		padding:
			16px
			18px
			18px;
	}


	.home-experts__footer {
		margin-top: 17px;
	}

}


/* =========================================================
   LARGE LAPTOP
   2 COLUMNS
========================================================= */

@media (max-width: 1200px) {

	.home-experts {
		min-height: 0;

		padding:
			60px
			0;
	}


	.home-experts__container {
		width:
			calc(100% - 60px);
	}


	.home-experts__grid {
		grid-template-columns:
			repeat(
				2,
				minmax(0, 1fr)
			);

		gap: 20px;
	}


	.home-expert-card__image {
		height: 300px;
	}


	.home-expert-card__content h3 {
		font-size:
			clamp(
				25px,
				2.3vw,
				30px
			);
	}


	.home-expert-card__qualification {
		font-size: 11px;
	}


	.home-expert-card__designation {
		font-size: 13px;
	}

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

	.home-experts {
		padding:
			62px
			0;
	}


	.home-experts__container {
		width:
			calc(100% - 40px);
	}


	.home-experts__grid {
		grid-template-columns:
			repeat(
				2,
				minmax(0, 1fr)
			);

		gap: 18px;
	}


	.home-expert-card__image {
		height: 280px;
	}


	.home-expert-card__content {
		padding:
			20px
			20px
			22px;
	}

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

	.home-experts {
		padding:
			54px
			0
			58px;
	}


	.home-experts__container {
		width:
			calc(100% - 30px);
	}


	.home-experts__header {
		margin-bottom: 25px;
	}


	.home-experts__header h2 {
		font-size: 38px;
	}


	.home-experts__header p {
		font-size: 13px;
	}


	.home-experts__grid {
		grid-template-columns:
			1fr;

		gap: 18px;
	}


	.home-expert-card__image {
		height: 330px;
	}


	.home-expert-card__content {
		padding:
			20px
			19px
			22px;
	}


	.home-expert-card__content h3 {
		font-size: 27px;
	}


	.home-expert-card__qualification {
		font-size: 11px;
	}


	.home-expert-card__designation {
		font-size: 13px;
	}


	.home-expert-card__hospital {
		font-size: 11px;
	}


	.home-expert-card__profile-link {
		font-size: 11px;
	}

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

	.home-experts__container {
		width:
			calc(100% - 24px);
	}


	.home-expert-card__image {
		height: 295px;
	}

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
	prefers-reduced-motion: reduce
) {

	.experts-reveal,
	html.experts-ready
	.experts-reveal {
		opacity: 1 !important;

		transform: none !important;

		transition: none !important;
	}


	.home-expert-card,
	.home-expert-card__photo,
	.home-expert-card__arrow {
		transition: none !important;
	}

}