html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.swiper {
  width: 100%;
  height: 100vh;
  position: relative;
}

.swiper-slide {
  position: relative;
  text-align: center;
  font-size: 18px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 30%;
  left: 10%;
  color: white;
  font-size: 2em;
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 8px;
}

.sidebar {
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid #ddd;
}

.custom-navbar .nav-link {
  color: #004080 !important; /* น้ำเงินเข้ม */
  font-weight: normal;
}

.custom-navbar .nav-link:hover {
  color: #0066cc !important; /* น้ำเงินสว่างเมื่อชี้ */
}

.custom-navbar .navbar-brand img {
  filter: none; /* ป้องกันโลโก้ถูกเปลี่ยนสีโดย CSS */
}



/* ป้องกัน scrollbar แนวนอน */
body, html {
  overflow-x: hidden;
}

/* ปรับขนาดภาพใน slide ให้อยู่ในพื้นที่ปลอดภัย */
.swiper-slide img {
  width: 100%;
  height: auto; /* เปลี่ยนจาก 100% เป็น auto เพื่อไม่ให้ล้น */
  object-fit: cover;
  display: block;
}

/* ขยายขนาดโลโก้ */
.custom-navbar .navbar-brand img {
  height: 60px; /* เดิมคือ 40px เพิ่มให้ใหญ่ขึ้น */
}


/* ปรับสีลิงก์ใน sidebar ให้เหมือนเมนูบาร์ */
.col-lg-3 a {
  color: #004080;
  text-decoration: none;
  font-weight: normal;
}

.col-lg-3 a:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* --- ตำแหน่งปุ่มเลื่อนให้อยู่ตรงกลางแนวตั้ง --- */
.swiper-button-prev,
.swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.3; /* ปรับให้จางลง */
  color: #000;  /* หรือปรับเป็นสีอื่น เช่น #333 */
}

/* --- เมื่อ hover ให้เข้มขึ้นเล็กน้อย --- */
.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 0.6;
}

/* --- ปรับขนาดและพื้นหลังให้ดูจางนุ่มนวลขึ้น --- */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 24px; /* เล็กลงนิดหน่อย */
  background-color: rgba(255, 255, 255, 0.4); /* สีพื้นหลังจาง */
  border-radius: 50%;
  padding: 10px;
}

.custom-footer {
  background-color: #003366; /* น้ำเงินเข้มแบบเมนู */
  color: #ffffff;
}
