.homepage_slide {
    img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

.mission-vision-values-section {
    padding: 4rem 0;
}

.splide__video__wrapper {
    div {
        video {
            object-fit: cover;
        }
    }
}

.mvv-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;

    @media (min-width: 768px) {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.mvv-card {
    background-color: transparent;
    perspective: 1000px;
    aspect-ratio: 3/4;
}

.mvv-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 10px;
}

.mvv-card:hover .mvv-card-inner {
    transform: rotateY(180deg);
}

.mvv-card-front, .mvv-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 10px 10px 15px 0px rgba(0,0,0,0.5);
    background: #e3e3e3;
    color: #404040;
    padding: 2rem;

    h2 {
        font-family: "Bona Nova SC", serif;
        font-size: 3.75rem;
        line-height: 1;
        margin: 0 2rem 2rem 2rem;
    }

    img {
        width: 100%;
    }
}

.mission-title {
    color: var(--text-accent);
}

.vision-title {
    color: var(--background-accent);
}

.values-title {
    color: #000000;
}

.mvv-card-back { 
    transform: rotateY(180deg);
}

.incident-sub-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.incident-list {
    padding: 1rem 0;
}

.incident-box {
    margin-bottom: 3rem;
    display: grid;
    gap: 2rem;
    padding: 1rem 0;

    &.incident-video-right {
        grid-template-columns: 2fr 1fr;
        
        .incident-details {
            text-align: left;
        }
    }

    &.incident-video-left {
        grid-template-columns: 1fr 2fr;

        .incident-details {
            text-align: right;
        }
    }
}

.incident-video {
    display: flex;
    justify-content: center;

    iframe {
        aspect-ratio: 16 / 9;
        width: 100% !important;
        height: auto;
    }
}

.department-info-entry {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;

    @media (min-width: 768px) {
        grid-template-columns: 2fr 1fr;
    }
}

.department-info-entry-right {
    display: flex;
    justify-content: center;

    @media (min-width: 768px) {
        justify-content: end;
    }

    img {
        object-fit: contain;
    }
}

.additional-info-section {
	background: #e3e3e3;
    padding: 4rem 0;

    h2 {
        margin-top: 0;
    }
}

.news-section {
    padding: 4rem 0;

    h2 {
        margin-top: 0;
    }
}

.news-cards-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;

    @media (min-width: 768px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 10px 10px 15px 0px rgba(0,0,0,0.5);
    transition: all 0.1s linear;
    text-decoration: none;
    color: var(--text-base);
    background: #e3e3e3;

    .news-image-area {
        height: 15rem;
        overflow: hidden;

        img {
            object-fit: cover;
        }
    }

    .news-text-area {
        padding: 0 2rem;

        h3, p {
            color: var(--text-base);
        }
    }

    &:hover {
        box-shadow: 15px 15px 15px 0px rgba(0,0,0,0.5);
        transform: scale(1.05);
        transition: all 0.1s linear;
    }
}

.all-news-button {
    text-decoration: none;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    background: var(--background-accent);
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1.75rem;
    display: inline-block;

    &:hover {
        filter: brightness(1.1);
    }

    &:visited {
        color: #FFFFFF;
    }
}

.news-cards-section {
    h3 {
        margin-top: 0.25rem;
    }

    .news-date {
        margin-bottom: 0;
    }
}

.big-stats-section {
    padding: 4rem 0;
    background-size: cover;
    background-position: center;
}

.big-stats-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    @media (min-width: 768px) {
        flex-direction: row;
    }
}

.big-stat {
    display: flex;
    color: #FFFFFF;
    justify-content: center;

    img {
        object-fit: contain;
    }
}

.stat-text {
    padding: 1rem;

    h4 {
        font-size: 1.5rem;
        line-height: 2rem;
        margin: 0;
        padding: 0;
    }

    p {
        margin: 0;
        padding: 0;
        font-weight: bold;
    }
}

.map-section {
    padding: 4rem 0;

    h2 {
        margin-top: 0;
    }
}

.map-link {
    display: inline-block;
    box-shadow: 10px 10px 15px 0px rgba(0,0,0,0.5);
    border-radius: 10px;
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.1s linear;

    &:hover {
        box-shadow: 20px 20px 15px 0px rgba(0,0,0,0.5);
        transform: scale(1.05);
        transition: all 0.1s linear;
    }
}