@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/NotoSansThai-Regular.ttf ') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans Thai';
    src:  local('IBM Plex Sans Thai'),url('../fonts/IBMPlexSansThai-Regular.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Sarabun';
    src:  url('../fonts/Sarabun-Regular.ttf') format('truetype');
}
body{
    font-family: "IBM Plex Sans Thai", serif;
    font-size: 16px;
    background: url(../images/bodybg.jpg) repeat;
}
#wrapper{
    background: #FFFFFF;
    padding: 1rem !important;
}
.container{
    max-width: 1140px !important;
}

.navbar-main{
    background: #292C31 !important;
}
.navbar-main .nav-item{
    transition: 0.5s;
    padding: 0.375rem 1rem !important;
}
.navbar-main .nav-item:hover,
.navbar-main .nav-item.active{
    background: #78C317;

}
.navbar-main .nav-item:hover a.nav-link,
.navbar-main .nav-item.active a.nav-link{
    color: #330101;
    font-weight: 500;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.51);
}
.navbar-brand img.logo-image{
    max-width: 320px;
}


.footer{
    color: #999999 !important;
}
.footer ul{
    margin-left: 0;
    padding-left: 1em;
}
.footer a{
    color: #999999;
    text-decoration: none;
}
.footer a:hover{
    color: #CCCCCC;
}
hr.line-green{
    margin:0 auto;
    height: 3px;
    color:#78C317;
}
.content a{
    text-decoration: none;
}
.content p:last-child{
    margin-bottom: 0;
}

.border-green{
    border-color:#98C933 !important;
}
.card-title{
    font-weight: bolder;
    text-shadow: -1px -1px 1px rgba(255,255,255,.1), 1px 1px 1px rgba(0,0,0,.5);
}
.card-title a{
    text-decoration: none;
    transition: 0.5s;
}
.card-title a:hover{
    color: #98C933;
}
.card-car{
    overflow: hidden;
}
.card-car img{
    transition: 0.5s;
    opacity: 0.8;
}
.card-car:hover img{
    transform: scale(1.1);
    opacity: 1;
}
.card-desc1{
    height: 4.5rem;
    overflow: hidden;
}
.card-desc2{
    height: 3.0rem;
    overflow: hidden;
}

.page-title{
    font-size: 2rem;
}
.page-sub-title{
    font-size: 1.4rem;
}
img.card-img-top{
    height: auto;
}
img{
    height: auto ;
}

.breadcrumb a{
    text-decoration: none;
}
.post-related a{
    transition: 0.5s;
    text-decoration: none;
}
.post-related a:before{

}
.post-related a:hover{
    text-decoration: underline;
}

ul li.item-category a{
    text-decoration: none;
    color: #1a1e21;
    transition: 0.5s;
}

ul li.item-category a:hover{
    text-decoration: underline;
    color:#98C933;
}

.side-panel{

}
.side-panel .side-menu{

}
.side-panel .side-menu .menu-item a.menu-link{
    text-decoration: none;
    color:#350000;
    transition: 0.3s;
}
.side-panel .side-menu .menu-item a.menu-link:hover{
    color:#78C317;
}

.section-post{
    font-family: Sarabun, Sans-serif;
}
.post-section{
    font-family: Sarabun, Sans-serif;
}
.post-section .card-header{
    font-family: "Noto Sans Thai";
}
.post-section .card-header a{
    text-decoration: none;
    color:#452121;
}

.post-item,.post-item img{
    transition: 0.5s;
}
.post-item:hover img{
    transform: scale(1.05);
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) ;
}



@media only screen and (max-width: 768px) {
    body{
        background: #DEDEDE !important;
    }
    .container {

    }
    .navbar{
        display: block;
    }
    .navbar-expand .navbar-nav{
        width: 100% !important;
        display: block;
    }
    .navbar-expand .navbar-nav .nav-item{
        display: block !important;
        padding: 0.1rem 0.375rem !important;
        border-bottom: 1px dotted rgba(200,200,200,0.5);
    }
    .navbar-expand .navbar-nav .nav-item:last-child{
        border-bottom: none;
    }
    .nav-top .navbar-collapse{
        display: block !important;
        width: 100% !important;
    }
    .nav-top .container-fluid{
        padding-left: 0;
        padding-right: 0;
        display: block !important;
    }
    .nav-top .container-fluid .navbar-brand{
        display: block;
        width: 100%;
        text-align: center !important;
    }
    .nav-top .container-fluid #navbarTopInfo{
        display: block;
        width: 100%;
        text-align: center !important;
    }
    img.card-img-top{
        height: auto !important;
    }
    img{
        height: auto !important;
    }

    .fixed-bottom .footer-button a.btn{
        width: 50% !important;
    }

}
