html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
}

body {
  padding-top: 56px;
  font-family: "Sarabun", sans-serif;
  font-style: normal;
  /* background: #f9f6f0 !important; */
  color: #333333 !important;     
}

.section-link{
  background-color: #f0ede3 !important;
}

.btn-primary {
  background-color: #1a2d45 !important;
  /* border-color: #a1863e !important; */
  border: none;
  color: #ffffff !important;

}
.btn-primary:hover {
  background-color: #223b5c !important;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
  /* border-color: #7a672e !important; */
}

.nav-link:hover {
  color: #e9dfc1 !important;
}

.nav-link.active {
  color: #e9dfc1 !important;
  font-weight: 700;
  border-bottom: 3px solid #e9dfc1;
}

@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 82px; /* Height of navbar */
    bottom: 0;
    left: -100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #ffffff !important;
    border-right: 1px solid #e0d4aa;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    transform: translateX(0);
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(100%);
  }

  .offcanvas-collapse .nav-link {
    padding-top: .75rem;
    padding-bottom: .75rem;
    /* font-size: .875rem; */
    font-size: 1.125;
    color: #5a4a1c !important;
  } 

  .offcanvas-collapse .nav-link:hover {
    color: #a1863e !important;
  }

  .offcanvas-collapse .nav-link.active {
    color: #cbb26a !important;
    font-weight: 600;
    border-bottom: 2px solid #cbb26a;
  }

}

.nav-scroller .nav {
  color: rgba(255, 255, 255, .75);
}

/* .nav-scroller .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #5a4a1c !important;
} 
  .nav-scroller .nav-link:hover {
  color: #a1863e !important;
} 
  
.nav-scroller .active {
  font-weight: 500;
  color: #343a40;
}*/

.shadow{
  /* box-shadow: 0 4px 12px rgba(203, 178, 106, 0.15) !important; */
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(203, 178, 106, 0.12) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #a1863e !important;
}

p, ol, ul, dl {
  line-height: 2;
  text-justify: inter-word;
  margin-bottom: 1rem;

  word-break: break-word;
  hyphens: auto;
}

.content{
  text-align: justify;
}

.border-bottom{
  border-color: #e0d4aa!important;
}

.bg-body {
  background-color: #ffffff !important;
  border: 1px solid #e0d4aa !important;
} 

.logo-navbar {
  height: 40px; /* ปรับได้ตามความสูงของ navbar เช่น 40px–48px */
  width: auto;
  object-fit: contain;
}

/* .card, .bg-body {
  background-color: #ffffff !important;
  border: 1px solid #e0d4aa !important;
}  */

.card-flat {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.card-title {
  color: #a1863e;
}

.fw-normal{
  color: #333333 !important;
}

.icon-circle {
  width: 120px;
  height: 120px;
  background-color: #cbb26a; /* พื้นหลังวงกลม */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fa-xl{
  font-size: 2.25rem !important;
}

.footer{
  background-color: #08172e;
}

.footer a, .footer p, .footer .nav-link {
  color: #FFFFFF !important;
}

.footer a:hover{
  color: #FFFFFF !important;
}

.navbar-dark {
  background-color: #cbb26a !important;
}

/* .navbar .navbar-brand,
.navbar .nav-link {
  color: #ffffff !important;
}

.navbar .nav-link:hover {
  color: #fef5d6 !important;
} */

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
      font-size: 3.5rem
  }
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: #0000001a;
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em #0000001a, inset 0 .125em .5em #00000026
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh
}

.bi {
  vertical-align: -.125em;
  fill: currentColor
}

.btn-bd-primary {
  --bd-violet-bg: #cbb26a;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #6528e0;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #5a23c8;
  --bs-btn-active-border-color: #5a23c8
}

.bd-mode-toggle {
  z-index: 1500
}

.bd-mode-toggle .bi {
  width: 1em;
  height: 1em
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important
}

/*Cover*/
.img-cover {
  /* width: 100%;
  height: 480px;
  object-fit: cover; */

  /* object-position: center -260px; */

  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (min-width: 1400px) {
  .img-cover {
    aspect-ratio: 16 / 6;
    object-position: center 20%;
  }
}

@media (max-width: 768px) {
  .img-cover {
      height: 280px;
      /* object-position: initial !important; */
  }
}

/*Sarabun Font*/
.sarabun-light {
  font-family: "Sarabun", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.sarabun-regular {
  font-family: "Sarabun", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.sarabun-medium {
  font-family: "Sarabun", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.sarabun-semibold {
  font-family: "Sarabun", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.sarabun-bold {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.sarabun-light-italic {
  font-family: "Sarabun", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.sarabun-regular-italic {
  font-family: "Sarabun", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.sarabun-medium-italic {
  font-family: "Sarabun", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.sarabun-semibold-italic {
  font-family: "Sarabun", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.sarabun-bold-italic {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: italic;
}