body {
  font-family: Sarabun;
  background: #f9f9fc;
  /*-display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  ms-flex-direction: column;
  flex-direction: column;*/
  -webkit-font-smoothing: antialiased;
}
a {
  color: #007bff;
}
.carousel-item {
  height: 480px;
  min-height: 480px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#carouselHome .carousel-item {
	background-color: #112e68;
}

.carousel-caption.carousel-caption-gold {
  background-color: rgb(255 211 0 / 81%);
}

.carousel-caption.carousel-caption-gold h4.caption-title {
  color: #2d2200;
}

.carousel-caption.carousel-caption-gold h6.lead {
  color: #2d2200;
}

.carousel-caption.carousel-caption-red {
  background-color: rgb(208 56 56 / 88%);
  background-color: rgb(105 16 16 / 90%);
}

.carousel-caption.carousel-caption-blue {
  background-color: rgb(18 105 195 / 90%);
}

.carousel-caption.carousel-caption-yellow {
  background-color: rgb(208 168 21 / 88%);
}

.carousel-caption.carousel-caption-orange {
  background-color: rgb(230 132 31 / 90%);
}

.carousel-caption.carousel-caption-purple {
  background-color: rgb(132 88 126 / 94%);
}

.carousel-caption.carousel-caption-default a button {
  background: #ffbc00;
}
.carousel-empty {
  min-height: 480px;
}
.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.6s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
  opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
  opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
  transform: translateX(0);
  transform: translate3d(0, 0, 0);
}

.carousel-card-slider .carousel-item {
  height: 360px;
  min-height: 360px;
}

.cover-center {
  position: relative;
  text-align: center;
  background-repeat: repeat-x;
  padding-top: 60px;
  height: 170px;
  background-position: center;
  color: #ffffffcf;
}

.cover-center .cover-img {
  width: 100%;
  border: 0px;
  padding: 0px;
  max-width: 1140px;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}
.cover-center img.line-silver-l {
  position: absolute;
  top: 0;
  margin-left: -30px;
  margin-top: 15px;
}
.cover-center img.line-silver-r {
  position: absolute;
  top: 0;
  margin-left: 20px;
  margin-top: 15px;
}
.d-four-square {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
}

.d-four-square .flex-item {
  padding: 0.75rem;
  height: 160px;
  width: 100%;
  margin: auto;
  font-size: 1.2rem;
}

.d-four-square .flex-item p {
  font-size: 1rem;
}

.d-four-square .flex-item:first-child {
  background: #fff6c8;
  background: #fff4bc;
  border-left: 5px #f9e57f solid;
  color: #776819;
}

.d-four-square .flex-item:nth-child(2) {
  background: #d0e4ce;
  border-left: 5px #18690e88 solid;
  color: #18690e;
}

.d-four-square .flex-item:nth-child(3) {
  background: #c8e1ff;
  border-left: 5px #8abdf9 solid;
  color: #1667c7;
}

.d-four-square .flex-item:nth-child(4) {
  background: #f4c8ff;
  border-left: 5px #820e9e77 solid;
  color: #820e9e;
}

.dropdown-menu.show {
  background: #f8f9fa;
  border-radius: 0;
}
.header-primary {
  background: #fffc;
}
.index-wise-slogan {
  margin-top: 1.4rem;
  padding-left: 1.4rem;
}
.navbar-brand {
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.navbar-brand img {
  margin: 0;
  padding: 0;
  height: 60px;
}

.navbar-primary {
  height: 62px;
  box-shadow: 0 5px 6px -2px rgba(0, 0, 0, 0.025);
  z-index: 900;
}

.navbar-primary ul {
  margin-right: 5%;
  background: #fffc;
}

.navbar-primary ul li {
  padding: 5px 10px;
}

.navbar-primary .main-nav ul {
  margin: 0;
  padding: 0 2px;
  background: #fff;
}

.navbar-primary .main-nav ul li {
  display: inline-block;
  padding: 4px 10px 0px 10px;
}

.navbar-primary .main-nav ul li a {
  position: relative;
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.navbar-primary .main-nav ul li a.active:after {
  opacity: 1;
}

.navbar-primary .main-nav ul li a:hover:after {
  opacity: 1;
}

.navbar-primary .main-nav ul li a:after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #fff;
  content: "";
  opacity: 0;
  -webkit-transform: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.navbar-secondary {
  background-color: #f7f7f7;
  margin-top: 0;
  height: 30px;
  border-bottom: 1px solid #eee;
}

.navbar-secondary ul li {
  margin-left: 2%;
  margin-right: 2%;
}

.nav-item.active a:link,
.nav-item.active a:visited {
  color: #007bff;
}
.nav-item.active a {
  color: #007bff;
}

.navbar-nav .nav-item a {
  color: #435c87; /*#333  #2e72e4*/
  font-size: 18px;
  line-height: 2;
  font-weight: 500;
}

.navbar-nav .nav-item a:hover {
  text-decoration: none;
  border-bottom: 2px solid #007bff;
}

.navbar-nav .nav-item a.badge {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.navbar-nav .nav-item a.badge.badge-primary {
  background: #005dbd;
  border-radius: 20px;
  padding-left: 15px;
  padding-right: 15px;
}

.navbar-nav .nav-item a:hover {
  color: #0062cc;
}

.navbar-nav .nav-link-btn {
  width: 161%;
  margin-top: 10%;
  border: none;
  border-radius: 1rem;
  padding: 8%;
  background: #0062cc;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}


.line-add-friend {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: block;
  width: 225px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s;
}

.line-add-friend img {
  width: 225px; /* Adjust the image size as needed */
  height: 150px; 
}


.page-index-detail{
  background:#d9e3f4;
}

#product-show-section {
  background:#afa3c8;
  padding-top:10px;
}

.section-slogan {
  position: relative;
  background-color: #0b3663;
  background: url("../../../files/banner/banner01.png");
  color: #eee;
  min-height: 480px;
}

footer.footer {
  background-color: #0b3663;
  color: #dfebf9;
  text-align: center;
  padding: 20px auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

@media screen and (min-width: 480px) {
  .d-four-square .flex-item {
    width: 50%;
    font-size: 1.4rem;
  }
  .index-wise-slogan {
    padding-left: 2rem;
  }
}

/* hover dropdown menus */

@media only screen and (max-width: 991px) {
  .navbar {
    padding: 0 1rem;
  }
  .navbar-hover .show > .dropdown-toggle::after {
    transform: rotate(-90deg);
  }
}

@media only screen and (min-width: 992px) {
  .navbar-hover .collapse ul li {
    position: relative;
  }
  .navbar-hover .collapse ul li:hover > ul {
    display: block;
  }
  .navbar-hover .collapse ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    display: none;
  }
  .navbar-hover .collapse ul ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 250px;
    display: none;
  }
  /*.navbar-hover .collapse ul ul ul ul{position:absolute;top:0;left:-100%;min-width:250px;display:none;z-index:1}*/
}
