@font-face {
  font-family: sarabun;
  src: url("../font/Sarabun-Regular.ttf");
}
.text-main {
  color: #0984e3;
}

.btn-pri {
  background-color: #74b9ff;
  color: #2d3436;
}

.btn-pri:hover {
  background-color: #0984e3;
  color: #2d3436;
}

.btn-suc {
  background-color: #00b894;
  color: white;
}

.btn-suc:hover {
  background-color: #00ad8b;
  color: #dfe6e9;
}

.btn-war {
  background-color: #fdcb6e;
  color: white;
}

.btn-war:hover {
  background-color: #fdc04f;
  color: #dfe6e9;
}

.btn-del {
  background-color: #d63031;
  color: #edf0f7;
}

.btn-del:hover {
  background-color: #c02627;
  color: #cad3e7;
}

.btn-approve {
  background-color: #fdc04f;
  color: #2d3436;
}

.btn-approve:hover {
  background-color: #fdcb6e;
  color: #2d3436;
}

.btn-edit {
  background-color: white;
  color: #878a8c;
}

.btn-edit:hover {
  background-color: #cad3e7;
}

.btn-edit-del {
  background-color: white;
  color: #878a8c;
}

.btn-edit-del:hover {
  /* background-color: #cad3e7; */
  border-color: #d63031;
  color: #d63031;
}

.btn-edit-war {
  background-color: white;
  color: #878a8c;
}

.btn-edit-war:hover {
  border-color: #fcae1d;
  color: #fcae1d;
}


.dropdown-item.active, .dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #74b9ff;
}
.news-block {
  display: none;
}
.bg-text {
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  font-weight: bold;
  border: 0px solid #f1f1f1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 60%;
  padding: 5px;
  text-align: center;
}

.active {
  display: block;
}
.responsive {
  width: 100%;
  max-width: 1400px;
  height: auto;
}

body {
  font-family: "sarabun", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #3d455c;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "sarabun", sans-serif;
  font-weight: 700;
  color: #212631;
  margin: 0px 0px 15px;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 23px;
}

h4 {
  font-size: 16px;
}

a {
  font-weight: 600;
  color: #212631;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #212631;
  text-decoration: underline;
  outline: none;
}

p {
  margin: 0px 0px 20px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.list-style,
ol.list-style {
  padding-left: 15px;
  margin-bottom: 10px;
}

ul.list-style {
  list-style-type: disc;
}

ol.list-style {
  list-style-type: decimal;
}

blockquote.blockquote {
  position: relative;
  border-left: 0;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 20px;
}

blockquote.blockquote:before {
  content: "``";
  font-family: "Nunito Sans", sans-serif;
  display: block;
  position: absolute;
  left: -5px;
  top: 5px;
  font-size: 240px;
  line-height: 200px;
  color: #eceef2;
  letter-spacing: -30px;
  z-index: -2;
}

figure.figure-img {
  margin-bottom: 20px;
}

figure.figure-img figcaption {
  padding-top: 5px;
  font-size: 13px;
  font-weight: 600;
}

.input {
  height: 40px;
  border: 2px solid #eceef2;
  width: 100%;
  padding: 0px 15px;
  -webkit-transition: 0.2s border;
  transition: 0.2s border;
}

.input:focus {
  border-color: #3d455c;
}

textarea.input {
  height: 90px;
  padding: 15px;
}

.primary-button {
  padding: 9px 45px;
  border: none;
  background-color: #212631;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  color: #fff;
  -webkit-transition: 0.2s opacity;
  transition: 0.2s opacity;
}

.primary-button:hover,
.primary-button:focus {
  color: #fff;
  opacity: 0.9;
}

.section {
  padding-top: 40px;
}

.section.section-grey {
  background-color: #fbfbfd;
  border-bottom: 1px solid #eceef2;
  border-top: 1px solid #eceef2;
}

.section .section-title {
  margin-bottom: 40px;
}

.section .section-title h2 {
  text-transform: capitalize;
  font-size: 28px;
}

.section-row {
  margin-bottom: 40px;
}

#nav .container {
  position: relative;
}

/*=========================================================
   HEADER
===========================================================*/
.page-header {
  position: relative;
  margin: 0;
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #fbfbfd;
  border-bottom: 2px solid #f4f4f9;
}

.page-header .background-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center;
  background-size: cover;
}

.page-header .background-img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(rgba(33, 38, 49, 0.3)),
    to(transparent)
  );
  background-image: linear-gradient(
    to top,
    rgba(33, 38, 49, 0.3) 0%,
    transparent 100%
  );
}

#post-header.page-header {
  padding-top: 120px;
}

.page-header h1 {
  text-transform: capitalize;
  margin-bottom: 0px;
}

#post-header.page-header h1 {
  color: #fff;
}

.page-header .post-meta {
  margin: 15px 0px;
}

.page-header .post-meta .post-date {
  color: #eceef2;
}

.page-header .page-header-breadcrumb {
  margin: 15px 0px;
}

.page-header .page-header-breadcrumb li {
  display: inline-block;
}

.page-header .page-header-breadcrumb li,
.page-header .page-header-breadcrumb li a {
  font-size: 13px;
  text-transform: capitalize;
  color: #a7b3c6;
}

.page-header .page-header-breadcrumb li a {
  -webkit-transition: 0.2s color;
  transition: 0.2s color;
}

.page-header .page-header-breadcrumb li a:hover,
.page-header .page-header-breadcrumb li a:focus {
  color: #0b0f28;
  text-decoration: none;
}

.page-header .page-header-breadcrumb li + li:before {
  content: "/";
  display: inline-block;
  margin: 0px 10px;
}

/*=========================================================
   POST
===========================================================*/
/*----------------------------*\
   post
\*----------------------------*/
.post {
  margin-bottom: 40px;
}

.post .post-img {
  display: block;
  -webkit-transition: 0.2s opacity;
  transition: 0.2s opacity;
}

.post .post-img:hover,
.post .post-img:focus {
  opacity: 0.9;
}
/* ปก */
.post .post-img > img {
  width: 100%;
  height: auto;
  max-width: 400px;
  max-height: 200px;
}

.post .post-meta {
  margin-top: 15px;
  margin-bottom: 15px;
}

.post-meta .post-category {
  font-size: 13px;
  text-transform: uppercase;
  padding: 3px 10px;
  font-weight: 600;
  border-radius: 2px;
  margin-right: 15px;
  color: #fff;
  background-color: #212631;
  -webkit-transition: 0.2s opacity;
  transition: 0.2s opacity;
}

.post-meta .post-category:hover,
.post-meta .post-category:focus {
  text-decoration: none;
  opacity: 0.9;
}

.post-meta .post-category.cat-1 {
  background-color: #4bb92f;
}

.post-meta .post-category.cat-2 {
  background-color: #ff8700;
}

.post-meta .post-category.cat-3 {
  background-color: #8d00ff;
}

.post-meta .post-category.cat-4 {
  background-color: #0984e3;
}

.post-meta .post-date {
  font-size: 13px;
  font-weight: 600;
}

.post .post-title {
  font-size: 18px;
  margin-bottom: 0px;
}

/*----------------------------*\
   post thumb
\*----------------------------*/
.post.post-thumb {
  position: relative;
}

.post.post-thumb .post-img:after {
  content: "";
  position: absolute;
  left: 0;
  max-width: 600px;
  max-height: 312px;
  right: 0;
  bottom: 0;
  top: 0;
  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(rgba(33, 38, 49, 0.3)),
    to(transparent)
  );
  background: linear-gradient(
    to top,
    rgba(33, 38, 49, 0.3) 0%,
    transparent 100%
  );
}

.post.post-thumb .post-body {
  position: absolute;
  bottom: 0px;
  padding: 20px 15px;
}

.post.post-thumb .post-meta .post-date {
  color: #eceef2;
}

.post.post-thumb .post-title {
  font-size: 22px;
}

.post.post-thumb .post-title > a {
  color: #fff;
}

/*----------------------------*\
   post widget
\*----------------------------*/
.post.post-widget:after {
  content: "";
  display: block;
  clear: both;
}

.post.post-widget .post-img {
  width: 90px;
  float: left;
  margin-right: 15px;
}

.post.post-widget .post-img img {
  width: 100%;
}

.post.post-widget .post-title {
  font-size: 18px;
}

/*----------------------------*\
   post row
\*----------------------------*/
.post.post-row:after {
  content: "";
  display: block;
  clear: both;
}

.post.post-row .post-img {
  width: 40%;
  float: left;
}

.post.post-row .post-body {
  margin-left: calc(40% + 30px);
}

.post.post-row .post-meta {
  margin-top: 0px;
}

.post.post-row .post-title {
  margin-bottom: 15px;
}

/*=========================================================
   POST PAGE
===========================================================*/
.sticky-container {
  position: relative;
  padding-left: 80px;
}

.sticky-container .sticky-shares {
  position: absolute;
  top: 0;
  left: 0;
}

.sticky-shares a {
  display: block;
  margin-bottom: 10px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: #fbfbfd;
  color: #a7b3c6;
  border: 1px solid #eceef2;
  -webkit-transition: 0.2s all;
  transition: 0.2s all;
}

.sticky-shares a:hover {
  -webkit-transform: scale(1.3);
  -ms-transform: scale(1.3);
  transform: scale(1.3);
}

.sticky-shares a.share-facebook:hover {
  color: #3b5998;
  border-color: #3b5998;
}

.sticky-shares a.share-twitter:hover {
  color: #55acee;
  border-color: #55acee;
}

.sticky-shares a.share-google-plus:hover {
  color: #dd4b39;
  border-color: #dd4b39;
}

.sticky-shares a.share-pinterest:hover {
  color: #ff0000;
  border-color: #ff0000;
}

.sticky-shares a.share-linkedin:hover {
  color: #007bb5;
  border-color: #007bb5;
}

/*----------------------------*\
   category
\*----------------------------*/
.category-widget ul li {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px solid #eceef2;
}

.category-widget ul li + li {
  margin-top: 10px;
}

.category-widget ul li > a {
  display: block;
  -webkit-transition: 0.2s color;
  transition: 0.2s color;
}

.category-widget ul li > a > span {
  float: right;
  color: #fff;
  background-color: #212631;
  padding: 0px 5px;
  font-weight: 600;
  border-radius: 2px;
}

.category-widget ul li > a.cat-1 > span {
  background-color: #4bb92f;
}

.category-widget ul li > a.cat-2 > span {
  background-color: #ff8700;
}

.category-widget ul li > a.cat-3 > span {
  background-color: #0984e3;
}

.category-widget ul li > a.cat-4 > span {
  background-color: #0078ff;
}

.category-widget ul li > a:hover,
.category-widget ul li > a:focus {
  text-decoration: none;
}

.category-widget ul li > a.cat-1:hover,
.category-widget ul li > a.cat-1:focus {
  color: #4bb92f;
}

.category-widget ul li > a.cat-2:hover,
.category-widget ul li > a.cat-2:focus {
  color: #ff8700;
}

.category-widget ul li > a.cat-3:hover,
.category-widget ul li > a.cat-3:focus {
  color: #0078ff;
}

.category-widget ul li > a.cat-4:hover,
.category-widget ul li > a.cat-4:focus {
  color: #8d00ff;
}

/*=========================================================
   FOOTER
===========================================================*/
#footer {
  padding-bottom: 40px;
  margin-top: 40px;
}

#footer .container {
  padding-top: 80px;
  border-top: 1px solid #f4f4f9;
}

.footer-widget {
  margin-bottom: 40px;
}

.footer-widget .footer-title {
  margin-bottom: 15px;
  text-transform: capitalize;
  font-size: 18px;
}

.footer-widget a {
  color: #a7b3c6;
  -webkit-transition: 0.2s color;
  transition: 0.2s color;
}

.footer-widget a:hover,
.footer-widget a:focus {
  text-decoration: none;
  color: #212631;
}

.footer-logo {
  margin-bottom: 40px;
}

.footer-nav li {
  display: inline-block;
  margin-right: 15px;
}

.footer-links li + li {
  margin-top: 5px;
}

.footer-copyright {
  margin-top: 20px;
  color: #a7b3c6;
  font-size: 13px;
}

.footer-newsletter form {
  position: relative;
}

.footer-newsletter form > input.input {
  padding-right: 55px;
}

.footer-newsletter form > .newsletter-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 40px;
  line-height: 40px;
  width: 40px;
  text-align: center;
  color: #a7b3c6;
  background: transparent;
  border: none;
  border-radius: 0px 2px 2px 0px;
  -webkit-transition: 0.2s opacity;
  transition: 0.2s opacity;
}

.footer-newsletter form > .newsletter-btn:hover {
  opacity: 0.9;
}

.footer-social {
  margin-top: 20px;
}

.footer-social li {
  display: inline-block;
  margin-right: 5px;
}

.footer-social li > a {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: #a7b3c6;
  color: #fff;
  border-radius: 2px;
  -webkit-transition: 0.2s opacity;
  transition: 0.2s opacity;
}

.footer-social li > a:hover,
.footer-social li > a:focus {
  color: #fff;
  opacity: 0.9;
}

/*=========================================================
                                                                                                                                                                  RESPONSIVE
                                                                                                                                 ===========================================================*/
@media only screen and (max-width: 991px) {
  #nav .nav-menu {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .page-header h1 {
    font-size: 28px;
  }

  .post.post-row .post-img {
    width: 100%;
    float: none;
  }

  .post.post-row .post-body {
    margin-left: 0px;
  }

  .post.post-row .post-meta {
    margin-top: 15px;
  }

  .post.post-row .post-body p {
    display: none;
  }
}

-logo {
  margin-bottom: 40px;
}

.footer-nav li {
  display: inline-block;
  margin-right: 15px;
}

.footer-links li + li {
  margin-top: 5px;
}

.footer-copyright {
  margin-top: 20px;
  color: #a7b3c6;
  font-size: 13px;
}

.footer-newsletter form {
  position: relative;
}

.footer-newsletter form > input.input {
  padding-right: 55px;
}

.footer-newsletter form > .newsletter-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 40px;
  line-height: 40px;
  width: 40px;
  text-align: center;
  color: #a7b3c6;
  background: transparent;
  border: none;
  border-radius: 0px 2px 2px 0px;
  -webkit-transition: 0.2s opacity;
  transition: 0.2s opacity;
}

.footer-newsletter form > .newsletter-btn:hover {
  opacity: 0.9;
}

.footer-social {
  margin-top: 20px;
}

.footer-social li {
  display: inline-block;
  margin-right: 5px;
}

.footer-social li > a {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: #a7b3c6;
  color: #fff;
  border-radius: 2px;
  -webkit-transition: 0.2s opacity;
  transition: 0.2s opacity;
}

.footer-social li > a:hover,
.footer-social li > a:focus {
  color: #fff;
  opacity: 0.9;
}

/*=========================================================
   RESPONSIVE
===========================================================*/
@media only screen and (max-width: 991px) {
  #nav .nav-menu {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .page-header h1 {
    font-size: 28px;
  }

  .post.post-row .post-img {
    width: 100%;
    float: none;
  }

  .post.post-row .post-body {
    margin-left: 0px;
  }

  .post.post-row .post-meta {
    margin-top: 15px;
  }

  .post.post-row .post-body p {
    display: none;
  }
}
