/* ===== Home page featured slider =====
   3 auto-rotating slides right below the navbar - "write an article" CTA,
   most-viewed profiles, most-viewed law firms. Shown to every visitor
   (unlike .hero below it, which is guest-only). */

.home-slider {
    position: relative;
    /* .hero (main.css) is normally the page's first section and clears the
       fixed navbar itself via padding-top: calc(var(--navbar-h) + 2rem) -
       now that this slider sits before it (shown to guests AND logged-in
       users, unlike .hero which is guest-only), this section needs that
       clearance instead; see the adjacent-sibling override below that
       drops hero's own top padding back down so they don't double up. */
    padding-top: var(--navbar-h, 72px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #2563eb 130%);
    color: #fff;
    overflow: hidden;
}

.home-slider + .hero { padding-top: 2rem; }

.home-slider-viewport {
    overflow: hidden;
}

.home-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.home-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.home-slide-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2.5rem 24px;
    text-align: center;
    min-height: 220px;
}

.home-slide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.home-slide-text h2 {
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
}

.home-slide-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.home-slide-cta {
    background: #fff;
    color: #1e293b;
    font-weight: 700;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-slide-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.home-slide--profiles .home-slide-inner,
.home-slide--firms .home-slide-inner {
    flex-direction: column;
    gap: 1rem;
}

.home-slide-people {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem;
    max-width: 720px;
}

.home-slide-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 92px;
    color: #fff;
    text-decoration: none;
}

.home-slide-person-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.home-slide-person-avatar--square { border-radius: 12px; }

.home-slide-person-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 700;
    font-size: 0.9rem;
}

.home-slide-person-name {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.home-slide-person-role {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.home-slide-person:hover .home-slide-person-name { text-decoration: underline; }

.home-slide-view-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.home-slider-nav:hover { background: rgba(255, 255, 255, 0.28); }

.home-slider-prev { inset-inline-start: 14px; }
.home-slider-next { inset-inline-end: 14px; }

.home-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
}

.home-slider-dot.is-active { background: #fff; }

@media (max-width: 640px) {
    .home-slider-nav { display: none; }
    .home-slide-inner { padding: 2rem 20px 2.5rem; min-height: 260px; }
}
