a{
    color: #BB0000;
}
a:hover{
    color:red;
}
body.cke_editable{
    padding: 15px;
}
html,
body{
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    font-size: 16px;
}

body:not(.cke_editable){
    padding-top: 80px;
    overflow-x: hidden;
    -webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}
body.ScrollUp{
    padding-top: 70px;
}
a{
    outline: none;
}
/* Loading */
#lds-main {
    display: block;
    position: relative;
    width: 64px;
    height: 40px;
    margin: 0 auto;
}

#lds-main div {
    position: absolute;
    top: 15px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ccc;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

#lds-main div:nth-child(1) {
    left: 6px;
    animation: lds-main1 0.6s infinite;
}

#lds-main div:nth-child(2) {
    left: 6px;
    animation: lds-main2 0.6s infinite;
}

#lds-main div:nth-child(3) {
    left: 26px;
    animation: lds-main2 0.6s infinite;
}

#lds-main div:nth-child(4) {
    left: 45px;
    animation: lds-main3 0.6s infinite;
}

@keyframes lds-main1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-main3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-main2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(19px, 0);
    }
}
#main_loading{
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 999999;
}
#main_loading #lds-main{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}
#mainmenu{
    padding: 0;
    margin: 0;
    height: 100%;
}
header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 80px;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
    -ms-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    transition: all ease 0.3s;
}
.ScrollUp header{
    position: fixed;
    height: 60px;
}
.headlayout .logo img{
    height: 25px;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
}
.ScrollUp .headlayout .logo img{
    height: 20px;
}
.s_lang{
    display: flex;
}
.s_lang a{
    display: inline-block;
    padding: 0 5px;
    font-size: 16px;
    color: #000;
    padding: 2px 5px;
    text-decoration: none;
}
.s_lang a.active{
    color: #BB0000;
    font-weight: bold;
}
.s_lang a:hover{
    background: #eee;
}
header .navbar-brand{
    padding: 0;
    font-size: inherit;
    display: flex;
}
header .navbar-nav{
    padding: 0;
    margin: 0;
}
.headlayout{
    display: flex;
    justify-content: flex-end;
    min-width: 100%;
    align-items: center;
    position: relative;
    padding-right: 25px;
}
.headlayout .logo{
    padding-left: 25px;
    position: absolute;
    left: 0;
}
.headlayout #main_menu{
    font-size: 14px;
}
.headlayout #main_menu a{
    color: #000;
    text-decoration: none;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
    -ms-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    transition: all ease 0.3s;
    display: block;
    font-size: 18px;
    padding: 0 25px;
    font-weight: 300;
}
.headlayout #main_menu li.active > a,
.headlayout #main_menu a:hover,
.headlayout #main_menu a[aria-expanded="true"]{
    color: #b20004;
}
.headlayout #main_menu a:hover i{
    border-color: #b20004;
}
.headlayout #main_menu a[aria-expanded="true"] i{
    border-color: #333;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);   
}
.headlayout #main_menu > ul.navbar-nav > li{
    position: relative;
    display: flex;
    justify-content: flex-start;
    -webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}
/* .headlayout #main_menu > ul.navbar-nav > li:hover{
    -webkit-transform: translateY(-5px);
       -moz-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
         -o-transform: translateY(-5px);
            transform: translateY(-5px);
}
@media (max-width: 767px) {
    .headlayout #main_menu > ul.navbar-nav > li:hover{
        -webkit-transform: translateY(0);
           -moz-transform: translateY(0);
            -ms-transform: translateY(0);
             -o-transform: translateY(0);
                transform: translateY(0);
    }
} */
.headlayout #main_menu > ul.navbar-nav > li.g{
    position: relative;
}
.headlayout #main_menu > ul.navbar-nav > li ul.ss{
    position: absolute;
    left: 15px;
    top: 100%;
    background: rgb(102 102 102 / 90%);
    padding: 15px 15px;
    list-style: none;
}
.headlayout #main_menu > ul.navbar-nav > li ul.ss::before{
    content: '';
    display: block;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin: auto;
    width: 0px;
    height: 0px;
    border-bottom: 15px solid rgb(102 102 102 / 90%);
    border-right: 15px solid transparent; /* ซ่อนขอบขวา */
    border-top: 15px solid transparent; /* ซ่อนขอบล่าง */
}
.headlayout #main_menu > ul.navbar-nav > li ul.ss > li > a{
    display: block;
    min-width: 150px;
    padding: 4px 5px;
}
.headlayout #main_menu > ul.navbar-nav > li ul.ss > li:hover > a{
    -webkit-transform: translateX(5px);
    -moz-transform: translateX(5px);
    -ms-transform: translateX(5px);
    -o-transform: translateX(5px);
    transform: translateX(5px);   
}
.headlayout #main_menu > ul.navbar-nav > li .submenu{
    position: absolute;
    top: calc(100% + 10px);
    left: 25px;
    background: #fff;
    min-width: 200px;
    padding: 10px 0;
    padding-bottom: 0;
    display: none;
}
.headlayout #main_menu > ul.navbar-nav > li .submenu#sub_menu2{
    min-width: 180px;
}
.headlayout #main_menu > ul.navbar-nav > li .submenu > ul{
    list-style: none;
    padding: 0;
    margin: 0;
    padding: 15px 0;
    padding-top: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-top: 7px solid #b20004;
    border-bottom: 7px solid #b20004;
    width: 100%;
}
.headlayout #main_menu > ul.navbar-nav > li .submenu > ul::before{
    content: '';
    position: absolute;
    top: -20px;
    left: 0px;
    width: 0px;
    height: 0px;
    border-bottom: 15px solid #b20004;
    border-right: 15px solid transparent;
}
.headlayout #main_menu > ul.navbar-nav > li .submenu > ul > li > a{
    padding: 5px 25px;
    display: block;
    text-align: left;
    font-weight: normal;
    font-size: 16px;
}
@media (max-width: 767px) {
    .headlayout #main_menu > ul.navbar-nav > li{
        display: block;
        padding: 0!important;
    }
    .headlayout #main_menu > ul.navbar-nav > li .submenu{
        position:inherit;
        display: none!important;
    }
    .headlayout #main_menu > ul.navbar-nav > li .submenu > ul::before{
        display: none;
    }
    .headlayout #main_menu > ul.navbar-nav > li .submenu{
        padding: 0;
    }
    .headlayout #main_menu > ul.navbar-nav > li .submenu > ul{
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .headlayout #main_menu > ul.navbar-nav > li .submenu > ul > li{
        border-top: 1px solid #eee;
    }
    .headlayout #main_menu > ul.navbar-nav > li .submenu > ul > li > a{
        padding: 10px 15px;
        text-align: center;
    }
}
.searchbox{
    padding-left: 5px;
    padding-right: 15px;
}
.searchbox a{
    font-size: 20px;
    color: #000;
}
.headinner{
    display: flex;
    align-items: center;
    padding: 0;
    background: #000;
    background-size: cover;
    color: #fff;
    height: 25vw;
    min-height: 520px;
    overflow: hidden;
    position: relative;
}
.headinner h1{
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 80px;
    text-transform: uppercase;
}
.headinner p{
    text-align: center;
    font-size: 1.8em;
}
.headinner .link{
    text-align: center;
    font-size: 1.5em;
    padding-top: 1em;
}
.headinner strong{
    color: #bf0202;
}
.headinner strong.black{
    color: #000;
}
#ifmsubmit{
    display: none;
    position: fixed;
    top: 0;
    height: 200px;
    width: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    background: #fff;
}
.searchinput{
    display: flex;
    height: 80px;
}
.searchinput input{
    border: 0;
    border-radius: 0;
    height: 100%;
    padding: 0 30px;
    font-size: 2em;
}
.searchinput button{
    background: #bf0202;
    color: #fff;
    border: none;
    border-radius: 0;
    min-width: 100px;
    max-width: 100px;
    font-size: 2em;
}
.cardlists{
    background: #fff;
    padding: 2em;
    border-bottom: 10px solid #bf0202;
    position: relative;
    min-height: 300px;
}
.cardlists .subject{
    font-size: 20px;
    display: block;
    color: #000;
    font-weight: bold;
    margin-bottom: 0.2em;
}
.cardlists p{
    font-size: 16px;
    color: #737070;
}
.cardlists .date{
    position: absolute;
    bottom: 1em;
    font-size: 1.2em;
    color: #737070;
}
.paginatorbox{
    padding: 20px 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}
.paginatorbox a{
    display: block;
    background: #000;
    width: 100px;
    height: 100px;
}
.paginatorbox .pagetext{
    font-size: 2em;
    padding: 0 40px;
}
.paginatorbox .pagetext strong{
    color: #bf0202;
}
.paginatorbox a.prev{
    background: url('../img/news/icon-back1.png') center center no-repeat;
    background-size: cover;
}
.paginatorbox a.prev:hover{
    background-image: url('../img/news/icon-back1-2.png');
}
.paginatorbox a.next{
    background: url('../img/news/icon-back2.png') center center no-repeat;
    background-size: cover;
}
.paginatorbox a.next:hover{
    background-image: url('../img/news/icon-back2-2.png');
}
.datanotfound{
    text-align: center;
    padding: 50px 0;
    font-size: 18px;
    color: #ccc;
}
footer{
    background: #000;
    color: #fff;
    padding: 50px 0;
    padding-bottom: 0;
}
footer a{
    color: #fff;
    text-decoration: none;
    -webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}
footer .sec1{
    padding-bottom: 50px;
}
footer .sec1 .address{
    min-width: 400px;
}
footer .sec1 .address h3{
    font-weight: 500;
    font-size: 30px;
    margin-bottom: 13px;
}
footer .sec1 .col > ul{
    list-style: none;
    padding: 0;
}
footer .sec1 .col > ul a{
    -webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}
footer .sec1 .col > ul a:hover{
    color: #fff;
    text-decoration: none;
    -webkit-transform: translate(5px);
    -moz-transform: translate(5px);
    -ms-transform: translate(5px);
    -o-transform: translate(5px);
    transform: translate(5px);
    
}
footer .sec1 .col > ul > li > a{
    font-size: 22px;
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
}
footer .sec1 .col > ul > li > ul{
    padding: 0;
    list-style: disc;
    padding-left: 25px;
}
footer .sec1 .col > ul > li > ul > li > a{
    display: block;
    padding: 5px 0;
}
footer .sec1 .col.menu3 > ul > li > a{
    margin-bottom: 20px;
}
footer hr{
    border-color: #646464;
    padding: 0;
    margin: 0;
}
footer .sec2{
    padding: 10px 0;
    padding-bottom: 15px;
}
footer .social a{
    display: inline-block;
    padding: 0 5px;
    font-size: 20px;
}
footer .social a:hover{
    -webkit-transform: scale(1.2) rotate(15deg);
    -moz-transform: scale(1.2) rotate(15deg);
    -ms-transform: scale(1.2) rotate(15deg);
    -o-transform: scale(1.2) rotate(15deg);
    transform: scale(1.2) rotate(15deg);
    color: #fff;
}
/*inner html*/
.new_info .n_img{
    margin-bottom: 15px;
    display: block;
    overflow: hidden;
}
.new_info .n_img > img{
    width: 100%;
    -webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}
.new_info:hover .n_img > img{
    -webkit-transform: scale(1.05);
       -moz-transform: scale(1.05);
        -ms-transform: scale(1.05);
         -o-transform: scale(1.05);
            transform: scale(1.05);
}
.new_info .n_subject{
    margin-bottom: 15px;
    color: #000;
    font-size: 22px;
    line-height: 26px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    display: block;
}
.new_info .sec_desc > p{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
.news_lists_layout > li .n_name{
    position: relative;
}
.new_info .n_cate{
    background: #f6b518;
    display: inline-block;
    padding: 4px 15px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #fff;
    font-size: 14px;
}
.new_info .n_cate.b{
    background: #f67618;
}
.new_info .n_desc{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.new_info .n_desc a.icon img{
    -webkit-transition: all .6s ease;
       -moz-transition: all .6s ease;
        -ms-transition: all .6s ease;
         -o-transition: all .6s ease;
            transition: all .6s ease;
}
.new_info .n_desc a.icon:hover img{
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
.embed_code > iframe,
.embed_code > video{
    min-width: 100%;
    max-width: 100%;
    min-height: 700px;
}
#ifmsubmit{

}