/**
 * Mortgage Pros Funding profile templates.
 * Install as: /css/profile-templates.css
 */

.mpf-team-card {
    overflow: hidden;
    border: 1px solid var(--mortgage-border);
    border-radius: 6px;
    background: var(--mortgage-white);
    box-shadow: 0 15px 45px rgba(16, 28, 70, 0.08);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.mpf-team-card:hover {
    border-color: rgba(33, 56, 138, 0.35);
    box-shadow: 0 20px 50px rgba(16, 28, 70, 0.13);
    transform: translateY(-4px);
}

.mpf-team-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    /*(background: var(--mortgage-soft-blue);*/	
	background: linear-gradient(145deg,var(--mortgage-blue),var(--mortgage-navy));
	border-bottom: 3px solid var(--mortgage-gold)
}

.mpf-team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition:
        opacity 0.35s ease,
        transform 0.5s ease;
}

.mpf-team-card__photo--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.mpf-team-card:hover .mpf-team-card__photo {
    transform: scale(1.025);
}

.mpf-team-card:hover .mpf-team-card__photo--hover {
    opacity: 1;
}

.mpf-team-card__placeholder,
.mpf-profile-portrait__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    /*color: var(--mortgage-blue);*/
	color: #fff;
    font-size: 6rem;
}

.mpf-team-card__body {
    padding: 28px 24px 30px;
}

.mpf-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--mortgage-navy);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mpf-profile-link:hover {
    color: var(--mortgage-blue);
}

.mpf-empty-state {
    padding: 55px 30px;
    border: 1px solid var(--mortgage-border);
    background: var(--mortgage-soft-blue);
}

.mpf-team-cta {
    padding: 50px 55px;
}

.mpf-profile-portrait {
    aspect-ratio: 4 / 5;
    background: var(--mortgage-soft-blue);
    box-shadow: 0 20px 55px rgba(16, 28, 70, 0.12);
}

.mpf-profile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mpf-profile-contact {
    padding: 32px;
    margin-top: 25px;
}

.mpf-profile-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--mortgage-white);
    overflow-wrap: anywhere;
}

.mpf-profile-contact__item:hover {
    color: var(--mortgage-gold);
}

.mpf-profile-contact__item i {
    flex: 0 0 auto;
}

.mpf-profile-contact__item small {
    display: block;
    margin-bottom: 1px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mpf-profile-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 22px;
}

.mpf-profile-socials a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--mortgage-white);
}

.mpf-profile-socials a:hover {
    border-color: var(--mortgage-gold);
    background: var(--mortgage-gold);
    color: var(--mortgage-navy);
}

.mpf-profile-quote {
    position: relative;
    padding: 24px 28px 24px 34px;
    margin: 28px 0;
    border-left: 4px solid var(--mortgage-gold);
    background: var(--mortgage-soft-blue);
    color: var(--mortgage-navy);
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
}

.mpf-profile-facts {
    margin-top: 30px;
}

.mpf-profile-fact {
    padding: 20px 22px;
    border: 1px solid var(--mortgage-border);
    border-radius: 6px;
    background: var(--mortgage-white);
}

.mpf-profile-fact span {
    display: block;
    margin-bottom: 5px;
    color: var(--mortgage-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mpf-profile-fact strong {
    display: block;
    color: var(--mortgage-navy);
    font-size: 17px;
}

.mpf-profile-fact strong .mpf-profile-license-item {
    margin-bottom: 4px;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    line-height: 1.45;
    text-transform: none;
}

.mpf-profile-fact strong .mpf-profile-license-item:last-child {
    margin-bottom: 0;
}

.mpf-profile-bio {
    margin-top: 40px;
    margin-bottom: 50px;
}

.mpf-profile-bio > :last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .mpf-team-cta {
        padding: 40px 35px;
    }
}

@media (max-width: 575px) {
    .mpf-team-card__body,
    .mpf-profile-contact {
        padding-right: 22px;
        padding-left: 22px;
    }

    .mpf-team-cta {
        padding: 35px 25px;
    }
}


/* ==========================================
   PROFILE ACTION PANEL
========================================== */

.profile-action-panel {
	position: relative;
	overflow: hidden;
	padding: 38px 40px;
	background:
		linear-gradient(
			135deg,
			rgba(17, 35, 82, 0.045) 0%,
			rgba(255, 255, 255, 1) 60%
		);
	border: 1px solid rgba(17, 35, 82, 0.1);
	border-radius: 12px;
	box-shadow: 0 18px 45px rgba(17, 35, 82, 0.08);
}

.profile-action-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(
		90deg,
		#f5b51b 0%,
		#f5b51b 24%,
		#263f91 24%,
		#263f91 100%
	);
}

.profile-action-content {
	position: relative;
	z-index: 1;
}

.profile-action-label {
	display: block;
	margin-bottom: 8px;
	color: #263f91;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.4;
	text-transform: uppercase;
}

.profile-action-title {
	max-width: 600px;
	margin-bottom: 10px;
	color: #111f48;
	font-size: 25px;
	font-weight: 700;
	letter-spacing: -0.6px;
	line-height: 1.3;
}

.profile-action-text {
	max-width: 650px;
	margin-bottom: 24px;
	color: #5a6278;
	font-size: 16px;
	line-height: 1.7;
}

.profile-action-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.profile-action-buttons .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	margin: 0;
	white-space: nowrap;
}

.profile-team-link {
	display: inline-flex;
	align-items: center;
	margin-top: 20px;
	color: #111f48;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.profile-team-link:hover {
	color: #263f91;
}

.profile-team-link i {
	color: #e4a912;
	font-size: 16px;
}

@media (max-width: 767px) {
	.profile-action-panel {
		padding: 30px 25px;
	}

	.profile-action-title {
		font-size: 22px;
	}

	.profile-action-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.profile-action-buttons .btn {
		width: 100%;
	}

	.profile-team-link {
		justify-content: center;
		width: 100%;
		text-align: center;
	}
}

.profile-action-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 25px;
	margin-top: 20px;
}

.profile-action-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #111f48;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.profile-action-link i {
	color: #e4a912;
	font-size: 16px;
}

.profile-action-link:hover {
	color: #263f91;
}

@media (max-width: 575px) {
	.profile-action-links {
		align-items: flex-start;
		flex-direction: column;
	}
}


/* ==========================================
   PROFILE DIRECTORY / EXPLORER CONSISTENCY
========================================== */

.mpf-profile-intro {
	padding: 22px 25px;
	border-left: 3px solid var(--mortgage-gold);
	background: var(--mortgage-soft-blue);
	color: var(--mortgage-navy);
	font-size: 17px;
	line-height: 1.7;
}

.mpf-profile-explorer-details {
	padding-top: 5px;
}

.mpf-profile-detail-group {
	padding: 20px 22px;
	border: 1px solid var(--mortgage-border);
	background: #fff;
}

.mpf-profile-detail-group > span {
	display: block;
	margin-bottom: 10px;
	color: var(--mortgage-body);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.mpf-profile-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.mpf-profile-detail-tags em {
	display: inline-flex;
	align-items: center;
	padding: 6px 9px;
	background: var(--mortgage-soft-blue);
	color: var(--mortgage-navy);
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.25;
}

.mpf-team-directory__filters {
	display: grid;
	grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(140px, 1fr));
	margin-bottom: 30px;
	border: 1px solid var(--mortgage-border);
	background: #fff;
	box-shadow: 0 12px 35px rgba(16, 28, 70, .05);
}

.mpf-team-directory__filters label {
	position: relative;
	min-width: 0;
	margin: 0;
	border-left: 1px solid var(--mortgage-border);
}

.mpf-team-directory__filters label:first-child {
	border-left: 0;
}

.mpf-team-directory__filters input,
.mpf-team-directory__filters select {
	width: 100%;
	height: 62px;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--mortgage-navy);
	font-size: 14px;
}

.mpf-team-directory__search i {
	position: absolute;
	top: 50%;
	left: 18px;
	color: var(--mortgage-blue);
	transform: translateY(-50%);
	pointer-events: none;
}

.mpf-team-directory__search input {
	padding-left: 48px;
}

.mpf-team-directory__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.mpf-team-directory-card {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--mortgage-border);
	background: #fff;
}

.mpf-team-directory-card[hidden] {
	display: none !important;
}

.mpf-team-directory-card__photo {
	display: block;
	min-height: 100%;
	background: linear-gradient(145deg, var(--mortgage-blue), var(--mortgage-navy));
	border-bottom: 3px solid var(--mortgage-gold);
}

.mpf-team-directory-card__photo img,
.mpf-team-directory-card__photo > span {
	width: 100%;
	height: 100%;
	min-height: 285px;
	object-fit: cover;
	object-position: center top;
}

.mpf-team-directory-card__photo > span {
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 58px;
}

.mpf-team-directory-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 27px 28px 23px;
}

.mpf-team-directory-card .program-eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--mortgage-blue);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.mpf-team-directory-card h3 {
	margin: 0 0 4px;
	color: var(--mortgage-navy);
	font-size: 23px;
	line-height: 1.2;
}

.mpf-team-directory-card h3 a {
	color: inherit;
}

.mpf-team-directory-card__position {
	margin: 0 0 10px;
	color: var(--mortgage-blue);
	font-size: 14px;
	font-weight: 700;
}

.mpf-team-directory-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 14px;
	margin-bottom: 13px;
	color: #6d7a85;
	font-size: 12px;
}

.mpf-team-directory-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.mpf-team-directory-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 13px;
}

.mpf-team-directory-card__tags span {
	padding: 5px 8px;
	background: var(--mortgage-soft-blue);
	color: var(--mortgage-navy);
	font-size: 11px;
	font-weight: 600;
}

.mpf-team-directory-card__bio {
	margin: 0 0 15px;
	color: var(--mortgage-body);
	font-size: 13px;
	line-height: 1.55;
}

.mpf-team-directory-card__details {
	display: grid;
	gap: 11px;
	padding-top: 14px;
	border-top: 1px solid var(--mortgage-border);
}

.mpf-team-directory-card__details div {
	display: grid;
	gap: 2px;
}

.mpf-team-directory-card__details strong {
	color: #89959d;
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.mpf-team-directory-card__details span {
	color: #53616c;
	font-size: 12px;
	line-height: 1.45;
}

.mpf-team-directory-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: auto;
	padding-top: 17px;
}

.mpf-team-directory-card__footer > a {
	color: var(--mortgage-navy);
	font-size: 13px;
	font-weight: 800;
}

.mpf-team-directory-card__footer > span {
	color: #74828c;
	font-size: 11px;
	font-weight: 700;
}

@media (max-width: 1199px) {
	.mpf-team-directory__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mpf-team-directory__search {
		grid-column: 1 / -1;
		border-bottom: 1px solid var(--mortgage-border);
	}

	.mpf-team-directory__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.mpf-team-directory__filters {
		grid-template-columns: 1fr;
	}

	.mpf-team-directory__filters label,
	.mpf-team-directory__filters label:first-child {
		border-top: 1px solid var(--mortgage-border);
		border-left: 0;
	}

	.mpf-team-directory__search {
		grid-column: auto;
		border-top: 0 !important;
	}

	.mpf-team-directory-card {
		grid-template-columns: 105px minmax(0, 1fr);
	}

	.mpf-team-directory-card__photo img,
	.mpf-team-directory-card__photo > span {
		min-height: 100%;
	}

	.mpf-team-directory-card__body {
		padding: 22px 20px;
	}
}

@media (max-width: 575px) {
	.mpf-team-directory-card {
		grid-template-columns: 1fr;
	}

	.mpf-team-directory-card__photo {
		aspect-ratio: 4 / 3;
	}

	.mpf-team-directory-card__photo img,
	.mpf-team-directory-card__photo > span {
		min-height: 0;
	}
}

/* ==========================================
   SHARED PROFILE DIRECTORY CARD
   Used by Meet Our Team + Loan Explorer
========================================== */
.mpf-profile-card{
	display:grid;
	grid-template-columns:150px minmax(0,1fr);
	min-width:0;
	overflow:hidden;
	border:1px solid var(--mortgage-border,#d7e1e7);
	border-radius:6px;
	background:#fff;
	box-shadow:0 10px 28px rgba(12,40,66,.05);
	transition: transform .2s ease,box-shadow .2s ease; }
	
.mpf-profile-card:hover{transform: translateY(-3px);box-shadow: 0 18px 42px rgba(16,40,70,.08);}

.mpf-profile-card[hidden]{display:none!important}
.mpf-profile-card__photo{
	display:block;
	min-height:100%;
	background:linear-gradient(145deg,var(--mortgage-blue,#0e5b86),var(--mortgage-navy,#0c2842));
	border-bottom:3px solid var(--mortgage-gold,#e3b34b);
}
.mpf-profile-card__photo img,
.mpf-profile-card__initials{
	display:block;
	width:100%;
	height:100%;
	min-height:280px;
	object-fit:cover;
	object-position:center top;
}
.mpf-profile-card__initials{
	display:grid;
	place-items:center;
	color:#fff;
	font-family:Georgia,serif;
	font-size:2rem;
	font-weight:700;
}
.mpf-profile-card__content{
	display:flex;
	flex-direction:column;
	min-width:0;
	padding:28px 30px 22px;
}
.mpf-profile-card .program-eyebrow{
	display:block;
	margin-bottom:7px;
	color:var(--mortgage-blue,#0e5b86);
	font-size:10px;
	font-weight:800;
	letter-spacing:.12em;
	line-height:1.35;
	text-transform:uppercase;
}
.mpf-profile-card h3{
	margin:0 0 4px;
	color:var(--mortgage-navy,#0c2842);
	font-size:23px;
	font-weight:600;
	line-height:1.18;
}
.mpf-profile-card h3 a{color:inherit}
.mpf-profile-card__position{
	margin:0 0 10px;
	color:var(--mortgage-blue,#0e5b86);
	font-size:13px;
	font-weight:700;
}
.mpf-profile-card__meta{
	display:flex;
	flex-wrap:wrap;
	gap:7px 14px;
	margin-bottom:13px;
	color:#6d7a85;
	font-size:12px;
}
.mpf-profile-card__meta span{display:inline-flex;align-items:center;gap:4px}
.mpf-profile-card__tags{
	display:flex;
	flex-wrap:wrap;
	gap:6px;
	margin-bottom:13px;
}
.mpf-profile-card__tags span{
	padding:5px 8px;
	border-radius:2px;
	background:var(--mortgage-soft-blue,#eef5f8);
	color:var(--mortgage-navy,#0c2842);
	font-size:10px;
	font-weight:600;
	line-height:1.4;
}
.mpf-profile-card__bio{
	margin:0 0 15px;
	color:var(--mortgage-body,#44515c);
	font-size:13px;
	line-height:1.55;
}
.mpf-profile-card__details{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:13px 20px;
	margin-top:4px;
	padding-top:16px;
	border-top:1px solid var(--mortgage-border,#d7e1e7);
}
.mpf-profile-card__detail>span{
	display:block;
	margin-bottom:4px;
	color:#89959d;
	font-size:9px;
	font-weight:800;
	letter-spacing:.1em;
	text-transform:uppercase;
}
.mpf-profile-card__detail p{
	margin:0;
	color:#53616c;
	font-size:11px;
	line-height:1.45;
}
.mpf-profile-card__footer{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:15px;
	margin-top:auto;
	padding-top:18px;
}
.mpf-profile-card__profile-link{
	color:var(--mortgage-navy,#0c2842);
	font-size:12px;
	font-weight:800;
}
.mpf-profile-card__status{
	color:#74828c;
	font-size:10px;
	font-weight:700;
}
.mpf-profile-card .mpf-select-officer{
	display:inline-flex;
	align-items:center;
	justify-content:flex-end;
	gap:7px;
	margin:0;
	padding:0;
	border:0;
	background:transparent;
	color:var(--mortgage-blue,#0e5b86);
	font-size:11px;
	font-weight:800;
	text-align:right;
}

/* Both directory pages use the same card width behavior. */
.mpf-team-directory__grid,
#officers .mpf-officer-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:20px;
}

@media(max-width:1100px){
	.mpf-team-directory__grid,
	#officers .mpf-officer-grid{grid-template-columns:1fr}
}
@media(max-width:767px){
	.mpf-profile-card{grid-template-columns:105px minmax(0,1fr)}
	.mpf-profile-card__photo img,
	.mpf-profile-card__initials{min-height:100%}
	.mpf-profile-card__content{padding:22px 20px 18px}
	.mpf-profile-card__details{grid-template-columns:1fr}
	.mpf-profile-card__footer{align-items:flex-start;flex-direction:column}
	.mpf-profile-card .mpf-select-officer{justify-content:flex-start;text-align:left}
}
@media(max-width:575px){
	.mpf-profile-card{grid-template-columns:1fr}
	.mpf-profile-card__photo{aspect-ratio:4/3}
	.mpf-profile-card__photo img,
	.mpf-profile-card__initials{min-height:0}
}

/* About Us: shared Loan Officer cards */
.mpf-profile-grid--about {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

@media (max-width: 991px) {
	.mpf-profile-grid--about {
		grid-template-columns: 1fr;
	}
}

/* Shared profile card phone link */
.mpf-profile-card__meta a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-decoration: none;
}
.mpf-profile-card__meta a:hover { color: var(--mortgage-blue); }
.mpf-profile-card__meta a i { color: var(--mortgage-blue); }

/* ==========================================
   SINGLE PROFILE HERO
========================================== */
.mpf-profile-hero {
	position: relative;
	overflow: hidden;
	/* padding: 70px 0 0; */
	/* background:
		radial-gradient(circle at 12% 12%, rgba(227, 179, 75, .12), transparent 31%),
		linear-gradient(115deg, #0c2842 0%, #102f4c 62%, #0e5b86 100%); */
	color: #fff;
}

.mpf-profile-hero::after {
	content: "";
	position: absolute;
	right: -170px;
	bottom: -230px;
	width: 530px;
	height: 530px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 50%;
}

.mpf-profile-hero__row {
	position: relative;
	z-index: 1;
	min-height: 560px;
}

.mpf-profile-hero__content {
	padding: 52px 35px 68px 0;
}

.mpf-profile-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: rgba(255, 255, 255, .7);
	font-size: 13px;
	font-weight: 600;
}

.mpf-profile-hero__back:hover {
	color: var(--mortgage-gold);
}

.mpf-profile-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	color: var(--mortgage-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.mpf-profile-hero__eyebrow::before {
	content: "";
	width: 30px;
	height: 2px;
	background: currentColor;
}

.mpf-profile-hero h1 {
	max-width: 720px;
	margin: 0 0 9px;
	color: #fff;
	font-size: clamp(46px, 5.2vw, 72px);
	font-weight: 600;
	letter-spacing: -.045em;
	line-height: 1.02;
}

.mpf-profile-hero__position {
	margin: 0 0 23px;
	color: rgba(255, 255, 255, .86);
	font-size: 19px;
	font-weight: 500;
}

.mpf-profile-hero__position span {
	padding: 0 5px;
	color: var(--mortgage-gold);
}

.mpf-profile-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 11px 23px;
	margin-bottom: 22px;
}

.mpf-profile-hero__meta a,
.mpf-profile-hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, .74);
	font-size: 13px;
	font-weight: 600;
}

.mpf-profile-hero__meta a:hover {
	color: var(--mortgage-gold);
}

.mpf-profile-hero__meta i {
	color: var(--mortgage-gold);
}

.mpf-profile-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 30px;
}

.mpf-profile-hero__tags span {
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .07);
	color: rgba(255, 255, 255, .82);
	font-size: 11px;
	font-weight: 700;
}

.mpf-profile-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mpf-profile-hero__portrait {
	position: relative;
	width: min(420px, 100%);
	height: 560px;
	margin-left: auto;
	overflow: hidden;
	background: linear-gradient(145deg, var(--mortgage-blue), var(--mortgage-navy));
	box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
}

.mpf-profile-hero__portrait::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 5px;
	background: var(--mortgage-gold);
}

.mpf-profile-hero__portrait img,
.mpf-profile-hero__portrait .mpf-profile-portrait__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.mpf-profile-contact--sticky {
	position: sticky;
	top: 105px;
	margin-top: 0;
}

@media (max-width: 991px) {
	.mpf-profile-hero {
		padding-top: 42px;
	}

	.mpf-profile-hero__row {
		min-height: 0;
	}

	.mpf-profile-hero__portrait {
		width: min(360px, 84vw);
		height: 440px;
		margin: 0 auto 8px;
	}

	.mpf-profile-hero__content {
		padding: 38px 0 58px;
		text-align: center;
	}

	.mpf-profile-hero__back,
	.mpf-profile-hero__eyebrow,
	.mpf-profile-hero__meta,
	.mpf-profile-hero__tags,
	.mpf-profile-hero__actions {
		justify-content: center;
	}

	.mpf-profile-hero h1 {
		margin-right: auto;
		margin-left: auto;
	}

	.mpf-profile-contact--sticky {
		position: static;
	}
}

@media (max-width: 575px) {
	.mpf-profile-hero {
		padding-top: 28px;
	}

	.mpf-profile-hero__portrait {
		width: 100%;
		height: 390px;
	}

	.mpf-profile-hero h1 {
		font-size: 42px;
	}

	.mpf-profile-hero__content {
		padding-bottom: 46px;
	}

	.mpf-profile-hero__position {
		font-size: 17px;
	}

	.mpf-profile-hero__meta {
		align-items: center;
		flex-direction: column;
		gap: 9px;
	}

	.mpf-profile-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.mpf-profile-hero__actions .btn {
		width: 100%;
	}
}

/* ==========================================
   TEAM DIRECTORY SEARCH + RESULT COUNT
========================================== */
.mpf-team-directory__search {
    position: relative;
}

.mpf-team-directory__search i {
    z-index: 2;
    pointer-events: none;
}

.mpf-team-directory__search input {
    position: relative;
    z-index: 1;
    padding-left: 42px !important;
}

.mpf-team-directory__search input:focus {
    padding-left: 42px !important;
}

.mpf-team-directory__results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 16px 0 22px;
    color: var(--mortgage-body, #5e6678);
    font-size: 12px;
    line-height: 1.4;
}

.mpf-team-directory__results-meta strong {
    color: var(--mortgage-navy, #101c46);
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 575px) {
    .mpf-team-directory__results-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* ==========================================
   PROFILE CARD LAYOUT VARIANTS - v9
   Directory: polished vertical marketing card
   Explorer: compact horizontal search result
========================================== */
.mpf-profile-card--directory{
	display:flex;
	flex-direction:column;
	min-width:0;
}
.mpf-profile-card--directory .mpf-profile-card__photo{
	aspect-ratio:4/5;
	min-height:0;
	border-bottom:3px solid var(--mortgage-gold,#e3b34b);
}
.mpf-profile-card--directory .mpf-profile-card__photo img,
.mpf-profile-card--directory .mpf-profile-card__initials{
	height:100%;
	min-height:0;
	aspect-ratio:4/5;
	object-fit:cover;
	object-position:center top;
}
.mpf-profile-card--directory .mpf-profile-card__content{
	flex:1;
	padding:23px 24px 20px;
}
.mpf-profile-card--directory .mpf-profile-card__bio{
	display:-webkit-box;
	overflow:hidden;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:3;
}
.mpf-profile-card__summary{
	margin-top:4px;
	padding-top:13px;
	border-top:1px solid var(--mortgage-border,#d7e1e7);
}
.mpf-profile-card__summary p{
	margin:0 0 5px;
	color:#53616c;
	font-size:11px;
	line-height:1.45;
}
.mpf-profile-card__summary p:last-child{margin-bottom:0}
.mpf-profile-card__summary p>span{
	display:inline-block;
	margin-right:7px;
	color:#89959d;
	font-size:9px;
	font-weight:800;
	letter-spacing:.08em;
	text-transform:uppercase;
}

/* Team/About cards: three-up on wide screens, two-up on medium. */
.mpf-team-directory__grid,
.mpf-profile-grid--about{
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:24px;
}

/* Loan Explorer: compact horizontal results, two-up on wide screens. */
#officers .mpf-officer-grid{
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:20px;
}
.mpf-profile-card--explorer{

	display:grid;
	grid-template-columns:126px minmax(0,1fr);
	min-height:220px;
}
.mpf-profile-card--explorer .mpf-profile-card__photo{
	min-height:100%;
	border-bottom:0;
	border-right:3px solid var(--mortgage-gold,#e3b34b);
}
.mpf-profile-card--explorer .mpf-profile-card__photo img,
.mpf-profile-card--explorer .mpf-profile-card__initials{
	height:100%;
	min-height:220px;
	object-fit:cover;
	object-position:center top;
}
.mpf-profile-card--explorer .mpf-profile-card__content{
	padding:20px 21px 17px;
}
.mpf-profile-card--explorer h3{font-size:20px}
.mpf-profile-card--explorer .mpf-profile-card__position{margin-bottom:8px}
.mpf-profile-card--explorer .mpf-profile-card__meta{gap:5px 10px;margin-bottom:10px}
.mpf-profile-card--explorer .mpf-profile-card__summary{margin-top:1px;padding-top:10px}
.mpf-profile-card--explorer .mpf-profile-card__footer{padding-top:13px;gap:10px}
.mpf-profile-card--explorer .mpf-profile-card__profile-link,
.mpf-profile-card--explorer .mpf-select-officer{font-size:11px}

@media(max-width:1199px){
	.mpf-team-directory__grid,
	.mpf-profile-grid--about{grid-template-columns:repeat(2,minmax(0,1fr))}
	#officers .mpf-officer-grid{grid-template-columns:1fr}
}
@media(max-width:767px){
	.mpf-team-directory__grid,
	.mpf-profile-grid--about{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
	.mpf-profile-card--directory .mpf-profile-card__content{padding:19px 17px 17px}
	.mpf-profile-card--directory h3{font-size:19px}
	.mpf-profile-card--explorer{grid-template-columns:105px minmax(0,1fr);min-height:190px}
	.mpf-profile-card--explorer .mpf-profile-card__photo img,
	.mpf-profile-card--explorer .mpf-profile-card__initials{min-height:190px}
	.mpf-profile-card--explorer .mpf-profile-card__footer{align-items:flex-start;flex-direction:column}
}
@media(max-width:575px){
	.mpf-team-directory__grid,
	.mpf-profile-grid--about{grid-template-columns:1fr}
	.mpf-profile-card--explorer{grid-template-columns:92px minmax(0,1fr);min-height:176px}
	.mpf-profile-card--explorer .mpf-profile-card__photo{aspect-ratio:auto;border-right:3px solid var(--mortgage-gold,#e3b34b);border-bottom:0}
	.mpf-profile-card--explorer .mpf-profile-card__photo img,
	.mpf-profile-card--explorer .mpf-profile-card__initials{min-height:176px;aspect-ratio:auto}
	.mpf-profile-card--explorer .mpf-profile-card__content{padding:17px 15px 14px}
	.mpf-profile-card--explorer h3{font-size:18px}
	.mpf-profile-card--explorer .mpf-profile-card__meta{font-size:11px}
}


/* ==========================================
   ABOUT US — MORTGAGE TEAM TEASER
   v19.1
========================================== */
.mpf-about-team .mpf-profile-grid--about{
  align-items:stretch;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card{
  height:100%;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__primary{
  min-height:0;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__meta{
  margin-top:10px;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__footer{
  margin-top:auto;
}

@media(max-width:767px){
  .mpf-about-team .row.align-items-end{
    align-items:flex-start!important;
  }

  .mpf-about-team .offset-lg-1{
    margin-left:0;
  }
}


/* ==========================================
   ABOUT US — TEAM LAYOUT BALANCE
   v19.2
========================================== */

.mpf-about-team{
  overflow:hidden;
}

.mpf-about-team__header{
  align-items:end;
  margin-bottom:34px;
}

.mpf-about-team__intro p{
  max-width:560px;
}

.mpf-about-team .mpf-profile-grid--about{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}

/* About teaser cards are intentionally denser than the full directory. */
.mpf-about-team .mpf-profile-grid--about .mpf-profile-card{
  min-width:0;
  height:100%;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__photo{
  aspect-ratio:4/5;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__photo img,
.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__initials{
  width:100%;
  height:100%;
  min-height:0;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__content{
  padding:18px 17px 16px;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card h3{
  font-size:18px;
  line-height:1.15;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__position{
  margin-bottom:7px;
  font-size:11px;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__meta{
  gap:5px 8px;
  margin-top:8px;
  margin-bottom:0;
  font-size:10px;
}

.mpf-about-team .mpf-profile-grid--about .mpf-profile-card__footer{
  margin-top:auto;
  padding-top:14px;
}

.mpf-about-team__cta{
  margin-top:30px;
}

@media(max-width:1199px){
  .mpf-about-team .mpf-profile-grid--about{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
  }

  .mpf-about-team__header{
    margin-bottom:28px;
  }
}

@media(max-width:767px){
  .mpf-about-team__header{
    align-items:flex-start!important;
    margin-bottom:24px;
  }

  .mpf-about-team__intro{
    margin-left:0!important;
  }

  .mpf-about-team__intro p{
    max-width:none;
  }

  .mpf-about-team .mpf-profile-grid--about{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }

  .mpf-about-team__cta{
    margin-top:24px;
  }
}

@media(max-width:575px){
  .mpf-about-team .mpf-profile-grid--about{
    grid-template-columns:1fr;
  }

  .mpf-about-team .mpf-profile-grid--about .mpf-profile-card__photo{
    aspect-ratio:4/4.6;
  }
}
