.hero {
    height: calc(100dvh - var(--nav-height));
    display: flex;

    &>.hero-item {
        cursor: pointer;
        background-size: auto 100%;
        background-position: center top;
        background-repeat: no-repeat;
        background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), var(--site-hero-image);
        display: flex;
        align-items: end;

        @media(pointer: fine)and (hover: hover) {
            &:hover .hero-item-title {
                background-color: rgba(0, 0, 0, 0.5);
                border-top: 1px solid rgba(255, 255, 255, 0.5);
                font-size: 3cqw;
                height: 13cqw;
                color: var(--site-primary-light-color);
                align-items: center;

                &::after {
                    font-size: 10vmin;
                }
            }
        }

        & .hero-item-title {
            width: 100%;
            container-type: inline-size;
            color: #fff;
            font-size: 2.5cqw;
            font-weight: 500;
            text-transform: uppercase;
            font-family: 'Times New Roman', Times, serif;
            padding: 3cqw 2cqw;
            /* height: 10cqw; */
            background-color: rgba(0, 0, 0, 0);
            display: flex;
            align-items: end;
            justify-content: space-between;
            transition: all 1s ease;

            @media(max-width: 1024px) {
                font-size: 6cqw;
                height: 100%;
                align-items: center;
                padding: 5cqw;
                border-top: 1px solid rgba(255, 255, 255, 0.5);
            }

            @media(min-width: 1024px) {
                &::after {
                    font-family: bootstrap-icons;
                    content: '\F285';
                    font-size: 5vmin;
                    color: rgba(255, 255, 255, 0.5);
                    transition: all 1s ease;
                }
            }
        }

        &:nth-child(1) {
            --site-hero-image: url(../assets/images/hero-slides-1.jpg);
            /* background-color: hsl(from var(--site-primary-color) h s 30%); */
        }

        &:nth-child(2) {
            --site-hero-image: url(../assets/images/hero-slides-3.jpg);
            /* background-color: hsl(from var(--site-primary-color) h s 60%); */
        }

        &:nth-child(3) {
            --site-hero-image: url(../assets/images/hero-slides-4.jpg);
            /* background-color: hsl(from var(--site-primary-color) h s 80%); */
        }

        &:nth-child(4) {
            --site-hero-image: url(../assets/images/hero-slides-2.jpg);
            /* background-color: hsl(from var(--site-primary-color) h s 10%); */
        }

        transition: flex-grow 1.5s ease;
        flex-grow:1;

        @media((pointer: fine) and (hover: hover)) {
            &:hover {
                flex-grow: 2;
                background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1)), var(--site-hero-image);
            }
        }

        @media (max-width:1024px) and (orientation:portrait){
            height: calc(calc(100dvh - var(--nav-height)) / 4);
            background-size: 100% auto;
            background-position: center;
            background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0)), var(--site-hero-image);

            &:nth-child(even) {
                background-image: linear-gradient(270deg, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0)), var(--site-hero-image);
            }

            &:nth-child(even) .hero-item-title {
                justify-content: flex-end;
            }
        }
    }

    @media(max-width: 1024px) and (orientation:portrait) {
        flex-direction: column;
    }
}

.home-video video {
    object-fit: cover;
    width: 100%;
    height: auto;
}

section#about {
    background-image: url('../assets/images/home-about.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    padding: 12vmax 0;

    @media(max-width: 768px) {
        background-position: bottom center;
        background-size: 120% auto;
        padding-bottom: 40vmax;
        padding-inline: 2rem;
        padding-top: 6vmax;

    }
}

section#admission {
    & .admission-content {
        width: 60%;

        @media(max-width: 768px) {
            width: 100%;
            padding-inline: 2rem;
            padding-block: 4rem;
        }
    }
}

section#successed {
    padding-inline: 2rem;
}

.home-h2 {
    font-family: 'Times New Roman', 'Microsoft JhengHei', serif;
    font-size: 3rem;
    text-transform: uppercase;

    @media(max-width: 768px) {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {}