.modal-hide-bg{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.main_page > .swiper-controls > .swiper-pagination {
  bottom: -50px;
}
.social.social-custom a i,
.social.social-custom a:hover i{
  color: #3f78e0 !important;
}
.dropdown-item{
  white-space: nowrap;
}
.main_banner{
  width:100%;
}
.sub_box_comment{
  position: absolute;
  bottom: -5px;
  width: inherit;
}
.vertical-mid{
  vertical-align: middle;
}
.vertical-sub{
  vertical-align: sub;
}
.bg-modern{
  background-color: #2C373D;
}
.bg-modern-soft{
  background-color: #445660;
}
.bg-modern-dark{
  background-color: #0D215D;
}
.card-body{
  padding: 1rem;
}
.size-s{
  font-size: smaller;
}
.size-ss{
  font-size: small;
}
.size-xl{
  font-size: large;
}
.size-xxl{
  font-size: larger;
}
.size-xxxl{
  font-size: x-large;
}
.offset-5px {
  margin-left: 5px;
}
.offset-1rem {
  margin-left: 1rem;
}
.offset-2rem {
  margin-left: 2rem;
}
.clear-both {
  clear: both !important;
}
.bg-gradient-custom {
  background: linear-gradient(180deg, #2C373D, rgba(255, 255, 255, 0) 100%);
}
.z-2{
  z-index: 2;
}
.alert-icon{
  padding: 0.4rem;
  padding-left: 2.5rem;
}
.alert-icon i {
  padding: 0.2rem 1rem;
}
.bt-upload-file{
  padding: 16px;
  padding-left: 1.2rem;
  background-color: #ecf2fc;
}
input[type="file"] {
  display: none;
}
.custom-file-upload {
  border: 1px solid #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  font-size: .75rem;
}
.custom-file-upload > i {
  vertical-align: text-top;
}
.table> :not(caption)>*>* {
  padding: 0.3rem 0.5rem;
}
.dropdown-submenu > .dropdown-menu{
  left: 3rem !important;
  top: 2rem !important;
  background-color: var(--bs-secondary);
}
.pic-swiper > .swiper-controls .swiper-pagination {
  bottom: -1.8rem;
  position: absolute !important;
  pointer-events: all;
}
.datepicker-days{
  padding: 0.3rem;
}
.datepicker{
  padding: 0.8rem;
}
.pointer-icon{
  cursor: pointer;
}
.w-fit{
  width: fit-content;
}
.w-90{
  width: 90%;
}
.edit-text-box-1{
  position: absolute;
  right: -1.3rem;
  top: 0;
}
.edit-text-box-2{
  position: absolute;
  right: -2.5rem;
  top: 0;
}
.flex{
  display: flex;
}
.flex-direction-column{
  flex-direction: column;
}
.form-select {
  background-position: right 0.1rem center;
  padding: 0 0.5rem;
  margin-right: 1rem;
}
.block-style{
  opacity: 0.6;
}
.box_style{
  display: inline-block;
  /* background-color: rgb(192, 192, 192); */
  /* padding: 0.2rem 1rem; */
  padding: 3px 10px;
  border: 1px solid #000;
  border-radius: 9px;
  position: relative;
  white-space: nowrap;
}
.box_style_arrow{
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}
.nowrap{
  white-space: nowrap;
}
.nav-item{
  margin: 0.3em;
}
/* .navbar-light{
  background-color: #2C373D !important;
} */
/* .nav-link{
  color: #fff !important;
} */
/* .navbar-stick {
  transform: translateY(0%)!important;
}
.navbar-stick:not(.navbar-dark) {
  box-shadow: 0rem 0rem 1.25rem rgba(30, 34, 40, 0.06)!important;
  background: rgba(255, 255, 255, 0.97)!important;
} */

.loaderxxx {
  width: 15px;
  height: 15px;
  border: 3px solid #9499a3;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.facebook-icon {
  position: fixed; /* Fixed/sticky position */
  bottom: 35px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 0px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

.facebook-icon img {
  width: 45px; 
  height: 45px; 
}


.progress-wrap {
  bottom: 4.5rem;
}

@keyframes rotation {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
} 

.accordion-wrapper .card-header .icon_drop button:before {
  margin-left: 1.7rem !important;
}

.fb-page,
.fb-page span,
.fb-page span iframe[style] {
  max-width: 100% !important;
}

.spinning::before {
  animation: rotation 2s infinite linear;
  display: inline-block;
}

.pagination {
  box-shadow: unset;
}

.page-item:first-child .page-link {
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
}
.page-item:last-child .page-link {
    border-top-right-radius: unset;
    border-bottom-right-radius: unset;
}


#gray_layer {
    /* สำหรับ Chrome, Safari, Opera */
    -webkit-filter: grayscale(100%); 
    /* สำหรับเบราว์เซอร์ส่วนใหญ่ (มาตรฐาน) */
    filter: grayscale(100%); 
    /* สำหรับ IE6-9 (โค้ดเก่า อาจไม่จำเป็นสำหรับเบราว์เซอร์ยุคปัจจุบัน) */
    filter: gray; 
    /* display: flex; */
}


@media (max-width: 500px) {
  /* .navbar-expand-sm.center-logo.fixed .offcanvas-header .logo-light {
    display: inline-block;
  }
  .navbar-expand-sm.center-logo.fixed .offcanvas-header .logo-dark {
    display: none;
  } */
}
@media (max-width: 767px) {
  a.main_page_end{
    margin-top: 0.25rem;
  }
  a.main_page_start, a.main_page_end{
    width: inherit;
  }
  .main_banner{
    margin: 1.5rem 0;
  }
  .d-none-mobile {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  
}