.jgu-profile,
.jgu-profiles-grid {
    --jgu-navy: #18345f;
    --jgu-blue: #1497d4;
    --jgu-gold: #fdbb30;
    --jgu-border: #e5e9ef;
    --jgu-text: #1f2937;
}

.jgu-profile *,
.jgu-profiles-grid * {
    box-sizing: border-box;
}

.jgu-profile {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    max-width: 900px;
    margin: 0 0 32px;
}

.jgu-profile-photo {
    width: 280px !important;
    max-width: 100%;
    height: 350px !important;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f6;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
}

.jgu-profile-photo img,
.jgu-profile-photo > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 !important;
}

.jgu-profile-photo-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--jgu-navy), #234b87);
    color: #fff;
    font-size: 72px;
    font-weight: 700;
}

.jgu-profile-details {
    min-width: 0;
    padding-top: 4px;
}

.jgu-profile-position {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--jgu-blue);
}

.jgu-profile-meta {
    list-style: none !important;
    margin: 0 0 24px !important;
    padding: 18px 20px !important;
    background: #f6f8fb;
    border-left: 3px solid var(--jgu-gold);
    border-radius: 4px;
}

.jgu-profile-meta li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 0 !important;
    padding: 7px 0;
}

.jgu-profile-meta li + li {
    border-top: 1px solid var(--jgu-border);
}

.jgu-profile-meta-label {
    flex: 0 0 90px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jgu-navy);
}

.jgu-profile-meta a {
    color: var(--jgu-text);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.jgu-profile-meta a:hover,
.jgu-profile-meta a:focus {
    color: var(--jgu-blue);
    text-decoration: underline;
}

.jgu-profile-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--jgu-text);
}

.jgu-profile-description p:first-child {
    margin-top: 0;
}

.jgu-profiles-grid {
    --jgu-profiles-columns: 4;
    display: grid;
    grid-template-columns: repeat(var(--jgu-profiles-columns), minmax(0, 1fr));
    gap: 20px 18px;
}

.jgu-profiles-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--jgu-border);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    color: inherit;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jgu-profiles-card:not(.is-static):hover,
.jgu-profiles-card:not(.is-static):focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.11);
}

.jgu-profiles-card.is-static {
    cursor: default;
}

.jgu-profiles-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f6;
}

.jgu-profiles-photo img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
    margin: 0 !important;
}

.jgu-profiles-photo-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: #edf2f7;
    color: var(--jgu-navy);
    font-size: 34px;
    font-weight: 700;
}

.jgu-profiles-body {
    padding: 10px 9px 11px;
    text-align: center;
}

.jgu-profiles-name {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--jgu-navy);
}

.jgu-profiles-position {
    margin: 4px 0 0 !important;
    font-size: 11px;
    line-height: 1.35;
    color: #687386;
}

@media (max-width: 1024px) {
    .jgu-profiles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jgu-profile {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jgu-profile-photo {
        width: 220px !important;
        max-width: 220px;
        height: 275px !important;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .jgu-profiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }
}

/* Individual profile template variants */
.jgu-profile-template-compact {
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    gap: 24px;
    max-width: 820px;
}

.jgu-profile-template-compact .jgu-profile-photo {
    width: 210px !important;
    max-width: 210px;
    height: 262.5px !important;
}

.jgu-profile-template-compact .jgu-profile-meta {
    padding: 12px 16px;
}

.jgu-profile-template-detailed {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 42px;
    max-width: 1040px;
}

.jgu-profile-template-detailed .jgu-profile-photo {
    width: 300px !important;
    max-width: 300px;
    height: 375px !important;
}

.jgu-profile-template-detailed .jgu-profile-description {
    font-size: 1.03rem;
    line-height: 1.75;
}
