*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Noto Sans Thai, sans-serif;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader-logo {
    max-width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
}

html{
  scroll-behavior: smooth;
}

.logo{
  display: none;
}

.carousel-item {
  height: 80vh;
  min-height: 600px;
}

.carousel-img-overlay {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.object-cover {
  height: 100vh;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 1;
}

.carousel-item {
  position: relative;
  height: 100vh;
  min-width: 100%;
}

.carousel-caption-wrapper {
  z-index: 2;
}

.carousel-caption h1,
.carousel-caption p {
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hamburger {
  background-color: #f8f9fa; /* สีพื้นหลัง */
  border: 1px solid #9E76B5; /* สีกรอบ */
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  margin: 5px;
  color: #119675; /* สีของไอคอน */
}
.hamburger i {
  transition: color 0.3s ease;
}
.hamburger:focus {
  box-shadow: 0 0 0 0.1rem #9E76B5;
  background-color: #119675;
  color: white !important;
}

/* Navbar base style */
    .transition-navbar {
    transition: all 0.8s ease-in-out;
    padding: 0.1rem 0;
    z-index: 1000;
    }

    .navbar.transparent {
    background-color: transparent;
    color: white;
    }

    .navbar.transparent .nav-link,
    .navbar.transparent .navbar-brand {
    color: white;
    }

    .navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar.scrolled .nav-link,
    .navbar.scrolled .navbar-brand {
    color: #333;
    }

    .navbar-brand-logo {
    object-fit: contain;
    }

    .nav-link{
        border-radius: 8px;
        border: 2px solid transparent;
    }
    .nav-link:hover{
        border: 2px solid rgba(158, 118, 181);
    }
    .dropdown-menu {
      display: block;
      visibility: hidden;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.3s ease-out;
      pointer-events: none;
      position: absolute;
    }
    .dropdown-menu.show {
      visibility: visible;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .dropdown-item {
        transition: background-color 0.2s ease;
        border-radius: 4px;
    }

    .dropdown-item:hover {
        background-color: #a6a6a6;
    }

/* Navbar styles for mobile */
    .dropdown-menu {
      display: none;
    }
    .dropdown-menu.show {
      display: block;
    }
    @media (max-width: 1400px) {
        .logo-font {
            font-size: 16px;
        }
        .nav-link {
            font-size: 14px;
        }
    }
    @media (max-width: 1400px) {
      .navbar {
          background-color: white !important;
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .navbar.transparent .nav-link,
      .navbar.transparent .navbar-brand {
          color: #333;
      }

      .nav-items{
        color: #333 !important;
      }
    }

.rihes-btn {
    background-color: #0d7b60 !important; /* Primary color */
    color: white !important; /* Text color */
    border: #9E76B5 2px solid !important; /* Border color */
}
@media (max-width: 768px) {
    .page-overview {
        width: 400px;
        height: auto;
    }
    .welcome{
      display: none;
    }
    .logo{
      display: block;
    }
    .mt-8 {
      margin-top: 6rem !important;
    }
}
.page-active{
  color: #119675 !important; 
  border: 2px solid #9E76B5 !important;
}
.vh100 {
  min-height: 100vh;
}
.h-100 {
  min-height: 100%;
}
.mt-8 {
   margin-top: 8rem;
}