/* item */
.hero-item {
    aspect-ratio: 5 / 2;
}
/* image */
.hero-img {
    width: 100%;
    height: clamp(420px, 40vw, 850px);
    object-fit: cover;
    object-position: right 40%;
}

.hero-img--right-80 { object-position: right 80%; }

/* overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: start;
}

/* content */
.hero-content {
    max-width: 40%;
    margin-left: 4rem;
    margin-top: 4rem;
}

/* headline */
.hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: start;
}

.hero-content h2 {
    font-size: clamp(1rem, 2vw, 2.5rem);
    font-weight: 700;
    text-align: start;
}

/* button */
.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 0px 50px;
    border: 3px solid var(--xworks-red);
    border-radius: 30px;
    font-weight: 600;
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    color: var(--xworks-red);
    text-decoration: none;
}

.hero-btn:hover {
    background: var(--xworks-red);
    color: white;
}

/* OwlCarousel2 custom dots */
#heroCarousel .owl-dots {
    position: absolute;
    bottom: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 0;
}

#heroCarousel .owl-dot span {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--xworks-grey);
    margin: 0;
}

#heroCarousel .owl-dot.active span {
    transform: scale(1.75);
    background: var(--xworks-red);
}

/* Each slide needs position:relative for the overlay */
#heroCarousel .owl-item > div {
    position: relative;
}

/* mobile overlay */
@media (max-width: 768px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
        text-align: center;
        align-items: center;
    }

    .hero-content {
        max-width: 80%;
        margin: auto;
        color: white;
    }

    .hero-content h1,
    .hero-content h2 {
        text-align: center;
    }

    .hero-btn {
        border-color: white;
        color: white;
    }
}
/* Owl carousel CLS fix */
.owl-carousel {
    display: block;
}

.owl-carousel .hero-item:not(:first-child) {
    display: none;
}

.owl-carousel img {
    width: 100%;
}