/*

Template 2098 Health

http://www.tooplate.com/view/2098-health

*/

@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600");
@import url("https://fonts.googleapis.com/css2?family=Prompt: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");

body {
  background: #ffffff;
  font-family: "THSarabunPSK", sans-serif;
  overflow-x: hidden;
}

/*---------------------------------------
     TYPOGRAPHY              
  -----------------------------------------*/
a,
button {
  font-family: "Prompt";
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Prompt";
  font-weight: 600;
  line-height: inherit;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -1px;
}

h5 {
  font-weight: 500;
}

h1 {
  color: #252525;
  font-size: 5em;
}

h2 {
  color: #272727;
  font-size: 3em;
  padding-bottom: 10px;
}

h3 {
  font-size: 1.8em;
  line-height: 1.2em;
  margin-bottom: 0;
}

h4 {
  color: #454545;
  font-size: 1.8em;
  padding-bottom: 2px;
}

h6 {
  letter-spacing: 0;
  font-weight: normal;
}

p {
  color: #757575;
  font-size: 14px;
  font-weight: normal;
  line-height: 24px;
}

/*---------------------------------------
     GENERAL               
  -----------------------------------------*/
#MainContent {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s, transform 0.5s;
}

html {
  -webkit-font-smoothing: antialiased;
}

a {
  color: #252525;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  text-decoration: none !important;
}

a:hover,
a:active,
a:focus {
  color: #2d6f41;
  outline: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  cursor: pointer;
  background: #000000;
}
.section-title {
  padding-bottom: 20px;
}

.section-title h2 {
  margin-top: 0;
}

.section-btn {
  background: transparent;
  border: solid 2px rgba(0, 0, 0, 0);
  border-radius: 20px;
  color: #f5f5f5;
  font-size: inherit;
  font-weight: 500;
  padding: 5px 15px 5px 15px;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.section-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
  border: solid 2px #f5f5f5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  color: #f5f5f5;
}
.section-solid-btn {
  font-family: "Prompt";
  background: #2d6f41;
  border: 0;
  border-radius: 15px;
  color: #f5f5f5;
  font-size: inherit;
  font-weight: 500;
  padding: 14px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease,
    color 0.3s ease;
  /* transition: transform 0.3s ease-in; */
  transform: translateX(0);
}
.section-solid-btn:hover {
  background: #ffffff;
  color: #2d6f41;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); /* ใส่เงาให้ดู float */
}

.plain-btn {
  border: 0;
  background: none;
  color: #ffffff;
  padding-top: 20px;
  font-family: "Prompt";
  transition: transform 0.3s ease, color 0.3s ease;
}
.plain-btn:hover {
  transform: scale(1.2);
}

.text-align-right {
  text-align: right;
}

.text-align-center {
  text-align: center;
}

.border-top {
  border-top: 1px solid #f2f2f2;
  margin-top: 4em;
  padding-top: 2.5em;
}

.news-thumb {
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}
.news-thumb:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.news-thumb img {
  width: 100%;
  height: 28vh;
  object-position: top;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}
.tools-thumb {
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: 0 3px 15px rgba(158, 158, 158, 0.4);
  border-radius: 10px;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.tools-thumb:hover {
  box-shadow: 0 3px 15px rgba(38, 38, 38, 0.4);
  background: #2d6f41;
}
.tools-thumb a:hover {
  color: white;
}
.news-platform {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-platform:hover {
  transform: scale(1.03);
}

.news-info {
  padding: 30px;
  text-align: left;
}
.news-info span {
  display: block;
  letter-spacing: 0.5px;
}
.news-info h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}
.news-info p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool {
  padding: 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}
.tool span {
  display: block;
  letter-spacing: 0.5px;
}
.tool h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.author {
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5em;
  margin-top: 2em;
}
.author img,
.author .author-info {
  display: inline-block;
  vertical-align: top;
}
.author-info h5 {
  margin-bottom: 0;
}
.author img {
  border-radius: 100%;
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

#about,
#team,
#news,
#news-detail {
  position: relative;
  padding-top: 50px;
  padding-bottom: 50px;
}

#news,
#service {
  text-align: center;
}

#google-map {
  line-height: 0;
  margin: 0;
  padding: 0;
}

/*---------------------------------------
       PRE LOADER              
  -----------------------------------------*/

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: none repeat scroll 0 0 #ffffff;
}

.spinner {
  border: 1px solid transparent;
  border-radius: 3px;
  position: relative;
}

.spinner:before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 1px solid #575757;
  border-top-color: #ffffff;
  animation: spinner 0.9s linear infinite;
}

@-webkit-@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/*---------------------------------------
      MENU              
  -----------------------------------------*/
header {
  background: #ffffff;
  border-bottom: 1px solid #f2f2f2;
  display: flex;
  height: 45px;
}

header .col-md-8,
header .col-sm-8 {
  padding-right: 0;
  text-align: right;
}

header p,
header span {
  font-size: 12px;
  line-height: 24px;
  padding-top: 12px;
}

header a,
header span {
  color: #747474;
}

header span {
  font-weight: 500;
  display: inline-block;
  padding: 11px 15px;
}

header span.date-icon {
  border-left: 1px solid #f2f2f2;
  border-right: 1px solid #f2f2f2;
  padding-right: 19px;
  padding-left: 19px;
}

header span i {
  color: #2d6f41;
  margin-right: 5px;
}

/*---------------------------------------
      MENU              
  -----------------------------------------*/
.navbar-header {
  padding: 10px 0px 10px 0px;
  /* background-color: red; */
}
.navbar-default {
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-default .navbar-brand {
  color: #393939;
  font-weight: 500;
}

.navbar-default .navbar-brand .fa {
  color: #2d6f41;
}

.navbar-default .navbar-nav li.appointment-btn {
  margin: 18px 0px 18px 0px;
}

.navbar-default .navbar-nav li.appointment-btn a {
  background: rgba(45, 111, 65, 0.9);
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
  padding-top: 7px;
  padding-bottom: 7px;
  transition: all ease-in-out 0.4s;
}

.navbar-default .navbar-nav li.appointment-btn a:hover {
  background-color: transparent;
  color: #2d6f41 !important;
}

.navbar-default .navbar-nav li a {
  color: #555555;
  font-size: 12px;
  font-weight: 500;
  padding: 25px 20px 25px 20px;
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
}
.navbar-default .navbar-nav > li a:hover {
  color: #2d6f41 !important;
  transform: scale(1.05);
  cursor:pointer;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #555555;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #393939;
  background-color: transparent;
}

.navbar-default .navbar-toggle {
  border: none;
  padding-top: 10px;
  transition: all 0.3s ease;
}

.navbar-default .navbar-toggle .icon-bar {
  background: #393939;
  border-color: transparent;
}
.dropbtn {
  color: white;
  border: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: transparent}

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

.dropdown:hover .dropbtn {
}

/*---------------------------------------
      HOME              
  -----------------------------------------*/

#home h1 {
  color: #ffffff;
  padding-bottom: 10px;
  margin-top: 0;
}

#home h3 {
  color: #ffffff;
  font-size: 14px;
  font-weight: normal;
  line-height: inherit;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.slider .container {
  width: 100%;
}

.slider .owl-dots {
  position: absolute;
  top: 575px;
  width: 100%;
  justify-content: center;
}

.owl-theme .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 5px 7px;
  border: 2px solid #d9d9d9;
  background: transparent;
  display: block;
  -webkit-backface-visibility: visible;
  transition: opacity 200ms ease;
  border-radius: 30px;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background-color: #ffffff;
  border-color: transparent;
}

.slide-text h1,
.slide-text h3,
.slide-text a {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider .caption {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background-color: rgba(20, 20, 20, 0.2);
  height: 100%;
  color: #fff;
  cursor: e-resize;
}

.slider .item {
  background-position: inherit;
  background-repeat: no-repeat;
  background-attachment: local;
  background-size: cover;
  height: 650px;
}

.slider .item-first {
  background-image: url(../images/slider1.jpg);
}

.slider .item-second {
  background-image: url(../images/slider2.jpg);
}

.slider .item-third {
  background-image: url(../images/slider3.jpg);
  background-position: center;
}

/*---------------------------------------
      ABOUT              
  -----------------------------------------*/

#about {
  background: url("../images/about-bg.jpg") no-repeat top center;
  background-size: cover;
  padding-top: 150px;
  padding-bottom: 150px;
}

.profile img,
.profile figcaption {
  display: inline-block;
  vertical-align: top;
  margin-top: 1em;
}
.profile img {
  border-radius: 100%;
  width: 65px;
  height: 65px;
  margin-right: 1em;
}
.profile figcaption h3 {
  margin-top: 0;
  padding-top: px;
}

#about h6 {
  color: #858585;
  margin: 0;
}

/*---------------------------------------
      TEAM MEMBERS              
  -----------------------------------------*/

.flex-center-wrapper {
  display: flex;
  align-items: center;
  justify-content: center; /* จัดให้อยู่ตรงกลางแนวนอน */
  flex-wrap: wrap; /* สำคัญมาก! ให้ลงบรรทัดใหม่ตอนจอแคบ */
}

.flex-center-wrapper > div {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.no-border-modal {
  background: none;
  border: none;
  box-shadow: none;
  margin-top: 10%;
}
.modal-body {
  text-align: left;
}
.modal-body a {
  font-weight: 300;
}
.modal-body li {
  border-radius: 15px;
  margin: 0 0 10px 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.modal-body li:hover {
  background-color: beige;
  transform: scale(1.03);
}
.modal-content {
  border-radius: 15px;
}

.full-image {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  display: block;
}
.team-thumb {
  background-color: #f9f9f9;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.team-info {
  padding: 20px 30px 0 30px;
}

.team-contact-info {
  border-top: 1px solid #e9e9e9;
  padding-top: 1.2em;
  margin-top: 1.5em;
}

.team-contact-info .fa {
  margin-right: 5px;
  display: inline-block;
}

.team-contact-info p {
  margin-bottom: 2px;
}

.team-contact-info a {
  color: #757575;
}

.team-thumb .social-icon li {
  font-weight: 500;
}

.team-thumb .social-icon li a {
  background: #ffffff;
  border-radius: 100%;
  font-size: 20px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  margin: 0 2px 0 2px;
}

.team-thumb .social-icon {
  opacity: 0;
  transform: translateY(100%);
  transition: 0.5s 0.2s;
  text-align: center;
  position: relative;
  top: 0;
}

.team-thumb:hover .social-icon {
  opacity: 1;
  transition-delay: 0.3s;
  transform: translateY(0px);
  top: -22em;
}

/*---------------------------------------
     SERVICE              
  -----------------------------------------*/

#service {
  background: #2d6f41;
}

#service h2,
#service h4 {
  color: #ffffff;
}

#service p {
  color: #d9d9d9;
}

#service .service-thumb {
  padding: 0 22px;
}

#service .fa {
  font-size: 50px;
  margin-bottom: 10px;
  background: #ffffff;
  color: #a5c422;
  width: 120px;
  height: 120px;
  line-height: 120px;
  border-radius: 100%;
}

/*---------------------------------------
      NEWS             
  -----------------------------------------*/

#news,
#news-detail {
  background: #f9f9f9;
}

#news-detail blockquote {
  font-family: "Prompt";
  margin: 30px 0;
}

.news-detail-thumb .news-image img {
  border-radius: 10px;
}

.news-detail-thumb h3 {
  margin-bottom: 8px;
}

.news-image {
  margin-bottom: 30px;
  position: relative;
}

.news-image img {
  width: 30%;
}

.news-detail-thumb ul {
  margin: 32px 12px 22px 0px;
}

.news-detail-thumb ul li {
  list-style: circle;
  font-weight: normal;
  padding: 6px 12px 6px 0px;
}

.news-sidebar {
  margin-top: 16px;
}

.news-social-share {
  text-align: center;
  padding-top: 22px;
}

.news-social-share .btn {
  border-radius: 100px;
  border: none;
  font-size: 10px;
  font-weight: 600;
  margin: 2px 6px;
  padding: 8px 14px;
}

.news-social-share .btn-primary {
  background: #3b5998;
}

.news-social-share .btn-success {
  background: #1da1f2;
}

.news-social-share .btn-danger {
  background: #dd4b39;
}

.news-social-share a .fa {
  padding-right: 4px;
}

.recent-post {
  padding-top: 2px;
  padding-bottom: 18px;
}

.recent-post .media img {
  border-radius: 100%;
  width: 80px;
  height: 80px;
  margin-right: 5px;
}

.recent-post .media-heading {
  font-size: 16px;
  font-weight: 500;
  line-height: inherit;
  margin-top: 5px;
}

.news-categories {
  margin-top: 8px;
}

.news-categories li a {
  color: #2b2b2b;
}

.news-ads {
  background: #ffffff;
  border-right: 4px solid #2b2b2b;
  padding: 42px;
  text-align: center;
  margin: 26px 0 26px 0;
}

.news-ads.sidebar-ads {
  border-left: 4px solid #2b2b2b;
  border-right: 0px;
}

.news-ads h4 {
  font-size: 18px;
}

.news-tags h4 {
  padding-bottom: 6px;
}

.news-categories li,
.news-tags li {
  list-style: none;
  display: inline-block;
  margin: 4px;
}

.news-tags li a {
  background: #393939;
  border-radius: 50px;
  color: #ffffff;
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  float: left;
  min-width: 30px;
  padding: 6px 12px;
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
}

.news-tags li a:hover {
  background: #2d6f41;
}

.indent {
  font-family: "Prompt-light";

  text-indent: 4em;
}

/*---------------------------------------
      APPOINTMENT             
  -----------------------------------------*/

#appointment {
  padding-top: 100px;
}

#appointment label {
  color: #393939;
  font-weight: 500;
}

#appointment .form-control {
  background: #f9f9f9;
  border: none;
  border-radius: 3px;
  box-shadow: none;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 15px;
  transition: all ease-in-out 0.4s;
}

#appointment input,
#appointment select {
  height: 45px;
}

#appointment button#cf-submit {
  background: #2d6f41;
  color: #ffffff;
  font-weight: 600;
  height: 55px;
}

#appointment button#cf-submit:hover {
  background: #393939;
  color: #ffffff;
}

/*---------------------------------------
     FOOTER              
  -----------------------------------------*/

footer {
  padding-top: 80px;
  padding-bottom: 40px;
}

footer h4 {
  padding-bottom: 0px;
}

footer a {
  color: #757575;
}

footer a:hover {
  color: #2d6f41;
}

.contact-info {
  padding-top: 10px;
}

.contact-info .fa {
  background: #393939;
  border-radius: 100%;
  color: #ffffff;
  font-size: 15px;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  margin-right: 5px;
  margin-bottom: 2px;
}

.latest-stories {
  margin-bottom: 0px;
}

.stories-image,
.stories-info {
  display: inline-block;
  vertical-align: top;
}

.stories-image img {
  border-radius: 100%;
  width: 65px;
  height: 65px;
}

.stories-info h5 {
  margin-bottom: 2px;
}

.stories-info span {
  color: #858585;
  font-size: 12px;
}

.opening-hours p {
  line-height: 18px;
}

.opening-hours span {
  font-weight: 500;
  display: inline-block;
  padding-left: 10px;
}

.copyright-text p,
.footer-link a {
  color: #858585;
  font-size: 12px;
  font-weight: 500;
}

.footer-link a {
  font-size: 12px;
  display: inline-block;
  padding: 0 10px;
  margin-top: 4px;
}
/* .angle-up-btn {
    position: relative;
    bottom: 4em;
    display: block;
  }

  .angle-up-btn a {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    font-size: 20px;
    color: #393939;
    display: inline-block;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 38px;
    transition: transform 0.1s ease-in;
    transform: translateX(0);
  } */
.angle-up-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  color: #fff;
  font-size: 18px;
}
.angle-up-btn a {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  font-size: 20px;
  color: #393939;
  display: inline-block;
  text-align: center;
  width: 40px;
  height: 40px;
  line-height: 38px;
  transition: transform 0.1s ease-in, background 0.3s ease;
  transform: translateX(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.angle-up-btn a:hover {
  background: #2d6f41;
  color: #ffffff;
  transform: translateY(-5px);
}

/*---------------------------------------
     SOCIAL ICON              
  -----------------------------------------*/

.social-icon {
  position: relative;
  padding: 0;
  margin: 0;
}

.social-icon li {
  display: inline-block;
  list-style: none;
}

.social-icon li a {
  border-radius: 100px;
  color: #464646;
  font-size: 15px;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-decoration: none;
  text-align: center;
  transition: all 0.4s ease-in-out;
  position: relative;
}

.social-icon li a:hover {
  background: #2d6f41;
  color: #ffffff;
}
.unhid-struct {
  display: none;
}

/* ======================================WELCOME MODAL====================================== */

/* ให้ modal เต็มจอ */
.modal-dialog.modal-fullscreen {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
/* ครอบ modal ทั้งหมดให้อยู่ตรงกลางจอ */
.welcome-modal-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  position: relative;
}
.welcome-modal-wrapper p {
  padding-top: 30px;
  font-family: "Prompt";
  color: white;
}
.welcome-modal-wrapper button {
  display: inline-block;
}
/* รูปเต็มขนาดแต่ไม่โดนตัด */
.carousel-inner,
.carousel-inner .item,
.carousel-inner img {
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  width: 100%;
}
/* ปรับปุ่มเลื่อนซ้ายขวา */
.carousel-control {
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background: none;
  color: #ffffff;
}
.modal-content-welcome {
  max-width: 1200px;
  background: none;
  box-shadow: none;
  border: 0;
}
.modal-dialog-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  width: 100%;
  padding-top: 7%;
  margin: 0 auto;
}
.carousel-fade .carousel-inner .item {
  opacity: 0;
  transition-property: opacity;
}
.carousel-fade .carousel-inner .active {
  opacity: 1;
}
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  left: 0;
  opacity: 0;
  z-index: 1;
}
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}
.carousel-fade .carousel-control {
  z-index: 2;
}
@media all and (transform-3d), (-webkit-transform-3d) {
  .carousel-fade .carousel-inner > .item.next,
  .carousel-fade .carousel-inner > .item.active.right {
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  .carousel-fade .carousel-inner > .item.prev,
  .carousel-fade .carousel-inner > .item.active.left {
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  .carousel-fade .carousel-inner > .item.next.left,
  .carousel-fade .carousel-inner > .item.prev.right,
  .carousel-fade .carousel-inner > .item.active {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
/* ========================================ORG CHART======================================== */
.row.org {
  display: flex;
  align-items: center;
  gap: 20px;
}

.org-block {
  background-color: transparent;
  width: auto;
  text-align: center;
  padding: 15px 50px 15px 50px;
  width: 300px;
  transition: transform 0.3s ease;
}
.org-block.lv3 {
  padding-top: 11px;
  padding-bottom: 95px;
  width: 500px;
  text-align: left;
}
.org-block.lv3.sp .row.org {
  padding: 10px 0px 10px 0px;
}
.org-block:hover {
  transform: scale(1);
}

.org-block img {
  border-radius: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  height: 100px;
  width: 100px;
  object-fit: cover;
  object-position: top;
  transition: all 0.5s ease;
}
.org-block h5 {
  padding-top: 10px;
}
.org-box.second img {
  height: 80px;
  width: 80px;
}
.org-box.third {
  align-items: top;
}
.org-box.third img {
  height: 70px;
  width: 70px;
}
.org-box.third .org-block {
  padding-bottom: 0px;
  text-align: left;
}
/* ===============horizontal================= */
.text-pos {
  position: absolute;
  top: 93%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%);
}
.org-block-h {
  transform: scale(0.7);
  text-align: center;
  /* padding: 0px 0px 0px 0px; */
  transition: transform 0.3s ease;
}
/* .org-block-h:hover {
  transform: scale(0.8);
} */
.org-block-h img {
  border-radius: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  height: 210px;
  width: 150px;
  padding-bottom: 50px;
  object-fit: cover;
  object-position: top;
  transition: all 0.5s ease;
}
.org-block-h h5 {
  font-size: x-small;
  margin: 0px 0px 0px 0px;
}
.org-block-h p {
  font-size: xx-small;
}

/* ========================================SIDE BAR======================================== */

.sidebar {
  font-family: "Prompt";
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: fit-content;
  height: 100%;
  position: fixed;
  top: 20%;
  right: 1%;
  overflow: auto;
}
.sidebar li {
  text-align: right;
  padding-bottom: 100px;
  padding-left: 30px;
}
.sidebar li a {
  color: grey;
  border-radius: 20px;
  display: block;
  padding: 8px 16px;
}

.sidebar li.active a {
  color: #2d6f41;
  font-size: larger;
  font-weight: bold;
}

.sidebar li a:hover:not(.active) {
  color: white;
  background-color: #2d6f41;
}
/* ========================================COOKIE======================================== */
.cookie-box {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  font-family: "Prompt";
  color: #353535;
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 350px;
  height: auto;
  padding: 30px;
  z-index: 2;
}
.cookie-box h3 {
  margin: 0;
  padding-bottom: 10px;
}
.cookie-btn {
  margin-top: 10px;
  padding: 10px 0 10px 0;
  width: 100%;
  border: 0;
  border-radius: 30px;

  font-family: "Prompt";
  font-size: larger;
  color: white;
  transition: all 0.3s ease;
}
.shrt-btn {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: 10px;
  border-radius: 10px;
  width: fit-content;
}
.a-btn {
  background-color: #2d6f41;
}
.b-btn {
  background-color: rgb(113, 92, 64);
}
.a-btn:hover,
.b-btn:hover {
  transform: scale(1.05);
}
#cookieModal {
  font-family: "Prompt";
}
/* ====================================RESPONSIVE STYLES==================================== */

@media only screen and (max-width: 1200px) {
  h1 {
    font-size: 4em;
  }
  h2 {
    font-size: 2.5em;
  }
  h3 {
    font-size: 1.5em;
  }
  .hid-struct {
    display: block;
  }

  header {
    height: inherit;
    display: block;
  }
  header span.date-icon {
    border: 0;
    padding-right: 0;
    padding-left: 0;
  }
  header span.email-icon {
    padding-top: 0;
  }

  .navbar-default .navbar-nav li a {
    padding-right: 15px;
    padding-left: 15px;
  }
  .navbar-header img {
    padding-top: 5px;
    max-width: 180px;
    height: auto;
  }
  .org-block h5,
  .org-block p {
    font-size: smaller;
  }

  /* .modal-dialog {
    width: 60%;
  }

  .carousel-inner,
  .carousel-inner .item,
  .carousel-inner img {
    height: 600px;
    object-fit: contain;
  } */
}

@media only screen and (max-width: 992px) {
  .hid-struct {
    display: none;
  }
  .unhid-struct {
    display: block;
  }
  .slider .item {
    background-position: center;
  }
  .navbar-default .navbar-nav li a {
    padding: 10px 0px 10px 10px;
  }
  .navbar-default .navbar-nav li.appointment-btn {
    margin: 0px 0px 15px 0px;
  }
  .navbar-default .navbar-nav li.appointment-btn a {
    background: none;
    color: #555555;
    font-weight: 500;
  }
  .navbar-collapse.collapse {
    display: none !important;
  }

  .navbar-header {
    float: none;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-collapse {
    width: 100%;
    display: block;
  }

  .navbar-collapse.collapse.in {
    display: block !important;
  }

  .navbar-nav {
    float: none !important;
    margin: 0;
  }

  .navbar-nav > li {
    float: none;
  }
  .navbar-header img {
    height: auto;
  }
}

@media only screen and (max-width: 767px) {
  .cookie-box {
    left: 50%;
    transform: translateX(-50%);
  }
  .navbar-header {
    padding: 10px 0px 10px 17px;
    /* background-color: red; */
  }
  .navbar-default .navbar-collapse,
  .navbar-default .navbar-form {
    border-color: transparent;
  }
  header {
    display: none;
  }
  header {
    width: max-content;
  }
  .news-sidebar {
    margin-top: 2em;
  }

  #appointment-form {
    padding-top: 4em;
    padding-bottom: 4em;
  }

  footer {
    padding-top: 60px;
    padding-bottom: 0;
  }
  .footer-thumb {
    padding-bottom: 30px;
  }

  .border-top {
    text-align: center;
  }

  .copyright-text {
    margin-top: 10px;
  }

  .footer-thumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* ระยะห่างระหว่างกล่อง */
  }

  .footer-thumb .latest-stories {
    width: calc(50% - 10px); /* ให้แต่ละกล่องกว้าง 50% ของพื้นที่ */
  }

  .contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .contact-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
  }
}

@media only screen and (max-width: 639px) {
  h1 {
    font-size: 3em;
    line-height: 1.2em;
  }
  h2 {
    font-size: 2.1em;
  }
  h4 {
    font-size: 1.4em;
  }

  #home h3 {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .col-sm-3 {
    padding: 0;
  }
  .text-pos {
    top: 87%;
  }
  .text-pos h5 {
    margin: 0;
    padding: 0;
    font-size: 7px;
    line-height: 1; /* ลดช่องว่างบรรทัด */
  }

  .text-pos p {
    margin: 0;
    padding: 0;
    padding-top: 5px;
    font-size: 6px;
    line-height: 1;
  }

  .org-box-h.second {
    left: 50%;
    transform: translateX(-50%);
  }
  .org-block-h img {
    padding-bottom: 35px;
    transition: all 0.5s ease;
    width: 95px;
    height: 133px;
  }
  .org-box-h.second .org-block-h {
    max-width: fit-content;
  }
}
/*---------------------------------------
     DIAGRAM STYLES              
  -----------------------------------------*/
.head-box {
  text-align: center;
  font-family: "Prompt";
  margin: 20px;
  padding: 20px;
  border-radius: 100px;
  background-color: red;
}
.child-box {
  text-align: center;
  font-family: "Prompt";
  margin: 20px;
  padding: 20px;
  border-radius: 100px;
  background-color: red;
}
