/**
 * FOE Hero Banner Module Styles
 * @package     FOE Hero Banner Module
 * @subpackage  mod_foe_herobanner
 * @author      FOE Development
 * @copyright   Copyright (C) 2024. All rights reserved.
 * @license     GNU General Public License version 2 or later
 */

.foe-hero-banner {
    position: absolute;
    top: 0;
    width: 100vw;
    left:0;
    max-width: unset;
}

.foe-hero-banner-spacer{
    height: 280px;
}
/* Hero Banner Wrapper */
.mod-foe-herobanner-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Owl Carousel Hero Banner */
.foe-herobanner-slider {
    position: relative;
    width: 100%;
    height: var(--hero-height, 500px);
    margin: 0;
    padding: 0;
}

/* Hero Slide */
.hero-slide {
    position: relative;
    width: 100%;
    height: var(--hero-height, 500px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Image */
.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: var(--slide-bg-image);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Overlay */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hero-overlay-color, #000000);
    opacity: var(--hero-overlay-opacity, 0.3);
    z-index: 2;
}

/* Content Container */
.hero-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slide Text Content */
.hero-slide-text {
    max-width: 100%;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
    margin-left: 30px;
}
.hero-slide-text h1,.hero-slide-text .hero-slide-subtitle {
    background: #000;
    color: #FFF;
    border-radius: 10px;
    border-left: 5px solid #E72B29;
    padding:1rem;
}
.hero-slide-text h1{
    font-size: 3rem;
}

.hero-slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--slide-title-color, #ffffff);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    hyphens: auto;
}

.hero-slide-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-slide-title-link:hover,
.hero-slide-title-link:focus {
    color: inherit;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.hero-slide-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
    color: var(--slide-subtitle-color, #ffffff);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

/* Owl Carousel Navigation for Hero Banner */
.foe-herobanner-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 0;
    margin: 0;
    pointer-events: none;
    z-index: 4;
}

.foe-herobanner-slider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
    border: none !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    outline: none;
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.foe-herobanner-slider .owl-nav .owl-prev {
    left: 2rem;
}

.foe-herobanner-slider .owl-nav .owl-next {
    right: 2rem;
}

.foe-herobanner-slider .owl-nav button:hover,
.foe-herobanner-slider .owl-nav button:focus {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.foe-herobanner-slider .owl-nav button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 3px;
}

.foe-herobanner-slider .owl-nav button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.foe-herobanner-slider .owl-nav button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Owl Carousel Dots for Hero Banner */
.foe-herobanner-slider .owl-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
    padding: 0;
    z-index: 4;
}

.foe-herobanner-slider .owl-dots button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    margin: 0 8px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    cursor: pointer;
    padding: 0 !important;
    backdrop-filter: blur(5px);
}

.foe-herobanner-slider .owl-dots button:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 1) !important;
}

.foe-herobanner-slider .owl-dots button:focus {
    outline: 2px solid #0d6efd !important;
    outline-offset: 3px;
}

.foe-herobanner-slider .owl-dots button.active {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Owl Carousel Fade Animation Support */
.foe-herobanner-slider .owl-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.foe-herobanner-slider .owl-item.active {
    opacity: 1;
}

/* Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Management */
.foe-herobanner-slider:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .foe-herobanner-slider {
        height: var(--hero-mobile-height, 300px);
    }
    
    .hero-slide {
        height: var(--hero-mobile-height, 300px);
    }
    
    .hero-slide-text {
        padding: 1.5rem;
        max-width: 80%;
    }
    
    .hero-slide-text h1 {
        margin-top: 4rem;
        font-size: 1.5rem;
    }

    .hero-slide-subtitle {
        font-size: 1rem;
    }
    
    .foe-herobanner-slider .owl-nav button {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .foe-herobanner-slider .owl-nav .owl-prev {
        left: 1rem;
    }

    .foe-herobanner-slider .owl-nav .owl-next {
        right: 1rem;
    }
    
    .foe-herobanner-slider .owl-dots {
        bottom: 1.5rem;
    }
    
    .foe-herobanner-slider .owl-dots button {
        width: 10px !important;
        height: 10px !important;
        margin: 0 6px !important;
    }
    .foe-hero-banner-spacer{
        height: 190px;
    }
}

@media (max-width: 767.98px) {
    .hero-slide-text {
        padding: 1rem;
    }
    
    .hero-slide-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-slide-subtitle {
        font-size: 0.9rem;
    }
    
    .foe-herobanner-slider .owl-nav button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .foe-herobanner-slider .owl-nav .owl-prev {
        left: 0.5rem;
    }

    .foe-herobanner-slider .owl-nav .owl-next {
        right: 0.5rem;
    }
    
    .foe-herobanner-slider .owl-dots button {
        width: 8px !important;
        height: 8px !important;
        margin: 0 4px !important;
    }

    .hero-slide-text h1 {
        margin-top: 4rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slide-title {
        font-size: 1.75rem;
    }
    
    .hero-slide-subtitle {
        font-size: 0.85rem;
    }
    
    .foe-herobanner-slider .owl-nav button {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }
}

/* Text Position Classes */
.text-start .hero-slide-text {
    text-align: left;
}

.text-center .hero-slide-text {
    text-align: center;
}

.text-end .hero-slide-text {
    text-align: right;
}

/* Lazy Loading */
.owl-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.owl-lazy.loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    .foe-herobanner-slider .owl-nav,
    .foe-herobanner-slider .owl-dots {
        display: none !important;
    }
    
    .foe-herobanner-slider .owl-item {
        display: block !important;
        opacity: 1 !important;
    }
    
    .hero-slide-overlay {
        opacity: 0.1 !important;
    }
}