/* Hero Sections Public Styles */

/* Prevent horizontal scrolling when hero sections are edge-to-edge */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Additional body constraints for WordPress themes */
body.hero-active {
    overflow-x: hidden !important;
}

/* Utility class to break out of any container - WordPress specific */
.hero-full-width {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-section.text-left {
    text-align: left;
    justify-content: flex-start;
}

.hero-section.text-right {
    text-align: right;
    justify-content: flex-end;
}

.hero-section.text-center {
    text-align: center;
    justify-content: center;
}

/* Hero overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    margin: 0 auto;
}

.hero-section.text-left .hero-content {
    margin-left: 40px;
    margin-right: auto;
}

.hero-section.text-right .hero-content {
    margin-left: auto;
    margin-right: 40px;
}

/* Hero title */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.4;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Hero button */
.hero-button {
    display: inline-block;
    padding: 15px 30px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.hero-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.hero-button:focus {
    outline: none;
    border-color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .hero-section.text-left .hero-content,
    .hero-section.text-right .hero-content {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 250px;
    }
    
    .hero-content {
        padding: 20px 10px;
    }
    
    .hero-section.text-left .hero-content,
    .hero-section.text-right .hero-content {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Dark theme compatibility */
.hero-section.no-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Animation effects */
.hero-content {
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
.hero-section:focus-within {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

.hero-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Slideshow styles */
.hero-slideshow {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide.no-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navigation arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 3;
    line-height: 1;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev {
    left: 20px;
}

.hero-nav-next {
    right: 20px;
}

/* Navigation dots */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover,
.hero-dot.active {
    background: rgba(255, 255, 255, 0.8);
    border-color: white;
    transform: scale(1.2);
}

/* Responsive slideshow */
@media (max-width: 768px) {
    .hero-nav {
        font-size: 18px;
        padding: 10px 15px;
    }
    
    .hero-nav-prev {
        left: 10px;
    }
    
    .hero-nav-next {
        right: 10px;
    }
    
    .hero-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-nav {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .hero-nav-prev {
        left: 5px;
    }
    
    .hero-nav-next {
        right: 5px;
    }
    
    .hero-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
}

/* WordPress theme compatibility - Force edge-to-edge display */
.hero-section,
.hero-slideshow {
    /* Additional fallbacks for various WordPress themes */
    max-width: none !important;
}

/* Force full-width for ALL WordPress container scenarios */
.site .hero-full-width,
.site-content .hero-full-width,
.entry-content .hero-full-width,
.content-area .hero-full-width,
.main .hero-full-width,
.container .hero-full-width,
.wp-block-group .hero-full-width,
.wp-site-blocks .hero-full-width,
.wp-block .hero-full-width,
.hentry .hero-full-width,
.entry .hero-full-width,
.post .hero-full-width,
.page .hero-full-width,
.single .hero-full-width,
.archive .hero-full-width,
.blog .hero-full-width,
article .hero-full-width,
.wp-block-post-content .hero-full-width,
.entry-content .wp-block-group .hero-full-width {
    width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Additional overrides for stubborn themes */
.hero-full-width,
.hero-section.hero-full-width,
.hero-slideshow.hero-full-width {
    width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Print styles */
@media print {
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto;
        padding: 20px;
        border: 1px solid #ccc;
        width: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
        text-shadow: none !important;
    }
    
    .hero-button {
        display: none;
    }
    
    .hero-nav,
    .hero-dots {
        display: none;
    }
}
