/* =========================================
   Volunteers Plugin - Cards & Slider
   ========================================= */

.volunteers-wrapper {
    max-width: 1200px;
    margin: 1.5rem auto;
}

.volunteers-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.volunteers-category-button {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.volunteers-category-button:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.volunteers-category-button.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.volunteers-slider {
    position: relative;
}

.volunteers-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    scrollbar-width: none;
}

.volunteers-track::-webkit-scrollbar {
    display: none;
}

/* Default: 4 cards per view */
.volunteer-card {
    flex: 0 0 calc((100% - 36px) / 4);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Selected: 3 cards per view */
.volunteers-slider[data-slides-per-view="3"] .volunteer-card {
    flex: 0 0 calc((100% - 24px) / 3);
}

/* Selected: 2 cards per view */
.volunteers-slider[data-slides-per-view="2"] .volunteer-card {
    flex: 0 0 calc((100% - 12px) / 2);
}

/* Selected: 1 card per view */
.volunteers-slider[data-slides-per-view="1"] .volunteer-card {
    flex: 0 0 100%;
}

/* Responsive */
@media (max-width: 1200px) {
    .volunteers-slider[data-slides-per-view="4"] .volunteer-card,
    .volunteers-slider[data-slides-per-view="3"] .volunteer-card {
        flex: 0 0 calc((100% - 12px) / 2);
    }
}

@media (max-width: 640px) {
    .volunteers-slider .volunteer-card {
        flex: 0 0 100%;
    }
}

.volunteer-photo-link {
    display: block;
    text-decoration: none;
}

.volunteer-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.volunteer-avatar {
    width: 110px;
    height: 110px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 3px solid #e5e7eb;
    background: #e5e7eb;
}

.volunteer-name {
    margin: 0 0 2px;
    font-size: 1rem;
    line-height: 1.3;
}

.volunteer-name a {
    color: inherit;
    text-decoration: none;
}

.volunteer-name a:hover {
    color: #2563eb;
}

.volunteer-role {
    margin: 0 0 6px;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
}

.volunteer-interest {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 0.85rem;
}

.volunteer-excerpt {
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.4;
}

.volunteer-profile-button {
    display: inline-block;
    margin-top: 4px;
    padding: 7px 14px;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.volunteer-profile-button:hover {
    background: #1d4ed8;
    color: #fff;
}

.volunteer-social {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
}

.volunteer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.volunteer-social a:hover {
    background: #2563eb;
    color: #fff;
}

.volunteers-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
}

.volunteers-arrow:hover {
    opacity: 1;
}

.volunteers-prev {
    left: 6px;
}

.volunteers-next {
    right: 6px;
}

.volunteers-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
}

.volunteers-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}

.volunteers-dot.active {
    background: #2563eb;
}

.volunteers-empty {
    padding: 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #4b5563;
}

@media (max-width: 1200px) {
    .volunteer-card {
        flex: 0 0 calc(33.333% - 8px);
    }
}

@media (max-width: 900px) {
    .volunteer-card {
        flex: 0 0 calc(50% - 6px);
    }
}

@media (max-width: 640px) {
    .volunteer-card {
        flex: 0 0 100%;
    }
}

/* Force circular volunteer slider image */
.volunteer-photo .volunteer-avatar,
.volunteer-photo img.volunteer-avatar {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    min-width: 110px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.volunteer-photo .volunteer-placeholder,
.volunteer-photo .volunteer-avatar.volunteer-placeholder {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    min-width: 110px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2563eb !important;
    color: #fff !important;
}
.volunteer-photo .volunteer-avatar {
    border: 3px solid red !important;
}

/* Volunteer initials placeholder */
.volunteers-wrapper .volunteer-photo .volunteer-initials {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    min-width: 110px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2563eb !important;
    color: #fff !important;
    overflow: hidden !important;
}

.volunteers-wrapper .volunteer-photo .volunteer-initials span {
    display: block !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: clamp(2rem, 8vw, 3.25rem) !important;
}

.vol-profile-photo .vol-profile-avatar-placeholder span {
    display: block;
    line-height: 1;
    font-weight: 800;
    color: #fff;
    text-align: center;
    font-size: clamp(3rem, 10vw, 5rem);
}

/* Slider: 3 cards per view */
.volunteers-slider[data-slides-per-view="3"] .volunteer-card {
    flex: 0 0 calc((100% - 24px) / 3);
}

@media (max-width: 1200px) {
    .volunteers-slider[data-slides-per-view="3"] .volunteer-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width: 640px) {
    .volunteers-slider[data-slides-per-view="3"] .volunteer-card {
        flex: 0 0 100%;
    }
}

/* Slider: 2 cards per view */
.volunteers-slider[data-slides-per-view="2"] .volunteer-card {
    flex: 0 0 calc((100% - 12px) / 2);
}

@media (max-width: 640px) {
    .volunteers-slider[data-slides-per-view="2"] .volunteer-card {
        flex: 0 0 100%;
    }
}
