/* ============================
   НОВІ АЛЬПІНІСТИ (life-web)
   Alpin Work style
============================ */

.aw-new-alpinists {
    padding: 3.5rem 0;
    background: linear-gradient(
        180deg,
        #f7fafb 0%,
        #f3f7f9 45%,
        #eef4f7 100%
    );
    border-top: 1px solid rgba(0, 54, 71, 0.06);
    border-bottom: 1px solid rgba(0, 54, 71, 0.04);
}

@media (min-width: 992px) {
    .aw-new-alpinists {
        padding: 4rem 0;
    }
}

/* Заголовок секції */

.aw-new-alpinists .aw-section-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.aw-new-alpinists .aw-section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #7b8b96;
    margin-bottom: 0.5rem;
}

.aw-new-alpinists .aw-section-title-main {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #022633;
}

@media (min-width: 992px) {
    .aw-new-alpinists .aw-section-title-main {
        font-size: 2.1rem;
    }
}

/* Темний акцент у заголовку ("промислові альпіністи") */
.aw-new-alpinists .aw-section-title-main span {
    color: #006b7f; /* Alpin Work teal */
}

.aw-new-alpinists .aw-section-subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: #5f6c75;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================
   СІТКА КАРТОК — ДЕСКТОП / ТАБЛЕТ
============================ */

.aw-new-alpinists-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 920px;
    margin: 0 auto;
}

/* Базова картка (десктоп/планшет) */

.aw-new-user-card {
    position: relative;
    width: 140px;
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.9rem 0.75rem 0.9rem;
    text-align: center;
    box-shadow: 0 8px 22px rgba(1, 32, 44, 0.08);
    border: 1px solid rgba(1, 46, 63, 0.04);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

@media (min-width: 992px) {
    .aw-new-alpinists-list {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .aw-new-user-card {
        width: 140px; /* 6 шт в ряд у типовому контейнері */
    }
}

.aw-new-user-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.aw-new-user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(1, 32, 44, 0.16);
    border-color: rgba(229, 196, 106, 0.65);
}

/* Аватар (десктоп) */

.aw-new-user-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 54, 71, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f6;
    position: relative;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}

.aw-new-user-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.aw-new-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aw-new-user-card:hover .aw-new-user-avatar {
    transform: scale(1.04);
    border-color: var(--aw-accent-gold, #E5C46A);
}

/* Ім’я */

.aw-new-user-login {
    font-weight: 600;
    font-size: 0.95rem;
    color: #12313e;
    word-break: break-word;
    line-height: 1.3;
}

/* Тултіп (десктоп) */

.aw-new-user-link::after {
    content: "Переглянути профіль";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, 8px);
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(2, 47, 59, 0.96);
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(1, 32, 44, 0.35);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.16s ease-out,
        transform 0.16s ease-out;
    z-index: 5;
}

@media (min-width: 992px) {
    .aw-new-user-card:hover .aw-new-user-link::after {
        opacity: 1;
        transform: translate(-50%, 2px);
    }
}

/* Нижній блок з кнопкою */

.aw-new-alpinists-footer {
    margin-top: 2.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ============================
   MOBILE / TABLET ≤ 991.98px
   2 картки в ряд, без накладання
============================ */

@media (max-width: 991.98px) {

    .aw-new-alpinists {
        padding: 2.4rem 16px 2.4rem;
        background: #f5fafc;
    }

    /* 2 картки в ряд, ровний gutter, без наїздів */
    .aw-new-alpinists-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.8rem;
        row-gap: 0.9rem;
        align-items: start;
        max-width: 100%;
        width: 100%;
        margin: 1.2rem 0 1.6rem;
    }

    /* Горизонтальна компактна картка */
    .aw-new-user-card {
        width: 100%;
        padding: 0.55rem 0.7rem;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid rgba(0, 54, 71, 0.08);
        box-shadow: none;
        display: flex;
        align-items: center;
        text-align: left;
        transform: none;
        align-self: start;
    }

    .aw-new-user-link {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 0.55rem;
        text-decoration: none;
        color: inherit;
    }

    /* Менший аватар зліва — не вилізає за картку */
    .aw-new-user-avatar {
        width: 36px;
        height: 36px;
        margin: 0;
        flex-shrink: 0;
        border-radius: 50%;
        overflow: hidden;
        border: 1px solid rgba(0, 54, 71, 0.12);
        background: #eef3f6;
    }

    .aw-new-user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .aw-new-user-login {
        font-size: 0.82rem;
        font-weight: 600;
        color: #12313e;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }

    .aw-new-user-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(0, 158, 158, 0.25);
    }

    .aw-new-user-link::after {
        display: none !important;
    }

    /* Кнопка "Усі" – компактна, по центру */
    .aw-new-alpinists-footer {
        padding: 0 16px;
        margin-top: 1.6rem !important;
        justify-content: center;
    }

    .aw-new-alpinists-footer .aw-btn.aw-btn-block-mobile {
        width: auto;
        max-width: 190px;
        padding: 0.55rem 1.4rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}
