/* Copied from the existing Experts home featured cards (style.css). */
/* Home featured expert cards — aligned with expert search */
.home-expert-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(20, 43, 72, .06);
}

.home-expert-cover {
    position: relative;
    height: 74px;
    overflow: hidden;
    flex: 0 0 74px;
    border-bottom: 3px solid rgba(255, 140, 66, .82);
    background:
        linear-gradient(
            118deg,
            #172b3d 0%,
            #647584 31%,
            #263f56 62%,
            #0f4c81 100%
        );
}

.home-expert-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            112deg,
            rgba(255, 255, 255, .16) 0,
            rgba(255, 255, 255, .16) 1px,
            transparent 1px,
            transparent 13px
        ),
        linear-gradient(
            90deg,
            transparent 0 12%,
            rgba(255, 255, 255, .10) 12% 13%,
            transparent 13% 35%,
            rgba(255, 255, 255, .12) 35% 36%,
            transparent 36% 100%
        );
    opacity: .75;
}

.home-expert-cover::after {
    content: '';
    position: absolute;
    inset: 14px -18px auto 38%;
    height: 42px;
    border-top: 1px solid rgba(255, 255, 255, .34);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    transform: skewX(-22deg);
    box-shadow:
        0 7px 0 rgba(255, 255, 255, .07),
        0 14px 0 rgba(255, 255, 255, .05);
}

.home-expert-body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 51px 17px 17px;
}

.home-expert-avatar {
    position: absolute;
    top: -43px;
    right: 17px;
    width: 84px;
    height: 84px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #edf5fd;
    color: #0b4f93;
    box-shadow: 0 8px 20px rgba(20, 43, 72, .15);
    font-size: 27px;
    font-weight: 900;
}

.home-expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-expert-avatar span {
    line-height: 1;
}

.home-expert-verified {
    position: absolute;
    top: 12px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #08795a;
    font-size: 11px;
    font-weight: 900;
}

.home-expert-verified::before {
    content: '✓';
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e4f8f1;
}

.home-expert-name {
    margin: 0 0 6px;
    color: #073b70;
    font-size: 18px;
    line-height: 1.5;
}

.home-expert-title {
    min-height: 43px;
    margin: 0 0 6px;
    color: #172b4d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

.home-expert-meta {
    margin-bottom: 11px;
    color: #65758b;
    font-size: 12px;
    line-height: 1.8;
}

.home-expert-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 13px;
}

.home-expert-chip {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid #d8e4f7;
    border-radius: 999px;
    background: #f5f8fc;
    color: #073b70;
    font-size: 11px;
}

.home-expert-chip.is-primary {
    border-color: #a8e8d3;
    background: #eafbf5;
    color: #08795a;
    font-weight: 800;
}

.home-expert-locked {
    margin: 0 0 12px;
    padding: 9px 11px;
    border: 1px dashed #cadbf1;
    border-radius: 9px;
    background: #f8fbff;
    color: #65758b;
    font-size: 11px;
    line-height: 1.8;
}

.home-expert-link {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 1px solid #0b4f93;
    border-radius: 9px;
    color: #0b4f93;
    font-size: 13px;
    font-weight: 900;
    transition: .2s ease;
}

.home-expert-link:hover {
    background: #0b4f93;
    color: #fff;
}

@media (max-width: 560px) {
    .home-expert-cover {
        height: 68px;
        flex-basis: 68px;
    }

    .home-expert-body {
        padding: 49px 15px 15px;
    }

    .home-expert-avatar {
        top: -40px;
        right: 15px;
        width: 78px;
        height: 78px;
    }
}


/* Identity landing only: preserve the existing rating alongside the chips. */
.showcase-section .expert-grid {
    gap: 14px;
}

.home-expert-details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.home-expert-details .home-expert-chips {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.home-expert-details .home-expert-rating {
    flex: 0 0 auto;
    margin: 3px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f6a800;
    font-size: 12px;
}

.home-expert-details .home-expert-rating svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
}

@media (max-width: 1200px) {
    .showcase-section .expert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .showcase-section .expert-grid {
        grid-template-columns: 1fr;
    }
}
