/**
* Averbest - Article Custom CSS
* Path: assets/css/article_style.css
*/

/* ==========================================================================
   1. Fixed Background ช่วยทำให้เมนูทึบแสงขึ้น
   ========================================================================== */
body {
  background-image: url('../img/article/article-bg.webp');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-color: #ffffff;
}

/* ==========================================================================
   2. Article Container
   ========================================================================== */
.article-premium {
  font-family: "Sarabun", sans-serif;
  font-size: 17px;  
  font-weight: 300;
  color: #333;  
  line-height: 1.75;
  background-color: #ffffff !important;
  padding: 30px !important;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
}

/* ==========================================================================
   3. Header & Entry Meta
   ========================================================================== */
.article-premium .category-badge {
  font-family: "Kanit", sans-serif;
  color: #B48200;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.article-premium h1.entry-title {
  font-family: "Kanit", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin: 5px 0 0 0;
}

.article-premium p.entry-subtitle {
  font-size: 14px;
}

.article-premium .entry-meta {
  display: block !important;
  width: 100% !important;
  font-size: 14px;
  color: #777;
  padding-bottom: 15px !important;
  margin-top: 0;
  margin-bottom: 35px !important;
  border-bottom: 2px solid #B48200 !important;
}

/* ==========================================================================
   4. Article Body Typography
   ========================================================================== */
.article-premium h2 {
  font-family: "Kanit", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #111;
  margin: 40px 0 15px 0;
  scroll-margin-top: 100px;
}

.article-premium p.text-p {
  margin-bottom: 18px;
}

.article-premium .highlight-keyword {
  font-weight: 500;
  color: #333;
}

.article-premium .btn-read-more {
  text-transform: uppercase;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  transition: 0.5s;
  margin: 0px;
  border: 0px solid #fff;
  color: #fff;
  background: rgba(50, 50, 40, 0.9);
}

.article-premium .btn-read-more:hover {
  background: rgba(50, 50, 40, 0.6);
  border: 1px solid #fff;
}

/* ==========================================================================
   5. Reader's Digest / SEO Box & Quote Box / Checklist Box
   ========================================================================== */
.seo-intent-box {
  background-color: rgba(252, 250, 246, 0.95);
  border-left: 4px solid #B48200;
  padding: 15px 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.seo-intent-box p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.insight-quote-box {
  background-color: #f4f6f7;
  border-radius: 6px;
  padding: 20px;
  margin: 30px 0;
  font-size: 14px;
  color: #4f5f6f;
}

.insight-quote-box .quote-title {
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #2c3e50;
  margin-bottom: 6px;
}

.insight-quote-box .quote-detail {
  font-size: 15px;
  font-weight: 300;
  color: #4f5f6f;
  line-height: 1.6;
  margin: 0 0 0 20px;
}

.insight-quote-box p {
  font-size: 15px;
  color: #4f5f6f;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   6. Table of Contents
   ========================================================================== */
.toc-box {
  background-color: rgba(249, 249, 249, 0.95);
  border: 1px solid #eef0f2;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.toc-title {
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.toc-list {
  padding-left: 15px;
  margin: 0;
  font-size: 15px;
}

.toc-list li {
  color: #B48200;
  margin-bottom: 10px;
}

.toc-list a {
  color: #B48200;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(180, 130, 0, 0.1);
}

.toc-list a:hover {
  color: #8c6500;
  border-bottom: 2px solid rgba(180, 130, 0, 0.1);
}

/* ==========================================================================
   6. Checklist Box & Premium Li Bullet Customization
   ========================================================================== */
.checklist-box {
  background-color: rgba(252, 250, 246, 0.95);
  border-left: 4px solid #B48200;
  padding: 20px;
  margin: 35px 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checklist-box h2.checklist-title {
  font-family: "Kanit", sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #111 !important;
  margin: 0 0 15px 0 !important;
  letter-spacing: 0px !important;
}

/* ปรับระยะโครงสร้างเพื่อเลื่อนทั้งย่อหน้าเข้ามาด้านใน */
.checklist-box ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 0 20px !important; /* ดันตัวรายการทั้งหมด (ขยับเข้า) มาทางขวา 20px */
}

.checklist-box li {
  font-size: 15px !important;
  color: #555 !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
  position: relative !important;
  padding-left: 26px !important; /* ขยับตัวข้อความหนีออกจากเครื่องหมาย */
}

.checklist-box li:last-child {
  margin-bottom: 0 !important;
}

/* ตัวสลักเครื่องหมายถูก ยึดตำแหน่งซ้ายสุดของรายการที่ขยับเข้ามาแล้ว */
.checklist-box li::before { 
  content: "\f270" !important;  /* รหัส Unicode ของไอคอน bi-check2-circle */
  font-family: "bootstrap-icons" !important; /* บังคับเปิดฟอนต์ไอคอน */
  position: absolute !important;
  left: 0 !important;
  color: #B48200 !important;         /* สีน้ำตาลทองประจำแบรนด์ Averbest */
  font-size: 16px !important;        /* ขนาดไอคอนวงกลม แนะนำที่ 16px กำลังพรีเมียมไม่เล็กไม่ใหญ่เกินไปครับ */
}

/* ==========================================================================
   7. Related Elements
   ========================================================================== */
.article-premium .related-elements {
  margin-top: 60px !important;
  padding-top: 30px !important;
  border-top: 1px solid #eef0f2 !important;
}

.article-premium .related-elements h4 {
  font-family: "Kanit", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #111 !important;
  margin-bottom: 20px !important;
}

.article-premium .element-links-list {
  list-style: none !important;
  padding-left:15px !important;
  margin: 0 !important;
}

.article-premium .element-links-list li {
  font-size: 14px !important;
  line-height: 1.0 !important;
  margin-bottom: 14px !important;
  position: relative !important;     /* ปักหมุดให้ไอคอนยึดตำแหน่ง */
  padding-left: 26px !important;     /* [พื้นที่รวมด้านซ้าย] */
}

.article-premium .element-links-list li::before {
  content: "\F470" !important;  /* รหัส Unicode ของไอคอน */
  font-family: "bootstrap-icons" !important;
  font-size: 15px !important;
  color: #B48200 !important;  
  position: absolute !important;
  left: 6px !important;
  top: 0px !important;               /* ขยับลงมาเพื่อให้ไอคอนบาลานซ์กับตัวอักษร */
}

.article-premium .element-links-list a {
  color: #B48200 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

.article-premium .element-links-list a strong {
  color: #B48200 !important;
  font-weight: 500 !important;
}

.article-premium .element-links-list a:hover {
  color: #B48200 !important;
  padding-left: 6px !important;
}

/* ==========================================================================
   7. Related Products
   ========================================================================== */
.article-premium .related-products {
  margin-top: 60px !important;
  padding-top: 30px !important;
  border-top: 1px solid #eef0f2 !important;
}

.article-premium .related-products h4 {
  font-family: "Kanit", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #111 !important;
  margin-bottom: 20px !important;
}

.article-premium .product-links-list {
  list-style: none !important;
  padding-left: 15px !important;
  margin: 0 !important;
}

.article-premium .product-links-list li {
  font-size: 14px !important;
  line-height: 1.0 !important;
  margin-bottom: 14px !important;
  position: relative !important;     /* ปักหมุดให้ไอคอนยึดตำแหน่ง */
  padding-left: 26px !important;     /* [พื้นที่รวมด้านซ้าย] */
}

.article-premium .product-links-list li::before {
  content: "\F45B" !important;  /* รหัส Unicode ของไอคอน */
  font-family: "bootstrap-icons" !important;
  font-size: 15px !important;
  color: #B48200 !important;  
  position: absolute !important;
  left: 6px !important;
  top: 0px !important;               /* ขยับลงมาเพื่อให้ไอคอนบาลานซ์กับตัวอักษร */
}

.article-premium .product-links-list a {
  color: #B48200 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

.article-premium .product-links-list a:hover {
  color: #B48200 !important;
  padding-left: 6px !important;
}

/* ==========================================================================
   8. Tag Items Restoration (กู้คืนสไตล์กรอบที่หายไป)
   ========================================================================== */
.article-premium .article-tags {
  margin-top: 35px !important;
  padding-top: 15px !important;
}

.article-premium .article-tags .tag-item {
  display: inline-block !important;
  font-size: 12px !important;
  color: #555 !important;
  background-color: #f7f7f7 !important;
  border: 1px solid #e0e0e0 !important;
  padding: 6px 14px !important;
  margin: 0 8px 10px 0 !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.article-premium .article-tags .tag-item:hover {
  color: #ffffff !important;
  background-color: #B48200 !important;
  border-color: #B48200 !important;
}

/* ==========================================================================
   9. Mobile Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .article-premium h1.entry-title {
    font-size: 22px !important;
    font-weight: 500 !important;
  }
}

@media (max-width: 576px) {
  .article-premium {
    padding: 15px !important;
  }
}