/**
 * EzFix Custom Header - Frontend Styles
 * 
 * Styles for the custom header section displayed on product category pages
 */

.ezfix-custom-header-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    margin: 0 0;
    overflow: hidden;
    transition: background-image 1s ease-in-out, opacity 0.5s ease-in-out;
}

.ezfix-custom-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.ezfix-custom-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
}

.ezfix-custom-header-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    color: white;
    line-height: 1.2;
}

.ezfix-custom-header-content p {
    font-size: 1.4em;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ezfix-custom-header-section {
        padding: 60px 15px;
    }
    
    .ezfix-custom-header-content h2 {
        font-size: 2em;
        letter-spacing: 1px;
    }
    
    .ezfix-custom-header-content p {
        font-size: 1.1em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .ezfix-custom-header-section {
        padding: 40px 10px;
    }
    
    .ezfix-custom-header-content h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .ezfix-custom-header-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
}

/* Animation for smooth transitions */
.ezfix-custom-header-section {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure proper stacking with other elements */
.ezfix-custom-header-section {
    z-index: 10;
}

/* Override any conflicting styles */
.ezfix-custom-header-content h2,
.ezfix-custom-header-content p {
    margin-top: 0;
}

/* Ensure text is always visible */
.ezfix-custom-header-content h2,
.ezfix-custom-header-content p {
    color: #ffffff !important;
}
