/* MLC Agent Pages – agent page design (ticket #64797) */

.mlc-agent-page {
	--mlc-blue: #375169;
	--mlc-font: "Helvetica Neue LT Pro", "Helvetica Neue LT Std", "Helvetica Neue LT", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Name shown once: theme title hidden (also removed in PHP) */
.mlc-agent-page .page-header { display: none; }

/* Font and colour across the agent content */
.mlc-agent-page .es-agent-single,
.mlc-agent-page .es-agent-single p,
.mlc-agent-page .es-agent-single li,
.mlc-agent-page .es-agent-single span,
.mlc-agent-page .es-agent-single a,
.mlc-agent-page .es-agent-single label,
.mlc-agent-page .es-agent-single input,
.mlc-agent-page .es-agent-single textarea,
.mlc-agent-page .es-agent-single button {
	font-family: var(--mlc-font);
}
.mlc-agent-page .es-agent-single {
	color: var(--mlc-blue);
	font-weight: 400;
}
.mlc-agent-page .es-agent-single .es-entity-fields,
.mlc-agent-page .es-agent-single .es-entity-field,
.mlc-agent-page .es-agent-single .es-entity-field__value,
.mlc-agent-page .es-agent-single .es-agent-field__label {
	color: var(--mlc-blue);
	font-family: var(--mlc-font);
}
.mlc-agent-page .es-agent-single h1,
.mlc-agent-page .es-agent-single h2,
.mlc-agent-page .es-agent-single h3,
.mlc-agent-page .es-agent-single h4,
.mlc-agent-page .es-agent-single .es-entity-section__title {
	font-family: var(--mlc-font);
	font-weight: 700;
	color: var(--mlc-blue);
}
.mlc-agent-page .es-entity-section__title {
	font-size: 34px;
	line-height: 1.2;
}

/* ---------- Header ---------- */
.mlc-agent-header {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 40px;
	align-items: start;
	padding: 30px 0 20px;
	color: var(--mlc-blue);
}
.mlc-agent-header__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 0;
}
.mlc-agent-page .mlc-agent-header__name {
	margin: 0 0 8px;
	font-size: 52px;
	line-height: 1.05;
	font-weight: 700;
	color: var(--mlc-blue);
}
.mlc-agent-header__title {
	margin: 0 0 18px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
}
.mlc-agent-header__contacts {
	display: flex;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.mlc-agent-header__contacts a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--mlc-blue);
	color: #fff !important;
	text-decoration: none;
	transition: opacity .15s;
}
.mlc-agent-header__contacts a:hover,
.mlc-agent-header__contacts a:focus { opacity: .8; }

.mlc-agent-highlights__lead {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 700;
}
.mlc-agent-highlights__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mlc-agent-highlights__list li {
	margin: 0;
	padding-top: 10px;
	border-top: 1px solid rgba(55, 81, 105, .3);
	font-size: 15px;
	line-height: 1.4;
}

/* Contact form labels were white on the beige background */
.mlc-agent-page .es-entity_section--request_form label,
.mlc-agent-page .es-entity_section--request_form .es-field__label,
.mlc-agent-page .es-entity_section--request_form .es-entity-section__title {
	color: var(--mlc-blue) !important;
}

/* ---------- News ---------- */
.mlc-agent-news {
	margin-top: 50px;
}
/* Title stays display:block (as in Estatik) so its divider line starts after the badge */
.mlc-agent-news__count {
	vertical-align: middle;
	position: relative;
	top: -3px;
	margin-left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 14px;
	background: #c0392b;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}
.mlc-agent-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.mlc-agent-news__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 22px;
}
.mlc-agent-news__card time {
	font-size: 12px;
	letter-spacing: .6px;
	text-transform: uppercase;
	opacity: .8;
}
.mlc-agent-page .mlc-agent-news__card h4 {
	margin: 8px 0 10px;
	font-size: 18px;
	line-height: 1.3;
}
.mlc-agent-news__card h4 a {
	color: var(--mlc-blue);
	text-decoration: none;
}
.mlc-agent-news__card h4 a:hover { text-decoration: underline; }
.mlc-agent-news__card p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.5;
}
.mlc-agent-page .mlc-agent-news__more {
	margin-top: auto;
	font-weight: 700;
	color: var(--mlc-blue);
	text-decoration: underline;
}
.mlc-agent-page .mlc-agent-news__all {
	display: inline-block;
	margin-top: 22px;
	padding: 12px 26px;
	background: var(--mlc-blue);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .3px;
}
.mlc-agent-page .mlc-agent-news__all:hover,
.mlc-agent-page .mlc-agent-news__all:focus { opacity: .85; color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.mlc-agent-news__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.mlc-agent-header {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.mlc-agent-header__photo { max-width: 260px; }
	.mlc-agent-page .mlc-agent-header__name { font-size: 38px; }
	.mlc-agent-header__title { font-size: 19px; }
	.mlc-agent-page .es-entity-section__title { font-size: 27px; }
}
