/* ^ --- GLOBAL SETTING --- */
/* > scroll */
html {
  scroll-behavior: smooth;
}

/* > fade */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* > font */
body {
  font-family: "Noto Sans Thai", sans-serif !important;
  font-optical-sizing: auto;
  /* font-weight: 300; */
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

/* ^ --- header.php --- */
.navbar-brand {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #26492e !important;
}

.navbar-nav .nav-link {
  font-weight: 600 !important;
}

.navbar-toggler,
.btn-close {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-nav .nav-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
  color: #343535 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #26492e;
  transition: width 0.6s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: #26492e !important;
}

.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar .dropdown .dropdown-menu {
  width: auto !important;
  min-width: unset !important;
}

/* ^ --- index.php --- */
main {
  margin-top: 30px;
}

/* > target group */

.btn-plant-overlay {
  background-color: #26492e !important;
  padding: 1rem !important;
  margin-top: -4rem;
}

.btn-plant-overlay:hover {
  background-color: #343535 !important;
}

/* > member */
.site-member {
  background-color: #e0e4d9;
}

/* > news */
/* .site-news {
  background-color: #fcf3ec;
} */

.site-news h4 {
  color: #26492e;
  font-weight: 600;
}

/* > media */
.site-media {
  background-color: #fcf3ec;
}

.site-media h4 {
  color: #26492e;
  font-weight: 600;
}

.site-media .post-thumbnail {
  position: relative;
  overflow: hidden;
}

.site-media .post-thumbnail img {
  transition: transform 0.4s ease;
}

.site-media .post-thumbnail:hover img {
  transform: scale(1.1);
}

.site-media .post-thumbnail .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site-media .post-thumbnail:hover .overlay {
  opacity: 1;
}

.site-media .post-thumbnail .post-title {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}


/* ^ --- footer.php --- */
.footer-nxpo-logo {
  width: 150px;
  height: auto;
}

/* ^ --- single.php --- */
.site-single .btn-single-tag:hover {
  background-color: #26492e !important;
  border-color: #26492e !important;
}

/* ^ --- sidebar.php --- */
/* .site-sidebar .form-control {
  border-right: 0 !important;
} */

.site-sidebar .form-control:focus {
  box-shadow: none !important;
  border-color: #dee2e6 !important;
}

.site-sidebar .btn-sidebar-search {
  border-left: 0 !important;
  border-top-color: #dee2e6 !important;
  border-bottom-color: #dee2e6 !important;
  border-right-color: #dee2e6 !important;
  color: #343535 !important;
}

.site-sidebar .btn-sidebar-search:hover {
  background-color: transparent !important;
  color: #343535 !important;
}

/* > last post */
.site-sidebar .prd-box-news h6 {
  transition: color 0.3s ease;
}

.site-sidebar .prd-box-news a:hover h6 {
  color: #26492e !important;
}