/**
 * ==========================================================================
 * ชื่อเทมเพลต: iLanding - ธีม mwks.ac.th
 * URL เทมเพลต: https://bootstrapmade.com/ilanding-bootstrap-landing-page-template/
 * อัปเดตล่าสุด: 15 เมษายน 2026 พร้อมกับ Bootstrap v5.3.3
 * ผู้พัฒนา: BootstrapMade.com
 * ผู้พัฒนา: Thanakorn Lansri (2025)
 * ผู้พัฒนา (2): Kitt Sumnuan (2026)
 * ใบอนุญาต: https://bootstrapmade.com/license/
 * ==========================================================================
 *
 * สารบัญ (Table of Contents)
 * --------------------------------------------------------------------------
 *  1.  การนำเข้าฟอนต์ (Font Import)
 *  2.  ตัวแปร CSS หลัก (CSS Custom Properties / Variables)
 *      2.1 ฟอนต์ (Fonts)
 *      2.2 สีหลักของเว็บไซต์ (Site Colors)
 *      2.3 สีของเมนูนำทาง (Navigation Colors)
 *      2.4 การเลื่อนหน้าอย่างนุ่มนวล (Smooth Scroll)
 *  3.  พรีเซ็ตสี (Color Presets)
 *  4.  สไตล์พื้นฐาน (Base Styles)
 *  5.  เฮดเดอร์หลัก (Global Header)
 *  6.  เมนูนำทาง (Navigation Menu)
 *      6.1 เดสก์ท็อป (Desktop)
 *      6.2 มือถือ (Mobile)
 *      6.3 Listing Dropdown - เดสก์ท็อป
 *      6.4 Listing Dropdown - มือถือ
 *  7.  ส่วนท้ายเว็บไซต์ (Global Footer)
 *  8.  ปุ่มเลื่อนขึ้นด้านบน (Scroll Top Button)
 *  9.  ปิดอนิเมชัน AOS บนมือถือ (Disable AOS on Mobile)
 * 10.  หัวข้อหน้าและ Breadcrumbs (Page Title & Breadcrumbs)
 * 11.  เซคชันทั่วไป (Global Sections)
 * 12.  หัวข้อเซคชัน (Section Titles)
 *      12.1 แบบกลาง (Center)
 *      12.2 แบบซ้าย (Left)
 *      12.3 แบบซ้อนทับ (Overlap)
 *      12.4 แบบโมเดิร์น (Modern)
 * 13.  ส่วนฮีโร่ (Hero Section)
 *      13.1 ฮีโร่ทั่วไป (General Hero)
 *      13.2 หน้าเนื้อข่าว (News Page Hero)
 * 14.  ส่วนเกี่ยวกับ (About Section)
 * 15.  ส่วนคุณสมบัติ (Features Section)
 * 16.  การ์ดคุณสมบัติ (Features Cards Section)
 * 17.  ส่วนแอป MWKConnect (App MWKConnect Section)
 * 18.  ส่วนเรียกร้องดำเนินการ (Call To Action Section)
 * 19.  ส่วนลูกค้า (Clients Section)
 * 20.  ส่วนรีวิว (Testimonials Section)
 * 21.  ส่วนสถิติ (Stats Section)
 * 22.  ส่วนบริการ (Services Section)
 * 23.  ส่วนราคา (Pricing Section)
 * 24.  ส่วนคำถามที่พบบ่อย (FAQ Section)
 * 25.  ส่วนวิสัยทัศน์ (Vision Section)
 * 26.  ส่วนติดต่อ (Contact Section)
 * 27.  รายละเอียดบริการ (Service Details Section)
 * 28.  รูปภาพโพสต์ (Post Image)
 * 29.  ไทม์ไลน์ (Timeline Section)
 * 30.  หน้าโพสต์เดี่ยว (Single Post Styling)
 * 31.  อนิเมชัน (Animations / Keyframes)
 * --------------------------------------------------------------------------
 */


/* ==========================================================================
   1. การนำเข้าฟอนต์ (Font Import)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');


/* ==========================================================================
   2. ตัวแปร CSS หลัก (CSS Custom Properties / Variables)
   ========================================================================== */

/* ---------- 2.1 ฟอนต์ (Fonts) ---------- */
:root {
  --heading-font: "Google Sans", sans-serif; /* แบบอักษรของหัวข้อ */
  --default-font: "Sarabun", sans-serif; /* แบบอักษรมาตรฐานของเว็บไซต์ (ใช้ Sarabun สำหรับคำอธิบาย) */
  --post-font: "Google Sans", sans-serif; /* แบบอักษรของหัวข้อโพสต์ */
  --nav-font: "Sarabun", sans-serif; /* แบบอักษรของเมนูนำทาง */
}

/* ---------- 2.2 สีหลักของเว็บไซต์ (Site Colors) ---------- */
:root {
  --background-color: #ffffff; /* สีพื้นหลังหลัก */
  --default-color: #4A4040; /* สีข้อความ — เทาอมน้ำตาลเข้ม กลมกลืนกับสีแดง ไม่แข็งเกินไป */
  --heading-color: #2A2020; /* สีหัวข้อ — เข้มกว่าข้อความปกติ สร้างความโดดเด่น */
  --accent-color: #D32F2F; /* สีเน้น — Crimson Red ดูหรูไม่แยงตา */
  --surface-color: #FFFFFF; /* สีพื้นผิวการ์ด/กล่อง */
  --contrast-color: #FFFFFF; /* สีข้อความบนปุ่มสีเข้ม */
}

/* ---------- 2.3 สีของเมนูนำทาง (Navigation Colors) ---------- */
:root {
  --nav-color: #4A4040; /* สีลิงก์เมนู — ใช้โทนเดียวกับสีข้อความหลัก */
  --nav-hover-color: #D32F2F; /* สีลิงก์เมื่อชี้เมาส์ */
  --nav-mobile-background-color: #FFFFFF; /* พื้นหลังเมนูมือถือ */
  --nav-dropdown-background-color: #FFFFFF; /* พื้นหลัง Dropdown */
  --nav-dropdown-color: #4A4040; /* สีลิงก์ Dropdown */
  --nav-dropdown-hover-color: #D32F2F; /* สีลิงก์ Dropdown เมื่อชี้เมาส์ */
}

/* ---------- 2.4 การเลื่อนหน้าอย่างนุ่มนวล (Smooth Scroll) ---------- */
:root {
  scroll-behavior: smooth;
}


/* ==========================================================================
   3. พรีเซ็ตสี (Color Presets)
   — ใช้คลาสเหล่านี้กับองค์ประกอบเพื่อเปลี่ยนโทนสีทั้งบล็อก
   ========================================================================== */

/* พื้นหลังโทนอ่อน */
.light-background {
  --background-color: #f7fbff;
  --surface-color: #ffffff;
}

/* พื้นหลังโทนเข้ม (แดง) */
.dark-background {
  --background-color: #cc0000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #ff0000;
  --contrast-color: #ffffff;
}


/* ==========================================================================
   4. สไตล์พื้นฐาน (Base Styles)
   — กำหนดค่าเริ่มต้นของ body, ลิงก์, หัวข้อ
   ========================================================================== */

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  -webkit-font-smoothing: antialiased;
  /* ทำให้ฟอนต์ดูเรียบเนียนบน Mac/iOS */
  -moz-osx-font-smoothing: grayscale;
}

/* ลิงก์ทั่วไป */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

/* หัวข้อทุกระดับ */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/* ==========================================================================
   หน้ากำลังโหลด (Modern Preloader)
   — แสดงผลระหว่างที่หน้าเว็บกำลังโหลดเนื้อหาทั้งหมด
   ========================================================================== */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
}

/* เอฟเฟกต์รูปเส้นโหลดแบบพรีเมียม */
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 4px solid color-mix(in srgb, var(--accent-color), transparent 90%);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: preloader-animate 1s linear infinite;
}

@keyframes preloader-animate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* เมื่อโหลดเสร็จแล้วจะซ่อน Preloader */
#preloader.preloader-loaded {
  opacity: 0;
  visibility: hidden;
}


/* ==========================================================================
   5. เฮดเดอร์หลัก (Global Header)
   — แถบด้านบนสุดของเว็บไซต์ ประกอบด้วยโลโก้, เมนู, ปุ่ม CTA
   ========================================================================== */

.header {
  --background-color: rgba(255, 255, 255, 0);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s ease;
  z-index: 997;
}

/* กล่องเฮดเดอร์ — มีเงาบางๆ ทำให้ลอยจากพื้นหลัง */
.header .header-container {
  background: var(--surface-color);
  border-radius: 50px;
  padding: 5px 25px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

/* เมื่อเลื่อนหน้าลง — พื้นหลังจะโปร่งขึ้นเล็กน้อย */
.scrolled .header .header-container {
  background: color-mix(in srgb, var(--surface-color), transparent 5%);
}

/* โลโก้ */
.header .logo {
  line-height: 1;
  padding-left: 5px;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 500;
  color: var(--heading-color);
}

/* ปุ่ม CTA บนเฮดเดอร์ */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 20px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* เฮดเดอร์ — Responsive สำหรับจอเล็กกว่า 1200px */
@media (max-width: 1200px) {
  .header {
    padding-top: 10px;
  }

  .header .header-container {
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px 5px 10px 15px;
  }

  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 10px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}


/* ==========================================================================
   6. เมนูนำทาง (Navigation Menu)
   ========================================================================== */

/* ---------- 6.1 เดสก์ท็อป (Desktop ≥ 1200px) ---------- */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  /* ลิงก์เมนูหลัก */
  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: all 0.3s ease;
  }

  /* ไอคอนลูกศรใน Dropdown */
  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: all 0.3s ease;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  /* สถานะ Hover / Active */
  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  /* เมนู Dropdown */
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    margin-top: 15px;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: auto;
    right: 0;
    top: 130%;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 6px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
    transition: all 0.3s ease;
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  /* แสดง Dropdown เมื่อ Hover */
  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  /* Dropdown ซ้อน (Sub-Dropdown) */
  .navmenu .dropdown .dropdown ul {
    top: 0;
    right: 90%;
    left: auto;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    right: 100%;
    left: auto;
    visibility: visible;
  }
}

/* ---------- 6.2 มือถือ (Mobile < 1200px) ---------- */
@media (max-width: 1199px) {

  /* ปุ่มเปิด-ปิดเมนูมือถือ */
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  /* ตัวเมนูบนมือถือ */
  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  /* ลิงก์เมนูบนมือถือ — ขนาดใหญ่กว่าเพื่อกดง่าย (Touch-friendly) */
  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 12px 20px;
    /* เพิ่ม padding แนวตั้ง เพื่อให้กดง่ายบนมือถือ */
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-height: 48px;
    /* ขนาดขั้นต่ำสำหรับ Touch Target ตามแนวทาง WCAG */
  }

  /* ไอคอนลูกศรในเมนูมือถือ — ปุ่มกลม */
  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  /* สถานะ Hover / Active บนมือถือ */
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  /* Dropdown บนมือถือ */
  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  /* Overlay มืดเมื่อเปิดเมนูมือถือ */
  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: all 0.3s ease;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/* ---------- 6.3 Listing Dropdown — เดสก์ท็อป (Desktop ≥ 1200px) ---------- */
@media (min-width: 1200px) {
  .navmenu .listing-dropdown {
    position: static;
  }

  .navmenu .listing-dropdown ul {
    margin: 0;
    padding: 10px;
    margin-top: 11px;
    background: var(--nav-dropdown-background-color);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 130%;
    left: 0;
    right: 0;
    visibility: hidden;
    opacity: 0;
    display: flex;
    transition: all 0.3s ease;
    border-radius: 6px;
    z-index: 99;
  }

  .navmenu .listing-dropdown ul li {
    flex: 1;
  }

  .navmenu .listing-dropdown ul li a,
  .navmenu .listing-dropdown ul li:hover>a {
    padding: 10px 20px;
    font-size: 15px;
    color: var(--nav-dropdown-color);
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.3s ease;
  }

  .navmenu .listing-dropdown ul li a:hover,
  .navmenu .listing-dropdown ul li .active,
  .navmenu .listing-dropdown ul li .active:hover {
    color: var(--nav-dropdown-hover-color);
    background-color: var(--nav-dropdown-background-color);
  }

  .navmenu .listing-dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}

/* ---------- 6.4 Listing Dropdown — มือถือ (Mobile < 1200px) ---------- */
@media (max-width: 1199px) {
  .navmenu .listing-dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .listing-dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .listing-dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }
}


/* ==========================================================================
   7. ส่วนท้ายเว็บไซต์ (Global Footer)
   ========================================================================== */

.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
}

/* โลโก้ในส่วนท้าย */
.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

/* ลิงก์โซเชียลมีเดีย */
.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  /* ยกขึ้นเล็กน้อยเมื่อ Hover ดูมีชีวิตชีวา */
}

/* หัวข้อในส่วนท้าย */
.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

/* ลิงก์เมนูในส่วนท้าย */
.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
  transition: all 0.3s ease;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

/* ข้อมูลติดต่อ */
.footer .footer-contact p {
  margin-bottom: 5px;
}

/* ลิขสิทธิ์ */
.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}


/* ==========================================================================
   8. ปุ่มเลื่อนขึ้นด้านบน (Scroll Top Button)
   ========================================================================== */

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s ease;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}


/* ==========================================================================
   9. ปิดอนิเมชัน AOS บนมือถือ (Disable AOS on Mobile)
   — ลดภาระ GPU และทำให้หน้าโหลดราบรื่นขึ้นบนอุปกรณ์ที่ช้ากว่า
   ========================================================================== */

@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}


/* ==========================================================================
   10. หัวข้อหน้าและ Breadcrumbs (Page Title & Breadcrumbs)
   ========================================================================== */

.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 130px 0 35px 0;
  text-align: center;
  position: relative;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Breadcrumbs — แสดงตำแหน่งปัจจุบันของผู้ใช้ */
.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/* Responsive — มือถือ */
@media (max-width: 768px) {
  .page-title {
    padding: 120px 0 50px 0;
    /* ลด padding บนมือถือ ไม่ให้เสียพื้นที่มาก */
  }

  .page-title h1 {
    font-size: 30px;
  }

  .page-title .breadcrumbs ol {
    font-size: 14px;
  }
}


/* ==========================================================================
   11. เซคชันทั่วไป (Global Sections)
   — ค่า padding และ scroll-margin สำหรับทุก section
   ========================================================================== */

section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  /* หมายเหตุ: ไม่ใช้ overflow: clip เพราะจะตัด AOS animation ที่เลื่อนเข้ามาจากนอกกรอบ */
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

@media (max-width: 575px) {

  section,
  .section {
    padding: 40px 0;
    /* ลด padding รอบนอกบนมือถือ เพิ่มพื้นที่เนื้อหา */
  }
}


/* ==========================================================================
   12. หัวข้อเซคชัน (Section Titles)
   ========================================================================== */

/* ---------- 12.1 แบบกลาง (Center) ---------- */
.section-title-center {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title-center h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

/* เส้นตกแต่งใต้หัวข้อ */
.section-title-center h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title-center p {
  margin-bottom: 0;
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .section-title-center {
    padding-bottom: 40px;
  }

  .section-title-center h2 {
    font-size: 26px;
  }
}

/* ---------- 12.2 แบบซ้าย (Left) ---------- */
.section-title-left {
  padding-bottom: 60px;
  position: relative;
  text-align: left;
}

.section-title-left h2 {
  font-size: 16px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  position: relative;
}

/* เส้นตกแต่งหลังข้อความ */
.section-title-left h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title-left div {
  color: var(--heading-color);
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .section-title-left {
    padding-bottom: 40px;
  }

  .section-title-left div {
    font-size: 24px;
  }
}

/* ---------- 12.3 แบบซ้อนทับ (Overlap) ---------- */
.section-title-overlap {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 30px;
  position: relative;
}

.section-title-overlap h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

/* ข้อความพื้นหลังขนาดใหญ่เบลอๆ */
.section-title-overlap span {
  position: absolute;
  top: 4px;
  color: color-mix(in srgb, var(--accent-color), transparent 95%);
  left: 0;
  right: 0;
  z-index: 1;
  font-weight: 700;
  font-size: 52px;
  text-transform: uppercase;
  line-height: 1;
}

.section-title-overlap p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .section-title-overlap h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .section-title-overlap span {
    font-size: 38px;
  }
}

/* ---------- 12.4 แบบโมเดิร์น (Modern) ---------- */
.section-title-modern {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

/* ป้ายกำกับหมวดหมู่ */
.section-title-modern h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 0;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: inline-block;
  text-transform: uppercase;
  border-radius: 50px;
  font-family: var(--default-font);
}

/* หัวข้อหลักของเซคชัน */
.section-title-modern p {
  color: var(--heading-color);
  margin: 10px 0 0 0;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--heading-font);
}

.section-title-modern p .description-title {
  color: var(--accent-color);
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .section-title-modern {
    padding-bottom: 40px;
  }

  .section-title-modern p {
    font-size: 26px;
  }
}


/* ==========================================================================
   13. ส่วนฮีโร่ (Hero Section)
   ========================================================================== */

/* ---------- 13.1 ฮีโร่ทั่วไป (General Hero) ---------- */
.hero {
  position: relative;
  padding-top: 160px;
  height: 70vh;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--accent-color), transparent 95%) 50%,
      color-mix(in srgb, var(--accent-color), transparent 98%) 35%,
      transparent 80%);
}

/* เอฟเฟกต์แสงวงกลม */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%,
      color-mix(in srgb, var(--accent-color), transparent 92%),
      transparent 40%);
  pointer-events: none;
}

/* เนื้อหาฮีโร่ */
.hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero .hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero .hero-content h1 .accent-text {
  color: var(--accent-color);
}

/* Responsive — แท็บเล็ต */
@media (max-width: 992px) {
  .hero {
    height: auto;
    /* ปล่อยให้สูงตามเนื้อหาบนจอเล็ก */
    padding-bottom: 60px;
  }

  .hero .hero-content {
    text-align: center;
    margin-bottom: 3rem;
  }

  .hero .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero .hero-content .hero-buttons {
    justify-content: center;
  }
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .hero .hero-content h1 {
    font-size: 2rem;
  }
}

/* ป้ายบริษัท */
.hero .company-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  border-radius: 50px;
  color: var(--accent-color);
  font-weight: 500;
}

.hero .company-badge i {
  font-size: 1.25rem;
}

/* ปุ่มหลัก */
.hero .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 20%);
  border-color: color-mix(in srgb, var(--accent-color), black 20%);
  transform: translateY(-2px);
  /* ยกขึ้นเล็กน้อยเมื่อ Hover */
}

/* ปุ่มลิงก์ */
.hero .btn-link {
  color: var(--heading-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero .btn-link:hover {
  color: var(--accent-color);
}

.hero .btn-link i {
  font-size: 1.5rem;
  vertical-align: middle;
}

/* รูปภาพฮีโร่ */
.hero .hero-image {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero .hero-image img {
  max-width: 100%;
  height: auto;
}

/* ป้ายลูกค้า (Floating Badge) */
.hero .customers-badge {
  position: absolute;
  bottom: 10px;
  right: 30px;
  background-color: var(--surface-color);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  animation: float-badge 3s ease-in-out infinite;
  will-change: transform;
}

.hero .customers-badge .customer-avatars {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hero .customers-badge .avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--surface-color);
  margin-left: -8px;
}

.hero .customers-badge .avatar:first-child {
  margin-left: 0;
}

.hero .customers-badge .avatar.more {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero .customers-badge p {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* Responsive — ซ่อนตำแหน่ง absolute บนจอเล็ก */
@media (max-width: 992px) {
  .hero .customers-badge {
    position: static;
    margin: 1rem auto;
    max-width: 250px;
  }
}

/* แถวสถิติ */
.hero .stats-row {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  background-color: var(--surface-color);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding-bottom: 2rem;
}

.hero .stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.hero .stat-item .stat-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero .stat-item .stat-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.hero .stat-item:hover .stat-icon {
  background-color: var(--accent-color);
}

.hero .stat-item:hover .stat-icon i {
  color: var(--contrast-color);
}

.hero .stat-item .stat-content {
  flex-grow: 1;
}

.hero .stat-item .stat-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.hero .stat-item .stat-content p {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .hero .stat-item {
    padding: 1.5rem;
  }

  .hero .stats-row {
    margin-top: 3rem;
  }
}

/* ---------- 13.2 หน้าเนื้อข่าว (News Page Hero) ---------- */
.news-page .hero {
  position: relative;
  padding-top: 100px;
  padding-bottom: 70px;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--accent-color), transparent 95%) 50%,
      color-mix(in srgb, var(--accent-color), transparent 98%) 35%,
      transparent 80%);
}

/* หัวข้อข่าว — ใช้ clamp() เพื่อให้ขนาดลดลงอัตโนมัติตามขนาดจอ */
.news-page .hero h1 {
  font-family: var(--post-font);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  /* ขนาดอัตโนมัติ: ต่ำสุด 1.5rem, สูงสุด 2.6rem */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--default-color);
  text-align: center;
}

/* ข้อมูลเมตา (วันที่, ผู้เขียน) */
.news-page .hero .meta {
  color: var(--default-color);
  font-size: 1rem;
  gap: 0.5rem;
  text-align: center;
}

.news-page .hero .meta i {
  color: var(--accent-color);
}

/* Responsive — มือถือเล็ก */
@media (max-width: 576px) {
  .news-page .hero .meta {
    font-size: 0.85rem;
  }
}

@media (max-width: 390px) {
  .news-page .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }
}

/* ส่วนแชร์บทความ */
.news-page .article .share {
  top: 120px;
  z-index: 0;
  /* ลด z-index ไม่ให้ทับเมนู */
}

.news-page .article .share h3,
.news-page .article .share .h3 {
  font-size: 15px;
}

@media (max-width: 767.98px) {

  .news-page .article .share h3,
  .news-page .article .share .h3 {
    display: inline-block;
  }
}

.news-page .article .share .share-article {
  width: 100%;
}

.news-page .article .share .share-article li {
  width: 100%;
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 767.98px) {
  .news-page .article .share .share-article li {
    display: inline !important;
  }
}

.news-page .article .share .share-article li a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  color: #000;
  border: 1px solid #efefef;
  transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
  .news-page .article .share .share-article li a {
    display: inline-block !important;
  }
}

.news-page .article .share .share-article li a span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* ==========================================================================
   14. ส่วนเกี่ยวกับ (About Section)
   ========================================================================== */

/* ป้ายข้อความเน้น */
.about .about-meta {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

/* หัวข้อเกี่ยวกับ */
.about .about-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 992px) {
  .about .about-title {
    font-size: 2rem;
  }
}

/* คำอธิบาย */
.about .about-description {
  margin-bottom: 2rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* รายการคุณสมบัติ */
.about .feature-list-wrapper {
  margin-bottom: 2rem;
}

.about .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about .feature-list li i {
  color: var(--accent-color);
  font-size: 1.25rem;
}

/* โปรไฟล์ผู้บริหาร */
.about .profile .profile-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.about .profile .profile-name {
  font-size: 1.125rem;
  margin: 0;
}

.about .profile .profile-position {
  color: var(--accent-color);
  margin: 0;
  font-size: 0.875rem;
}

/* กล่องข้อมูลติดต่อ */
.about .contact-info {
  padding: 1rem 1.5rem;
  background-color: var(--surface-color);
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.about .contact-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about .contact-info i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.about .contact-info .contact-label {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.875rem;
  margin: 0;
}

.about .contact-info .contact-number {
  font-weight: 600;
  margin: 0;
}

/* รูปภาพ */
.about .image-wrapper {
  position: relative;
}

@media (max-width: 992px) {
  .about .image-wrapper {
    padding-left: 0;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .about .image-wrapper .images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .about .image-wrapper .main-image {
    margin-left: 0;
  }
}

/* รูปภาพเล็ก (ซ้อนทับ) */
.about .image-wrapper .small-image {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 45%;
  border: 8px solid var(--surface-color);
}

@media (max-width: 992px) {
  .about .image-wrapper .small-image {
    position: static;
    width: 100%;
    margin: 0 auto;
    border: 0;
  }
}

/* ป้ายประสบการณ์ (ลอยขึ้นลง) */
.about .image-wrapper .experience-badge {
  position: absolute;
  bottom: 5%;
  right: 5%;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  min-width: 200px;
  animation: experience-float 3s ease-in-out infinite;
}

@media (max-width: 992px) {
  .about .image-wrapper .experience-badge {
    position: static;
    width: fit-content;
    margin: 0 auto;
  }
}

.about .image-wrapper .experience-badge h3 {
  color: var(--contrast-color);
  font-size: 2.5rem;
  margin: 0;
  line-height: 0.5;
}

.about .image-wrapper .experience-badge h3 span {
  font-size: 1rem;
  display: inline-block;
  margin-left: 0.25rem;
}

.about .image-wrapper .experience-badge p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}


/* ==========================================================================
   15. ส่วนคุณสมบัติ (Features Section)
   ========================================================================== */

/* แท็บเลือกคุณสมบัติ */
.features .nav-tabs {
  border: 0;
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  padding: 6px;
  width: auto;
}

.features .nav-item {
  margin: 0;
  padding: 0 5px 0 0;
}

.features .nav-item:last-child {
  padding-right: 0;
}

/* ลิงก์แท็บ */
.features .nav-link {
  background-color: transparent;
  color: var(--heading-color);
  padding: 10px 30px;
  transition: all 0.3s ease;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  border: 0;
  margin: 0;
}

@media (max-width: 468px) {
  .features .nav-link {
    padding: 8px 20px;
  }
}

.features .nav-link i {
  padding-right: 15px;
  font-size: 48px;
}

.features .nav-link h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.features .nav-link:hover {
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.features .nav-link:hover h4 {
  color: var(--accent-color);
}

/* แท็บที่ถูกเลือก (Active) */
.features .nav-link.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.features .nav-link.active h4 {
  color: var(--contrast-color);
}

/* เนื้อหาแท็บ */
.features .tab-content {
  margin-top: 30px;
}

.features .tab-pane h3 {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 32px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.features .tab-pane h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.features .tab-pane ul {
  list-style: none;
  padding: 0;
}

.features .tab-pane ul li {
  padding-top: 10px;
}

.features .tab-pane ul i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--accent-color);
}

.features .tab-pane p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   16. การ์ดคุณสมบัติ (Features Cards Section)
   ========================================================================== */

.features-cards {
  --default-color: #555;
  --heading-color: #333;
}

.features-cards .feature-box {
  height: 100%;
  padding: 40px 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.features-cards .feature-box:hover {
  transform: translateY(-5px);
  /* ยกการ์ดขึ้นเมื่อ Hover ดูมีชีวิตชีวา */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.features-cards .feature-box i {
  font-size: 44px;
  display: inline-block;
  line-height: 0;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.features-cards .feature-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.features-cards .feature-box p {
  font-size: 15px;
  margin-bottom: 0;
}

/* สีเฉพาะแต่ละการ์ด */
.features-cards .feature-box.orange {
  background-color: #fff3e2;
}

.features-cards .feature-box.orange i {
  color: #edb86e;
}

.features-cards .feature-box.blue {
  background-color: #deedfd;
}

.features-cards .feature-box.blue i {
  color: #20a5f8;
}

.features-cards .feature-box.green {
  background-color: #d5f1e4;
}

.features-cards .feature-box.green i {
  color: #48c88a;
}

.features-cards .feature-box.red {
  background-color: #fdeded;
}

.features-cards .feature-box.red i {
  color: #f28484;
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .features-cards .feature-box {
    padding: 30px 20px;
  }
}


/* ==========================================================================
   17. ส่วนแอป MWKConnect (App MWKConnect Section)
   ========================================================================== */

/* ไอคอนวงกลม */
.app-mwkconnect .feature-item .feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  transition: all 0.3s ease;
}

.app-mwkconnect .feature-item:hover .feature-icon {
  background-color: var(--accent-color);
}

.app-mwkconnect .feature-item .feature-icon i {
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.app-mwkconnect .feature-item:hover .feature-icon i {
  color: var(--contrast-color);
}

/* หัวข้อและคำอธิบาย */
.app-mwkconnect .feature-item .feature-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.app-mwkconnect .feature-item .feature-content p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 15px;
  margin-bottom: 0;
}

/* รูปโทรศัพท์จำลอง */
.app-mwkconnect .phone-mockup {
  position: relative;
  padding: 30px 0;
}

.app-mwkconnect .phone-mockup img {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
  transition: transform 0.5s ease;
}

.app-mwkconnect .phone-mockup:hover img {
  transform: scale(1.03);
  /* ขยายภาพนิดเดียวเมื่อ Hover ดูน่าสนใจ */
}

/* Responsive — แท็บเล็ต */
@media (max-width: 991.98px) {
  .app-mwkconnect .feature-item {
    text-align: center !important;
    margin-bottom: 2rem;
  }

  .app-mwkconnect .feature-item .d-flex {
    flex-direction: column;
    text-align: center;
    justify-content: center !important;
  }

  .app-mwkconnect .phone-mockup {
    margin: 3rem 0;
  }
}


/* ==========================================================================
   18. ส่วนเรียกร้องดำเนินการ (Call To Action Section)
   ========================================================================== */

.call-to-action .container {
  background: var(--accent-color);
  color: var(--contrast-color);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 4rem 2rem;
}

.call-to-action .content h2,
.call-to-action .content p {
  color: var(--contrast-color);
  position: relative;
  z-index: 2;
}

/* ปุ่ม CTA */
.call-to-action .btn-cta {
  background-color: color-mix(in srgb, var(--contrast-color) 15%, transparent);
  color: var(--contrast-color);
  padding: 12px 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid var(--contrast-color);
  position: relative;
  z-index: 2;
}

.call-to-action .btn-cta:hover {
  background-color: var(--contrast-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* รูปทรงตกแต่ง */
.call-to-action .shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.call-to-action .shape svg {
  width: 100%;
  height: 100%;
}

.call-to-action .shape svg path {
  fill: color-mix(in srgb, var(--contrast-color) 50%, transparent);
}

.call-to-action .shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  opacity: 0.1;
  transform: rotate(45deg);
  animation: shapes-float 3s ease-in-out infinite;
}

.call-to-action .shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  opacity: 0.15;
  transform: rotate(-15deg);
  animation: shapes-float 4s ease-in-out infinite;
}

.call-to-action .shape-3 {
  width: 150px;
  height: 150px;
  top: 20%;
  right: 15%;
  opacity: 0.08;
  transform: rotate(15deg);
}

/* จุดตกแต่ง */
.call-to-action .dots {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  color: var(--contrast-color);
}

.call-to-action .dots svg {
  width: 100%;
  height: 100%;
}

.call-to-action .dots-1 {
  width: 200px;
  height: 200px;
  top: -30px;
  left: 10%;
  opacity: 0.1;
  transform: rotate(15deg);
  animation: shapes-float 4s ease-in-out infinite;
}

.call-to-action .dots-2 {
  width: 150px;
  height: 150px;
  bottom: 20px;
  right: 15%;
  opacity: 0.15;
  transform: rotate(-10deg);
}

/* Responsive — แท็บเล็ต */
@media (max-width: 992px) {
  .call-to-action .container {
    padding: 3rem 1.5rem;
  }

  .call-to-action .shape-1 {
    width: 200px;
    height: 200px;
  }

  .call-to-action .shape-2 {
    width: 150px;
    height: 150px;
  }

  .call-to-action .shape-3 {
    width: 100px;
    height: 100px;
  }

  .call-to-action .dots-1 {
    width: 150px;
    height: 150px;
  }

  .call-to-action .dots-2 {
    width: 120px;
    height: 120px;
  }

  .call-to-action .dots-3 {
    width: 80px;
    height: 80px;
  }
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .call-to-action .container {
    border-radius: 0;
  }
}


/* ==========================================================================
   19. ส่วนลูกค้า (Clients Section)
   ========================================================================== */

.clients .swiper-slide img {
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: grayscale(100);
}

.clients .swiper-slide img:hover {
  filter: none;
  opacity: 1;
}

.clients .swiper-wrapper {
  height: auto;
}

/* จุดนำทาง Swiper */
.clients .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.clients .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.clients .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}


/* ==========================================================================
   20. ส่วนรีวิว (Testimonials Section)
   ========================================================================== */

.testimonials .testimonial-item {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  position: relative;
  height: 100%;
  transition: all 0.3s ease;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.12);
}

/* รูปโปรไฟล์ */
.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

/* ดาว */
.testimonials .testimonial-item .stars {
  margin: 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

/* เครื่องหมายอัญประกาศ */
.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px 0 0 0;
  padding: 0;
}


/* ==========================================================================
   21. ส่วนสถิติ (Stats Section)
   ========================================================================== */

.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item span {
  color: var(--heading-color);
  font-size: 48px;
  display: block;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

/* เส้นตกแต่งใต้ตัวเลข */
.stats .stats-item span:after {
  content: "";
  position: absolute;
  display: block;
  width: 25px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 500;
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .stats .stats-item {
    padding: 20px;
  }

  .stats .stats-item span {
    font-size: 36px;
  }
}


/* ==========================================================================
   22. ส่วนบริการ (Services Section)
   ========================================================================== */

.services .service-card {
  height: 100%;
  padding: 30px;
  background: var(--surface-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.services .service-card:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.services .service-card:hover .icon {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.services .service-card:hover .read-more {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/* ไอคอนบริการ */
.services .service-card .icon {
  width: 60px;
  height: 60px;
  margin-right: 30px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--accent-color);
  font-size: 28px;
  transition: all 0.3s ease;
  line-height: 1;
}

.services .service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.services .service-card p {
  margin-bottom: 25px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 15px;
  line-height: 1.6;
}

/* ลิงก์ "อ่านเพิ่มเติม" */
.services .service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.services .service-card .read-more i {
  font-size: 14px;
  transition: all 0.3s ease;
}

.services .service-card .read-more:hover i {
  transform: translateX(5px);
}


/* ==========================================================================
   23. ส่วนราคา (Pricing Section)
   ========================================================================== */

.pricing .pricing-card {
  height: 100%;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.pricing .pricing-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* การ์ดยอดนิยม */
.pricing .pricing-card.popular {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.pricing .pricing-card.popular h3,
.pricing .pricing-card.popular h4 {
  color: var(--contrast-color);
}

.pricing .pricing-card.popular .price .currency,
.pricing .pricing-card.popular .price .amount,
.pricing .pricing-card.popular .price .period {
  color: var(--contrast-color);
}

.pricing .pricing-card.popular .features-list li {
  color: var(--contrast-color);
}

.pricing .pricing-card.popular .features-list li i {
  color: var(--contrast-color);
}

.pricing .pricing-card.popular .btn-light {
  background: var(--contrast-color);
  color: var(--accent-color);
}

.pricing .pricing-card.popular .btn-light:hover {
  background: color-mix(in srgb, var(--contrast-color), transparent 10%);
}

/* ป้าย "ยอดนิยม" */
.pricing .pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--contrast-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.08);
}

.pricing .pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ราคา */
.pricing .pricing-card .price {
  margin-bottom: 1.5rem;
}

.pricing .pricing-card .price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
  line-height: 1;
}

.pricing .pricing-card .price .amount {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.pricing .pricing-card .price .period {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.pricing .pricing-card .description {
  margin-bottom: 2rem;
  font-size: 0.975rem;
}

.pricing .pricing-card h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* รายการฟีเจอร์ */
.pricing .pricing-card .features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing .pricing-card .features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.pricing .pricing-card .features-list li i {
  color: var(--accent-color);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* ปุ่ม */
.pricing .pricing-card .btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: 50px;
}

.pricing .pricing-card .btn.btn-primary {
  background: var(--accent-color);
  border: none;
  color: var(--contrast-color);
}

.pricing .pricing-card .btn.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}


/* ==========================================================================
   24. ส่วนคำถามที่พบบ่อย (FAQ Section)
   ========================================================================== */

.faq .faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.faq .faq-description {
  font-size: 1rem;
  color: var(--default-color);
  margin-bottom: 2rem;
}

.faq .faq-arrow {
  color: var(--accent-color);
}

/* การ์ดคำถาม */
.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq .faq-container .faq-item:hover {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

/* หัวข้อคำถาม */
.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

/* เนื้อหาคำตอบ (ซ่อนอยู่) */
.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: all 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

/* ปุ่มเปิด-ปิดคำถาม */
.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

/* สถานะ Active */
.faq .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .faq .faq-title {
    font-size: 2rem;
  }

  .faq .faq-container .faq-item {
    padding: 15px;
  }
}


/* ==========================================================================
   25. ส่วนวิสัยทัศน์ (Vision Section)
   ========================================================================== */

.vision {
  padding: 80px 0;
}

.vision .container {
  position: relative;
  z-index: 3;
}

/* รูปทรง Blob ตกแต่ง */
.vision .blob {
  position: absolute;
  right: -40%;
  top: 80%;
  transform: translateY(-50%);
  width: 1000px;
}

.vision h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--default-color);
  line-height: 1.5;
}

.vision h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--default-color);
  font-family: var(--default-font);
  line-height: 1.5;
}

.vision p {
  color: var(--default-color);
}

/* ปุ่ม CTA ในส่วนวิสัยทัศน์ */
.vision .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: all 0.5s ease;
  margin: 10px;
  border: 2px solid color-mix(in srgb, var(--contrast-color), transparent 30%);
  color: var(--contrast-color);
}

.vision .cta-btn:hover {
  border-color: var(--contrast-color);
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .vision {
    padding: 50px 0;
  }

  .vision h3 {
    font-size: 22px;
  }

  .vision h4 {
    font-size: 18px;
  }
}


/* ==========================================================================
   26. ส่วนติดต่อ (Contact Section)
   ========================================================================== */

/* กล่องข้อมูลติดต่อ */
.contact .info-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
}

.contact .info-box h3 {
  color: var(--contrast-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .contact .info-box h3 {
    font-size: 1.75rem;
  }
}

.contact .info-box p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact .info-box a {
  color: var(--contrast-color);
}

@media (max-width: 992px) {
  .contact .info-box {
    padding: 1.5rem;
  }
}

/* รายการข้อมูลติดต่อ */
.contact .info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

/* ไอคอนวงกลม */
.contact .info-item .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: color-mix(in srgb, var(--contrast-color), transparent 85%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact .info-item .icon-box i {
  font-size: 1.5rem;
  color: var(--contrast-color);
}

.contact .info-item:hover .icon-box {
  background-color: color-mix(in srgb, var(--contrast-color), transparent 70%);
}

/* เนื้อหาติดต่อ */
.contact .info-item .content h4 {
  color: var(--contrast-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact .info-item .content p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact .info-item .content p:last-child {
  margin-bottom: 0;
}

/* ฟอร์มติดต่อ */
.contact .contact-form {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
  .contact .contact-form {
    padding: 1.5rem;
  }
}

.contact .contact-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact .contact-form h3 {
    font-size: 1.75rem;
  }
}

.contact .contact-form p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 2rem;
}

/* ช่องกรอกข้อมูล */
.contact .contact-form .form-control,
.contact .contact-form .form-select {
  padding: 0.875rem 1.25rem;
  border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 0.5rem;
  background-color: color-mix(in srgb, var(--surface-color) 90%, white 5%);
  color: var(--default-color);
  transition: all 0.3s ease;
}

.contact .contact-form .form-control:focus,
.contact .contact-form .form-select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 80%);
  /* เพิ่มเงาสีเน้นเมื่อ Focus ดู UX ดีกว่า */
  border-color: var(--accent-color);
}

.contact .contact-form .form-control::placeholder,
.contact .contact-form .form-select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/* ปุ่มส่งข้อมูล */
.contact .contact-form .btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 1rem 2rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.contact .contact-form .btn i {
  font-size: 1.25rem;
}

.contact .contact-form .btn:hover {
  background-color: color-mix(in srgb,
      var(--accent-color),
      var(--contrast-color) 20%);
  transform: translateY(-2px);
}


/* ==========================================================================
   27. รายละเอียดบริการ (Service Details Section)
   ========================================================================== */

.service-details .service-box {
  background-color: var(--surface-color);
  padding: 20px;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
}

.service-details .service-box+.service-box {
  margin-top: 30px;
}

.service-details .service-box h4 {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 92%);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

/* รายการบริการ (Sidebar) */
.service-details .services-list {
  background-color: var(--surface-color);
}

.service-details .services-list a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.service-details .services-list a:first-child {
  margin-top: 0;
}

.service-details .services-list a i {
  font-size: 16px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .services-list a.active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.service-details .services-list a.active i {
  color: var(--contrast-color);
}

.service-details .services-list a:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  color: var(--accent-color);
}

/* ดาวน์โหลดเอกสาร */
.service-details .download-catalog a {
  color: var(--default-color);
  display: flex;
  align-items: center;
  padding: 10px 0;
  transition: all 0.3s ease;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .download-catalog a:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-details .download-catalog a:last-child {
  padding-bottom: 0;
}

.service-details .download-catalog a i {
  font-size: 24px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .download-catalog a:hover {
  color: var(--accent-color);
}

/* กล่องช่วยเหลือ */
.service-details .help-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  margin-top: 30px;
  padding: 30px 15px;
}

.service-details .help-box .help-icon {
  font-size: 48px;
}

.service-details .help-box h4,
.service-details .help-box a {
  color: var(--contrast-color);
}

/* รูปภาพบริการ */
.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}


/* ==========================================================================
   28. รูปภาพโพสต์ (Post Image)
   — เอฟเฟกต์ซูมตอน Hover เพิ่มความน่าสนใจ
   ========================================================================== */

.post-img {
  position: relative;
  height: auto;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  /* มนมุมด้านบน */
}

.zoomable-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  /* ช้าลงนิดเดียว ดูนุ่มนวลขึ้น */
}

.post-img:hover .zoomable-img {
  transform: scale(1.08);
  /* ซูมน้อยลงเล็กน้อยจาก 1.1 ดูเนียนกว่า */
}


/* ==========================================================================
   29. ไทม์ไลน์ (Timeline Section)
   ========================================================================== */

.timeline .timeline-wrapper .timeline-block {
  margin-bottom: 3rem;
}

.timeline .timeline-wrapper .timeline-block:last-child {
  margin-bottom: 0;
}

.timeline .timeline-wrapper .timeline-block h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.timeline .timeline-wrapper .timeline-block h2 span {
  color: var(--accent-color);
}

.timeline .timeline-wrapper .timeline-block .lead {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 3rem;
}

/* เส้นไทม์ไลน์ */
.timeline .timeline-wrapper .timeline {
  position: relative;
}

.timeline .timeline-wrapper .timeline::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
}

/* รายการในไทม์ไลน์ */
.timeline .timeline-wrapper .timeline .timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline .timeline-wrapper .timeline .timeline-item:last-child {
  margin-bottom: 0;
}

/* คอลัมน์ซ้าย */
.timeline .timeline-wrapper .timeline .timeline-item .timeline-left {
  width: 20%;
  padding-right: 3rem;
}

.timeline .timeline-wrapper .timeline .timeline-item .timeline-left .company {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline .timeline-wrapper .timeline .timeline-item .timeline-left .period {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* จุดไทม์ไลน์ */
.timeline .timeline-wrapper .timeline .timeline-item .timeline-dot {
  position: absolute;
  left: calc(20% + 1px);
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  background-color: var(--accent-color);
  border-radius: 50%;
}

/* คอลัมน์ขวา */
.timeline .timeline-wrapper .timeline .timeline-item .timeline-right {
  width: 70%;
  padding-left: 3rem;
  margin-top: -4px;
}

.timeline .timeline-wrapper .timeline .timeline-item .timeline-right .position {
  color: var(--heading-color);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.timeline .timeline-wrapper .timeline .timeline-item .timeline-right .description {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.timeline .timeline-wrapper .timeline .timeline-item .timeline-right ul {
  padding-left: 15px;
}

.timeline .timeline-wrapper .timeline .timeline-item .timeline-right ul li {
  padding-bottom: 12px;
}

/* Responsive — แท็บเล็ตและมือถือ */
@media (max-width: 992px) {
  .timeline .timeline-wrapper .timeline-block h2 {
    font-size: 2rem;
  }

  .timeline .timeline-wrapper .timeline::before {
    left: 1rem;
  }

  .timeline .timeline-wrapper .timeline .timeline-item {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .timeline .timeline-wrapper .timeline .timeline-item .timeline-left {
    width: 100%;
    text-align: left;
    padding-right: 0;
    padding-left: 2.5rem;
    margin-bottom: 1.6rem;
    margin-top: -4px;
  }

  .timeline .timeline-wrapper .timeline .timeline-item .timeline-dot {
    left: calc(1rem + 1px);
  }

  .timeline .timeline-wrapper .timeline .timeline-item .timeline-right {
    width: 100%;
    padding-left: 2.5rem;
  }
}


/* ==========================================================================
   30. หน้าโพสต์เดี่ยว (Single Post Styling)
   — ปรับแต่งให้อ่านง่ายบนทุกอุปกรณ์ เน้น UX การอ่าน
   ========================================================================== */

/* กล่องหลักของบทความ */
.article-container {
  margin-top: 1.5rem;
}

/* หัวข้อโพสต์ — ใช้ clamp() ขนาดปรับอัตโนมัติ */
.post-title {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  font-size: clamp(1.875rem, 3.5vw, 2.8rem);
  /* ต่ำสุด 30px, สูงสุด 44.8px, ปรับตามหน้าจอ */
}

/* เนื้อหาโพสต์ — เพิ่มระยะห่างบรรทัดเพื่อความสะดวกในการอ่าน */
.post-content {
  font-size: 1.125rem;
  color: var(--default-color);
  line-height: 1.85;
  /* เพิ่มจาก 1.8 ให้อ่านสบายตาขึ้น */
  overflow-wrap: break-word;
  word-break: break-word;
  /* ป้องกัน URL ยาวทะลุขอบ */
}

.post-content p {
  margin-bottom: 1rem;
}

/* รูปภาพในเนื้อหา — ป้องกันล้นขอบ */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive — มือถือ */
@media (max-width: 575px) {
  .post-content {
    font-size: 1rem;
    /* 16px อ่านง่ายที่สุดบนมือถือ */
    line-height: 1.75;
  }

  .post-content p {
    margin-bottom: 1.25rem;
  }

  .article-container {
    margin-top: 1rem;
    padding: 0 1rem 0 1rem;
  }

  .post-header {
    margin-bottom: 1.5rem;
  }
}

/* ส่วนท้ายโพสต์ (แท็ก & หมวดหมู่) */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer-tax-box {
  background-color: #fcfcfc;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.footer-tax-box:hover {
  background-color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.badge-custom-category, 
.badge-custom-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.badge-custom-category {
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--accent-color);
}

.badge-custom-category:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.badge-custom-tag {
  background-color: #f0f0f0;
  color: #666;
}

.badge-custom-tag:hover {
  background-color: #444;
  color: #fff;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}


/* การนำทางบทความ (Post Navigation) & ฟอร์มรหัสผ่าน (Password Form) - แบบปรับปรุงใหม่ */
.nav-refined-link {
  background-color: #fff;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.nav-refined-link:hover {
  border-color: var(--accent-color);
  background-color: #fdf7f7;
}

.nav-refined-link .nav-icon-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: var(--default-color);
  transition: all 0.3s ease;
}

.nav-refined-link:hover .nav-icon-box {
  background-color: var(--accent-color);
  color: #fff;
}

/* ปรับขนาดตัวอักษรและระยะขอบบนมือถือ */
@media (max-width: 767px) {
  .nav-refined-link {
    padding: 0.75rem !important;
  }
  .nav-refined-link .fw-bold {
    font-size: 0.8rem;
  }
  .nav-icon-box {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.8rem;
  }
}

/* บังคับคุมโทนสี Badge และจุดต่าง ๆ ในหน้า single ให้เป็นสีเว็บ */
.single .badge.bg-primary {
  background-color: var(--accent-color) !important;
  font-weight: 500;
}

.single .badge.bg-secondary {
  background-color: #f1f1f1 !important;
  color: #666 !important;
}

.edit-link a {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 500;
}

/* ปรับแต่งฟอร์มรหัสผ่าน (Simple & Clean) */
.password-form-minimal .form-control:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.1) !important;
}

.alert-error-box {
  animation: shake-error 0.5s ease-in-out;
}

@keyframes shake-error {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.btn-accent {
  transition: all 0.3s ease;
}

.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2) !important;
}


/* ==========================================================================
   31. อนิเมชัน (Animations / Keyframes)
   — รวมอนิเมชันทั้งหมดไว้ที่นี่เพื่อจัดการง่าย
   ========================================================================== */

/* ลอยขึ้นลง — ใช้กับ Badge */
@keyframes float-badge {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ลอยขึ้นลง — ใช้กับป้ายประสบการณ์ */
@keyframes experience-float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ลอยขึ้นลงพร้อมหมุน — ใช้กับรูปทรงตกแต่ง CTA */
@keyframes shapes-float {

  0%,
  100% {
    transform: scale(0.8) rotate(45deg) translateY(0);
  }

  50% {
    transform: scale(0.8) rotate(45deg) translateY(-20px);
  }
}


/* ==========================================================================
   ปิดอนิเมชันตกแต่งสำหรับผู้ที่ตั้งค่า "ลด Motion" ในระบบ
   — หมายเหตุ: ให้ความสำคัญกับความสวยงาม/Premium ตามที่ผู้ใช้แจ้ง
   ========================================================================== */
/* @media (prefers-reduced-motion: reduce) {
  *:not([data-aos]),
  *:not([data-aos])::before,
  *:not([data-aos])::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} */