body {
  font-family: 'Mitr', sans-serif;
  font-weight: 300; /* Light */
  margin: 0;
  padding: 0;
  background: #ffffff;
  scroll-behavior: smooth;
}

header {
  background: #000000;
  color: white;
  padding: 20px;
  text-align: center;
}

p ,small {
  font-family: 'Mitr', sans-serif;
  font-weight: 300; /* Light */
}
/* ตัวอย่างใช้งาน Regular */
h1, h2, h3, h4 {
  font-family: 'Mitr', sans-serif;
  font-weight: 400;
}

a.btn {
  font-family: "Mitr", sans-serif;
  font-weight: 400;
}

.text-warning i {
  font-size: 1.2rem;
  margin-right: 2px;
}


/* Navbar โปร่งใส */
navbar {
  background-color: rgba(0, 0, 0, 0);
  transition: background 0.3s ease-in-out;
  z-index: 1000;
  /* ลิงก์เมนูเริ่มต้น */
}

/* ลิงก์เมนูเริ่มต้น */
.navbar .nav-link {
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px; /* วงรี */
  transition: all 0.3s ease;
  font-family: 'Mitr', sans-serif;
  font-weight: 400; /* Light */
}

.navbar .nav-link i {
  margin-right: 6px;
}
/* เมื่อ Hover */
.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2); /* สีพื้นหลังใสๆ */
  color: #ffffff;
}

/* Hover effect: เปลี่ยนสี และเพิ่มเส้นใต้แบบ animate */
.navbar .nav-link:hover {
  color: #ffffff; /* สีทองหรือสีเน้น */
}

/* เส้นใต้เล็ก ๆ ตอน hover (แบบมี animation) */
.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f0c040;
  transition: width 0.3s ease-in-out;
}


.navbar .nav-link:hover::after {
  width: 100%;
}


/* Hero Section */
.hero {
  height: 100vh;
  background: url('../images/premo1.jpg') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.hero h1 {
  font-weight: 300;
}

.hero p {
  font-weight: 400;
  font-size: 1.25rem;
}
/* Hero animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeUp 1.5s ease-out forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

section {
  padding: 40px;
}

.carousel-item img {
  height: 600px;
  object-fit: cover;
}

.card-title {
  font-weight: 400;
  font-size: 1.25rem;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}

.card img {
  object-fit: cover;
  height: 220px;
  width: 100%;
}

.card-img-top {
  height: 300px;
  object-fit: cover;
}

.img-full {
  max-width: 100%;  
  height: auto;     
  display: block;   
  margin: 0 auto;   
}

.gallery-img {
  height: 220px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.1); /* ขอบบางโปร่งใส */
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* เงาเบาๆ เพิ่มความลอย */
  overflow: hidden; /* ตัดมุมเวลาเปิดปิด */
  background-color: #ffffff; /* หรือใช้สีพื้นคุณต้องการ */
}
.accordion-body{
  font-family: 'Mitr', sans-serif;
  font-weight: 300; /* Light */
}

.img-normal {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.accordion-button:not(.collapsed) .toggle-icon {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.contact-phone {
display: inline-flex;
align-items: center;
font-size: 18px;
color: #000; /* ดำ */
text-decoration: none;
background-color: #fff; /* ดำเข้ม */
padding: 12px 20px;
border: 1px solid #FFD700;
border-radius: 10px;
transition: background-color 0.3s, color 0.3s;
}

.contact-phone:hover {
background-color: #FFD700; /* สีทอง */
color: #fff; /* เปลี่ยนข้อความเป็นดำตอน hover */
}

.contact-phone i {
margin-right: 10px;
color: #FFD700;
}

.contact-phone:hover i {
color: #000;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background-color: #f0c040;
  color: #000;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: none; /* ซ่อนเริ่มต้น */
  z-index: 1000;
  transition: background 0.3s ease;
}

#backToTop:hover {
  background-color: #e0b030;
}
