@font-face { 
	font-family: BaiJamjuree;  
	src: url('../fonts/BaiJamjuree-Regular.ttf') format("truetype"); 
}
@font-face { 
	font-family: BaiJamjuree-SemiBold;  
	src: url('../fonts/BaiJamjuree-SemiBold.ttf') format("truetype"); 
}	

.cursor_pointer{
	cursor: pointer;
}

/* ซ่อม pagination ของ Laravel (Tailwind) เมื่อไม่มี Tailwind */
nav[role="navigation"] svg { width: 1rem; height: 1rem; }

/* จัดวางเป็นแนวนอนกึ่งกลาง */
nav[role="navigation"] > div { display: flex; justify-content: center; gap: .25rem; }

/* ปุ่มให้ดูเหมือน Bootstrap */
nav[role="navigation"] a,
nav[role="navigation"] span {
  display: inline-flex; align-items: center; padding: .375rem .75rem;
  border: 1px solid #dee2e6; border-radius: .25rem; text-decoration: none;
  background: #fff;
}

/* ซ่อนบรรทัด Showing x to y ถ้าไม่ต้องการ */
nav[role="navigation"] p { display: none; }

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


.BaiJamjuree {
	font-family: BaiJamjuree;
}

.BaiJamjuree-SemiBold {
	font-family: BaiJamjuree-SemiBold;
}

.object-fit-cover{
    object-fit: cover;
}

.pop-loader {
	display: block; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 9999; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}
.loader {
	padding: 0;
	position: fixed;
	top: 50%;
	left: 50%;
	font-size: 10px;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	position: relative;
	text-indent: -9999em;
	animation: mulShdSpin 1.1s infinite ease;
	transform: translateZ(0);
}
@keyframes mulShdSpin {
	0%,
	100% {
	  box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.5), -1.8em -1.8em 0 0em rgba(255,255,255, 0.7);
	}
	12.5% {
	  box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.5);
	}
	25% {
	  box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.5), 1.8em -1.8em 0 0em rgba(255,255,255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
	}
	37.5% {
	  box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.5), 2.5em 0em 0 0em rgba(255,255,255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
	}
	50% {
	  box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.5), 1.75em 1.75em 0 0em rgba(255,255,255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
	}
	62.5% {
	  box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.5), 0em 2.5em 0 0em rgba(255,255,255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
	}
	75% {
	  box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.5), -1.8em 1.8em 0 0em rgba(255,255,255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
	}
	87.5% {
	  box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.5), -2.6em 0em 0 0em rgba(255,255,255, 0.7), -1.8em -1.8em 0 0em #ffffff;
	}
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
        font-size: 15px;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Categories & Courses ***/

.carousel-control-next, .carousel-control-prev {
    width: 3%!important;
}

.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}

/********* *********/

.nav-tabs {
    border-bottom: none;
}

  
button.owl-prev {
    position: absolute;
    left: 0px;
    top: 37%;
    transform: translateY(-50%);
    background-color: white!important;
    width: 30px;
    height: 30px;
    border-radius: 100%!important;
    color: #000!important;
    opacity: 0.2;
}

button.owl-prev:hover {
    opacity: 0.8!important;
}
  
button.owl-next {
    position: absolute;
    right: 0px;
    top: 37%;
    transform: translateY(-50%);
    background-color: white!important;
    width: 30px;
    height: 30px;
    border-radius: 100%!important;
    color: #000!important;
    opacity: 0.2;
}

button.owl-next:hover {
    opacity: 0.8!important;
}
  
  
  .owl-dots {
    display: none;
}
  
  
.owl_1 {
    display: flex!important;
    justify-content: center!important;
}

.owl-item li .nav-link {
    display:flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 40px;
    color: #ffffff;
    text-transform: uppercase;
    flex-wrap: wrap;
    text-align: center;
    font-size: 14px; text-decoration: none;
}
.owl-item li .nav-link:hover {
    background-color: #fff;
    color: #000000;
    opacity: 0.5;
}

.owl-item li .nav-link.active {
    background-color: #ffffff;
    border-bottom: #000 solid 4px;
    font-weight: 600;
}
 
  
.tab-content {
    padding: 20px;
    font-size: 17px;
    text-align: center;
    line-height: 25px;   
}

.tab-content h3 {
    font-size: 40px;
    font-weight: bold;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #000000;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}


.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

/*----pop success----*/

.modal-confirm .modal-content {
	padding: 20px;
	border-radius: 5px;
	border: none;
}
.modal-confirm .modal-header {
	border-bottom: none;
	position: relative;
}
.modal-confirm .form-control, .modal-confirm .btn {
	min-height: 40px;
	border-radius: 3px;
}
.modal-confirm .close {
	position: absolute;
	top: -5px;
	right: -5px;
}

.modal-confirm .icon-box {
	margin: 0 auto;
	left: 0;
	right: 0;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 5px solid #82ce34;
	padding: 15px;
	text-align: center;
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.modal-confirm .icon-box .fa-check {
	color: #82ce34;
	font-size: 40px;
	position: relative;
	top: 5px;
}
.modal-confirm .btn {
	color: #fff;
	border-radius: 4px;
	background: #82ce34;
	text-decoration: none;
	transition: all 0.4s;
	line-height: normal;
	border: none;
  width: 120px;
}
.modal-confirm .btn:hover, .modal-confirm .btn:focus {
	background: #6fb32b;
	outline: none;
}

/*----pop amount----*/

.modal-amount .modal-content {
	padding: 20px;
	border-radius: 5px;
	border: none;
}
.modal-amount .modal-header {
	border-bottom: none;
	position: relative;
}
.modal-amount .form-control, .modal-amount .btn {
	min-height: 40px;
	border-radius: 3px;
}
.modal-amount .close {
	position: absolute;
	top: -5px;
	right: -5px;
}

.modal-amount .icon-box {
	margin: 0 auto;
	left: 0;
	right: 0;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 5px solid #82ce34;
	padding: 15px;
	text-align: center;
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.modal-amount .icon-box .fa-check {
	color: #82ce34;
	font-size: 40px;
	position: relative;
	top: 5px;
}
.modal-amount .btn {
  width: 120px;
}

/*----pop error----*/

.modal-error .modal-content {
	border-radius: 5px;
	border: none;
}
.modal-error .modal-header {
	border-bottom: none;
	position: relative;
}
.modal-error .form-control, .modal-error .btn {
	min-height: 40px;
	border-radius: 3px;
}
.modal-error .close {
	position: absolute;
	top: -5px;
	right: -5px;
}

.modal-error .icon-box {
	margin: 0 auto;
	left: 0;
	right: 0;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 5px solid #dc5353;
	padding: 15px;
	text-align: center;
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.modal-error .icon-box .fa-exclamation {
	color: #dc5353;
	font-size: 40px;
	position: relative;
	top: 5px;
}

.modal-error .btn {
	color: #fff;
	border-radius: 4px;
	background: #dc5353;
	text-decoration: none;
	transition: all 0.4s;
	line-height: normal;
	border: none;
	width: 100px;
}
.modal-error .btn:hover, .modal-error .btn:focus {
	background: #dc5353;
	outline: none;
}

.dropdown-menu {
    min-width: 11rem;
    padding: .5rem 0;
    margin-left: -20px;
    background-color: #fff;
    background-clip: padding-box;
    border: 0px solid rgba(0,0,0,.15);
    border-radius: 0px 0px 5px 5px;
}

header.mastheadbox {
	overflow: hidden;
}

.profile-hover:hover {
	opacity: 0.7;
}

.navbar-nav .nav-icon {
    font-size: 22px!important;
    color: #012970;
    margin-right: 25px!important;
    position: relative;
}

.navbar-nav .badge-number {
  inset: 35px -16px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.navbar-nav .notifications {
  inset: 75px 220px auto auto !important;
  margin: 0px 15px !important;
  width: 400px;
}

.navbar-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.navbar-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.navbar-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.navbar-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.navbar-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}


.dropdown-menu {
    border-radius: 4px;
    padding: 10px 0;
    -webkit-animation-name: dropdown-animate;
    animation-name: dropdown-animate;
    -webkit-animation-duration: 0.2s;
    animation-duration: 0.2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    border: 0;
    box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
  }
  
  .dropdown-menu .dropdown-header,
  .dropdown-menu .dropdown-footer {
  
    text-align: center;
    font-size: 15px;
    padding: 10px 25px;
  }
  
  .dropdown-menu .dropdown-footer a {
    color: #444444;
    text-decoration: underline;
  }
  
  .dropdown-menu .dropdown-footer a:hover {
    text-decoration: none;
  }
  
  .dropdown-menu .dropdown-divider {
    color: #a5c5fe;
    margin: 0;
  }
  
  .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
  }
  
  .dropdown-menu .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
  }
  
  .dropdown-menu .dropdown-item:hover {
    background-color: #f6f9ff;
  }

  @media (min-width: 768px) {
    .dropdown-menu-arrow::before {
      content: "";
      width: 13px;
      height: 13px;
      background: #fff;
      position: absolute;
      top: -7px;
      right: 20px;
      transform: rotate(45deg);
      border-top: 1px solid #eaedf1;
      border-left: 1px solid #eaedf1;
    }
  }

  @media (max-width: 990px) {
    .navbar-nav .notifications {
        inset: 75px 200px auto auto !important;
        margin: 0px 15px !important;
        width: auto !important;
    }
  }

  .v-image__image--contain {
    background-size: contain;
  }

  .v-image__image {
    background-repeat: no-repeat;
  }

  .v-image__image, .v-image__placeholder {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .line_clamp_3{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
  }

  .c-timeline__item {
    position: relative;
    display: flex;
    gap: 1.5rem;
  }
  
  .c-timeline__item:not(:last-child) .c-timeline__content:before {
      content: "";
      position: absolute;
      right: 100%;
    margin-right: 1px;
      top: 0;
      height: 100%;
      width: 2px;
      background-color: #d3d3d3;
  }
  
  /* The circle */
  .c-timeline__content:after {
      content: "";
      position: absolute;
      left: -12px;
      top: 0;
      width: 20px;
      height: 20px;
      background-color: #fff;
      z-index: 1;
      border: 2px solid #d3d3d3;
      border-radius: 50%;
  }
    
  .c-timeline__content {
    flex: 1;
    position: relative;
    order: 1;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
  }
    
  .c-timeline__title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  }
  
  .c-timeline__desc {
  color: grey;
  }
  
  time {
  text-align: end;
  flex: 0 0 150px;
  min-width: 0;
  overflow-wrap: break-word;
  padding-bottom: 1rem;
  }
  .wrapper {
    margin: 1rem auto 0;
  }

  .btn, .btn-close, .form-check-input, .form-control  {
    box-shadow: none !important;
  }
  

  .icon-box-check {
    margin: 0 auto;
    left: 0;
    right: 0;
    border-radius: 50%;
	width: 25px;
	height: 25px;
    border: 2px solid #82ce34;
    text-align: center;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}

.icon-box-check .fa-check {
    color: #82ce34;
    position: relative;
	font-size: 12px;
	position: relative;
	top: -3px;
}

.icon-box-nocheck {
    margin: 0 auto;
    left: 0;
    right: 0;
    border-radius: 50%;
	width: 25px;
	height: 25px;
    border: 2px solid #b5b5b5;
    text-align: center;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.icon-box-nocheck .fa-check {
    color: #b5b5b5;
    position: relative;
	font-size: 12px;
	position: relative;
	top: -3px;
}

.menu_center{
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
}
  