/* Hero card carousel: photo cards with a dark gradient, CSS scroll-snap and
   round arrow buttons. Shared by the client brochure (/b/<slug>, three cards
   across) and the Compass homepage's past-courses band (/compass, 1–2 across,
   shorter; overrides in compass.html). Behaviour: js/hero-carousel.js.

   A page sets the card width with --card-w and the gap with --card-gap. */
.br-carousel-wrap { position: relative; }
.br-carousel {
    display: flex; gap: var(--card-gap, 20px); overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.br-carousel::-webkit-scrollbar { display: none; }
.br-hcard {
    scroll-snap-align: start;
    flex: 0 0 var(--card-w, calc((100% - 40px) / 3));
    aspect-ratio: 4 / 3;
    border-radius: 14px; overflow: hidden;
    position: relative; display: flex; align-items: flex-end;
    background: linear-gradient(150deg, #123c66 0%, #0050a3 60%, #2f6fb8 100%);
    background-size: cover; background-position: center;
    color: #fff; text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 42, 74, .18);
    transition: transform .18s ease, box-shadow .18s ease;
}
.br-hcard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16, 42, 74, .26); }
.br-hcard::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,26,46,0) 30%, rgba(10,26,46,.55) 62%, rgba(10,26,46,.88) 100%);
}
.br-hcard-body { position: relative; padding: 22px 24px 20px; width: 100%; }
.br-hcard-team {
    font-size: 1.15rem; text-transform: uppercase; letter-spacing: .09em;
    color: rgba(255,255,255,.85); margin: 0 0 6px; font-weight: 600;
}
.br-hcard h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.15rem; line-height: 1.25; margin: 0 0 10px; color: #fff;
}
.br-hcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 1.3rem; color: rgba(255,255,255,.92); }
.br-hcard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.br-hcard-meta svg { flex: 0 0 auto; opacity: .8; }
.br-hcard-ct {
    margin: 10px 0 0; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.22);
    font-size: 1.25rem; line-height: 1.5; color: rgba(255,255,255,.88);
}
.br-hcard-ct-label {
    display: block; font-size: 1.05rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,.6); margin-bottom: 2px;
}

.br-car-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff; border: 1px solid var(--color-border);
    box-shadow: 0 4px 14px rgba(0,0,0,.14);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--color-primary-text); z-index: 2;
}
.br-car-btn:hover { background: var(--color-lighter-gray); }
.br-car-btn[hidden] { display: none; }
.br-car-btn:disabled { opacity: .4; cursor: default; }
.br-car-btn:disabled:hover { background: #fff; }
.br-car-prev { left: -14px; }
.br-car-next { right: -14px; }
@media (max-width: 700px) { .br-car-btn { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .br-hcard { transition: none; }
    .br-hcard:hover { transform: none; }
}
