/*@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");*/

@import url("https://fonts.googleapis.com/css2?family=Mitr:wght@200;300;400;500;600;700&display=swap");

body {
  font-family: "Mitr", sans-serif;
  font-weight: 300;
  font-style: normal;
  padding: 0px;
  margin: 0px;
}

.mobile {
  display: none;
}

.main-header {
  padding-top: 10px;
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 99;
  background-color: #fff;
}

.header {
  background-color: #686d71;
  color: #fff;
  width: 100%;
}

.header ul {
  padding: 0px;
  margin: 0px;
  display: flex;
  justify-content: center;
}

.header li {
  list-style: none;
  padding: 10px;
  padding-top: 7px;
  padding-bottom: 7px;
  min-width: 20%;
  text-align: center;
  font-size: 20px;
}

.header li:hover {
  background-color: #444;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dropdown-menu ul {
  display: none;
}

.dropdown-menu li {
  padding: 10px;
  color: #fff;
  background-color: #444;
}

.dropdown-menu li:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.logo-header {
  display: flex;
  justify-items: center;
  align-items: center;
  margin-bottom: 10px;
}

.logo-header-title {
  text-align: right;
  width: 100%;
  display: flex;
  width: 100%;
  justify-content: end;
  align-items: center;
}

.m-icon {
  font-size: 30px;
  margin-left: 10px;
}

.logo {
  width: 400px;
}

.header a {
  text-decoration: none;
  color: #fff;
}

.header a:hover {
  text-decoration: underline;
}

.body-content {
  margin-top: 150px;
  margin-bottom: 50 px;
}

.m-scrolled {
  background-color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: -10px;
}

.m-scrolled .logo {
  width: 200px;
  margin-top: 10px;
}

.span_btn_review {
  background-color: #f8a702;
  border-radius: 50px;
  padding: 5px;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 20px;
  color: #fff;
}

.span_btn_news {
  background-color: #3097a3;
  border-radius: 50px;
  padding: 5px;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 20px;
  color: #fff;
}

.span_btn_talk {
  background-color: #f40002;
  border-radius: 50px;
  padding: 5px;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 20px;
  color: #fff;
}

.article_card {
  background-color: #fff;
  border-style: solid;
  border-width: 1px;
  border-color: #e6e6e6;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 20px;
}

.article_card a {
  text-decoration: none;
  color: #1c1c1c;
}

.article_card a:hover {
  text-decoration: underline;
}

.article_card:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 3px;
}

.article_card .article_name {
  padding: 10px;
  font-size: 20px;
  height: 70px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* แสดง 3 แถว */
  overflow: hidden;
  text-overflow: ellipsis;
}

.article_card .article_desc {
  margin-top: 0px;
  padding: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; /* แสดง 3 แถว */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em; /* ความสูงของบรรทัด */
  max-height: 8em; /* 3 แถว x ความสูงของบรรทัด */
  min-height: 8em;
}

.article_desc p {
  flex: 1;
  color: #555555;
}

.article_card img {
  transition: transform 0.5s ease;
}

.article_card:hover img {
  transform: scale(1.04);
}

.read_more {
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.read_more a {
  background-color: #26aae1;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
}

.page_main {
  background-color: #fff;
  border-style: solid;
  border-width: 1px;
  border-color: #e6e6e6;
  border-radius: 5px;
}

.page_title {
  /*font-size: 20px;
  /*font-weight: 200;*/
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 300px;
  /*text-shadow: 1px 1px 1px #575757;*/

  padding-left: 10px;
  padding-right: 10px;
}

.page_title a {
  text-decoration: none;
  color: #000;
}

.page_title a:hover {
  text-decoration: underline;
}

.page_desc {
  font-size: 18px;
  padding-left: 10px;
  padding-right: 10px;
}

.page_date {
  padding-left: 10px;
  padding-right: 10px;
}

.page_desc img {
  display: block; /* แปลงรูปภาพให้เป็นบล็อก */
  margin-left: auto; /* กึ่งกลางแนวนอน */
  margin-right: auto; /* กึ่งกลางแนวนอน */
  max-width: 100%; /* ป้องกันไม่ให้รูปภาพใหญ่เกินไป */
  height: auto;
  max-width: 100%;
  border-radius: 5px;
}

.page-img {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  list-style: none;
  padding: 0;
}

.pagination li {
  margin: 0 5px;
}

.pagination a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.pagination a.active {
  background-color: #f0f0f0;
  color: white;
  border: 1px solid #f0f0f0;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

.footer {
  margin-top: 100px;
  background-color: #b2b6b7;
  min-height: 200px;
  padding: 10px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* สีจาง */
  z-index: 1;
}

@media (max-width: 768px) {
  .right_banner {
    margin-top: 20px;
  }

  .web {
    display: none;
  }

  .mobile {
    display: inherit;
  }

  .main-header {
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
  }

  .logo {
    width: 200px;
  }

  .body-content {
    margin-top: 60px;
    margin-bottom: 50 px;
  }

  .mobile-menu {
    z-index: 8;
    left: -70%;
    position: fixed;
    width: 70%;
    background-color: #000;
    height: 100vh;
    top: 56px;
    overflow: hidden;
  }

  .m-menu {
    margin: 0px;
    padding: 0px;
  }

  .m-menu li {
    border-bottom-style: solid;
    padding: 10px;
    border-bottom-width: 1px;
    border-bottom-color: #474747;
  }

  .m-menu a {
    text-decoration: none;
    color: #fff;
  }

  .group-icon {
    font-size: 20px !important;
  }
}
