/* ==========================================================================
   Anmol Digital — Home Team Professional Fix V2
   Purpose:
   - Center the team layout properly
   - Remove awkward empty space in incomplete rows
   - Make team preview premium, compact and responsive
   ========================================================================== */

.home-page .home-team-pro-v2 {
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 0, 0, .028), transparent 34%),
        linear-gradient(180deg, #f6f6f2 0%, #efefeb 100%);
}

.home-team-pro-v2 .container-fluid {
    width: min(calc(100% - 48px), 1260px) !important;
}

.home-team-pro-v2__intro {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.home-team-pro-v2__eyebrow {
    width: max-content;
    margin: 0 auto 14px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 999px;
    background: linear-gradient(145deg, #101010, #232323);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-team-pro-v2__intro h2 {
    margin: 0;
    color: #111111;
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.05em;
}

.home-team-pro-v2__description {
    max-width: 560px;
    margin: 14px auto 0;
    color: rgba(17, 17, 17, .58);
    font-size: 15px;
    line-height: 1.75;
}

.home-team-pro-v2__grid {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 26px;
}

.home-team-pro-v2__card {
    width: min(100%, 332px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f8f8f5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .96) inset,
        0 18px 42px rgba(0, 0, 0, .06);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.home-team-pro-v2__card:hover,
.home-team-pro-v2__card:focus-within {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, .12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 22px 48px rgba(0, 0, 0, .09);
}

.home-team-pro-v2__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.15;
    overflow: hidden;
    background: #080808;
}

.home-team-pro-v2__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .18));
    pointer-events: none;
}

.home-team-pro-v2__media img,
.home-team-pro-v2__placeholder {
    width: 100%;
    height: 100%;
}

.home-team-pro-v2__media img {
    display: block;
    object-fit: cover;
    object-position: center top;
}

.home-team-pro-v2__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #181818, #060606);
    color: #ffffff;
}

.home-team-pro-v2__placeholder span {
    font-size: clamp(56px, 8vw, 78px);
    font-weight: 900;
    letter-spacing: -.08em;
}

.home-team-pro-v2__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px 18px;
}

.home-team-pro-v2__role-chip {
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .06);
    color: rgba(17, 17, 17, .72);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-team-pro-v2__content h3 {
    margin: 0;
    color: #111111;
    font-size: clamp(25px, 2.5vw, 33px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.05em;
}

.home-team-pro-v2__bio {
    margin: 0;
    color: rgba(17, 17, 17, .58);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-team-pro-v2__socials {
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-team-pro-v2__socials a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 11px;
    background: #ffffff;
    color: rgba(17, 17, 17, .78);
    font-size: 12px;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.home-team-pro-v2__socials a:hover,
.home-team-pro-v2__socials a:focus-visible {
    background: #111111;
    color: #ffffff;
    transform: translateY(-2px);
    outline: none;
}

.home-team-pro-v2__action {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.home-team-pro-v2__action .button {
    min-height: 48px;
    padding-inline: 22px;
    border-radius: 999px;
    gap: 8px;
}

@media (max-width: 1024px) {
    .home-team-pro-v2__grid {
        max-width: 860px;
        gap: 22px;
    }

    .home-team-pro-v2__card {
        width: min(100%, 320px);
    }
}

@media (max-width: 680px) {
    .home-team-pro-v2 .container-fluid {
        width: calc(100% - 24px) !important;
    }

    .home-team-pro-v2__intro {
        margin-bottom: 24px;
    }

    .home-team-pro-v2__description {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .home-team-pro-v2__grid {
        gap: 18px;
    }

    .home-team-pro-v2__card {
        width: min(100%, 430px);
        border-radius: 18px;
    }

    .home-team-pro-v2__content {
        padding: 17px 15px 16px;
    }

    .home-team-pro-v2__action {
        margin-top: 24px;
    }

    .home-team-pro-v2__action .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .home-team-pro-v2 .container-fluid {
        width: calc(100% - 20px) !important;
    }

    .home-team-pro-v2__content h3 {
        font-size: 23px;
    }
}

@media (hover: none) {
    .home-team-pro-v2__card:hover,
    .home-team-pro-v2__socials a:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-team-pro-v2__card,
    .home-team-pro-v2__socials a {
        transition: none !important;
    }
}
