.btn-video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #c9a227; /* ทองเข้ากับธีม */
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-video-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.note-editor,
.note-editor .note-toolbar {
  display: block !important;
}

.note-editor .note-toolbar {
  z-index: 1055;
}

.note-modal .modal-dialog,
.note-editor .modal {
  z-index: 1060;
}

/* ==============================
   ตัวแปรหลัก (สีโทนเว็บ)
================================= */
:root {
  --gold: #c9a227;
  --deep: #2c2c2c;
  --soft: #faf7ef;
}

/* ==============================
   โครงร่างพื้นฐาน
================================= */
body {
  background-color: var(--soft);
  font-family: "Sarabun", sans-serif; /* ตัวอย่างฟอนต์ไทยสุภาพ */
}

/* ==============================
   ส่วนหัวเว็บ (โลโก้ / ชื่อวัด)
================================= */
.site-header {
  background: url("../img/bg.png"),
    linear-gradient(180deg, #fff 0%, #fff7dd 100%);
  background-repeat: repeat;
  background-size: auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #ffe9a3, #d9b44a);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) inset,
    0 2px 8px rgba(0, 0, 0, 0.06);
  color: #7a5d00;
  font-size: 28px;
  font-weight: 700;
}

.brand-title {
  font-weight: 800;
  color: var(--deep);
  letter-spacing: 0.5px;
}

.brand-sub {
  color: #6b6b6b;
  font-size: 0.95rem;
}

/* ==============================
   เมนูนำทาง
================================= */
.main-nav {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.navbar .nav-link {
  padding: 0.65rem 1rem;
  font-weight: 600;
  color: #3b3b3b;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--gold);
}

.btn-donate {
  border: 1px solid var(--gold);
  color: #7a5d00;
  font-weight: 700;
}

.btn-donate:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ==============================
  
Hero Section (สไลด์ภาพ)
================================= */
.hero-placeholder {
  position: relative;
  min-height: 500px; /* ความสูงของ Hero */
  overflow: hidden;
}

.hero-placeholder::before,
.hero-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: zoomFade 16s infinite;
  z-index: 0;
}

/* ภาพแรก */
.hero-placeholder::before {
  background-image: url("../img/1.jpg");
  animation-delay: 0s;
}

/* ภาพสอง */
.hero-placeholder::after {
  background-image: url("../img/2.jpg");
  animation-delay: 8s;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  padding: 60px 20px;
}

/* ==============================
   Keyframes Animation
================================= */
@keyframes zoomFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  90% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ย่อข้อความเป็น 2 บรรทัด */
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* จำนวนบรรทัดที่จะแสดง */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ย่อข้อความเป็น 3 บรรทัด */
.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
