/* EKB-393 — Experts List Collection card grid.
   Kept in its own file (not styles.css) so this component's look can diverge
   from Holiday Planners List Collection / People Cards Collection independently.
   Layout/typography matches Figma (node 6057-6812). */

.experts-list-collection__header {
    text-align: center;
    margin-inline: auto;
    margin-block-end: var(--space-4);
}

.experts-list-collection__header h3 {
    margin-block-end: var(--space-1);
    white-space: nowrap;
}

.experts-list-collection__header p {
    margin-inline: auto;
    max-width: 46rem;
}

@media screen and (max-width: 48rem) {
    .experts-list-collection__header h3 {
        white-space: normal;
    }
}

.experts-list-collection__grid {
    --grid-gap: var(--space-3);
    align-items: stretch;
}

/* Boxed cards: white panel with a soft shadow, separated by the grid gap. */
.experts-list-collection__card {
    --card-border: none;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3);
    text-align: center;
}

.experts-list-collection__avatar {
    width: 8.75rem;
    height: 8.75rem;
    border-radius: 50%;
    overflow: hidden;
    margin-block-end: var(--space-2);
    flex-shrink: 0;
}

.experts-list-collection__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experts-list-collection__name {
    color: var(--c-navy-blue);
    margin-block-end: var(--space-05);
}

.experts-list-collection__role {
    /* Matches the site's existing .t-label eyebrow-caption pattern (styles.css) —
       proxima-nova, --ts-label/--lh-label, weight 600, uppercase — just recolored orange. */
    color: var(--c-burnt-orange);
    font-family: var(--font-primary);
    font-size: var(--ts-label);
    font-weight: 600;
    line-height: var(--lh-label);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-block-end: var(--space-2);
}

.experts-list-collection__description {
    font-family: var(--font-primary);
    font-size: var(--ts-body);
    line-height: var(--lh-body);
    color: var(--c-navy-blue);
    text-align: start;
    margin-block-end: var(--space-3);
}

/* Full-width CTA pinned to the bottom so buttons line up across a row. */
.experts-list-collection__card .cta {
    margin-block-start: auto;
    align-self: stretch;
    width: 100%;
}
