/* Single GMD member profile — use with single-gmd_member.php */

.gmd-single-breadcrumb {
    background-color: #53616b;
    background-position: center;
    background-size: cover;
}

.gmd-single-breadcrumb .breadcrumb-content {
    padding-top: 76px;
    padding-bottom: 65px;
}

.gmd-single-breadcrumb .page-titles {
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 750;
    margin: 0 0 10px;
}

.gmd-single-breadcrumb .page-outlined-text {
    opacity: .13;
}

.gmd-single-breadcrumb .page-switcher {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #f1f5f9;
    font-size: 13px;
}

.gmd-single-breadcrumb .page-switcher li {
    list-style: none;
}

.gmd-single-breadcrumb .page-switcher a {
    color: #fff;
    text-decoration: none;
}

.gmd-single-breadcrumb .page-switcher a:hover {
    color: #ffd2bd;
}

.gmd-profile-container {
    width: min(1240px, calc(100% - 40px));
    margin: 48px auto 70px;
}

.gmd-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.gmd-profile-main,
.gmd-profile-sidebar {
    min-width: 0;
}

.gmd-profile-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 42, 68, .06);
}

.gmd-profile-photo-wrap {
    position: relative;
/*     flex: 0 0 190px; */
/*     width: 190px; */
    height: 220px;
    overflow: hidden;
    border-radius: 13px;
    background: #edf2f8;
}

.gmd-profile-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    margin: 0;
}

.gmd-profile-initials {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #24499a;
    font-size: 58px;
    font-weight: 750;
}

.gmd-profile-flag {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 38px;
    height: 26px;
    border: 2px solid #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0002;
}

.gmd-profile-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmd-profile-intro {
    min-width: 0;
}

.gmd-profile-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #24499a;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.gmd-profile-intro h1 {
    margin: 0 0 8px;
    color: #253448;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.gmd-profile-designation {
    margin: 0 0 9px;
    color: #24499a;
    font-size: 16px;
    font-weight: 650;
}

.gmd-profile-organization {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: #657286;
    font-size: 14px;
}

.gmd-profile-organization .dashicons {
    font-size: 18px;
}

.gmd-profile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.gmd-profile-categories span {
    display: inline-flex;
    padding: 5px 10px;
    border: 1px solid #dfe7f2;
    border-radius: 99px;
    background: #f4f7fb;
    color: #536277;
    font-size: 11px;
    font-weight: 650;
}

.gmd-profile-panel,
.gmd-profile-side-card {
    margin: 0 0 22px;
    padding: 25px;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(24, 42, 68, .045);
}

.gmd-profile-panel h2,
.gmd-profile-side-card h2 {
    margin: 0 0 18px;
    color: #26364a;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.3;
}

.gmd-profile-content {
    color: #526176;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.gmd-profile-content> :first-child {
    margin-top: 0;
}

.gmd-profile-content> :last-child {
    margin-bottom: 0;
}

.gmd-profile-details {
    margin: 0;
}

.gmd-profile-detail-row {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f5;
}

.gmd-profile-detail-row:first-child {
    padding-top: 0;
}

.gmd-profile-detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gmd-profile-detail-row dt {
    color: #7a8798;
    font-size: 13px;
    font-weight: 650;
}

.gmd-profile-detail-row dd {
    margin: 0;
    color: #344357;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.gmd-profile-sidebar {
    position: sticky;
    top: 28px;
}

.gmd-profile-side-card {
    padding: 23px;
}

.gmd-profile-side-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.gmd-profile-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gmd-profile-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f5;
    list-style: none;
}

.gmd-profile-contact-list li:first-child {
    padding-top: 0;
}

.gmd-profile-contact-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gmd-profile-side-icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #edf3ff;
    color: #24499a;
    font-size: 18px;
}

.gmd-profile-contact-list li>span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.gmd-profile-contact-list small {
    color: #8290a2;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.gmd-profile-contact-list strong,
.gmd-profile-contact-list a {
    color: #334358;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.gmd-profile-contact-list a:hover {
    color: #24499a;
}

.gmd-profile-no-contact {
    margin: 0;
    color: #778496;
    font-size: 13px;
    line-height: 1.6;
}

.gmd-profile-socials {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.gmd-profile-socials a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e6ebf2;
    border-radius: 9px;
    color: #344357;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.gmd-profile-socials a:hover {
    border-color: #cbd8ed;
    background: #f7f9fd;
    color: #24499a;
}

.gmd-profile-directory-cta {
    background: linear-gradient(145deg, #f4f7ff, #fff);
    text-align: left;
}

.gmd-profile-directory-cta>.dashicons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #e5edff;
    color: #24499a;
    font-size: 25px;
}

.gmd-profile-directory-cta p {
    margin: 0 0 18px;
    color: #69778a;
    font-size: 13px;
    line-height: 1.65;
}

.gmd-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 9px;
    background: #24499a;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease;
}

.gmd-profile-button:hover {
    background: #183777;
}

.gmd-profile-comments {
    overflow: hidden;
}

.gmd-profile-comments img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1000px) {
    .gmd-profile-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 20px;
    }
    .gmd-profile-hero {
        gap: 20px;
        padding: 22px;
    }
    .gmd-profile-photo-wrap {
        flex-basis: 155px;
        width: 155px;
        height: 190px;
    }
    .gmd-profile-panel,
    .gmd-profile-side-card {
        padding: 21px;
    }
}

@media (max-width: 760px) {
    .gmd-profile-container {
        width: calc(100% - 30px);
        margin: 28px auto 45px;
    }
    .gmd-profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .gmd-profile-sidebar {
        position: static;
    }
    .gmd-profile-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }
    .gmd-profile-photo-wrap {
        flex: 0 0 auto;
        width: 155px;
        height: 175px;
    }
    .gmd-single-breadcrumb .breadcrumb-content {
        padding-top: 48px;
        padding-bottom: 42px;
    }
    .gmd-profile-detail-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }
}