/* ===== STAFF SECTION ===== */
.bg-team-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    position: relative;
}

.bg-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
}

.volunteers-option {
    position: relative;
    z-index: 2;
}

/* ===== STAFF CARDS ===== */
.volunteers-items {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 30px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.volunteers-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.volunteers-items:hover::before {
    transform: scaleX(1);
}

.volunteers-items:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== STAFF IMAGE ===== */
.volunteers-img {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.volunteers-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1.1) contrast(1.05);
}

.volunteers-items:hover .volunteers-img img {
    transform: scale(1.08);
    filter: brightness(1.2) contrast(1.1);
}

/* Image overlay effect */
.volunteers-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.volunteers-items:hover .volunteers-img::after {
    opacity: 1;
}

/* ===== STAFF CONTENT ===== */
.volunteers-content {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.volunteers-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.volunteers-content p {
    margin: 0;
    line-height: 1.6;
}

.volunteers-content p a {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.volunteers-content p a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.volunteers-content p a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.volunteers-content p a:hover::after {
    width: 100%;
}

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 1200px) {
    .col-md-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 992px) {
    .bg-team-section {
        padding: 60px 0;
    }

    .page-title h3 {
        font-size: 2.5rem;
    }

    .col-md-3,
    .col-sm-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .volunteers-img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .bg-page-header {
        padding: 60px 0 40px;
    }

    .page-title h3 {
        font-size: 2rem;
    }

    .bg-team-section {
        padding: 40px 0;
    }

    .col-md-3,
    .col-sm-3,
    .col-xs-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .volunteers-content {
        padding: 20px 15px;
    }

    .volunteers-content h5 {
        font-size: 16px;
    }

    .volunteers-content p a {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .volunteers-img {
        height: 200px;
    }

    .volunteers-content {
        padding: 15px;
    }

    .volunteers-content h5 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .volunteers-content p a {
        font-size: 14px;
    }
}

/* ===== LOADING ANIMATION ===== */
.volunteers-items {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.volunteers-items:nth-child(1) {
    animation-delay: 0.1s;
}

.volunteers-items:nth-child(2) {
    animation-delay: 0.2s;
}

.volunteers-items:nth-child(3) {
    animation-delay: 0.3s;
}

.volunteers-items:nth-child(4) {
    animation-delay: 0.4s;
}

.volunteers-items:nth-child(5) {
    animation-delay: 0.5s;
}

.volunteers-items:nth-child(6) {
    animation-delay: 0.6s;
}

.volunteers-items:nth-child(7) {
    animation-delay: 0.7s;
}

.volunteers-items:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ENHANCED FEATURES ===== */

/* No staff message */
.no-staff-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-staff-message i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-staff-message h4 {
    color: #495057;
    margin-bottom: 10px;
}

/* Filter/Search section (if needed) */
.staff-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

/* Staff count indicator */
.staff-count {
    text-align: center;
    margin-bottom: 40px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
}

/* Print styles */
@media print {

    .bg-page-header,
    .staff-filters {
        display: none;
    }

    .bg-team-section {
        background: white;
        padding: 20px 0;
    }

    .volunteers-items {
        box-shadow: none;
        border: 1px solid #dee2e6;
        margin-bottom: 20px;
        break-inside: avoid;
    }

    .volunteers-items:hover {
        transform: none;
    }
}

/* Accessibility enhancements */
.volunteers-items:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.volunteers-content p a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .volunteers-items {
        border: 2px solid #000;
    }

    .volunteers-content h5 {
        color: #000;
    }

    .volunteers-content p a {
        color: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .volunteers-items,
    .volunteers-img img,
    .volunteers-content p a {
        transition: none;
    }

    .volunteers-items:hover {
        transform: none;
    }

    .volunteers-items {
        animation: none;
        opacity: 1;
        transform: none;
    }
}