/* ============================================
   HERO SLIDER MODULE - Container reset
   ============================================ */
.hero-slider-module {
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hs-content-bg, #00447c) 0%, var(--hs-content-bg-dark, #001a33) 100%);
}

.hero-slider-module *,
.hero-slider-module *::before,
.hero-slider-module *::after {
    box-sizing: border-box;
}

/* Kill template's .sp-module overrides */
.sp-module .hero-slider-module a,
.sp-module .hero-slider-module a:before,
.sp-module .hero-slider-module a:after {
    content: none;
    font-family: inherit;
}

.sp-module .hero-slider-module a:before {
    display: none !important;
}

/* ============================================
   SLIDES
   ============================================ */
.hs-slide {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, var(--hs-content-bg, #00447c) 0%, var(--hs-content-bg-dark, #001a33) 100%);
}

.hs-slide--active {
    display: block;
}

.hs-slide--fade-in {
    animation: hsFadeIn 0.5s ease forwards;
}

@keyframes hsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Slide inner: stacked on mobile, side-by-side on tablet+ ---------- */
.hs-slide__inner {
    display: flex;
    flex-direction: column;
}

/* ---------- Image wrap ---------- */
.hs-slide__image-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.hs-slide__image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* ---------- Content: below image on mobile ---------- */
.hs-slide__content {
    padding: 20px;
    background: linear-gradient(135deg, var(--hs-content-bg, #00447c) 0%, var(--hs-content-bg-dark, #001a33) 100%);
    color: var(--hs-description-color, #fff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.hs-slide__title,
.hs-slide__title * {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    color: var(--hs-heading-color, #fff) !important;
}

.hs-slide__text,
.hs-slide__text * {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hs-description-color, rgba(255, 255, 255, 0.8)) !important;
    margin: 0;
    padding: 0;
}

.hero-slider-module .hs-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--hs-btn-bg, #2563eb);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, filter 0.2s ease;
    align-self: flex-start;
    line-height: 1.4;
}

.hero-slider-module .hs-slide__btn:hover {
    filter: brightness(0.85);
    background: var(--hs-btn-bg, #2563eb);
    color: #fff;
}

.hs-slide__btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   TABLET+: side by side
   ============================================ */
@media (min-width: 768px) {
    .hs-slide__inner {
        flex-direction: row;
        min-height: 300px;
    }

    .hs-slide__image-wrap {
        width: 60%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .hs-slide__image-wrap--blur::before {
        content: '';
        position: absolute;
        inset: -40px;
        background-image: var(--hs-slide-img);
        background-size: cover;
        background-position: center;
        filter: blur(30px) brightness(1.0);
        z-index: 0;
    }

    .hs-slide__image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hs-slide__content {
        width: 40%;
        padding: 30px;
        gap: 12px;
    }

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

    .hs-slide__text {
        font-size: 15px;
    }

    .hero-slider-module .hs-arrow {
        top: 50%;
    }
}

@media (min-width: 1024px) {
    .hs-slide__image-wrap {
        width: 65%;
    }

    .hs-slide__content {
        width: 35%;
        padding: 40px;
        gap: 16px;
    }

    .hs-slide__title {
        font-size: 32px;
    }

    .hs-slide__text {
        font-size: 16px;
    }

    .hero-slider-module .hs-slide__btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* ============================================
   ARROWS
   ============================================ */
.hero-slider-module .hs-arrow {
    position: absolute;
    top: calc(var(--hs-img-h, 50%) / 2);
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hs-arrow-bg, #2563eb);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.hero-slider-module .hs-arrow:hover {
    filter: brightness(0.85);
}

.hs-arrow svg {
    width: 16px;
    height: 16px;
}

.hs-arrow--prev { left: 3px; }
.hs-arrow--next { right: 3px; }

/* ============================================
   DOTS
   ============================================ */
.hs-dots {
    display: none;
}

@media (min-width: 768px) {
    .hs-dots {
        display: flex;
        position: absolute;
        bottom: 16px;
        right: 0;
        width: 40%;
        justify-content: center;
        gap: 10px;
        z-index: 10;
    }
}

@media (min-width: 1024px) {
    .hs-dots {
        width: 35%;
    }
}

.hs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hs-dot-color, #fff) 30%, transparent);
    border: 2px solid color-mix(in srgb, var(--hs-dot-color, #fff) 50%, transparent);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.hs-dot--active {
    background: var(--hs-dot-color, #fff);
    border-color: var(--hs-dot-color, #fff);
    width: 28px;
    border-radius: 5px;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.hs-progress-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.hs-progress {
    height: 100%;
    width: 0%;
    background: var(--hs-progress-color, #2563eb);
}


/* ============================================
   DOSTĘPNOŚĆ: pauza, fokus, ograniczony ruch
   ============================================ */
.hero-slider-module .hs-pause {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 11;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--hs-arrow-bg, #2563eb);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-module .hs-pause:hover { filter: brightness(0.85); }
.hero-slider-module .hs-pause__icon { width: 14px; height: 14px; }
.hero-slider-module .hs-pause__icon--play { display: none; }
.hero-slider-module .hs-pause.is-paused .hs-pause__icon { display: none; }
.hero-slider-module .hs-pause.is-paused .hs-pause__icon--play { display: block; }

.hero-slider-module .hs-pause:focus-visible,
.hero-slider-module .hs-arrow:focus-visible,
.hero-slider-module .hs-dot:focus-visible,
.hero-slider-module .hs-slide__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #171F5E;
}

@media (prefers-reduced-motion: reduce) {
    .hs-slide--fade-in { animation: none !important; }
    .hero-slider-module * { transition: none !important; }
}
