.hero__wrapper {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.slider-enabled .hero__container {
    padding-bottom: 80px;
}

.hero__wrapper, .hero__text.with-see-more {
    width: 100%;
}

.hero__text {
    color: #000;
}

.hero__text.text-white {
    color: #fff;
}

.hero.no-slider {
    display: flex;
    justify-content: center;
}


.hero__navigation-container {
    display: flex;
    align-items: center;
    z-index: 1;
    position: relative;
    max-width: var(--lb-container);
    justify-content: space-between;
    margin-left: var(--lb-gutter);
    margin-right: var(--lb-gutter);
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .hero__navigation-container {
        margin-left: 1.125rem;
        margin-right: 1.125rem;
    }
}

.keen-slider {
    width: 100%;
}

.hero__navigation {
    position: absolute;
    bottom: 50px;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: center;
}

.keen-slider__dots {
    display: flex;
    align-items: center;
}

.keen-slider__dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-right: 10px;
    border: none;
    cursor: pointer;
}

.keen-slider__dot.active {
    background: white;
}

.keen-slider__arrows {
    display: flex;
    align-items: center;
}

.keen-slider__arrow {
    width: 60px;
    height: 60px;
    background: #DB0812;
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    border: none;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

@media only screen and (max-width: 767px) {
    .keen-slider__arrow {
        width: 45px;
        height: 45px;
    }

    .keen-slider__arrow svg {
        width: 25px;
    }
}

.keen-slider__arrow--left {
    transform: translateX(-10px);
}

.keen-slider__slide {
    display: flex;
    justify-content: center;
}

.keen-slider__arrow--right {
    transform: translateX(10px);
}

.keen-slider__arrow.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 100%;
    background-color: #007BFF;
}

.hero__overlay {
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(6, 40, 67, 0.20) 0%, rgba(6, 40, 67, 0.70) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: calc(100svh + 250px);
    z-index: 1;
}

.hero__overlay {
    /* Döljer overlay på mobila enheter om klassen hide-on-mobile finns */
    @media only screen and (max-width: 767px) {
        .hero__overlay.hide-on-mobile {
            display: none !important;
        }
    }
}

.hero__wave {
    position: absolute;
    bottom: -52px;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

.hero__wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.hero {
    position: relative;
    color: white;
    margin-top: 0;
    overflow: hidden;
    background-color: var(--lb-sand);
    height: calc(100svh + 250px);
    display: flex;
    transition: mask-position 0.3s ease-out, -webkit-mask-position 0.3s ease-out;
    mask-image: url(../../../assets/images/hero-nav-mask.webp);
    mask-size: cover;
    mask-position: 0% 0%;
    justify-content: center;
    align-items: start !important;
    mask-repeat: no-repeat;
}

@media (max-width: 992px) {
    .hero {
        height: calc(100svh + 150px);
    }
}

.hero__video video {
    object-fit: cover;
    pointer-events: none;
}

.hero__video, .hero__video video {
    contain: size layout;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.hero-section {
    position: relative;
    height: 100%;
    background-color: var(--lb-sand);
}

.hero__container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    z-index: 2;
    position: relative;
    max-width: var(--lb-container);
    justify-content: flex-end;
    margin-left: var(--lb-gutter);
    margin-right: var(--lb-gutter);
    min-height: calc(50rem + 20px);
    width: 100%;
    padding-top: 75px;
    padding-bottom: 70px;
}


@media only screen and (max-width: 991px) {
    .hero__container {
        margin-left: 1.125rem;
        margin-right: 1.125rem;
        justify-content: flex-end;
        min-height: 19.5rem;
        padding-bottom: 60px;
    }
}

.hero__container.no-background {
    color: #000;
    min-height: calc(12rem + 20px);

    max-height: unset;
    padding-top: 60px;
    padding-bottom: 30px;
}

/* Logotyper utanför .hero (syskon till den maskade diven) – masken klipper dem inte, de ligger ovanpå */
.hero-section .hero__logos {
    position: absolute;
    bottom: 8.5rem;
    left: 3.125rem;
    right: 3.125rem;
    max-width: var(--lb-container);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    z-index: 20;
    pointer-events: none;
}

/* Mer luft under logorad när den finns */
.hero-section:has(.hero__logos) {
    padding-bottom: 9rem;
}

.hero-section.hero--logos-visible .hero__logos {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media only screen and (max-width: 991px) {
    .hero-section .hero__logos {
        left: 1.125rem;
        right: 1.125rem;
        bottom: 6rem;
    }
    .hero-section:has(.hero__logos) {
        padding-bottom: 7rem;
    }
}

/* Enkel rad när det är 1–2 logotyper */
.hero__logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem 2.5rem;
    width: 100%;
}

.hero__logos-row .hero__logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logotyp-slider (3+) – Keen Slider med kontinuerlig marquee + drag, fade på sidorna */
.hero__logos-marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero__logos-slider.keen-slider {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.hero__logos-slider.keen-slider:active {
    cursor: grabbing;
}

.hero__logos-slider .keen-slider__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    box-sizing: border-box;
}

.hero__logo-image {
    max-height: 2.5rem;
    max-width: 10rem;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.hero__logo-item:hover .hero__logo-image {
    opacity: 1;
}

@media only screen and (max-width: 767px) {
    .hero-section .hero__logos {
        padding-left: 40px;
        padding-right: 40px;
        bottom: 4.5rem;
        margin-bottom: 1.5rem;
    }
    .hero-section:has(.hero__logos) {
        padding-bottom: 5.5rem;
    }
    .hero__logos-row {
        gap: 1rem 1.5rem;
    }
    .hero__logos-slider .keen-slider__slide {
        min-height: 2rem;
    }
    .hero__logo-image {
        max-height: 2rem;
        max-width: 8rem;
    }
}

.hero__headline, .hero__subtext, .hero__subheadline {
    white-space: pre-line;
}

.hero__subheadline {
    color: var(--lb-gold);
    font-family: var(--lb-font-script);
    font-size: clamp(1.5625rem, 3vw + 1rem, 3.125rem);
    font-style: normal;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: normal;
}


.hero__headline {
    font-size: clamp(3.125rem, 4vw + 1rem, 6.25rem);
    max-width: 1200px;
    line-height: 110%;
    margin: 0;
    font-family: var(--lb-font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero__headline.small-title {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.625rem);
}

@media only screen and (max-width: 767px) {
    .hero__headline.small-title {
        font-size: clamp(1.5rem, 5vw + 0.5rem, 2.125rem);
        line-height: 100%;
    }
}

