/* ==========================================================================
   Grid Doctors Section
   ========================================================================== */

.grid-doctors-section {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	padding: 40px 20px;
}

.grid-doctors-section .section-inner {
	width: 100%;
	max-width: 800px;
	display: flex;
	flex-flow: column nowrap;
	gap: 24px;
}

.grid-doctors-section .section-inner .column-header {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
}

.grid-doctors-section .section-inner .column-header h2 {
	margin: 0;
	color: #1A1915;
	font-family: "PT Serif", serif;
	font-weight: 400;
	font-size: 32px;
	line-height: 42px;
	letter-spacing: 0;
	text-align: center;
	text-transform: capitalize;
}

/* ---- Default theme ---- */

.grid-doctors-section .section-inner .column-body {
	width: 100%;
	display: flex;
	flex-flow: column nowrap;
	gap: 32px;
}

.grid-doctors-section .section-inner .column-body .doctor-box {
	width: 100%;
	display: flex;
	flex-flow: column nowrap;
	gap: 0;
	text-decoration: none;
}

.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner {
	display: flex;
	flex-flow: column nowrap;
	gap: 20px;
}

.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-image {
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
	display: flex;
}

.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-image img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}

.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-content {
	display: flex;
	flex-flow: column nowrap;
	gap: 6px;
	padding: 0 30px;
	align-items: center;
}

.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-content h3 {
	width: 100%;
	margin: 0;
	color: #000000;
	font-family: "PT Serif", serif;
	font-weight: 400;
	font-size: 28px;
	line-height: 36px;
	letter-spacing: 0;
	text-transform: capitalize;
	text-align: center;
}

.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-content p {
	width: 100%;
	margin: 0;
	color: #897C50;
	font-family: "Lato", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

/* ---- Stacked theme ---- */

.grid-doctors-section--stacked .section-inner {
	max-width: 1120px;
	gap: 32px;
}

.grid-doctors-section--stacked .column-header {
	width: 100%;
}

.grid-doctors-section__intro {
	width: 100%;
	max-width: 640px;
	margin-top: 12px;
	color: #3A3A3B;
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: center;
}

.grid-doctors-section__intro p {
	margin: 0 0 12px;
}

.grid-doctors-section__intro p:last-child {
	margin-bottom: 0;
}

.grid-doctors-section__intro a,
.grid-doctors-section__intro a:visited {
	color: inherit;
	text-decoration: underline;
}

.grid-doctors-section__profiles {
	width: 100%;
	display: flex;
	flex-flow: column nowrap;
}

.doctor-profile {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.doctor-profile + .doctor-profile {
	margin-top: 40px;
	padding-top: 0;
	border-top: 0;
}

.doctor-profile__media {
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
}

.doctor-profile__media-desktop {
	display: none;
}

.doctor-profile__media-mobile {
	display: block;
}

.doctor-profile__image {
	display: block;
	width: 100%;
	height: auto;
}

.doctor-profile__content {
	min-width: 0;
	display: flex;
	flex-flow: column nowrap;
	align-items: flex-start;
}

.doctor-profile__name {
	margin: 0;
	color: #002345;
	font-family: "PT Serif", serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 36px;
	letter-spacing: 0;
	text-transform: capitalize;
}

.doctor-profile__position {
	margin: 6px 0 0;
	color: #897C50;
	font-family: "Lato", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
	letter-spacing: 5%;
	text-transform: uppercase;
}

.doctor-profile__credentials {
	margin: 10px 0 0;
	color: #58585A;
	font-family: "PT Serif", serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 26px;
}

.doctor-profile__credential-separator {
	margin: 0 8px;
	color: #58585A;
}

.doctor-profile__bio {
	width: 100%;
	margin-top: 20px;
	color: #3A3A3B;
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.doctor-profile__bio > *:first-child {
	margin-top: 0;
}

.doctor-profile__bio > *:last-child {
	margin-bottom: 0;
}

.doctor-profile__bio p {
	margin: 0 0 12px;
}

.doctor-profile__bio p:last-child {
	margin-bottom: 0;
}

.doctor-profile__bio a,
.doctor-profile__bio a:visited {
	color: inherit;
	text-decoration: underline;
}

.doctor-profile__bio a:hover {
	color: #897C50;
}

.doctor-profile__bio blockquote {
	margin: 20px 0;
	padding: 12px 12px 12px 30px;
	background: #F3EFE7;
	border-radius: 2px;
  position: relative;
}

.doctor-profile__bio blockquote p {
	margin: 0;
	color: #3A3A3B;
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.doctor-profile__bio blockquote p + p {
	margin-top: 12px;
}


.doctor-profile__bio blockquote:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  background: #002345;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.doctor-profile__bio ul {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-flow: column nowrap;
	gap: 12px;
}

.doctor-profile__bio ul li {
	position: relative;
	padding-left: 34px;
	color: #3A3A3B;
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.doctor-profile__bio ul li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 22px;
	height: 22px;
	background: url("assets/check.svg") center / contain no-repeat;
}

.doctor-profile__bio ul ul {
	margin-top: 12px;
	gap: 8px;
}

.doctor-profile__bio ul ul li {
	padding-left: 28px;
}

.doctor-profile__bio ul ul li::before {
	width: 18px;
	height: 18px;
}

.doctor-profile__link-wrap {
	margin-top: 24px;
}

.doctor-profile__link,
.doctor-profile__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #002345;
	font-family: "Lato", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 26px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.doctor-profile__link:hover {
	color: #897C50;
	text-decoration-thickness: 2px;
}

.doctor-profile__link-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	background-color: currentColor;
	-webkit-mask: url("assets/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/arrow-right.svg") center / contain no-repeat;
}

/* ---- Tablet and up ---- */

@media (min-width: 768px) {
	.grid-doctors-section {
		padding: 60px 20px;
	}

	.grid-doctors-section .section-inner .column-body {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}

	.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-image {
		height: 590px;
	}

	.grid-doctors-section--stacked .section-inner {
		gap: 40px;
	}

	.grid-doctors-section--stacked .column-header h2 {
		font-size: 40px;
		line-height: 52px;
	}

	.grid-doctors-section__intro {
		font-size: 18px;
		line-height: 26px;
	}

	.doctor-profile {
		grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
		gap: 40px;
	}

	.doctor-profile:nth-child(even) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
	}

	.doctor-profile:nth-child(even) .doctor-profile__media {
		grid-column: 2;
		grid-row: 1;
	}

	.doctor-profile:nth-child(even) .doctor-profile__content {
		grid-column: 1;
		grid-row: 1;
	}

	.doctor-profile__content {
		padding-top: 24px;
	}

	.doctor-profile__media-desktop {
		display: block;
	}

	.doctor-profile__media-mobile {
		display: none;
	}

	.doctor-profile + .doctor-profile {
		margin-top: 60px;
		padding-top: 60px;
		border-top: 1px solid #DDDDDD;
	}

	.doctor-profile__name {
		font-size: 36px;
		line-height: 48px;
	}

	.doctor-profile__position {
		font-size: 18px;
		line-height: 26px;
	}

	.doctor-profile__credentials {
		font-size: 18px;
		line-height: 26px;
	}

	.doctor-profile__bio {
		margin-top: 24px;
		font-size: 18px;
		line-height: 26px;
	}

	.doctor-profile__bio blockquote p {
		font-size: 18px;
		line-height: 26px;
	}


	.doctor-profile__bio ul {
		gap: 14px;
	}

	.doctor-profile__bio ul li {
		font-size: 18px;
		line-height: 26px;
	}

	.doctor-profile__link,
	.doctor-profile__link:visited {
		font-size: 18px;
		line-height: 26px;
	}
}

/* ---- Desktop ---- */

@media (min-width: 1280px) {
	.grid-doctors-section {
		padding: 80px 20px;
	}

	.grid-doctors-section .section-inner {
		gap: 40px;
	}

	.grid-doctors-section .section-inner .column-header h2 {
		font-size: 40px;
		line-height: 52px;
	}

	.grid-doctors-section .section-inner .column-body {
		gap: 60px;
	}

	.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-content {
		padding: 0;
	}

	.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-content h3 {
		font-size: 32px;
		line-height: 42px;
	}

	.grid-doctors-section .section-inner .column-body .doctor-box .doctor-box-inner .doctor-box-content p {
		font-size: 18px;
		line-height: 26px;
	}

	.grid-doctors-section--stacked .section-inner {
		gap: 48px;
	}

	.doctor-profile {
		grid-template-columns: minmax(0, 440px) minmax(0, 600px);
		gap: 80px;
	}

	.doctor-profile:nth-child(even) {
		grid-template-columns: minmax(0, 600px) minmax(0, 440px);
	}

	.doctor-profile + .doctor-profile {
		margin-top: 80px;
		padding-top: 80px;
	}
}
