@media (min-width: 1921px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1920px;
    }   
}
/* @import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;200;300;400;500;600&display=swap'); */
body.cke_editable{
    padding: 15px;
}
html,
body{
    font-family: 'Kanit', sans-serif;
}
body:not(.cke_editable){
    font-size: 1em;
    padding-top: 100px;
    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;
}
a[href="javascript:;"]{
    cursor: default;
}
/* 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: 100px;
    -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: 70px;
}
.headlayout .logo img{
    height: 63px;
    -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: 45px;
}
header .navbar-brand{
    padding: 0;
}
header .navbar-nav{
    padding: 0;
    margin: 0;
}
.headlayout{
    display: flex;
    justify-content: space-between;
    min-width: 100%;
    align-items: center;
}
.headlayout .logo{
    padding-left: 15px;
}
.headlayout #main_menu{
    font-size: 14px;
    font-weight: 500;
}
.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;
}
.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: center;
    -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% + 5px);
    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: 280px;
}
.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;
    width: 100%;
}
.headlayout #main_menu > ul.navbar-nav > li .submenu > ul::before{
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0px;
    height: 0px;
    border-bottom: 10px solid #b20004;
    border-right: 8px solid transparent; /* ซ่อนขอบขวา */
    border-left: 8px 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-right: 15px;
}
.searchbox a{
    font-size: 30px;
    color: #000;
}
footer .sec1{
    background: url('/web-assets/img/footer-bg.jpg') center center no-repeat;
    background-size: cover;
    color: #fff;
    position: relative;
}
footer .sec1::before{
    content: '';
    background: #b20004;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 65px;
}
footer .sec1 a{
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
footer .sec1 .col > a{
    font-size: 20px;
    display: flex;
    height: 65px;
    align-items: center;
}
footer .sec1 .sub{
    padding: 40px 0;
    padding-bottom: 100px;
}
footer .sec1 .sub > ul{
    list-style: none;
    padding: 0;
}
footer .sec1 .sub > ul > li > a{
    display: block;
    padding: 5px 0;
}
footer .sec2{
    background: #fff;
    padding: 20px 0;
}

footer .sec2 .row{
    display: flex;
    align-items: center;
}
footer .sec2 .copyright{
    text-align: right;
}
footer .subcontact{
    display: flex;
    flex-wrap: wrap;
}
footer .subcontact a{
    min-width: 100%;
}
footer .subcontact a i{
    margin-right: 15px;
    font-size: 24px;
}
footer .subcontact a{
    padding-bottom: 5px;
    display: block;
}
footer .sec1 .row .col:nth-child(6){
    min-width: 300px;
    max-width: 300px;
}
footer .sec1 .col.social_text > a{
    font-size: 28px;
}
footer .sec1 .col.social_text .social{
    display: flex;
    flex-wrap: wrap;
    padding-top: 20px;
}
footer .sec1 .col.social_text .social a{
    font-size: 34px;
    color: #fff;
    display: block;
    width: 50px;
    height: 50px;
    background: #fff;
    text-align: center;
    border-radius: 50%;
    margin-right: 15px;
    margin-bottom: 15px;
}
footer .sec1 .col.social_text .social a:last-child{
    margin-right: 0;
}
footer .sec1 .col.social_text .social a i{
    color: #000;
}
.headinner{
    display: flex;
    align-items: center;
    padding: 0;
    background: #54195e;
    /* background: url('../img/contact/tg.jpg') center center no-repeat; */
    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: 5.5em;
}
.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;
}
.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: 2em;
    display: block;
    color: #000;
    font-weight: bold;
    margin-bottom: 0.2em;
}
.cardlists p{
    font-size: 1.2em;
    color: #737070;
}
.cardlists .date{
    position: absolute;
    bottom: 1em;
    font-size: 1.2em;
    color: #737070;
}
.paginatorbox{
    padding: 5em 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;
}