/* Modern Hero Styles */
.wb-hero_desktop-design-1 {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--slider-desktop-ratio, 1920 / 800);
    /* Dynamic based on tenant settings */
    overflow: hidden;
    background-color: var(--semantic-color-background-surface);
}

.wb-hero_desktop-design-1 .hero-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.wb-hero_desktop-design-1 .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-hero_desktop-design-1 .hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.wb-hero_desktop-design-1 .hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wb-hero_desktop-design-1 .hero-slide-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.wb-hero_desktop-design-1 .hero-slide-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.wb-hero_desktop-design-1 .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight darkening for text readability */
}

/* Slide Content */
.wb-hero_desktop-design-1 .hero-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1365px;
    /* Increased to allow wider spread */
    padding: 0 var(--space-xl);
    display: flex;
    /* Flexbox for alignment */
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.wb-hero_desktop-design-1 .hero-slide-text-wrapper {
    color: var(--semantic-color-text-inverse);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    /* Constrain width for cleaner look */
    width: 100%;
}

/* Alignment Modifiers - NOW ADDED */
.wb-hero_desktop-design-1 .hero-slide-content.align-center {
    align-items: center;
    text-align: center;
}

.wb-hero_desktop-design-1 .hero-slide-content.align-center .hero-slide-text-wrapper {
    text-align: center;
    margin: 0 auto;
}

.wb-hero_desktop-design-1 .hero-slide-content.align-left {
    align-items: flex-start;
    text-align: left;
}

.wb-hero_desktop-design-1 .hero-slide-content.align-left .hero-slide-text-wrapper {
    text-align: left;
    margin-right: auto;
    /* Push mainly to left */
}

.wb-hero_desktop-design-1 .hero-slide-content.align-right {
    align-items: flex-end;
    text-align: right;
}

.wb-hero_desktop-design-1 .hero-slide-content.align-right .hero-slide-text-wrapper {
    text-align: right;
    margin-left: auto;
    /* Push mainly to right */
}


.wb-hero_desktop-design-1 .hero-slide-top-text {
    display: block;
    font-family: var(--semantic-font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    font-weight: 600;
    opacity: 0.9;
}

.wb-hero_desktop-design-1 .hero-slide-title {
    font-family: var(--semantic-font-heading);
    font-size: 3.5rem;
    /* Large professional text */
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--semantic-color-text-inverse);
    line-height: 1.1;
}

.wb-hero_desktop-design-1 .hero-slide-subtitle {
    font-family: var(--semantic-font-body);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

/* Button */
.wb-hero_desktop-design-1 .hero-slide-btn {
    display: inline-block;
    background-color: rgba(60, 85, 60, 0.9);
    /* Example Greenish tone like reference */
    color: var(--semantic-color-text-inverse);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    /* Boxy look like reference */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: none;
}

.wb-hero_desktop-design-1 .hero-slide-btn:hover {
    background-color: var(--semantic-color-text-inverse);
    color: var(--semantic-color-text-primary);
}

/* Responsive Text */
@media (max-width: 768px) {

    /* Layout Fixes */
    .wb-hero_desktop-design-1 {
        height: auto;
        min-height: unset;
        padding: 0;
        aspect-ratio: var(--slider-mobile-ratio, 1536 / 864);
    }

    .wb-hero_desktop-design-1 .hero-slider-container {
        height: auto;
        position: relative;
    }

    .wb-hero_desktop-design-1 .hero-slide {
        position: relative;
        display: none;
        width: 100%;
        height: auto;
        opacity: 1 !important;
        transition: none;
    }

    .wb-hero_desktop-design-1 .hero-slide.active {
        display: block;
        z-index: 5;
    }

    .wb-hero_desktop-design-1 .hero-slide-bg {
        position: relative;
        height: auto;
        width: 100%;
    }

    .wb-hero_desktop-design-1 .hero-slide-img {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .wb-hero_desktop-design-1 .hero-slide-content {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }

    .wb-hero_desktop-design-1 .hero-slide-content {
        align-items: center !important;
        /* Force center on mobile usually looks better */
        text-align: center !important;
        padding: 0 var(--space-md);
    }

    .wb-hero_desktop-design-1 .hero-slide-text-wrapper {
        text-align: center !important;
        margin: 0 auto !important;
    }

    .wb-hero_desktop-design-1 .hero-slide-title {
        font-size: 1.5rem;
        margin-bottom: var(--space-xs);
    }

    .wb-hero_desktop-design-1 .hero-slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .wb-hero_desktop-design-1 .hero-slide-top-text {
        font-size: 0.65rem;
        margin-bottom: var(--space-xs);
    }

    .wb-hero_desktop-design-1 .hero-slide-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}