/* ==============================================
   AMP Compatibility Enhancements
   ============================================== */

/* Image fallback for missing avatars */
.bj-testimonial-avatar {
    display: block;
    background-color: #e5e7eb;
    color: #6b7280;
    font-size: 24px;
    text-align: center;
    line-height: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.bj-testimonial-avatar[alt] {
    object-fit: cover;
}

/* Make clickable divs with data-bj-navigate look and feel like links */
[data-bj-navigate] {
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-bj-navigate]:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Remove default button onclick behavior for accessibility */
button[data-bj-action],
[data-bj-action] {
    cursor: pointer;
}

/* Similar job item styling */
.bj-similar-job-item {
    transition: all 0.3s ease;
}

.bj-similar-job-item:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateX(4px);
}

/* Location view more button responsive */
.bj-view-more-locations {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.bj-view-more-locations:hover {
    border-color: #0066cc;
    color: #0066cc;
    background: #f0f8ff;
}

/* Loading state for images */
img.bj-testimonial-avatar {
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img.bj-testimonial-avatar[src] {
    animation: none;
    background: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
