html {
    scroll-behavior: unset;
}

.headline {
    padding-top: 9px;
}

.headline .subtitle span {
    padding-left: 16px;
    font-size: 14px;
}

.subtitle span::before {
    top: 6px;
    left: 0;
    width: 6px;
    height: 6px;
}

.s-locations {
    position: relative;
    padding: 96px 0 45px;
    z-index: 1;
}

.s-locations::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 183px;
    background: var(--color-6);
    z-index: -1;
}

.locations-grid {
    display: grid;
    gap: 24px;
    margin-top: 64px;
}

.location-card-wrap {
    position: relative;
    height: 100%;
    padding-top: 58.6%;
    border-radius: 4px;
    overflow: hidden;
}

.location-card--index {
    position: absolute;
    top: 24px;
    left: 16px;
    padding-left: 7px;
    font-size: 14px;
    color: #fff;
    border-left: 1px solid #fff;
    z-index: 2;
}

.location-card--image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    clip-path: polygon(0 0, 85.5% 0, 100% 13%, 100% 100%, 0 100%);
    overflow: hidden;
}

.location-card--image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-card--content {
    width: 100%;
    height: 100%;
    padding: 0 16px 24px;
    color: #fff;
    background: rgba(7, 26, 53, 0.2);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.location-card--content::before {
    content: "";
    width: 100%;
    height: 1px;
    display: block;
    margin-bottom: 11px;
    background: rgba(255, 255, 255, 0.5);
}

.location-card--content p {
    margin: 0;
    letter-spacing: -0.15px;
}
.expertise-card p {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.56px;
}

.s-expertise {
    padding: 51px 0 97px;
    color: #fff;
    background: var(--color-6);
}

.expertise-grid {
    display: grid;
    gap: 46px;
    margin-top: 96px;
}

.expertise-card--img {
    position: relative;
    width: 100%;
    margin-bottom: 26px;
    padding-top: 71.5%;
    border-radius: 2px;
    overflow: hidden;
}

.expertise-card--img img,
.facility-row--image-img img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s-facility {
    padding: 96px 0 72px;
}

.facility-rows {
    margin-top: 64px;
}

.facility-row:not(:nth-last-child(1)) {
    margin-bottom: 47px;
}

.facility-row--image-img {
    position: relative;
    width: 100%;
    padding-top: 57%;
    border-radius: 4px;
    clip-path: polygon(0 0, 85.5% 0, 100% 25%, 100% 100%, 0 100%);
    overflow: hidden;
}

.facility-row--content {
    padding-top: 16px;
    border-top: 1px solid #e8e9f1;
}

.facility-row--content__title {
    margin-bottom: 23px;
}

.video-block {
    position: relative;
    width: 100%;
    padding-top: 127.5%;
    overflow: hidden;
    background: #000;
}

.video--wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-block iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-block .video-poster-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Base Button Styles */
.custom-play-btn,
.custom-pause-btn,
.custom-mute-btn,
.custom-unmute-btn {
    position: absolute;
    background: var(--color-11);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    padding: 0;
    z-index: 2;
    overflow: hidden;
}

.custom-play-btn:hover,
.custom-pause-btn:hover,
.custom-mute-btn:hover,
.custom-unmute-btn:hover {
    background: var(--color-11);
}
    /* Sound Buttons Positioning */
.custom-mute-btn,
.custom-unmute-btn {
    bottom: 20px;
    right: 20px;
}

.custom-play-btn::before,
.custom-pause-btn::before,
.custom-mute-btn::before,
.custom-unmute-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
    transition: width 0.6s cubic-bezier(0.25, 0.33, 0.3, 1.07);
    will-change: width;
    background: var(--color-12);
    z-index: -1;
}

.custom-play-btn:hover::before,
.custom-pause-btn:hover::before,
.custom-mute-btn:hover::before,
.custom-unmute-btn:hover::before {
    width: 100%;
}

/* Play/Pause Toggle Logic */
.custom-pause-btn { display: none; }
.custom-play-btn { display: flex; }

.video-block.is-playing .custom-play-btn { display: none; }
.video-block.is-playing .custom-pause-btn { display: flex; }

/* Show pause only on hover when playing */
.video-block.is-playing .custom-pause-btn {
    opacity: 0;
    pointer-events: none;
}

.video-block.is-playing:hover .custom-pause-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Sound Toggle Logic */
.custom-unmute-btn { display: none; }
.custom-mute-btn { display: flex; }

.video-block.is-muted .custom-mute-btn { display: none; }
.video-block.is-muted .custom-unmute-btn { display: flex; }

/* Global Poster Logic */
.video-block.is-playing .video-poster-img {
    opacity: 0;
    pointer-events: none;
}
@media (min-width: 769px) {
    .s-locations {
       padding: 160px 0 80px;
    }

    .headline {
        display: flex;
        gap: 0 131px;
        justify-content: space-between;
    }

    .headline-col-right {
        flex: 0 1 808px;
        margin-top: 25px;
    }

    .s-locations::before {
        height: 236px;
    }

    .location-card-wrap {
        padding-top: 67.5%;
    }

    .s-expertise {
        padding: 60px 0 140px;
    }

    .expertise-card {
        width: 392px;
    }

    .s-facility {
        padding: 160px 0 140px;
    }

    .s-expertise .headline--description,
    .s-facility .headline--description {
        max-width: 600px;
    }

    .facility-row {
        display: flex;
        justify-content: space-between;
        gap: 0 48px;
        margin-top: 81px;
    }

    .facility-row:not(:nth-last-child(1)) {
        margin-bottom: 49px;
    }

    .facility-row--image {
        flex: 0 0 288px;
    }

    .facility-row--content {
        flex: 0 1 808px;
    }

    .video-block {
        padding-top: 96.774%;
    }
    .custom-play-btn,
    .custom-pause-btn {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 992px) {
    .s-locations::before {
        height: 216px;
    }

    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s-expertise {
        padding: 80px 0 160px;
    }

    .expertise-grid {
        gap: 24px;
        grid-template-columns: repeat(3, 1fr);
    }

    .s-facility {
        /*min-height: calc(100vh + 50px);*/
        overflow: visible;
    }

    .facility-rows {
        position: relative;
        /*padding-bottom: 120px;*/
    }

    .facility-row {
        margin-top: 20px;
        background: #ffffff;
    }

    .facility-row:not(:nth-last-child(1)) {
        margin-bottom: 0;
    }

    .facility-text ul {
        column-count: 2;
        display: inline-block;
    }

    .video-block {
        padding-top: 56.25%;
    }
}

@media (max-width: 991px) {
    .s-facility .headline {
        flex-direction: column;
    }

    .s-facility .headline .headline-col-right {
        flex: auto;
    }
}

@media (min-width: 1441px) {
    .facility-row {
        margin-top: 81px;
    }
}

@media (max-width: 1250px) and (min-width: 769px) {
    .slider-grid {
        width: calc(100% + 30px);
        display: flex;
        gap: 24px;
        margin-top: 96px;
        overflow-x: auto;
        margin-left: -15px;
        padding: 0 15px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .locations-grid {
        margin-top: 36px;
    }

    .slider-grid::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    .slider-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .slider-grid::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 20px;
        border: none;
    }

    .slider-grid::-webkit-scrollbar-thumb:hover {
        background-color: var(--color-12) !important;
    }

    .location-card,
    .expertise-card {
        width: 392px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .s-facility .headline .headline-col-right {
        flex: auto;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .headline-col-right {
        margin-top: 31px;
    }

    .headline--description {
        font-size: 18px;
    }

    .facility-row--content {
        margin-top: 25px;
    }

    .facility-row--content__title {
        letter-spacing: -0.2px;
    }
}

@media (min-width: 992px) {
    .s-facility {
        position: relative;
    }

    .facility-rows {
        position: relative;
        display: grid;
    }

    .facility-row {
        /*grid-area: 1 / 1 / 2 / 2;*/
        background: #fff;
    }

    body.elementor-editor-active .facility-row {
        grid-area: unset;
    }

    .s-facility .headline {
        position: relative;
        z-index: 100;
        /*background: #fff;*/
    }
}

@media (min-width: 992px) and (max-height: 700px) {
    .s-facility .headline--title {
        margin-bottom: 16px;
        font-size: 40px;
    }
    .facility-rows {
        margin-top: 0;
    }

    .facility-spacer {
        width: 100%;
        height: 100px;
    }
}