/* -------------- banner ----------------------------- */

.deptbanner-container {
    margin-top: 2rem;
    text-align: center;
    background-color: rgb(76, 122, 54);
    padding: 10px;
}

.deptbanner-container>* {
    font-family: kanit;
    color: white;
}

/* -------------- ข้อมุลกอง ----------------------------- */

.deptimg-container {
    margin-top: 2rem;
}

.deptimg-container>.row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.structure-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.structure-row>img {
    max-width: 800px;
}

.pic-text>.pic,
.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pic-text>.pic>img {
    margin-top: 15px;
    border: 2px solid #333;
    box-shadow: 5px 5px 1px rgba(119, 119, 119, 0.3);
}

#pic00 {
    width: 30%;
    max-width: 200px;
    max-height: 250px;
    min-width: 150px;
    min-height: 200px;
}

#pic01 {
    width: 30%;
    width: 150px;
    height: 200px;
}


.pic-text>.text {
    position: relative;
}

.pic-text>.text::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 80px;
    background-color: rgb(235, 234, 234, 0.3);
    box-shadow: 5px 5px 1px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.pic-text>.text>* {
    font-family: kanit;
}


#name {
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
}


@media (max-width: 980px) {
    #pic00 {
        max-width: 150px;
        max-height: 200px;
        min-width: 110px;
        min-height: 120px;
    }

    #pic01 {
        width: 10%;
        width: 100px;
        height: 130px;
    }

    #name {
        font-size: 14px;
    }

    #position {
        font-size: 12px;
    }

    .pic-text>.text::after {
        width: 220px;
    }
}

@media (max-width: 440px) {
    .deptimg-container>.row {
        display: flex;
        flex-direction: column;
    }
}


/*------------------------------- sidebar ------------------------------------*/
/*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,
.duty {
    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;
}

.duty>h4::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 20px;
    background-color: darkgreen;
    margin-right: 10px;
    vertical-align: middle;
}


.philo>h4,
blockquote {
    font-family: kanit;
}

.aspir>h4,
blockquote {
    font-family: kanit;
}

.vis>h4,
blockquote {
    font-family: kanit;
}

.duty>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;
    }

    .duty>h4 {
        font-size: 24px;
    }

    .duty>blockquote {
        font-size: 16px;
    }
}



@media (max-width: 991px) {

    .sidebar-col>.sidebar {
        display: none;
    }
}



/*----------------------- info ----------------------------*/
.info-banner-container {
    margin-top: 3rem;
    text-align: center;
    font-family: kanit;
}


.info-banner>h5 {
    color: red;
    font-size: 25px;
}

.info-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/*--- card ---*/
.row-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    width: 400px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: zoom-in;
    margin-top: 2rem;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-text {
    color: white;
    padding: 10px;
    font-size: 1.1rem;
    font-family: kanit;
}