/* ============================================================
   Top Hero Slider — top-hero-slider.css  v1.1
   ============================================================ */

/* ── Fullbleed wrapper ── */
.top-slider-wrapper--fullbleed {
    position: relative;
}

/* Placeholder preserves document flow when slider is absolute */
.top-slider-placeholder {
    display: block;
    width: 100%;
    height: 850px; /* fallback — overridden by Elementor selector */
    visibility: hidden;
    pointer-events: none;
}

/* ── Main slider element ── */
.top-hero-slider {
    position: relative;
    width: 100%;
    height: 850px;  /* fallback — overridden by Elementor selector */
    overflow: hidden;
}

/* Full-bleed: sit on top of the placeholder, stretch to viewport width */
.top-hero-slider--fullbleed {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 1;
}

/* ── Slide ── */
.top-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Background image ── */
.top-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* ── Overlay ── */
.top-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Inner flex container (vertical alignment) ── */
.top-slide__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items set inline (flex-start / center / flex-end) */
}

/* ── Max-width container (centred, margin auto) ── */
.top-slide__container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    /* max-width and padding-left/right set inline */
}

/* ── Content block ── */
.top-slide__content {
    /* max-width set by Elementor selector if used */
}

/* ── Title ── */
.top-slide__title {
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ── Text ── */
.top-slide__text {
    color: #ffffff;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    margin: 0 0 28px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ── CTA wrap — independent alignment ── */
.top-slide__cta-wrap {
    /* text-align set inline per slide */
}

/* ── CTA Button ── */
.top-slide__cta {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.top-slide__cta:hover,
.top-slide__cta:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
}

/* ── Swiper Pagination (dots) ──
   Geometry only — colours/alignment handled per-instance via inline <style> ── */
.top-hero-slider .swiper-pagination {
    position: absolute !important;
    bottom: 24px !important;
    z-index: 10 !important;
    /* text-align, padding, max-width, left+transform set inline */
}

.top-hero-slider .swiper-pagination-bullet {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.top-hero-slider .swiper-pagination-bullet-active {
    transform: scale(1.3);
}

/* ── Fade: inactive slides truly hidden ── */
.top-hero-slider.swiper-fade .swiper-slide {
    pointer-events: none;
}
.top-hero-slider.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .top-hero-slider {
        height: 500px;
    }
    .top-slide__title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    .top-slide__cta {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* ── Tablet ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .top-slide__title {
        font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    }
}
