@font-face {
    font-family: "Kanit-reg";
    src: url(font/Kanit-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "Kanit-bold";
    src: url(font/Kanit-Medium.ttf) format("truetype");
}

body {
    background-color: #ffffff;
    width: 100%;
    font-family: "Kanit-reg" !important;
}

.b {
    font-family: "Kanit-bold" !important;
}

.footer a {
    color: #fff !important;
    text-decoration: none !important;
}

h4 {
    color: #234d20;
    text-align: center;
    text-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    position: relative;
}

.text-nav a {
    text-decoration: none !important;
    color: #ffffff !important;
}

.text-nav a.active {
    text-decoration: underline !important;
    background-color: #2b6a27;
    padding: 5px 20px 5px 20px;
    border-radius: 15px;
}

.line-h {
    border-top: 2px solid #234d20;
    width: 10%;
}
.line-h2 {
    border-top: 1px solid #5d825a;
    width: 100%;
}

.line-h-head {
    border-top: 2px solid #234d20;
    width: 90%;
}

.bg-g-t {
    background: rgb(255 255 255 / 35%);
    position: absolute;
    width: 100%;
    top: 0;
    height: -webkit-fill-available;
}

/* .bg-g-t {
    background: #2c6a27b3;
    position: absolute;
    width: 100%;
    top: 0;
    height: -webkit-fill-available;
} */

.banner {
    width: 100%;
    height: 80vh;
}

.bg-banner {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 54.17%, rgba(0, 0, 0, 0.5) 100%);
    position: absolute;
    width: 100%;
    top: 0;
    height: -webkit-fill-available;
}

.bg-banner nav {
    color: #ffffff;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s; /* Adds a transition effect when the padding is decreased */
    position: fixed; /* Sticky/fixed navbar */
    width: 100%;
    z-index: 999;
}

.banner {
    object-fit: cover;
}

.text-nav {
    justify-content: space-around;
    font-weight: 800;
    align-items: center;
    cursor: pointer;
    text-align: center;
    font-size: 17px;
    transition: 0.3s;
}

.text-nav a {
    transition: 0.3s;
}

.bkk-blink {
    transition: 0.3s;
    cursor: pointer;
    padding: 5px;
    width: 70px;
}

.bkk-blink:hover {
    transform: translateY(-5px);
}

.text-banner {
    color: #ffffff;
    text-align: center;
    font-size: 40px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 200px;
    font-weight: 800;
}

.text-nav a:hover {
    text-decoration: underline !important;
    transform: translateY(-5px);
}

.body-in-1 {
    display: flex;
    color: #6a6a6a;
    align-items: center;
    /* padding: 120px; */
    font-size: 18px;
}

.bg-bd-1 {
    width: 100%;
    height: calc(80vh - 500px);
    object-fit: cover;
}

.body-news {
    padding: 40px 35px 30px 35px;
}
.item a {
    text-decoration: none !important;
}
.card-news {
    text-align: center;
    background: #ffffff;
    /* padding: 10px; */
    border-radius: 20px;
    color: #ffffff;
    cursor: pointer;
    transition: 0.5s;
    position: relative;
    border: 5px solid #ffffff;
    overflow: hidden;
    width: 100%;
}

.t-card-new {
    position: absolute;
    top: 0;
    height: -webkit-fill-available;
    background: rgb(3 39 0 / 50%);
    border-radius: 15px;
    padding-top: 30%;
    justify-content: center;
    width: -webkit-fill-available;
}

.text-card {
    font-size: 18px;
    margin-top: 15px;
    padding: 0px 8px;
}

.card-news img {
    width: 100%;
    border-radius: 20px;
    height: 350px;
    object-fit: cover;
    padding: 10px;
}

.table.table-striped thead > tr {
    background-color: #2b6a27 !important;
    color: #ffffff !important;
    text-align: center;
}

.table.table-striped tr:nth-child(odd) {
    background-color: #e0ffdf;
}

.table.table-striped tr:nth-child(even) {
    background-color: #e9ffe8;
}

.card-news .hover-more {
    display: none;
    transition: 0.5s;
    text-align: center;
    text-decoration: underline;
    color: #ffffff;
}

.item-news .hover-more {
    display: none;
    transition: 0.5s;
    text-align: center;
    text-decoration: underline;
    color: #ffffff;
}

.item-news-for .hover-more {
    display: none;
    transition: 0.5s;
    text-align: center;
    text-decoration: underline;
    color: #ffffff;
    position: relative;
}

.card-news:hover .hover-more {
    display: block !important;
    padding-top: 40%;
    position: absolute;
    background: rgba(0, 0, 0, 0.446);
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    top: 0;
    border-radius: 20px;
    font-size: 20px;
}

.item-news:hover .hover-more {
    display: block !important;
    padding-top: 40%;
    position: absolute;
    background: rgba(0, 0, 0, 0.446);
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    top: 0;
    border-radius: 20px;
    font-size: 20px;
}

.item-news-for:hover .hover-more {
    display: block !important;
    padding-top: 40%;
    position: absolute;
    background: rgba(0, 0, 0, 0.446);
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    top: 0;
    border-radius: 20px;
    font-size: 20px;
}

.date-card {
    font-size: 16px;
    padding-bottom: 15px;
    margin-top: 20px;
}

.bg-link {
    /* background: #ffffff; */
    padding: 20px 100px 20px 100px;
    text-align: center;
    margin-bottom: -100px;
}
.link img {
    margin: 30px 0px 20px 0px !important;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0px 8px 5px 0px rgb(150, 158, 144);
}

.link img:hover {
    transition: 0.3s;
    transform: translateY(-8px);
    box-shadow: 0px 10px 5px 0px rgb(82, 117, 92);
}

.header-content {
    margin-top: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* footer */
.footer img {
    margin-bottom: -1px;
}
.ft-1 {
    background-color: #2b6a27;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.item-ft {
    width: 33.33333%;
    padding: 10px 50px 10px 50px;
}
.item-ft:nth-child(2) {
    text-align: center;
}

.item-ft:last-child {
    text-align: right;
}

.ft-1-l {
    text-align: left;
}

.ft-2 {
    background-color: #c9df8a;
    text-align: center;
    padding: 5px;
    font-size: 14px;
}

.zoom-img:hover {
    transform: scale(1.1, 1.1);
}

/* reveal */

.reveal {
    position: relative;
    opacity: 0;
}

.reveal.active {
    opacity: 1;
}
.active.fade-bottom {
    animation: fade-bottom 1s ease-in;
}
.active.fade-left {
    animation: fade-left 1s ease-in;
}
.active.fade-right {
    animation: fade-right 1s ease-in;
}
@keyframes fade-bottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fade-left {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-right {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* tab */

.tab,
.tab-or {
    width: 90%;
    font-size: 18px;
    text-align: center;
    justify-content: center;
}

.tab a,
.tab-or a {
    color: #828282;
    text-decoration: none !important;
    margin: 0px 10px;
    cursor: pointer;
}

.tab a:hover,
.tab-or a:hover {
    color: #2b6a27 !important;
    text-decoration: none !important;
}

.tabcontent {
    display: none;
}

.tabcontent2 {
    display: none;
}

.tabcontent3 {
    display: none;
}

.tabcontent4 {
    display: none;
}

.tablinks.active a {
    border-bottom: 2px solid #2b6a27;
    color: #2b6a27 !important;
    transition: 0.2s;
}

.tablinks2.active a {
    border-bottom: 2px solid #2b6a27;
    color: #2b6a27 !important;
    transition: 0.2s;
}

.tablinks3.active a {
    border-bottom: 2px solid #2b6a27;
    color: #2b6a27 !important;
    transition: 0.2s;
}

.tablinks4.active a {
    border-bottom: 2px solid #2b6a27;
    color: #2b6a27 !important;
    transition: 0.2s;
}

p {
    margin-bottom: 0;
}

p + p {
    text-indent: 1.5em;
    margin-top: 0;
}

.bd-ct {
    border-radius: 15px;
    /* margin: 0px 10%; */
    font-size: 17px;
    /* box-shadow: 0px 0px 5px 2px #719352; */
    /* padding: 20px 20px; */
}
.content-2 li {
    list-style: none !important;
}

.ct-3 {
    /* margin: 0px 10%;
    padding: 20px 20px; */
}

.img-org {
    width: -webkit-fill-available;
    text-align: center;
}

.drt {
    position: relative;
    text-align: center;
}

.director {
    border-radius: 20px;
    width: 150px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    height: 200px;
}

.office {
    border-radius: 20px;
    width: 150px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    height: 150px;
    object-fit: cover;
}

.text-in-bg {
    position: absolute;
    left: 0;
    right: 0;
    background: #ffffff;
    bottom: 0;
    margin: auto;
    color: #234d20;
    width: 150px;
    border-radius: 0px 0px 15px 15px;
}

.name {
    color: #234d20;
    margin-top: 10px;
}
.posit {
    color: #6a6a6a;
    line-height: 20px;
}

a.bt-load-or {
    background: #ffffff;
    display: flex;
    color: #2b6a27;
    width: 70%;
    justify-content: space-between;
    padding: 5px 20px;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid #2b6a27;
    text-decoration: none !important;
}

.bt-load-or:hover {
    background: #2b6a27;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.card-con {
    /* width: 100%; */
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 20px;
}

.card-con img {
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(0.5);
}

.card-con:hover {
    transform: translateY(-10px);
    border-radius: 20px;
    /* box-shadow: 0px 20px 15px 0px rgb(165, 165, 165); */
}
.t-con:hover {
    font-size: 25px;
}

.t-con {
    font-size: 22px;
    color: #ffffff;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    bottom: 0;
    margin: auto;
    z-index: 999;
    transition: 0.2s;
}

.cons-in {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1% 10%;
}

.cons-in img {
    width: 100%;
}

.card-cons {
    background-color: #719352;
    padding: 50px;
    color: #ffffff;
    text-align: center;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-cons:hover {
    background-color: #234d20;
    transform: translateY(-10px);
}
div .book {
    text-align: center;
}
.book {
    width: 70%;
    border-radius: 20px;
    align-items: center;
    box-shadow: 0px 0px 10px 10px rgba(201, 223, 138, 0.2);
}

.bd-les {
    border: 2px solid #719352;
    padding: 20px;
    border-radius: 15px;
}
/* responsive */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.mobile-hidden {
    display: block !important;
}

.desktop-hidden {
    display: none !important;
}

.item-baseline {
    align-items: baseline;
}

.head-news {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    /* text-indent: 20px; */
    margin: 10px;
    color: #234d20;
    text-decoration: none !important;
}

a {
    text-decoration: none !important;
}

.date-upd {
    margin: 10px;
    font-size: 14px;
    color: #6a6a6a;
    text-align: right;
    padding: 7px;
}

.date-upd2 {
    font-size: 14px;
    color: #6a6a6a;
    text-align: right;
    padding: 7px;
}

.listindex {
    background: white;
    padding: 15px 10px 0px 10px;
    border-radius: 15px;
    height: 160px;
    overflow: scroll;
}

.listindex2 {
    background: white;
    padding: 15px 10px 3px 10px;
    border-radius: 15px;
}

.bg-3 {
    background-image: url("image/11.jpg");
    background-size: cover;
}

.bg-news {
    background-image: url("image/rm380-10.jpg");
    background-size: contain;
    background-repeat: repeat;
}

.bg-org {
    background-image: url("image/rm380-10.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

.item-news {
    background: #ffffff;
    border-radius: 20px;
    transition: 0.1s;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.item-news:hover {
    /* transform: translateY(-10px); */
}

.item-news-for {
    margin: 10px 10px !important;
    padding: 0 !important;
    position: relative;
    background-color: #ffffff;
    border-radius: 20px;
    transition: 0.1s;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.view-cap,
.view-container-border {
    background-color: #c9df8a !important;
}

.text-contact {
    background: rgb(122 164 85 / 70%);
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    padding: 20px;
}

.w-70 {
    width: 70%;
}
.w-30 {
    width: 30%;
    text-align: right;
    color: #828282;
    font-size: 15px;
    align-self: center;
}

.card-cons img {
    /* width: 50px; */
    margin-bottom: 10px;
}

a.hover-news:hover {
    filter: brightness(0.8);
}

.item-news img {
    border-radius: 20px;
}

.img-res {
    width: 30%;
}

.w-25-h {
    width: 25%;
}
.w-75-h {
    width: 75%;
}
.btn-comment {
    background: #286922;
    font-size: 20px;
    color: #fff !important;
    border-radius: 15px;
    padding: 10px 17px;
    text-decoration: none !important;
}
.btn-comment:hover {
    background: #ffffff !important;
    color: #286922 !important;
}

/* responsive */

@media screen and (max-width: 400px) {
    .ft-1 {
        flex-direction: column;
        font-size: 13px;
    }
    .body {
        font-size: 14px;
    }

    .m-4.full.row {
        margin: 0 !important;
    }
    .bg-banner nav {
        background-color: #2b6a27 !important;
        z-index: 9999;
    }

    .text-banner {
        font-size: 25px;
    }

    .custom-loader {
        right: 38% !important;
    }
    .body-in-1 {
        display: block;
    }

    .p-5 {
        padding: 10px !important;
    }

    .mobile {
        height: 140vh !important;
    }
    .bg-link {
        /* display: inline-block; */
        margin-bottom: 20px;
        padding: 0px;
    }
    .m-5 {
        margin: 10px !important;
    }
    .breadcrumb {
        font-size: 11px;
    }

    .text-contact {
        margin-top: 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 600px) {
    .text-nav {
        font-size: 15px;
    }

    .ft-1 {
        flex-direction: column;
        font-size: 13px;
    }
    .item-ft {
        width: 100%;
        text-align: left !important;
    }
    .tab {
        justify-content: center;
        font-size: 15px;
    }
    .tab-or {
        font-size: 14px;
        width: 100%;
        overflow-y: hidden;
        overflow-x: scroll;
        justify-content: left;
        padding-bottom: 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .tablinks,
    .tablinks2,
    .tablinks3,
    .tablinks4 {
        white-space: nowrap;
    }

    .tablinks.active a {
        border-bottom: 2px solid #2b6a27;
        color: #2b6a27 !important;
        transition: 0.2s;
    }

    .body {
        font-size: 14px;
    }

    .m-4.full.row {
        margin: 0 !important;
    }

    .text-banner {
        font-size: 28px;
    }

    .custom-loader {
        right: 38% !important;
    }
    .body-in-1 {
        display: block;
    }

    .p-5 {
        padding: 10px !important;
    }

    .mobile {
        height: 115vh;
    }
    .bg-link {
        /* display: inline-block; */
        margin-bottom: 20px;
        padding: 0px;
    }
    .m-5 {
        margin: 10px !important;
    }

    h4 {
        font-size: 20px !important;
    }

    .bd-ct,
    .ct-3 {
        /* margin: 20px !important;
        padding: 10px; */
    }

    .bt-load-or {
        width: 100% !important;
    }
    .banner {
        height: 60vh;
    }

    .text-banner {
        top: 40%;
    }

    .card-cons {
        margin-bottom: 20px;
        width: 200px;
        height: 200px;
        font-size: 16px;
        padding: 20px;
    }

    .card-cons img {
        width: 50px;
        margin-bottom: 10px;
    }

    .bd-les {
        padding: 5px;
        border: 0px;
        margin-top: 15px;
    }

    .padding-m {
        padding: 5px;
    }

    .modal-body {
        font-size: 14px;
    }

    .text-contact {
        margin-top: 20px;
        font-size: 14px;
    }

    .img-res {
        width: 80%;
    }
}

@media screen and (max-width: 950px) {
    .bg-banner nav {
        background-color: #234d20 !important;
    }

    .mobile-hidden {
        display: none !important;
    }

    .desktop-hidden {
        display: block !important;
    }
    .padding-m {
        padding: 5px;
    }

    .text-nav {
        align-items: flex-end;
        cursor: pointer;
        text-align: right;
    }

    .p-mobile {
        font-size: 16px !important;
    }

    .tab-or {
        font-size: 16px;
        width: 100%;
        overflow-y: hidden;
        overflow-x: scroll;
        justify-content: left;
    }

    .tablinks,
    .tablinks2,
    .tablinks3,
    .tablinks4 {
        white-space: nowrap;
    }

    .tablinks.active a {
        border-bottom: 2px solid #2b6a27;
        color: #2b6a27 !important;
        transition: 0.2s;
    }

    ol,
    ul {
        padding-left: 10px !important;
    }

    .fs-5 {
        font-size: 16px !important;
    }
}

@media screen and (max-width: 1300px) {
    .w-25-h {
        width: 10%;
    }
    .w-75-h {
        width: 90%;
    }
}

/* load */
.custom-loader {
    --r1: 154%;
    --r2: 68.5%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #2b6a27 80%),
        radial-gradient(var(--r1) var(--r2) at bottom, #2b6a27 79.5%, #0000 80%),
        radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #2b6a27 80%), #ffffff;
    background-size: 50.5% 220%;
    background-position:
        -100% 0%,
        0% 0%,
        100% 0%;
    background-repeat: no-repeat;
    animation: p9 2s infinite linear;
    position: absolute;
    top: 50%;
    right: 45%;
}
@keyframes p9 {
    33% {
        background-position:
            0% 33%,
            100% 33%,
            200% 33%;
    }
    66% {
        background-position:
            -100% 66%,
            0% 66%,
            100% 66%;
    }
    100% {
        background-position:
            0% 100%,
            100% 100%,
            200% 100%;
    }
}

.loader-bg {
    position: absolute;
    z-index: 9999;
    height: 100vh;
    margin: auto;
    background: rgb(255, 255, 255);
    width: 100%;
}

.bg-con-w {
    background: rgb(255 255 255 / 70%);
    border-radius: 20px;
}

/* Add animation to "page content" */
.animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 1s;
}

@-webkit-keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 0px;
        opacity: 1;
    }
}

@keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}

.row {
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.hamb svg {
    font-size: 25px;
}

/* menu toggle */
#menuToggle {
    display: block;
    position: relative;
    top: 50px;
    left: 50px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle a {
    text-decoration: none;
    color: #232323;

    transition: color 0.3s ease;
}

#menuToggle a:hover {
    color: tomato;
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;

    cursor: pointer;

    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */

    -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;

    background: #cdcdcd;
    border-radius: 3px;

    z-index: 1;

    transform-origin: 4px 0px;

    transition:
        transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
        opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu {
    position: absolute;
    width: 300px;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;

    background: #ededed;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */

    transform-origin: 0% 0%;
    transform: translate(-100%, 0);

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

#menu li {
    padding: 10px 0;
    font-size: 22px;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul {
    transform: none;
}
