/**
 * Vojia Clickable Sections - Hover Effects
 * Subtle hover effects for product category sections
 */

.vojia-clickable-section {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.vojia-clickable-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Hover effect for images */
.vojia-clickable-section:hover .wp-block-image img {
    transform: scale(1.05);
}

.vojia-clickable-section .wp-block-image {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.vojia-clickable-section .wp-block-image img {
    transition: transform 0.4s ease;
}

/* Hover effect for headings */
.vojia-clickable-section:hover h3 {
    color: #007cba !important;
    transform: translateX(5px);
}

.vojia-clickable-section h3 {
    transition: all 0.3s ease;
}

/* Hover effect for paragraphs */
.vojia-clickable-section:hover p {
    color: #333 !important;
}

.vojia-clickable-section p {
    transition: color 0.3s ease;
}

/* Add a subtle background highlight on hover */
.vojia-clickable-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.02) 0%, rgba(0, 90, 135, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
}

.vojia-clickable-section:hover::before {
    opacity: 1;
}

/* Ensure content stays above overlay */
.vojia-clickable-section > * {
    position: relative;
    z-index: 2;
}

/* Add a subtle border always visible */
.vojia-clickable-section {
    border: 2px solid rgba(0, 124, 186, 0.2);
}

.vojia-clickable-section:hover {
    border-color: rgba(0, 124, 186, 0.4);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .vojia-clickable-section:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
    
    .vojia-clickable-section:hover .wp-block-image img {
        transform: scale(1.03);
    }
    
    .vojia-clickable-section:hover h3 {
        transform: translateX(3px);
    }
}

/* Smooth focus states for accessibility */
.vojia-clickable-section:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.vojia-clickable-section:focus:not(:hover) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.2);
}