/* Palxil Hero Slider — adapted from original HTML section */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap');

.px-hero {
    position: relative;
    width: 100%;
    height: calc(92vh + 100px) !important;
    min-height: 720px !important;
    overflow: hidden;
}

.px-hero__swiper {
    width: 100%;
    height: 100%;
}

.px-hero .swiper-slide {
    height: 100%;
    min-height: 100%;
}

.px-hero__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.px-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

/* No global darkening — keep the photo bright; only the caption box is dark */
.px-hero__ov {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent !important;
}

/* Dark caption box on the right — whole wireframe graphic shown (contain) on a solid dark base */
.px-hero__in {
    position: absolute;
    top: 50%;
    right: 3%;
    left: auto;
    transform: translateY(-50%);
    z-index: 3;
    box-sizing: border-box;
    width: 32%;
    max-width: 450px;
    min-height: 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 3.8vw, 48px) clamp(22px, 2.6vw, 42px);
    color: #fff;
    text-align: left;
    background-color: #171717;
    background-image:
        linear-gradient(rgba(23, 23, 23, .5), rgba(23, 23, 23, .5)),
        url('/wp-content/uploads/caption-bg-3-scaled.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover, contain;
}

/* Intro line — monochrome (overrides widget colour control) */
.px-hero__eyebrow {
    display: block;
    letter-spacing: normal;
    text-transform: none;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255, 255, 255, .8) !important;
    margin-bottom: 24px;
    max-width: 460px;
}

.px-hero__title {
    font-family: 'Titillium Web', 'Roboto', sans-serif;
    font-size: clamp(30px, 3.2vw, 44px) !important;
    line-height: 1.12;
    margin: 0 0 28px;
    font-weight: 600;
    color: #fff !important;
}

.px-hero__txt {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 22px;
    max-width: 460px;
}

/* Button as plain white uppercase text link (overrides widget colour controls) */
.px-hero__btn {
    align-self: flex-start;
    display: inline-block;
    padding: 6px 0;
    background: transparent !important;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: .2em;
    font-family: 'Titillium Web', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border: 0;
    border-bottom: 1px solid transparent;
    transition: border-color .25s;
}

.px-hero__btn:hover {
    background: transparent !important;
    color: #fff !important;
    border-bottom-color: #fff;
}

/* Swiper navigation — white arrows */
.px-hero .swiper-button-prev,
.px-hero .swiper-button-next {
    color: #fff;
    z-index: 10;
}

.px-hero .swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
}

.px-hero .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .px-hero {
        height: 55vh!important;
        min-height: 483px!important;
    }

    .px-hero__in {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 88%;
        max-width: 88%;
        min-height: 0;
        padding: 30px 26px;
        border-radius: 8px;
        background-image: none;
		background-color:rgba(0,0,0,0.4)
    }

    .px-hero__title {
        font-size: clamp(22px, 5vw, 30px) !important;
        margin-bottom: 22px;
    }

    .px-hero__eyebrow {
        margin-bottom: 18px;
    }

    .px-hero .swiper-button-prev,
    .px-hero .swiper-button-next {
        transform: scale(.6);
    }
}

/* Let .px-hero control the height (override the Elementor widget height setting) */
.elementor-widget-px-hero-slider {
    height: auto !important;
    min-height: 0 !important;
}
