/* banner */
.row-banner-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgrey;
}

.banner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

#ms-logo {
    width: 12rem;
    height: 12rem;
    margin: 1rem;
}

.banner-text>h1,
h2 {
    font-family: kanit;
}

#banner-text-en {
    color: gray;
}

@media (max-width: 767px) {
    .banner-logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .banner-text {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* carousel */
#carouselBackground {
    position: relative;
    overflow: hidden;
}

.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: 0;
}

.carousel-container {
    position: relative;
    z-index: 1;
}



/*sidebar*/
.data-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.nav>.nav-item>.sidebar-text.active {
    background-color: aliceblue;
    font-weight: bold;
}

.nav>.nav-item>.sidebar-text {
    color: black;
    font-size: 14px;
}

.nav>.nav-item>.sidebar-text:hover {
    background-color: lightgrey;
}

.sub-menu {
    display: none;
}

.parent-item:hover .sub-menu {
    display: block;
}

.sub-menu>li>a {
    font-size: 14px;
    text-decoration: none;
    color: grey;
}

.sub-menu>li:hover a {
    color: green;
}

.sub-menu>li:hover {
    background-color: rgb(255, 243, 243);
}

/* quote */
.container-quote {
    margin-top: 1rem;
    background-color: rgb(185, 185, 185, 0.1);
}

.philo,
.aspir,
.vis {
    padding: 0.3rem;
}

.philo>h4::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 20px;
    background-color: red;
    margin-right: 10px;
    vertical-align: middle;
}

.aspir>h4::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 20px;
    background-color: yellow;
    margin-right: 10px;
    vertical-align: middle;
}

.vis>h4::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 20px;
    background-color: purple;
    margin-right: 10px;
    vertical-align: middle;
}

.philo>h4,
blockquote {
    font-family: kanit;
}

.aspir>h4,
blockquote {
    font-family: kanit;
}

.vis>h4,
blockquote {
    font-family: kanit;
}

@media (max-width: 991px) {

    .philo>h4 {
        font-size: 24px;
    }

    .philo>blockquote {
        font-size: 16px;
    }

    .aspir>h4 {
        font-size: 24px;
    }

    .aspir>blockquote {
        font-size: 16px;
    }

    .vis>h4 {
        font-size: 24px;
    }

    .vis>blockquote {
        font-size: 16px;
    }
}


/*headmaster*/
.headmaster-container {
    margin-top: 3rem;
    font-family: kanit;
    display: flex;
}

.headmaster-img>img {

    width: 10rem;
    border: 2px solid #333;

}

.headmaster-text {
    padding: 1.5rem;
}

@media (max-width: 991px) {
    .headmaster-container {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .headmaster-text>h3 {
        font-size: 25px;
    }

    .headmaster-text>h5 {
        font-size: 20px;
    }

    .headmaster-text>p {
        font-size: 15px;
    }

    .sidebar-col>.sidebar {
        display: none;
    }
}

/* info-container */
.info-banner-container {
    margin-top: 3rem;
    text-align: center;
    font-family: kanit;
}

.info-banner>h5>svg {
    margin-right: 10px;
    fill: red;
}

.info-banner>h5 {
    color: red;
}

.info-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.info-container>.info-row-1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-col>a>.card {
    margin-top: 1rem;
    width: 100%;
    height: 12rem;
}


.card>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-col {
    height: 23rem;
}

#card01 {
    background-color: rgb(231, 231, 231, 0.3);
}

#card02 {
    background-color: rgb(231, 231, 231, 0.7);
}

#card03 {
    background-color: rgb(231, 231, 231, 0.3);
}

#card04 {
    background-color: rgb(231, 231, 231, 0.7);
}

#card05 {
    background-color: rgb(231, 231, 231, 0.7);
}

#card06 {
    background-color: rgb(231, 231, 231, 0.3);
}

#card07 {
    background-color: rgb(231, 231, 231, 0.7);
}

#card08 {
    background-color: rgb(231, 231, 231, 0.3);
}

@media (max-width: 991px) {
    #card03 {
        background-color: rgb(231, 231, 231, 0.7);
    }

    #card04 {
        background-color: rgb(231, 231, 231, 0.3);
    }

    #card05 {
        background-color: rgb(231, 231, 231, 0.3);
    }

    #card06 {
        background-color: rgb(231, 231, 231, 0.7);
    }
}



.card-bottom>h6 {
    margin-top: 1rem;
    font-size: 16px;
}

.card-bottom>p {
    font-size: 13px;
}

.card-bottom>* {
    font-family: kanit;
}

@media (max-width: 991px) {
    .card-bottom>p {
        font-size: 12px;
    }
}

/*-------- make card animate ----------*/
.card>img {
    transition: transform 0.4s ease;
}

.card {
    overflow: hidden;
}

.card:hover img {
    transform: scale(1.05);
}
