/* Gire Meet the Staff Widget Styles */

.gire-meet-staff-widget {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gire-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    align-items: stretch;
}

/* Staff Card Base Styles */
.gire-meet-staff-widget .staff-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Card Hover Effects */
.gire-meet-staff-widget .staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gire-meet-staff-widget .staff-card:hover .staff-image img {
    transform: scale(1.05);
}

/* Staff Image Styles */
.gire-meet-staff-widget .staff-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.gire-meet-staff-widget .staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 20px 20px 0 0;
}

/* Gradient Overlay on Image */
.gire-meet-staff-widget .staff-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
}

/* Card Content */
.gire-meet-staff-widget .staff-card-content {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Staff Name */
.gire-meet-staff-widget .staff-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.2;
    position: relative;
}

.gire-meet-staff-widget .staff-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 2px;
}

/* Staff Title */
.gire-meet-staff-widget .staff-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4a90e2;
    margin: 0 0 20px 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Staff Info Container */
.gire-meet-staff-widget .staff-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

/* Staff Field Styles */
.gire-meet-staff-widget .staff-field {
    position: relative;
    padding: 0;
}

.gire-meet-staff-widget .staff-field-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    position: relative;
}

.gire-meet-staff-widget .staff-field-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Special Styling for Specific Fields */
.gire-meet-staff-widget .staff-field:first-child .staff-field-label {
    color: #e74c3c;
}

.gire-meet-staff-widget .staff-field:nth-child(2) .staff-field-label {
    color: #27ae60;
}

.gire-meet-staff-widget .staff-field:nth-child(3) .staff-field-label {
    color: #f39c12;
}

.gire-meet-staff-widget .staff-field:nth-child(4) .staff-field-label {
    color: #9b59b6;
}

.gire-meet-staff-widget .staff-field:nth-child(5) .staff-field-label {
    color: #1abc9c;
}

/* Card Accent Border */
.gire-meet-staff-widget .staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #005bac 100%);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gire-meet-staff-widget .staff-card:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gire-staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .gire-meet-staff-widget .staff-image {
        height: 250px;
    }
    
    .gire-meet-staff-widget .staff-card-content {
        padding: 25px 20px;
    }
    
    .gire-meet-staff-widget .staff-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gire-staff-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .gire-meet-staff-widget .staff-image {
        height: 280px;
    }
    
    .gire-meet-staff-widget .staff-card-content {
        padding: 25px 20px;
        gap: 14px;
    }
    
    .gire-meet-staff-widget .staff-name {
        font-size: 1.6rem;
    }
    
    .gire-meet-staff-widget .staff-title {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    
    .gire-meet-staff-widget .staff-info {
        gap: 16px;
    }
    
    .gire-meet-staff-widget .staff-field-label {
        font-size: 0.9rem;
    }
    
    .gire-meet-staff-widget .staff-field-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .gire-staff-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .gire-staff-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .gire-meet-staff-widget .staff-card-content {
        padding: 20px 15px;
    }
    
    .gire-meet-staff-widget .staff-name {
        font-size: 1.4rem;
    }
    
    .gire-meet-staff-widget .staff-image {
        height: 260px;
    }
}

/* Animation for Cards Loading */
.gire-meet-staff-widget .staff-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.gire-meet-staff-widget .staff-card:nth-child(1) {
    animation-delay: 0.1s;
}

.gire-meet-staff-widget .staff-card:nth-child(2) {
    animation-delay: 0.2s;
}

.gire-meet-staff-widget .staff-card:nth-child(3) {
    animation-delay: 0.3s;
}

.gire-meet-staff-widget .staff-card:nth-child(4) {
    animation-delay: 0.4s;
}

.gire-meet-staff-widget .staff-card:nth-child(5) {
    animation-delay: 0.5s;
}

.gire-meet-staff-widget .staff-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

/* Accessibility Improvements */
.gire-meet-staff-widget .staff-card:focus-within {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .gire-meet-staff-widget .staff-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        transform: none !important;
    }
    
    .gire-meet-staff-widget .staff-card:hover {
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .gire-meet-staff-widget .staff-card {
        border: 2px solid #000;
    }
    
    .gire-meet-staff-widget .staff-name {
        color: #000;
    }
    
    .gire-meet-staff-widget .staff-field-label {
        color: #000;
    }
}

/* Force single column on small screens regardless of Elementor settings */
@media (max-width: 767px) {
    .elementor-widget-gire_meet_the_staff .gire-staff-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .elementor-widget-gire_meet_the_staff .gire-staff-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .gire-meet-staff-widget .staff-card {
        transition: none;
        animation: none;
    }
    
    .gire-meet-staff-widget .staff-card:hover {
        transform: none;
    }
    
    .gire-meet-staff-widget .staff-image img {
        transition: none;
    }
    
    .gire-meet-staff-widget .staff-card:hover .staff-image img {
        transform: none;
    }
}