.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

#hero-section {
    height: calc(100vh - var(--header-height));
    /* height: calc(100dvh - var(--header-height)); */
    margin-top: calc(var(--header-height) * -1);
    background: var(--bs-white);
}

.scrolled + main #hero-section {
    position: relative;
}

#hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 20%);
    z-index: 1;
}

@media (max-width: 1250px) {
    #related-technologies-section .container-fluid {
        padding: 0;
    }
}

#related-technologies-section .images_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

#related-technologies-section .images_container:first-child .slide {
    position: relative;
    z-index: 1;
}

#related-technologies-section .images_container:nth-child(2) .slide {
    position: relative;
    z-index: 2;
}

#related-technologies-section .slide-wrapper {
    position: relative;
    /* flex: 0 1 50%; */
    cursor: pointer;
    transition: flex .4s ease-in-out, height .4s ease-in-out;
}

@media (max-width: 1250px) {
    #related-technologies-section .slide-wrapper {
        width: 100%;
    }
}

#related-technologies-section .slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease-in-out;
}

/* #related-technologies-section .slide::before {
    content: attr(data-caption);
    position: absolute;
    bottom: 64px;
    left: 50%;
    color: var(--bs-black);
    background-color: var(--bs-white);
    padding: 10px 15px;
    font-weight: 400;
    font-size: 16px;
    translate: -50% 0;
    white-space: nowrap;
} */

#related-technologies-section .skew-div {
    transition: all 0.4s ease-in-out;
    height: 100%;
    overflow: hidden;
}

@media (min-width: 1250px) {
    /* Skew the whole view */
    #related-technologies-section .images_container {
        position: relative;
        transform: skewX(12deg);
        overflow: visible;
    }

    /* Two panels layout */
    #related-technologies-section .images_container .slide-wrapper {
        position: absolute;
        top: 0;
        bottom: 0;
        overflow: hidden;
        transition: left .4s ease-in-out, right .4s ease-in-out, transform .4s ease-in-out, z-index .44s ease-in-out;
    }

    #related-technologies-section .images_container .slide-wrapper:nth-child(1) {
        left: -5%;
        right: 50%;
        z-index: 1;
        transition: left .4s ease-in-out, right .4s ease-in-out, transform .4s ease-in-out, z-index .44s ease-in-out;
    }

    #related-technologies-section .images_container .slide-wrapper:nth-child(2) {
        left: 50%;
        right: -5%;
        z-index: 1;
        transition: left .4s ease-in-out, right .4s ease-in-out, transform .4s ease-in-out, z-index .44s ease-in-out;
    }

    /* Counter-skew media wrapper so content is straight */
    #related-technologies-section .skew-div {
        position: absolute;
        width: 100%;
        scale: 1.3;
        transform: skewX(-12deg);
    }

    #related-technologies-section .skew-div > img,
    #related-technologies-section .skew-div > video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

@media (min-width: 1512px) { 
    #related-technologies-section .skew-div {
        scale: 1.2;
    }
}

@media (min-width: 1250px) and (hover: hover) {
    /* #related-technologies-section .slide-wrapper:hover {
        flex: 0 1 100%;
    } */

    #related-technologies-section .images_container {
        height: 75vh;
        height: 75dvh;
        max-height: 800px;
    }
}

@media (min-width: 1250px) {
    #related-technologies-section .images_container {
        flex-direction: row;
        height: 800px;
    }
}

@media (max-width: 1250px) {
    #related-technologies-section .slide-wrapper {
        aspect-ratio: 1;
        /* max-height: 50vh;
        max-height: 50dvh; */
        transition: 0.4s ease-in-out;
    }

    /* #related-technologies-section .slide::before {
        bottom: 48px;
    } */
}

/* @media (max-width: 365px) {
    #related-technologies-section .slide::before {
        bottom: 32px;
    }
} */

@media (min-width: 1250px) and (hover: hover) {
    #related-technologies-section .images_container:hover .slide {
        filter: blur(30px);
        -webkit-filter: blur(30px);
    }

    #related-technologies-section .images_container:hover .slide-wrapper:hover .slide {
        filter: blur(0);
        -webkit-filter: blur(0);
    }

    /* Expand hovered panel */
    #related-technologies-section .images_container .slide-wrapper:hover:nth-child(1) {
        left: -5% !important;
        right: 15% !important;
        z-index: 2;
        /* cancel parent skew to show straight image */
        transform: skewX(-12deg);
        transition: 0.4s ease-in-out;
    }

    #related-technologies-section .images_container .slide-wrapper:hover:nth-child(2) {
        left: 15% !important;
        right: -5% !important;
        z-index: 1;
        /* cancel parent skew to show straight image */
        transform: skewX(-12deg);
        transition: 0.4s ease-in-out;
    }

    /* remove counter-skew and extra scale on hovered content */
    #related-technologies-section .images_container:hover .slide-wrapper:hover .skew-div {
        transform: none;
        scale: 1;
        transition: 0.4s ease-in-out;
    }
}

@media (min-width: 1250px) {
    /* Non-hover state reset for safety */
    #related-technologies-section .images_container .slide-wrapper .skew-div {
        will-change: transform;
    }
}

#videos-grid .video-wrapper::before,
#grow-up .video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%);
    pointer-events: none;
}

#grow-up .video-wrapper {
    transition: 0.3s ease-in-out;
}

#grow-up .video-wrapper:hover,
#grow-up:has(.grow-up-heading:hover) .video-wrapper {
    filter: brightness(0.5);
    -webkit-filter: brightness(0.5);
}

.video-text {
    bottom: 2.4rem;
    left: 2.4rem;
}

@media (min-width: 1250px) {
    .video-text {
        bottom: 3.2rem;
        left: 3.2rem;
    }
}

#videos-grid img,
#videos-grid video {
    min-height: 300px;
}

#videos-grid .video-wrapper h3 {
    place-content: center;
}

@media (min-width: 1250px) {
    #videos-grid .video-wrapper h3 {
        height: 48px;
    }
}

#videos-grid a svg {
    translate: 0 100%;
    transition: 0.3s ease-in-out;
    height: 48px;
}

@media (hover: hover) {
   #videos-grid a:hover svg {
        translate: 0;
    }
}

#videos-grid a .animated-heading::before {
    color: var(--bs-white);
    display: flex;
    justify-content: start;
    align-items: center;
}

#grow-up h3 {
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

[data-aos="grow-up"] {
    scale: 0.6;
    transition: 0.3s ease-in-out;

    &.aos-animate {
        scale: 1;
    }
}

[data-aos="grow-up-heading"] {
    scale: 0.7;
    transition: 0.3s ease-in-out;

    &.aos-animate {
        scale: 1;
    }
}

.swiper-vehicles {
    img {
        max-height: 597px;
        max-width: 958px;
    }
}

.active-highlight {
    display: block;
    position: absolute;
    background: #6F6F6F;
    border-radius: 3.2rem;
}

#vehicles-tabs-section {
    border-radius: 3.2rem;
    background: #F8F8F8;

    @media (width >=1250px) {
        border-radius: 6.4rem;
    }
}

#vehicleTabs {
    background: #fdfdfd;
    border-radius: 1.6rem;
    padding: 0.8rem;
    max-width: 712px;
    margin: 0 auto;

    @media (width >=1250px) {
        border-radius: 3.2rem;
    }
}

#vehicleTabs .nav-link {
    border: none;
    color: var(--bs-black);
    padding: 0.4rem 0.8rem;
    font-size: 1.4rem;
    border-radius: 2.4rem;

    &.active {
        color: var(--bs-white);
    }

    @media (width >=1250px) {
        padding: 1.2rem 1.8rem;
        font-size: 1.6rem;
    }

    @media (width >=1550px) {
        padding: 1.2rem 2.6rem;
        font-size: 1.6rem;
    }
}

.vehicles-swiper-button-prev,
.vehicles-swiper-button-next {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    z-index: 2;
    user-select: none;
}

.vehicles-swiper-button-prev {
    left: 0;
}

.vehicles-swiper-button-next {
    right: 0;
}

.vehicle-title::before {
    content: attr(data-vehicle-title);
    position: absolute;
    top: -5%;
    left: 50%;
    translate: -50% 0;
    color: rgba(191, 191, 191, 0.30);
    text-align: center;
    font-size: clamp(120px, 17vw, 256px);
    font-weight: 500;
    line-height: 1;
    z-index: -1;
    pointer-events: none;
}

.swiper-vehicles .swiper-slide {
    transition: transform 0.3s ease-in-out;
    transform: scale(0.75) !important;
}

.swiper-vehicles .swiper-slide-active {
    transform: scale(1) !important;
}

.swiper-vehicles:hover {
    cursor: drag;
}

#vehicleTabsContent .swiper-drag-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    color: var(--bs-black);
    padding: 4px 8px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    background: rgba(240, 240, 240, 0.40);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    width: 96px;
    height: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#vehicleTabsContent:hover .swiper-drag-tooltip {
    opacity: 1;
}

.grid-content {
    background: #F8F8F8;
    min-height: 300px;
}

#grid-repeater .video-wrapper {
    display: flex;
    max-height: 36vh;
}

#grid-repeater .repeater-img {
    object-fit: contain;
}

@media (min-width: 1250px) {
    #grid-repeater.video-wrapper {
        max-height: 43vh;
    }

    #grid-repeater .repeater-img {
        object-fit: cover;
    }
}

#grid-repeater .container .row:last-child {
    margin-bottom: 0!important;
} 

.articles-swiper-button-prev,
.articles-swiper-button-next,
.events-swiper-button-prev,
.events-swiper-button-next {
    background: var(--bs-white);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.articles-swiper-button-prev svg path,
.articles-swiper-button-next svg path,
.events-swiper-button-prev svg path,
.events-swiper-button-next svg path {
    transition: 0.3s ease-in-out;
}

@media (hover: hover) {

    .articles-swiper-button-prev:hover svg path,
    .articles-swiper-button-next:hover svg path,
    .events-swiper-button-prev:hover svg path,
    .events-swiper-button-next:hover svg path {
        fill: var(--bs-gray-light);
    }
}

@media (max-width: 768px) {
    .journey-wrapper .video-wrapper {
        height: 50vh;
        height: 50dvh;
    }
}

.journey-wrapper .content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    max-width: 712px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    align-items: center;
    justify-content: center;
    padding: 2.4rem;
}

@media (min-width: 1250px) {
    .journey-wrapper .content-wrapper {
        top: 12rem;
        translate: -50% 0;
    }
}

.journey-cta-wrapper {
    width: 100%;
    max-width: 568px;
}

.journey-cta-wrapper .animated-btn {
    flex: 1;
    width: 100%;
}

@media (max-width: 375px) {
    .journey-cta-wrapper .animated-btn {
        --btn-height: 35px;
    }

}

.events-carousel .post-image {
    aspect-ratio: 760 / 333;
}

.events-carousel .post-arrow-wrapper {
    background: #f8f8f8;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.events-carousel .swiper-slide {
    height: auto;
}

.marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    gap: 12px;
}

@media (min-width: 1650px) {
    .marquee {
        gap: 32px;
    }
}

.marquee-full-width {
    width: 100%;
    flex: 1;
    min-width: 0;
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 300px;
    height: 72px;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .marquee::before,
    .marquee::after {
        width: 120px;
    }
}

.marquee::before {
    left: 0;
    background: linear-gradient(270deg, rgba(240, 240, 240, 0) 50%, #ffffff 81.55%);
}

.marquee::after {
    right: 0;
    left: auto;
    background: linear-gradient(90deg, rgba(240, 240, 240, 0) 50%, #ffffff 81.55%);
}

.marquee+.marquee {
    margin-top: 20px;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marquee-item img {
    object-fit: contain;
    max-height: 72px;
}

@media (max-width: 992px) {
    .marquee-item img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .marquee-wrapper {
        flex-wrap: wrap;
    }

    .marquee-wrapper h3 {
        width: 100%;
    }
}
