/* © AM Specialists Group Ltd */
/* LANDING PAGE */
#Home {
    flex-direction: row;
}
#Home > a {
    display: flex;
    flex: 1;
}
.slide {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

.slide-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    padding: 1rem 0;
    text-align: center;
    font-size: 2rem;
    line-height: 2rem;
    font-weight: 600;
    color: var(--text-colour);
    z-index: 10;
}

#overlay-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    pointer-events: none;
    color: var(--theme-colour);
    opacity: 0.66;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: transform 0.5s ease, color 0.5s ease;
}

body:has(.safety-slide:hover) #overlay-svg {
    color: var(--safety-blue-1);
    transform: translate(-50%, -50%) translateX(-10vw);
}

body:has(.training-slide:hover) #overlay-svg {
    color: var(--training-red-1);
    transform: translate(-50%, -50%) translateX(10vw);
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    #Home {
        flex-direction: column;
    }
    #Home > a {
        flex: none;
        display: block;
        width: 100%;
    }

    .slide {
        width: 100%;
        height: 50vh;
    }
    .header-svg,
    .header-button-ctr,
    #overlay-svg {
        display: none;
    }


    .slide {
        width: 100%;
        height: 50vh;
    }

    .slide-footer {
        font-size: 1rem;
        line-height: 1rem;
    }

    .tile-container {
        flex-direction: column;
    }

    .tile {
        width: 100% !important;
    }

    .about-tile {
        width: 100% !important;
        height: auto !important;
    }

    .about-1 {
        display: none;
    }

    .about-3 {
        flex-direction: row;
        overflow-x: scroll;
        justify-content: start;
    }
}
