/* =========================================================
   Dering Teachers — brand colors: navy #1C2D50, gold #D6B768
   ========================================================= */

/* Single teacher profile page — single left-aligned stacked column:
   name (bold) -> position -> photo -> text */
.dt-profile {
	max-width: 700px !important;
	margin: 0 !important;
	padding: 60px 40px !important;
	box-sizing: border-box !important;
}

.dt-profile__name {
	font-size: 40px;
	font-weight: 600;
	color: #1C2D50;
	margin: 0 0 8px;
	text-align: left;
}
.dt-profile__position {
	font-size: 18px;
	color: #8A8F98;
	margin: 0 0 32px;
	text-align: left;
}

.dt-profile__photo {
	margin-bottom: 32px;
}
.dt-profile__photo img {
	max-width: 320px;
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.dt-profile__text {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	text-align: left;
}
.dt-profile__text p:first-child {
	margin-top: 0;
}
/* Защита от глобальных сбросов шрифта в теме сайта — жирный/курсив
   из редактора должны всегда отображаться как жирный/курсив. */
.dt-profile__text strong,
.dt-profile__text b {
	font-weight: 700 !important;
}
.dt-profile__text em,
.dt-profile__text i {
	font-style: italic !important;
}

.dt-profile__back {
	margin-top: 48px;
	text-align: left;
}
.dt-profile__back a {
	color: #1C2D50;
	font-weight: 600;
	text-decoration: none;
}
.dt-profile__back a:hover {
	color: #D6B768;
}

/* Our Team grid (shortcode) */
.dt-grid {
	display: grid;
	grid-template-columns: repeat(var(--dt-columns, 4), 1fr);
	gap: 32px;
}

.dt-card {
	display: block;
	text-decoration: none;
	color: inherit;
	text-align: center;
}

.dt-card__photo {
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 16px;
	background: #F5F5F5;
}
.dt-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dt-card__photo-placeholder {
	width: 100%;
	height: 100%;
	background: #F5F5F5;
}

.dt-card__name {
	font-size: 17px;
	font-weight: 700;
	color: #1C2D50;
	margin-bottom: 4px;
}
.dt-card__position {
	font-size: 14px;
	color: #8A8F98;
}

.dt-card:hover .dt-card__name {
	color: #D6B768;
}

/* Responsive */
@media (max-width: 768px) {
	.dt-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.dt-grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
	.dt-profile__name {
		font-size: 30px;
	}
	.dt-profile {
		padding: 40px 20px;
	}
}
