article ul li img {
  display: inline;
}

/* หัวข้อหลักของหน้า (ใหญ่ที่สุด) */
article h1 {
    font-size: 1.875rem; /* เทียบเท่า text-3xl */
    line-height: 2.25rem;
    font-weight: 700;    /* หนาพิเศษเพื่อให้เด่นชัด */
    margin-bottom: 1.5rem;
}

/* หัวข้อรอง (ที่คุณกำหนดไว้) */
article h2 {
    font-size: 1.25rem;  /* เทียบเท่า text-xl */
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* หัวข้อย่อยระดับที่ 1 */
article h3 {
    font-size: 1.125rem; /* เทียบเท่า text-lg */
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* หัวข้อย่อยระดับที่ 2 หรือหัวข้อเน้นความสำคัญ */
article h4 {
    font-size: 1rem;     /* เทียบเท่า text-base (ขนาดปกติแต่เน้นหนา) */
    line-height: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body audio,
body canvas,
body embed,
body iframe,
body img,
body object,
body svg,
body video {
  display: initial;
}
/* แถวบน */
.nav-topbar {
  /* border-bottom: 1px solid rgba(0, 0, 0, .06); */
  padding: 5px 0px 0px 0px;
}

.elementor-icon-list-item svg {
  fill: #583b25;
  transition: fill 0.3s;
}

.nav-topbar a:link,
.nav-topbar a:visited {
  color: #73543e;
  font-weight: 400;
}
.list-to-content a:link,.list-to-content a:visited{
  color: #6d768f;
}
.list-to-content a:hover{
  color: #1d4ed8;
}
/* ให้รายการเรียงแนวนอน ชิดขวา */
.nav-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

/* ลิงก์ในแต่ละรายการ */
.nav-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #4b5563;
  /* เทา */
  font-weight: 500;
  white-space: nowrap;
}

.nav-contact__link:hover {
  color: #1d4ed8;
  /* น้ำเงิน */
}

/* คุมขนาดไอคอน svg */
.nav-contact__icon svg {
  width: 18px;
  height: 18px;
  /* display: block; */
}

.items-start {
  text-align: left;
}

#slider h1,
#slider h2,
#slider h3 {
  font-size: 36px;
  font-weight: 700;
  text-shadow: 0 0 5px #ffffff;
  text-shadow: /* 4 เลเยอร์แรก: สร้างเส้นขอบที่คมชัด */
    -1px -1px 0 #ffffff,  
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff,
    /* เลเยอร์ที่ 5: สร้างความฟุ้ง (Glow) ออกมาด้านหลัง */
     0px  0px 8px rgba(255, 255, 255, 0.8);
}

.slide-card p {
  /* background: #ffffff55; */
  border-left: 6px solid rgb(30 64 175 / var(--tw-text-opacity, 1));
  padding: 10px 15px;
  text-shadow: 0 0 5px #ffffff;
}

.slide-card.slide-card-2 h1 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}
.slide-card.slide-card-2 p {
  /* background: #ffffff55; */
  border-left: 6px solid rgb(30 64 175 / var(--tw-text-opacity, 1));
  padding: 10px 15px;
}

.slide-card.slide-card-3 h1 {
  --tw-text-opacity: 1;
  color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}
.slide-card.slide-card-3 p {
  /* background: #ffffff55; */
  border-left: 6px solid rgb(154 52 18 / var(--tw-text-opacity, 1));
}
.slide-card.slide-card-3 .btn {
  background-color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}

.slide-card.slide-card-4 h1 {
  --tw-text-opacity: 1;
  color: rgb(21 94 117 / var(--tw-text-opacity, 1));
}
.slide-card.slide-card-4 p {
  /* background: #ffffff55; */
  border-left: 6px solid rgb(21 94 117 / var(--tw-text-opacity, 1));
}
.slide-card.slide-card-4 .btn {
  background-color: rgb(21 94 117 / var(--tw-text-opacity, 1));
}

.absolute p {
  border-left: 6px solid #1f3a89;
  padding-left: 15px;
  font-weight: 390;
}

/* มือถือ: ซ่อนข้อความ เหลือเฉพาะไอคอน (เหมือน top bar ที่ไม่ยาวเกิน) */
@media (max-width: 767px) {
  .nav-contact__text {
    display: none;
  }

  .nav-topbar {
    padding: 8px 0;
  }
}


/* ช่วยให้รูปในอัลบั้มไม่บีบตัวจนเสียสัดส่วน */
.preview-thumbnail-wrapper img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* เพิ่ม Effect เวลาเปลี่ยนรูปให้ดูนุ่มนวล */
.tab-pane {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* เจาะจงเฉพาะตัวที่มี class .section-mirror เท่านั้น */
@media (min-width: 768px) {
    .section-mirror {
        display: flex !important; /* บังคับให้เป็น flex เพื่อใช้ row-reverse */
        flex-direction: row-reverse !important; /* สลับซ้าย-ขวา */
    }

    /* คุมให้ลูกข้างใน (2 ฝั่ง) กว้างอย่างละ 50% เหมือนเดิม */
    .section-mirror > div {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/*Spin Loading*/
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.z-\[9999\] { z-index: 9999; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}