html {
    scroll-behavior: smooth;
}

body {
    font-family: "Kanit", Tahoma, Loma !important;
}

.content {
    font-family: "Kanit", Tahoma, Loma !important;
}

header#mainmenu2023 {
    background-color: #00914d;
    /* position: static; */
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    display: flex;
    padding: 10px 0 0 0;
    align-items: center;
    /* box-shadow: 0 0 15px 0 black; */
    z-index: 9999;
}

header * {
    display: inline;
}

.topmenu {
    color: #FFF;
    text-decoration: none !important;
    font-family: Mitr;
}

.topmenu,
.topmenu ul,
.topmenu li,
.topmenu a {
    list-style: none;
    /* display: block; */
    position: relative;
}

.topmenu>ul>li>a {
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 16px;
    padding: 1rem 0;
}

.topmenu>ul>li.select>a,
.topmenu>ul>li:hover>a,
.topmenu>ul>li>ul>li.select>a,
.topmenu>ul>li>ul>li:hover>a,
.topmenu>ul>li>ul>li>ul>li.select>a,
.topmenu>ul>li>ul>li>ul>li:hover>a {
    text-decoration: none !important;
    background-color: #ffffff;
    color: #008812;
}

.topmenu>ul ul ul {
    top: 0;
    left: 100%;
    z-index: 9;
}

.topmenu li:hover>ul ul {
    display: block;
    position: absolute;
}

.logo {
    float: left;
    min-width: 50px;
}

header#mainmenu2023 img {
    height: 50px;
}

.titleWeb {
    float: left;
    width: 250px;
    font-family: Mitr;
}

.titleWeb h4 {
    font-size: 16px;
}

.titleWeb h6 {
    font-size: 12px;
}

.app {
    min-height: 100px;
}

.cont-middle {
    padding: 25px 7%;
    background: #fafafa url("img/black-board.jpg") center top no-repeat;
    border-top: solid 1px #fff;
    -webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1);
    min-height: 700px;
}

h2.headline {
    font-family: "Kanit", Tahoma, Loma !important;
    font-size: 1.4em!important;
    color: #000;
    padding: 0px;
}

a {
    color: #0e5337;
    text-decoration: none;
    background-color: transparent;
}

#sectitle {
    min-height: 100px;
    padding: 25px 25px;
    background: linear-gradient(40deg,#00502b 60.9%, transparent 61%) 0% 50% / 20em 8em;
    background-repeat: no-repeat;
    color: #FFF;
    font-size: 2rem;
}
#sectitle p {
    color: #f88e4c;
    font-size: 1rem;
}

#std-department {
    display: block;
    background-color: #00502b;
    padding-top: 15px;
}

#std-department a {
    float: left;
    width: 95%;
    padding: 25px 5px;
    margin: 0px 10px 10px 10px;
    background-color: #27a86c;
    background-image: url('img/classroom.png');
    background-repeat: no-repeat;
    background-position: 100%;
    background-size: contain;
    font-size: 1.5rem;
    color: #fff;
}

#std-department a::before,
#std-department p::before {
    content: "\1F393";
    font-size: 3rem;
}

#std-department a:hover,
#std-department p:hover {
    color: #FFF;
    background-color: #00753f;
}


/* -------------
  Sidebar
  ----------------*/

.sidebar-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #008546;
}

.sidebar-nav>ul ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #008546;
}

.sidebar-nav li a {
    display: block;
    color: #FFF;
    padding: 8px 16px;
    text-decoration: none;
}

.sidebar-nav li.select {
    background-color: #335A3B;
    color: white;
}

.sidebar-nav li a:hover:not(.select) {
    background-color: #335A3B;
    color: white;
}

.sidebar-nav li:hover ul {
    display: block;
    position: absolute;
    background-color: #6fac7b;
    /* top: 0; */
    margin-top: -25px;
    left: 20%;
    z-index: 9;
    width: max-content;
}

@media only screen and (min-width: 992px) {
    #std-department a {
        float: left;
        width: 22.7%;
        padding: 10px 2px;
        margin: 0px 10px 10px 10px;
        background-color: #27a86c;
        color: #00160d;
        font-size: 1rem;
    }
    #std-department a:hover {
        color: #FFF;
    }
}

@media only screen and (min-width: 1400px) {
    #std-department a {
        float: left;
        width: 23.2%;
        padding: 15px 5px;
        margin: 0px 10px 10px 10px;
        background-color: #27a86c;
        color: #00160d;
        font-size: 1.2rem;
    }
    #std-department a:hover {
        color: #FFF;
    }
}

.footer_grid {
    padding: 10px 0;
    border-color: rgba(255, 255, 255, 0.2);
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
}

.footer_bg_color {
    color: rgba(255, 255, 255, 0.7);
    background-color: #362f34;
}

.footer .copyright {
    text-align: center;
    font-size: 0.8em;
    background-color: rgba(48, 146, 78, 0.788);
    padding: 15px 0px;
}

.footer {
    padding: 0px;
}

.footer a {
    color: inherit;
}

.footer a:hover {
    color: #fff;
}

.footer_grid h3 {
    margin-bottom: 10px;
    display: inline-block;
    color: #fff;
    font-family: "Mitr", cursive;
    font-size: 1.0em;
}

#login-box ul,
.footer_grid ul {
    padding: 0;
    list-style-type: none;
}

.footer_grid ul.bottommenu {
    padding: 0 0 0 25px;
    list-style-type: disc;
}

.footer_grid span {
    padding: 0;
}

footer .logo img {
    width: 120px;
    height: auto;
}

.widget_personnel {
    overflow: hidden;
    clear: both;
    position: relative;
    z-index: 0;
}

.gbanner {
    position: relative;
    z-index: 0;
}

h2.headline {
    font-family: "Kanit", Tahoma, Loma !important;
    font-size: 1.4em!important;
    color: #333333;
    padding: 0px;
}

div.subline {
    border-top: 1px solid #6dce55;
    padding: 10px 0px 10px 0px;
}

h2.headline2 {
    font-family: "Kanit", Tahoma, Loma !important;
    font-size: 1.4em!important;
    color: #ffffff;
    padding: 0px;
}

div.subline2 {
    border-top: 1px solid #FFF;
    padding: 10px 0px 10px 0px;
}

.widget a {
    color: #FFF;
}

.gallery_preview {
    z-index: 999999999999;
}

h6 a.topic {
    font-family: Sriracha;
    text-decoration-line: none;
}

h6 a.topic:hover {
    color: #000000;
}

.white {
    color: white;
}

.document-list .col,
.document-list .col1,
.document-list .col2,
.document-list .col3,
.document-list .col4,
.document-list .col5,
.document-list .col6,
.document-list .col7,
.document-list .col8,
.document-list .col9,
.document-list .col10,
.document-list .col11,
.document-list .col12 {
    display: block;
    float: left;
    border-width: 2px;
    border-bottom-style: dotted;
    border-color: rgba(255, 255, 255, 0.651);
    padding: 0 5px 5px;
}

.comments {
    color: #e77204;
}

.visited {
    color: black;
}

footer section {
    font-family: Mitr;
}

.gallery>.document-list .col,
.gallery>.document-list .col1,
.gallery>.document-list .col2,
.gallery>.document-list .col3,
.gallery>.document-list .col4,
.gallery>.document-list .col5,
.gallery>.document-list .col6,
.gallery>.document-list .col7,
.gallery>.document-list .col8,
.gallery>.document-list .col9,
.gallery>.document-list .col10,
.gallery>.document-list .col11,
.gallery>.document-list .col12 {
    display: block;
    float: left;
    border-width: 0px !important;
    padding: 0 5px 5px;
}

.widget .green a {
    color: #196630;
}

.event-calendar {
    background: #FFF;
}

.bg_white {
    background: #FFF;
}

.widget-calendar .set-today {
    color: #196630;
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 999999999;
}