/* DMW Hero Section Styles */
.dmw-hero-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
	border-top:6px solid #4A7C59;
	border-bottom:6px solid #4A7C59;
}

.dmw-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dmw-hero-container {
    position: relative;
    z-index: 2;
}

/* Ensure existing hero styles work with background */
.dmw-hero-section .dmw-hero-content {
    position: relative;
    z-index: 2;
}

/* Make text more readable on background images */
.dmw-hero-section .dmw-hero-heading,
.dmw-hero-section .dmw-hero-description,
.dmw-hero-section .dmw-card-heading {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ensure buttons stand out */
.dmw-hero-section .dmw-btn-primary,
.dmw-hero-section .dmw-btn-secondary {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero GLASS card - Using unique class name to avoid conflicts */
/* Override any theme .hero-card styles */
.dmw-hero-section .hero-card.dmw-hero-glass-card,
.hero.dmw-hero-section .hero-card.dmw-hero-glass-card,
.dmw-hero-glass-card {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    background-blend-mode: normal !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
}

/* Nuclear option - remove ALL background properties */
.dmw-hero-glass-card *,
.dmw-hero-section .hero-card.dmw-hero-glass-card * {
    background-blend-mode: normal !important;
}

/* Remove any background images or gradients that might be on the card */
.dmw-hero-glass-card::before,
.dmw-hero-glass-card::after {
    display: none !important;
}

/* Ensure card text is readable on glass background */
.dmw-hero-glass-card .dmw-card-heading,
.dmw-hero-glass-card .dmw-card-description {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

/* Ensure feature badges are visible with glass effect */
.dmw-hero-glass-card .dmw-feature-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    display: inline-block !important;
}

/* Background image persistence - prevent lazy loading issues */
.dmw-hero-section[style*="background-image"] {
    background-attachment: scroll !important;
    will-change: background-position;
}

/* Force background to stay loaded */
.dmw-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Animation for fade-in effect */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dmw-hero-section .fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dmw-hero-section {
        min-height: 500px;
    }
    
    .dmw-hero-section .dmw-hero-heading {
        font-size: 1.75rem;
    }
    
    /* Slightly increase card opacity on mobile for better readability */
    .dmw-hero-glass-card {
        background: rgba(255, 255, 255, 0.08) !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
    }
}
