/**
 * Hero Slider Widget Styles
 * Version: 1.0.0
 */

/* ============================================
   Main Wrapper
   ============================================ */
.hs-wrapper {
    position: relative;
    width: 100%;
}

.hs-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

/* ============================================
   Slides
   ============================================ */
.hs-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}

.hs-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hs-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================
   Content Wrapper & Positioning
   ============================================ */
.hs-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 50px;
    box-sizing: border-box;
}

/* Horizontal Position */
.hs-content-wrapper.hs-h-left {
    justify-content: flex-start;
}

.hs-content-wrapper.hs-h-center {
    justify-content: center;
}

.hs-content-wrapper.hs-h-right {
    justify-content: flex-end;
}

/* Vertical Position */
.hs-content-wrapper.hs-v-top {
    align-items: flex-start;
}

.hs-content-wrapper.hs-v-center {
    align-items: center;
}

.hs-content-wrapper.hs-v-bottom {
    align-items: flex-end;
}

/* ============================================
   Content Box
   ============================================ */
.hs-content-box {
    background-color: rgba(75, 75, 130, 0.85);
    padding: 30px;
    max-width: 500px;
    box-sizing: border-box;
    
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.hs-slide.active .hs-content-box {
    opacity: 1;
    transform: translateY(0);
}

.hs-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hs-link:hover {
    text-decoration: none;
}

/* ============================================
   Title
   ============================================ */
.hs-title {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    font-style: italic;
}

/* ============================================
   Description
   ============================================ */
.hs-description {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
}

/* ============================================
   Arrows
   ============================================ */
.hs-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    pointer-events: auto;
    padding: 0;
}

.hs-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.hs-arrow:focus {
    outline: none;
}

.hs-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

.hs-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.hs-dot:hover,
.hs-dot.active {
    background-color: #ffffff;
}

.hs-dot:focus {
    outline: none;
}

/* ============================================
   RTL Support
   ============================================ */
[dir="rtl"] .hs-arrow-prev svg {
    transform: rotate(180deg);
}

[dir="rtl"] .hs-arrow-next svg {
    transform: rotate(180deg);
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 768px) {
    .hs-content-wrapper {
        padding: 30px;
    }

    .hs-content-box {
        padding: 20px;
        max-width: 100%;
    }

    .hs-title {
        font-size: 24px;
    }

    .hs-description {
        font-size: 13px;
    }

    .hs-arrow {
        width: 40px;
        height: 40px;
    }

    .hs-arrows {
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .hs-content-wrapper {
        padding: 20px;
    }

    .hs-title {
        font-size: 20px;
    }
}

/* ============================================
   Editor Preview
   ============================================ */
.elementor-editor-active .hs-content-box {
    opacity: 1;
    transform: none;
}
