/* ==========================================================================
   Doctors: standards, list grid, profile page.
   ========================================================================== */

/* Standards */
.doctors-standards {
	background: var(--o2-soft);
}

.doctors-standards .section-heading__title span {
	color: var(--o2-accent);
}

.doctors-standards__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.doctor-std {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 20px 24px;
	border-radius: var(--o2-radius);
	background: var(--o2-white);
	box-shadow: var(--o2-shadow-card);
}

.doctor-std__num {
	position: absolute;
	top: 18px;
	right: 20px;
	color: var(--o2-wash);
	font-size: 36px;
	font-weight: 900;
	line-height: 1;
}

.doctor-std__title {
	margin: 6px 0 0;
	color: var(--o2-primary);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
}

.doctor-std__text {
	margin: 0;
	color: var(--o2-text);
	font-size: 15px;
}

/* List */
.doctors-list .section-heading__title span {
	color: var(--o2-accent);
}

.doctors-list__grid {
	gap: 40px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Profile hero */
.doctor-hero {
	padding: 24px 0 var(--o2-section-y);
	background: linear-gradient(180deg, var(--o2-soft) 0%, var(--o2-white) 100%);
}

.doctor-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: start;
	margin-top: 24px;
}

.doctor-hero__photo {
	overflow: hidden;
	border-radius: var(--o2-radius-lg) var(--o2-radius-lg) 120px var(--o2-radius-lg);
	background: var(--o2-wash);
	aspect-ratio: 1 / 1;
}

.doctor-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.doctor-hero__name {
	margin: 0;
	color: var(--o2-primary);
	font-size: var(--o2-fs-h2);
	font-weight: 900;
	line-height: 1.2;
}

.doctor-hero__position {
	margin: 8px 0 0;
	color: var(--o2-accent);
	font-size: 20px;
	font-weight: 700;
}

.doctor-hero__specialty {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	color: var(--o2-text-soft);
	font-size: 16px;
}

.doctor-hero__specialty .o2-icon {
	width: 20px;
	height: 20px;
	color: var(--o2-accent);
}

.doctor-hero__bio {
	margin-top: 20px;
	font-size: 17px;
}

.doctor-hero .o2-btn-row {
	margin-top: 28px;
}

/* Stats */
.doctor-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.doctor-stats__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 16px;
	border: 1px solid var(--o2-line);
	border-radius: var(--o2-radius-sm);
	background: var(--o2-white);
	text-align: center;
}

.doctor-stats__value {
	color: var(--o2-primary);
	font-size: 32px;
	font-weight: 900;
	line-height: 1.1;
}

.doctor-stats__label {
	color: var(--o2-text-soft);
	font-size: 14px;
}

/* Qualifications */
.doctor-qual {
	background: var(--o2-primary);
	color: var(--o2-white);
}

.doctor-qual__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 48px;
	align-items: start;
}

.doctor-qual__title {
	position: relative;
	margin: 0;
	color: var(--o2-white);
	text-align: left;
}

.doctor-qual__cols {
	display: grid;
	gap: 32px;
}

.doctor-qual__list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.doctor-qual__list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 17px;
}

.doctor-qual__list .o2-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--o2-secondary);
}

.doctor-history__title {
	position: relative;
	margin: 0 0 14px;
	color: var(--o2-secondary);
	font-size: 20px;
	font-weight: 800;
}

.doctor-history__list {
	margin: 0;
	padding: 0;
	border-left: 2px solid rgba(255, 255, 255, 0.25);
	list-style: none;
}

.doctor-history__list li {
	position: relative;
	padding: 0 0 14px 22px;
	font-size: 16px;
}

.doctor-history__list li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: -7px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--o2-secondary);
	border-radius: 50%;
	background: var(--o2-primary);
}

/* Reviews / posts */
.doctor-reviews {
	background: var(--o2-soft);
}

.doctor-others {
	padding-bottom: var(--o2-section-y);
}

@media (max-width: 1199px) {
	.doctors-standards__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.doctor-hero__grid,
	.doctor-qual__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.doctor-hero__photo {
		max-width: 480px;
		border-radius: var(--o2-radius-lg) var(--o2-radius-lg) 72px var(--o2-radius-lg);
	}

	.doctor-hero__name {
		font-size: 32px;
	}
}

@media (max-width: 767px) {
	.doctors-standards__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.doctor-std {
		padding: 20px 14px;
	}

	.doctors-list__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	.doctor-hero__name {
		font-size: 28px;
	}

	.doctor-stats {
		gap: 8px;
	}

	.doctor-stats__item {
		padding: 14px 8px;
	}

	.doctor-stats__value {
		font-size: 24px;
	}

	.doctor-stats__label {
		font-size: 13px;
	}

	.doctor-hero .o2-btn-row > * {
		flex: 1 1 100%;
	}
}

@media (max-width: 390px) {
	.doctors-standards__list {
		grid-template-columns: 1fr;
	}
}
