.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
  /* background-color: #EBECE9; */
  /* font-family: 'Open Sans', sans-serif; */
  font-family: 'Trirong', sans-serif;
  font-size: 17px;
  letter-spacing: 0.25px;
  color: #666666;
}

h1, h2, h3, h4, h5, h6{
    font-family: 'Kanit', sans-serif;
    /* font-family: 'Trirong', sans-serif; */
}
.center {
    text-align: center;
}
.clear-fix {
    clear: both;
}

i.icon-space {
    padding-right: 5px;
}
a {
    color: #737E70;
    text-decoration: none;
}
a:hover {
    color: #96A190;
    text-decoration: none;
}
img.bd-placeholder-img {
    width: 350px;
    height: auto;
}

/* *************** */
/*    Top Menu     */
/* *************** */
.navbar {
    padding: 15px;
    font-family: 'Kanit', sans-serif;
    background-color: #E2E7E3;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 99;
}
.navbar-brand {
    margin-right: 10px !important;
}
a.navbar-brand {
    padding: 10px;
}
.navbar a {
    text-decoration: none;
    font-size: 20px; 
    line-height: 25px;
    color: #821923;
    font-weight: 900;
}
.navbar a:hover {
    /* background-color: #ddd; */
    color: #821923;
    font-weight: 900;
}
.navbar-collapse {
    padding-left: 150px;
}
.bg-dark {
    background-color: #363636 !important;
}
.nav-item .dropdown .show {
    border-color: #ffffff;
}
.navbar-nav .nav-link {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}
#navbarCollapse li.active {
    /* border-bottom: 2px solid #96A190; */
    background-color: #96A190;
    color: #ffffff;
    font-weight: 500;
    padding: 0 10px;
}
#navbarCollapse li {
    padding: 0 10px;
}
.navbar-dark .navbar-nav .nav-link {
    color: #666666;
    }
li .nav-item {
    color: #666666;
    font-weight: 500;
}
a.nav-link {
    color: #ffffff;
    font-weight: 500;
}
a:hover.nav-link {
    background-color: #96A190;
    color: #ffffff;
    font-weight: 500;
}
a:active.nav-link {
    background-color: #96A190;
    color: #ffffff !important;
    font-weight: 500;
}
.dropdown-menu {
    background-color: #E2E7E3;
}
a.dropdown-item {
    background-color: #E2E7E3;
    color: #666666;
    font-weight: 500;
}
a:hover.dropdown-item {
    background-color: #96A190;
    color: #ffffff;
    font-weight: 500;
}
a:active.dropdown-item {
    background-color: #96A190;
    color: #ffffff;
    font-weight: 500;
}
.navbar-dark .navbar-nav .active>.nav-link, .navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .show>.nav-link {
    background-color: #96A190;
    color: #fff;
}
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.intro {
    margin-top: 65px;
}




/* *************** */
/*    Breadcrumb   */
/* *************** */
ul.breadcrumb {
    padding: 10px 16px;
    list-style: none;
    background-color: #ffffff;
}
ul.breadcrumb li {
    display: inline;
    font-size: 16px;
    font-family: 'Kanit', sans-serif;
}
ul.breadcrumb li+li:before {
    padding: 8px;
    color: #666666;
    content: "/\00a0";
}
ul.breadcrumb li a {
    color: #666666;
    text-decoration: none;
}
ul.breadcrumb li a:hover {
    color: #000000;
    text-decoration: underline;
}
ul i {
    padding-right: 5px;
}
ul.view-option {
    float: right;
    padding: 5px 10px;
    list-style: none;
    background-color: #ffffff;
}
ul.view-option li {
    display: inline;
    font-size: 16px;
    font-family: 'Kanit', sans-serif;
}
ul.view-option li+li:before {
    padding: 5px;
    color: #666666;
    content: "/\00a0";
}
ul.view-option li a {
    color: #666666;
    text-decoration: none;
}
ul.view-option li a:hover {
    color: #000000;
    text-decoration: underline;
}


/* *************** */
/*     Button      */
/* *************** */
/* KAE เอาออก */
/* .btn-group-lg>.btn, .btn-lg {
    padding: .25rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
    border-radius: .3rem;
} */



/* *************** */
/*      Footer     */
/* *************** */
footer {
    margin-top: 120px;
    color: #606858;
}
a.go-top {
    color: #666666;
    background-color: #eee;
    padding: 10px 15px;
    font-family: 'Kanit', sans-serif;
}



/* Register
------------------------- */
.register {
    margin-bottom: 20px;
}
.register-form {
    text-align: left;
}
.register-text {
    height: 180px;
}
.register-form button {
    float: left;
    /* width: 10%; */
    height: 41px;
    padding: 10px;
    background: #96A190;
    color: #ffffff;
    font-size: 17px;
    border: 1px solid #96A190;
    border-left: none;
    cursor: pointer;
    /* width: 80px; */
}
.register-form button:hover {
    background: #737E70;
}
a.forgot-pwd-link {
    color: #96A190;
    text-decoration: none;
}
a:hover.forgot-pwd-link {
    color: #000000;
}
.info-title {
    line-height: 40px;
    padding-left: 100px;
    text-align: left;
    font-weight: 800;
}
.info-content {
    line-height: 40px;
    padding-left: 30px;
    text-align: left;
    font-weight: 500;
}
@media only screen and (max-width: 480px) {
    .info-title {
        padding-left: 20px;
    }
} 



/* Sidebar 
---------------------------- */
.sidebar {
    margin: 0;
    padding: 0;
    width: 200px;
    background-color: #E2E7E3;
    position: fixed;
    height: fit-content;
    overflow: auto;
  }
  
  .sidebar a {
    display: block;
    color: black;
    padding: 16px;
    text-decoration: none;
  }
   
  .sidebar a.active {
    background-color: #96A190;
    color: white;
  }
  
  .sidebar a:hover:not(.active) {
    background-color: #96A190;
    color: white;
  }
  
  div.content {
    margin-left: 200px;
    padding: 1px 16px;
    height: fit-content;
  }
  
  @media screen and (max-width: 768px) {
    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
    }
    .sidebar a {float: left;}
    div.content {margin-left: 0;}
  }
  
  @media screen and (max-width: 480px) {
    .sidebar a {
      text-align: center;
      float: none;
    }
  }



/* *************** */
/*    Our Works    */
/* *************** */
p.top-space {
    margin-top: 80px;
}
.tn-work-img {
    max-width: 230px;
    height: auto;
}

.featurette-divider {
    margin: 2.5rem 0;
}

.works-caption {
    bottom: 3rem;
    z-index: 10;
}

.works-caption {
    z-index: 10;
    background-color: #000000;
    opacity: 0.7;
    padding: 10px;
    margin-bottom: 0px;
    color: #fff;
    text-align: center;
}

h1.organize {
    color: #666666;
    font-size: 36px;
    font-weight: 700;
    text-align: left;
    padding-left: 15px;
}
p.organize {
    color: #666666;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
    padding: 15px;
}

h1.our-works {
    font-size: 36px;
    font-weight: 700;
    text-align: left;
    color: #666666;
    margin-left: 10px;
    padding-left: 10px;
    border-bottom: 2px dotted #363636;
    border-left: 15px solid #666666;;
}
h3.our-works {
    color: #666666;
    font-weight: 700;
    text-align: left;
    padding-left: 20px;
    padding-top: 10px;
}

h5.our-works {
    color: #666666;
    font-weight: 700;
    text-align: left;
    padding-left: 15px;
    padding-top: 10px;
}

a.text-our-works {
    /* border: 1px solid #cccccc !important; */
    color: #666666 !important;
    padding: 3px;
    line-height: 1.5rem;
    margin : 0 5px;
    z-index: 10;
    text-align: center;
}

a:hover.text-our-works, a:active.text-our-works {
    /* background-color: #000000 !important; */
    color: #000000 !important;
    padding: 3px;
    line-height: 1.5rem;
    text-decoration: none;
    margin : 0 5px;
    z-index: 10;
}

img.our-work-img-shadow{
    /* background-color: #000000 !important; */
    box-shadow: 1px 2px 2px 1px rgba(0, 0, 0, 0.3);
    text-align: center;
}
img.our-work-img-shadow:hover {
    /* background-color: #000000 !important; */
    box-shadow: 3px 5px 5px 2px rgba(0, 0, 0, 0.3);
    /* transition: 0.5s; */
}

.justify-content {
    justify-content: space-evenly;
}
  
.nav-scroller {
    position: relative;
    z-index: 2;
    /* height: 2.75rem; */
    overflow-y: hidden;
}
  
.nav-scroller .nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
  
.nav-scroller .nav-link {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: .875rem;
}

.works-bg {
    background-color: #ffffff;
}


/* *************** */
/*  Search Section */
/* *************** */
.search-bg {
    background-color: #E2E7E3;
}
.reduce-row-space {
    margin-left: 0px;
    margin-right: 0px;
}
.ad-vspace {
    padding: 25px 30px 40px 30px;
}
button.reset {
    width: 80px !important;
}
button.submit {
    width: 80px !important;
}


/* *********** */
/* Search Tabs */
/* *********** */
.tab {
    overflow: hidden;
    /* border: 1px solid #ccc; */
    /* background-color: #f1f1f1; */
  }
  
  /* Style the buttons inside the tab */
  .tab button {
    background-color: inherit;
    color: #666666;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Kanit', sans-serif;
  }
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #96A190;
    color: #ffffff;
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: #96A190;
    color: #ffffff;
  }
  
  /* Style the tab content */
  .tabcontent {
    display: none;
    /* padding: 6px 12px; */
    -webkit-animation: fadeEffect 1s;
    animation: fadeEffect 1s;
  }

  /* Fade in tabs */
  @-webkit-keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  @keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
  }



/* *********** */
/* Search Form */
/* *********** */
  form.example input[type=text] {
    padding: 10px;
    font-size: 18px !important;
    border: 1px solid #96A190;
    float: left;
    width: 550px;
    height: 51px;
    background: #f1f1f1;
  }
  
  form.example button {
    float: left;
    width: 10%;
    height: 51px;
    padding: 10px;
    background: #96A190;
    color: white;
    font-size: 17px;
    border: 1px solid #96A190;
    border-left: none;
    cursor: pointer;
  }
  
  form.example button:hover {
    background: #737E70;
  }
  
  form.example::after {
    content: "";
    clear: both;
    display: table;
  }
  .advance {
    width: 800px !important;
  }
  .btn-primary {
    color: #fff;
    background-color: #737E70;
    border-color: #737E70;
  }
  .btn-primary:hover {
    color: #fff;
    background-color: #96A190;
    border-color: #96A190;
  }
  .custom-control-label {
    font-size: 18px;
    line-height: 28px;
  }
  .btn-block+.btn-block {
    margin-top: 0px !important;
  }
  button.btn-advance {
    margin-right: 15px;
  }



/* ************* */
/* Search Result */
/* ************* */
.bg-card-search-tn {
    width: 90%;
    max-height: 310px;
    margin: 15px;
    border: 1px dotted #96A190;
    text-align: center;
    align-items: center;
    background-color: #EBECE9;
}
img.card-search-tn {
    width: auto;
    max-height: 280px;
    margin: 15px 0;
}
.card {
    height: 650px;
}

.justify-content-between {
    -ms-flex-pack: justify !important;
    justify-content: end !important;
}
/* .btn {
    width: 80px;
} */
.btn-outline-secondary {
    color: #ffffff;
    border-color: #96A190;
    background-color: #96A190;
}
.btn-outline-secondary:hover {
    color: #ffffff;
    border-color: #737E70;
    background-color: #737E70;
}
.card-body h4 {
    height: 56px;
}
.card-body h4 {
    height: 80px;
    font-size: 19px;
    line-height: 27px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
            line-clamp: 3; 
    -webkit-box-orient: vertical;
}
.card-text {
    height: 120px;
    padding-top: 5px;
}
.v-card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    height: 260px;
}
.v-card-img {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}
.v-card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.25rem;
    margin-top: 15px;
}
.bg-v-card-search-tn {
    width: 100%;
    max-height: 230px;
    margin: 15px;
    border: 1px dotted #96A190;
    text-align: center;
    align-items: center;
    background-color: #EBECE9;
}
img.v-card-search-tn {
    width: auto;
    max-height: 190px;
    margin: 15px 0;
}
.v-card-text {
    height: 80px;
    padding-top: 5px;
}
.v-card-body h4 {
    height: 40px;
}

@media only screen and (max-width: 480px) {
    .card {
        height: 650px;
    }
    .v-card {
        height: 640px;
    }
    .bg-v-card-search-tn {
        width: 90%;
        max-height: 310px;
    }
    img.v-card-search-tn {
        width: auto;
        max-height: 280px;
    }
    .v-card-text {
        height: 105px;
    }
    .v-card-body h4 {
        height: 56px;
    }
    .v-card-body {
        margin-top: 0px;
    }
}



/* Vertical Tab 
------------------------------- */
.v-tab {
    float: left;
    position: relative;
    background-color: #E2E7E3;
    width: 30%;
    height: fit-content;
  }
  
  /* Style the buttons inside the tab */
  .v-tab button {
    display: block;
    background-color: inherit;
    color: black;
    padding: 22px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-size: 17px;
  }
  
  /* Change background color of buttons on hover */
  .v-tab button:hover {
    background-color: #96A190;
    color: #ffffff;
  }
  
  /* Create an active/current "tab button" class */
  .v-tab button.active {
    background-color: #96A190;
    color: #ffffff;
  }
  
  /* Style the tab content */
  .tabcontentInfo {
    float: left;
    padding: 0px 12px;
    /* border: 1px solid #ccc; */
    width: 70%;
    border-left: none;
    height: fit-content;
  }
  button.edit-btn {
    padding: 10px 15px;
    color: #fff;
    background-color: #96A190;
    border-color: #96A190;
  }
  button.edit-btn:hover {
    color: #fff;
    background-color: #737E70;
    border-color: #737E70;
  }



/* Table 
-------------------------- */
h4.table-title {
    margin-left: 70px;
    font-weight: 700;
}
/* .table {
    margin: 0 0 40px 70px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: table;
  }   */
  .tb-row {
    display: table-row;
    background: #f6f6f6;
  }
  .tb-row:nth-of-type(odd) {
    background: #e9e9e9;
  }
  .tb-row.header {
    font-weight: 900;
    color: #ffffff;
    background: #96A190;
  }
  .tb-row.green {
    background: #27ae60;
  }
  .tb-row.blue {
    background: #2980b9;
  }  
  .tb-cell {
    padding: 6px 12px;
    display: table-cell;
  }
  .tb-cell i {
      color: #606858;
      margin-right: 10px;
  }
a.tb-link {
    color: #606858;
}




/* *********** */
/* Accordion */
/* *********** */
.accordion {
    background-color: #eee;
    color: #666666;
    cursor: pointer;
    padding: 18px;
    margin: 5px 25px 5px 25px;
    width: 100%;
    height: fit-content;
    border: none;
    text-align: left;
    outline: none;
    font-size: 20px;
    font-weight: 900;
    transition: 0.4s;
    font-family: 'Kanit', sans-serif;
  }
  
  .accordion-active, .accordion:hover {
    background-color: #D6D7D4;
  }
  
  .accordion:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
  }
  
  .accordion-active:after {
    content: "\2212";
  }
  
  .accordion-panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    letter-spacing: 1px;
  }



/* *************** */
/*      About      */
/* *************** */
.about {
    text-align: center;
}
.page-head {
    margin-top: 100px;
    background-color: #96A190;
    height: 220px;
}
.page-head p {
    text-align: center;
    font-size: 40px;
    color: #ffffff;
    font-family: 'Kanit', sans-serif;
    margin-top: 80px;
    font-weight: 800;
}
.about-content {
    font-size: 18px;
    text-align: left;
    text-indent: 50px;
    padding: 0 15px;
    letter-spacing: 1px;
}
img.about-intro {
    max-width: 450px;
}
.about-tab-content {
    font-size: 18px;
    text-align: left;
    text-indent: 50px;
    padding: 20px 15px;
}
.about-tab-content-imp {
    font-style: italic;
    font-weight: bolder;
    color: #821923;
}
ol.about, ul.about {
    text-align: left;
    font-size: 18px;
    padding-left: 80px;
}
ul.accordion-about-ref {
    margin-top: 20px;
    list-style: none;
    text-align: left;
    line-height: 40px;
}
.accordion-about-ref a {
    color: #821923;
    font-weight: 500;
}
.accordion-about-ref a:hover {
    color: #821923;
    font-weight: 500;
}


/* *************** */
/*     Contact     */
/* *************** */
.org-name {
    font-size: 26px;
    font-weight: 900;
    text-align: left;
}
.address {
    text-align: left;
    font-size: 20px;
}
.address i {
    font-size: 15px;
}
a.map-link {
    color: #737E70;
    padding-left: 5px;
}
a:hover.map-link, a:active.map-link {
    color: #96A190;
    text-decoration: none;
}
h4.contact-form {
    font-size: 1.5rem;
}
.contact-form {
    text-align: left;
}
.contact-text {
    height: 180px;
}
.contact-form button {
    float: left;
    width: 10%;
    height: 41px;
    padding: 10px;
    background: #96A190;
    color: white;
    font-size: 17px;
    border: 1px solid #96A190;
    border-left: none;
    cursor: pointer;
}
.contact-form button:hover {
    background: #737E70;
}




/* *************** */
/* Check on Device */
/* *************** */

@media only screen and (min-width: 320px) and (max-width: 479px) {
	
}
@media only screen and (max-width: 767px) {
	body {
        font-size: 16px;
    }
    .navbar a {
        font-size: 18px;
    }
    h1.organize {
        padding-top: 20px;
        font-size: 28px;
    }
    p.organize {
        font-size: 18px;
    }
    h1.our-works {
        padding-left: 10px;
        font-size: 30px;
    }
    h2.db-title {
        font-size: 26px;
    }
    h3.our-works {
        padding-top: 10px;
        padding-left: 20px;
        font-size: 24px;
    }
    h5.our-works {
        padding-top: 10px;
        padding-left: 20px;
    }
    p.top-space {
        margin-top: -20px;
    }
    img.our-work {
        margin-left: 10px;
    }
    .tab button {
        font-size: 21px;
        font-weight: 800;
    }
    .navbar-collapse {
        padding-left: 10px;
        padding-top: 10px;
    }
    #navbarCollapse li {
        padding: 0;
    }
    .intro {
        margin-top: 45px;
    }
    form.example input[type=text] {
        width: 295px;
    }
    form.example button {
        width: 51px;
    }
    .page-head {
        margin-top: 60px;
        height: 170px;
    }
    img.about-intro {
        max-width: 355px;
    }
    .about-content {
        padding: 40px 15px 5px 15px;
    }
    .about-tab-content {
        padding: 10px 15px 5px 15px;
    }
    ol.about, ul.about {
        padding-left: 50px;
    }
    .org-name {
        font-size: 22px;
        padding: 30px 15px 10px 15px;
    }
    .address {
        padding: 5px 15px 5px 15px;
        font-size: 18px;
    }
    .contact-form {
        padding: 5px 15px 5px 15px;
        font-size: 18px;
    }
    .advance {
        width: 345px !important;
    }
    button.btn-advance {
        width: 85px !important;
    }
    img.bd-placeholder-img {
        width: 350px;
        height: auto;
    }
    /* .bd-placeholder-img {
        font-size: 3.5rem;
    } */
}
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    img.bd-placeholder-img {
        width: 300px;
        height: auto;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1200px) {
    img.bd-placeholder-img {
        width: 300px;
        height: auto;
    }
}

.pagination li a, .pagination li span {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
  }
  
  .pagination li.active a {
    background-color: #737E70;
    color: white;
    border: 1px solid #737E70;
  }
  
  .pagination li a:hover:not(.active) {
    background-color: #737E70;
    color: white;
  }
  @media only screen and (max-width: 767px) {
    ul.pagination {
      padding: 5px 8px !important;
      font-size: 16px;
      margin: 0 3px;
      width:max-content;
    }
  }
