body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

.tfoot{
  background-color: #ffd700;
  height: 150px;
}

/* ----------------banner and slider---------------- */
.box-banner {
  height: 550px;
  background: linear-gradient(to bottom, #ffffff, #ffd700, #ffa200);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  border-bottom: 5px solid #cc8e00;
}

.box-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.box-img img{
  width: 80%;
  height: 90%;
  object-fit: cover; /* ✨ [แก้ไข] เพิ่ม object-fit เพื่อป้องกันภาพยืด */
}

.back-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #FFD90D;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.back-btn:hover {
  background: #FFA200;
}

/* ------------------------------------- */

.text-title h1 {
    color: #998208;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin: 40px 0 20px 0;
}

.text {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    text-align: left; /* ✨ [แก้ไข] เปลี่ยนเป็น left เพื่อให้อ่านง่ายขึ้น */
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ⚠️ [แก้ไข] เปลี่ยนจาก .dropcap เป็น .dropcap::first-letter */
.dropcap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 0.1em;
    font-weight: bold;
    color: #998208;
}

.text p {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: #5c4a47;
    margin: 0;
}

.text p + p {
    margin-top: 1.5em;
}


/* ==========================================================
   ✅ START: โค้ดสำหรับปรับปรุงดีไซน์มือถือ (Responsive)
   ========================================================== */

@media (max-width: 768px) {
  /* --- ส่วน Banner --- */
  .box-banner {
    height: auto;
    border-radius: 0;
    border-bottom: 3px solid #cc8e00;
  }

  .box-img img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .back-btn {
    top: 10px;
    left: 10px;
    font-size: 14px;
    padding: 6px 12px;
  }

  /* --- ส่วนของข้อความ --- */
  .text-title h1 {
    font-size: 1.8rem;
    margin: 30px 20px 15px 20px;
  }

  .text {
    margin: 0 15px 30px 15px;
    padding: 20px;
    text-align: left;
  }

  .text p {
    font-size: 1rem;
    line-height: 1.8;
  }
  
  /* ⚠️ [แก้ไข] เปลี่ยนจาก .dropcap เป็น .dropcap::first-letter */
  .dropcap::first-letter {
    font-size: 3.5rem;
  }
}