
.type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
}
.type-chips a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}
.type-chips a:hover { border-color: #111; color: #111; }
.type-chips a.active { background: #111; border-color: #111; color: #fff; }



.um-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #111;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.um-btn:hover { background: #333; border-color: #333; color: #fff; }
.um-btn i { font-size: 16px; }


/* ---------------------------------------------------------
   Lead profile card  (image on the left, details on the right)
--------------------------------------------------------- */
.profile-hero {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 380px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    color: #111;
    text-decoration: none;
    transition: box-shadow .3s ease, border-color .3s ease;
}
a.profile-hero:hover {
    color: #111;
    border-color: #d2d2d2;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
}

.profile-hero-image {
    position: relative;
    overflow: hidden;
    background: #e9e9e9;
    min-height: 300px;
}
.profile-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* fills the box without stretching */
    object-position: top center;
    filter: grayscale(100%);
    transition: transform .6s ease, filter .4s ease;
}
a.profile-hero:hover .profile-hero-image img {
    transform: scale(1.03);
    filter: grayscale(70%);
}

.profile-hero-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 40px;
    min-width: 0;
}
.profile-hero .story-category { margin-bottom: 14px; }
.profile-hero-name {
    margin: 0 0 8px;
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.12;
    color: #111;
}
.profile-hero-role {
    margin-bottom: 16px;
    color: #b08a4a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
}
.profile-hero-text {
    margin: 0 0 18px;
    max-width: 560px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
.profile-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 22px;
    color: #444;
    font-size: 13px;
}
.profile-hero-facts:empty { display: none; }
.profile-hero-facts span { display: inline-flex; align-items: center; gap: 6px; }
.profile-hero-facts i { color: #b08a4a; font-size: 16px; }


/* ---------------------------------------------------------
   The listing grid  (3 cards per row on desktop)
--------------------------------------------------------- */
.profiles-grid.listing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   PROFILE DETAIL PAGE  ( /profile/{slug} )
========================================================= */
.profile-hero.detail { min-height: 460px; }
.profile-hero.detail .profile-hero-body { justify-content: center; padding: 48px 52px; }

.profile-links { display: flex; gap: 10px; }
.profile-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    color: #111;
    font-size: 17px;
    text-decoration: none;
    transition: all .25s ease;
}
.profile-links a:hover { background: #111; border-color: #111; color: #fff; }

.detail-heading {
    margin: 8px 0 16px;
    font-family: "Merriweather", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}
.post-body .detail-heading:not(:first-child) { margin-top: 34px; }

.achievement-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.achievement-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    line-height: 1.55;
}
.achievement-list i { color: #b08a4a; font-size: 20px; line-height: 1.2; }

.profile-story-card {
    position: relative;
    display: block;
    margin-top: 30px;
    padding: 22px 60px 22px 24px;
    border-radius: 14px;
    background: #111;
    color: #fff;
    text-decoration: none;
    transition: background .3s ease;
}
.profile-story-card:hover { background: #222; color: #fff; }
.profile-story-label { display: block; color: #d7b36d; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.profile-story-card strong { font-family: "Merriweather", Georgia, serif; font-size: 18px; line-height: 1.35; }
.profile-story-card i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #d7b36d; }

.facts-card {
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
}
.facts-card h3 { margin: 0 0 12px; font-family: "Merriweather", Georgia, serif; font-size: 17px; font-weight: 700; }
.facts-card dl { margin: 0; }
.facts-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.facts-card dl > div:last-child { border-bottom: 0; }
.facts-card dt { color: #777; font-weight: 500; }
.facts-card dd { margin: 0; color: #111; font-weight: 600; text-align: right; }


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1199.98px) {
    .profiles-grid.listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .profile-hero,
    .profile-hero.detail {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .profile-hero-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    .profile-hero-body,
    .profile-hero.detail .profile-hero-body { padding: 26px 22px; }
}

@media (max-width: 767.98px) {
    .profiles-grid.listing { grid-template-columns: 1fr; }
    .profile-hero-image { aspect-ratio: 16 / 9; }
    .profile-hero-name { font-size: 24px; }
    .profile-hero-text { font-size: 14px; }
    .profile-story-card { padding: 18px 54px 18px 18px; }
    .um-btn { width: 100%; justify-content: center; }
}

@media (max-width: 359.98px) {
    .profile-hero-body { padding: 20px 16px; }
}