    body {
      margin: 0;
      font-family: 'Sarabun', sans-serif;
      line-height: 1.6;
      color: #333;
    }

header {
      background-color: #b72222;
      color: #b72222;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      z-index: 1000;
    }

    header h1 {
      margin: 0;
      font-size: 1.5rem;
      text-align: ce;

    }

    nav {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    nav a,
    nav .dropdown > a {
      color: #ffffff;
      text-decoration: none;
      font-weight: 500;
      padding: 0.5rem 0.75rem;
      border-radius: 5px;
      transition: background 0.3s, color 0.3s;
    }

    nav a:hover,
    nav .dropdown > a:hover {
      background: #910303;
      color: #fff;
    }

    /* Dropdown */
    .dropdown {
      position: relative;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background: #b72222;
      min-width: 180px;
      top: 100%;
      left: 0;
      z-index: 999;
      flex-direction: column;
      border-radius: 5px;
      box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    }

    .dropdown-content a {
      padding: 0.5rem 1rem;
      display: block;
      white-space: nowrap;
      color: #fff;
      transition: background 0.3s;
    }

    .dropdown-content a:hover {
      background: #b72222;
    }

    .dropdown:hover .dropdown-content {
      display: flex;
    }

    /* Search Bar */
    .search-box {
      position: relative;
    }

    .search-box input {
      padding: 0.4rem 2.5rem 0.4rem 0.8rem;
      border-radius: 20px;
      border: none;
      outline: none;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .search-box input:focus {
      width: 200px;
      box-shadow: 0 0 5px rgba(255,255,255,0.6);
    }

    .search-box button {
      position: absolute;
      right: 5px;
      top: 50%;
      transform: translateY(-50%);
      border: none;
      background: none;
      color: #c17a2f;
      font-size: 1rem;
      cursor: pointer;
    }

    /* ปุ่ม Hamburger */
    .menu-toggle {
      display: none;
      font-size: 1.8rem;
      cursor: pointer;
      background: none;
      border: none;
      color: #fff;
    }

    /* HERO */
    .hero {
      position: relative;
      width: 100%;
      height: 70vh;
      overflow: hidden;
    }

    .hero .slides {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.8s ease;
    }

    .hero .slides img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      flex-shrink: 0;
    }

    /* overlay สีดำโปร่ง */
    .hero::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }

    /* ข้อความกลางรูป */
    .hero-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: #fff;
      text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
      max-width: 80%;
      z-index: 2;
    }

    .hero-text h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .hero-text p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
    }

    .hero-text .btn {
      display: inline-block;
      background-color: #71bf45;
      color: #fff;
      padding: 0.75rem 1.5rem;
      border-radius: 30px;
      text-decoration: none;
      font-weight: bold;
      transition: background 0.3s;
    }

    .hero-text .btn:hover {
      background-color: #5ca036;
    }

    /* ปุ่มเลื่อนซ้ายขวา */
    .hero .prev,
    .hero .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(0,0,0,0.5);
      color: #fff;
      border: none;
      padding: 0.75rem 1rem;
      cursor: pointer;
      font-size: 1.5rem;
      border-radius: 50%;
      z-index: 2;
    }

    .hero .prev { left: 20px; }
    .hero .next { right: 20px; }

    /* Section */
    section {
      padding: 3rem 1rem;
      max-width: 1100px;
      margin: 0 auto;
    }

    section h3 {
      text-align: left;
      color: #d80d0d;
      font-size: 2rem;
      margin-bottom: 2rem;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .card {
      background-color: #f9f9f9;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .card img {
      width: 100%;
      height: 150px;
      object-fit: cover;
    }

    .card-content {
      padding: 1rem;
    }

    .card-content h4 {
      margin-top: 0;
      color: #71bf45;
    }

    footer {
      background-color: #6f5840;
      color: #fff;
      text-align: center;
      padding: 2rem 1rem;
    }

    footer p {
      margin: 0.5rem 0;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .hero { height: 50vh; }
      .hero-text h2 { font-size: 1.5rem; }
      .hero-text p { font-size: 1rem; }
      .hero .prev, .hero .next {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
      }

      nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: #b72222;
        width: 200px;
        padding: 1rem;
      }

      nav.show {
        display: flex;
      }

      .menu-toggle {
        display: block;
      }
    }

    @media (max-width: 480px) {
      .hero { height: 40vh; }
    }

    .grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* สร้าง 3 คอลัมน์ที่ความกว้างเท่ากัน */
  gap: 10px; /* เว้นระยะห่างระหว่างคอลัมน์ */
}

.justify-text {
    width: 600px; /* กำหนดความกว้างที่แน่นอนเพื่อให้เห็นผลชัดเจน */
    text-align: justify; /* จัดข้อความให้ชิดซ้าย-ขวา */
    background-color: #e9e9e9;
    padding: 20px;
    line-height: 1.5; /* เพื่อให้ข้อความอ่านง่ายขึ้น */
  }

  .content {
  width: 700px; /* กำหนดความกว้างของกล่องข้อความ เพื่อให้เห็นผลการกระจายตัวได้ชัดเจน */
  padding: 20px;
  background-color: #f7f7f7;
  border: 1px solid #ddd;
}

.p10 {
  text-align: justify; /* จัดข้อความให้ชิดซ้าย-ขวา */
  line-height: 1; /* ปรับระยะห่างระหว่างบรรทัดเพื่อให้อ่านง่ายขึ้น */
}

.large-text {
  font-size: 16px;
  font-weight: 900; /* กำหนดความหนาเป็นพิเศษ (ค่าสูงสุด) */
}

.small-image-right {
  float: right; /* ทำให้รูปภาพลอยไปทางขวา */
  width: 100px;  /* กำหนดความกว้างของรูปภาพให้เล็ก (สามารถปรับได้ตามต้องการ) */
  height: auto;  /* ให้ความสูงปรับตามอัตราส่วนของรูปภาพโดยอัตโนมัติ */
  margin-left: 15px; /* เพิ่มระยะห่างด้านซ้ายของรูปภาพ เพื่อไม่ให้ชิดข้อความเกินไป */
  margin-bottom: 10px; /* เพิ่มระยะห่างด้านล่างของรูปภาพ */
}

/* เคลียร์ float เพื่อไม่ให้มีผลกระทบกับองค์ประกอบอื่น ๆ ด้านล่าง (ถ้ามี) */
.content-with-image::after {
  content: "";
  display: table;
  clear: both;
}
