* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kanit', sans-serif; /* หรือฟอนต์ที่ต้องการ */
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* --- Logo --- */
.logo {
  text-align: center;
  padding: 15px 0;
  background-color: #fff;
}

.logo img {
  width: 100%;
  height:auto ;
  display: block;
}

/* --- ข้อความวิ่ง marquee --- */
.font-run {
  background-color: #009688;
  color: white;
  font-size: 1rem;
  overflow: hidden;
  white-space: nowrap;
}

.marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- เมนูนำทาง (header) --- */
header {
  background-color: #004d40;
}

.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav ul li {
  position: relative;
}

.nav ul li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav ul ul {
  display: none; /* ซ่อนเมนูย่อยเริ่มต้น */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #00695c; /* สีเดียวกับเมนูหลัก */
  min-width: 180px;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 999;
}

.nav ul ul li {
  width: 100%;
}

.nav ul ul li a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

/* Hover สีเมนู */
.nav ul li a:hover,
.nav ul ul li a:hover {
  background-color: #004d40;
  color: #f1f1f1;
}
/* --- Banner รูปใหญ่ --- */
.banner-top img {
  width: 100%;
  height: auto;
  display: block;
}
.bg-section {
  background: url(../picture/background/3e2e85114e8a707a4200aae20ec1dceb.jpg);
  padding: 30px;
}

.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.phuket {
  width: 50%;
  padding: 20px 40px 20px 60px; /* เพิ่ม padding-left ลด padding-right */
  box-sizing: border-box;
}

.phuket h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.phuket h2 {
  font-size: 20px;
  color: #250778;
  margin-bottom: 10px;
}

.phuket p {
  font-size: 16px;
  color: #25046b;
  margin: 3px 0;
}

.card {
  width: 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  padding: 20px 60px 20px 40px; /* เพิ่ม padding-right ลด padding-left */
  box-sizing: border-box;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .phuket, .card {
    width: 100%;
    padding: 20px 40px; /* เท่ากันทั้งซ้ายขวา */
  }

  .card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .phuket, .card {
    padding: 15px 20px;
  }

  .card {
    grid-template-columns: 1fr;
  }

  .phuket h1 {
    font-size: 20px;
  }

  .phuket h2 {
    font-size: 18px;
  }

  .phuket p {
    font-size: 14px;
  }
}

/* --- ประชาสัมพันธ์ (hero) --- */
.hero {
  background: #e0f2f1;
  padding: 20px;
  margin-top: 30px;
}

.hero-title h1 {
  text-align: center;
  color: #004d40;
}

.hero-con {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.hero-img {
  flex: 1 1 60%; /* หรือสัดส่วนที่คุณต้องการ */
  
  display: flex;           /* เปิด flex */
  justify-content: center; /* จัดรูปกลางแนวนอน */
  align-items: center;     /* จัดรูปกลางแนวตั้ง */
  min-width: 300px;        /* ปรับตามต้องการ */
  height: 100%;            /* ให้กล่องสูงเต็ม */
  padding: 10px;           /* ใส่ padding ถ้าต้องการ */
  box-sizing: border-box;
}

.hero-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* ปรับขนาดรูปให้เต็มกล่องโดยไม่เสียสัดส่วน */
  display: block;
}

.hero-con {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* จัดแนวตั้งกลาง */
  justify-content: center; /* จัดแนวนอนกลาง */
}

.hero-info {
  flex: 1 1 40%;
  padding: 20px 30px;
  box-sizing: border-box;
  text-align: center; /* จัดข้อความให้อยู่ตรงกลาง */
}

.hero-info h2 {
  margin-bottom: 10px;
  color: #00796b;
}

.hero-info p {
  margin-bottom: 15px;
}

.hero-btn {
  background-color: #251068;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.hero-btn:hover {
  background-color: #004d40;
}

/* --- Blog Section --- */
.blog {
  padding: 40px 20px;
  background: #f9f9f9;
}

.blog-con {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding: 10px;
}

.blog-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.blog-item h3 {
  font-size: 16px;
  margin: 10px 0 5px 0;
  color: #333;
}

.blog-item p {
  font-size: 14px;
  color: #555;
  padding: 0 10px 10px 10px;
}

.hero-btn {
  background-color: #251068;
  color: #fff;
  padding: 4px 10px; /* เล็กลงจากเดิม */
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-size: 13px; /* เล็กลงเพื่อสมส่วน */
  transition: background-color 0.3s;
  margin-bottom: 10px;
}

.hero-btn:hover {
  background-color: #3a22a1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .blog-item h3 {
    font-size: 14px;
  }

  .blog-item p {
    font-size: 12px;
  }

  .hero-btn {
    font-size: 12px;
    padding: 3px 8px;
  }
}


/* --- Picture Section --- */
.picture-title h5,
.food-title h5 {
  padding: 20px;
  color: #004d40;
  text-align: center;
}

.picture-con,
.picture-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 0 20px 20px;
}

.picture-item,
.picture-info {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  width: 280px;
  overflow: hidden;
  text-align: center;
}

.picture-item img,
.picture-info img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.picture-item p.text,
.picture-info p.text {
  padding: 10px 15px;
  font-size: 1rem;
  color: #333;
}
.picture-info {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
}

.picture-info img {
  width: 100%; /* 🔥 รูปกว้างเต็ม container */
  height: auto; /* ความสูงปรับตามอัตราส่วนรูป */
  display: block;
  object-fit: cover; /* ถ้าต้องการครอบตัดให้เต็ม container */
  border-radius: 8px; /* มุมโค้งเล็กน้อย */
}
.blog-btn {
  display: inline-block;
  margin: 10px 0 15px;
  padding: 8px 15px;
  background: #00796b;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.blog-btn:hover {
  background: #004d40;
}

/* --- Facebook Page --- */
.fb-page {
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}
.food-con {
  display: flex;
  justify-content: center; /* จัดแนวนอนกลาง */
  align-items: center;     /* จัดแนวตั้งกลาง (ถ้ามีความสูงกำหนด) */
  flex-direction: column;  /* เรียงจากบนลงล่าง */
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.food-con .fb-page {
  max-width: 100%;
}

.food-con img {
  width: 100%;   /* รูปเต็มจอมือถือ */
  height: auto;
  border-radius: 8px;
}


/* --- Video Clips --- */
.video {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.clip-vdo iframe {
  width: 100%;
  max-width: 560px;
  height: 314px;
  border: none;
  border-radius: 10px;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 20px 10px;
  margin-top: 30px;
}

.footer-top-con {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-top-item {
  flex: 1 1 250px;
}

.footer-top-item h6 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #ffd700;
}

.footer-top-item p {
  font-size: 14px;
}

.footer-top-item iframe {
  width: 100%;
  height: auto;
  border: none;
}

/* Responsive navbar */
@media (max-width: 768px) {
  .nav ul li {
    display: block;
    text-align: left;
  }

  .nav ul li ul {
    position: static;
  }
}

/* --- Responsive --- */

/* มือถือเล็ก */
@media (max-width: 480px) {
  .content {
    flex-direction: column;
  }

  .phuket,
  .card {
    width: 100% !important;
  }

  .hero-con {
    flex-direction: column;
    align-items: center;
  }

  .blog-con {
    flex-direction: column;
    align-items: center;
  }

  .blog-item {
    width: 100% !important;
  }

  .picture-con,
  .picture-bottom,
  .footer-top-con {
    flex-direction: column;
    align-items: center;
  }

  .picture-item,
  .picture-info,
  .footer-top-item {
    width: 90%;
  }

  .video {
    flex-direction: column;
  }

  .clip-vdo iframe {
    max-width: 100%;
    height: auto;
  }
}

/* แท็บเล็ต */
@media (min-width: 481px) and (max-width: 768px) {
  .content {
    flex-wrap: wrap;
  }

  .phuket,
  .card {
    flex: 1 1 48%;
  }

  .blog-item {
    width: 48% !important;
  }

  .picture-item,
  .picture-info {
    width: 45%;
  }
}

/* PC */
@media (min-width: 769px) {
  .content {
    flex-wrap: nowrap;
  }

  .phuket,
  .card {
    flex: 1 1 45%;
  }

  .blog-item {
    width: 300px !important;
  }

  .picture-item,
  .picture-info {
    width: 280px;
  }
}
.slider-wrapper {
  max-height: 100vh; /* ใช้เต็มความสูงจอ */
  overflow-y: auto; /* เลื่อนแนวตั้งได้ */
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
}

.slider {
  display: flex;          /* เรียงภาพในแนวนอน */
  gap: 10px;              /* เว้นระยะห่างระหว่างภาพ */
  overflow-x: auto;       /* ให้เลื่อนซ้าย-ขวาได้เมื่อภาพเกินขนาด */
  scroll-behavior: smooth; /* เลื่อนเนียน */
  padding: 10px 0;
}

.slider img {
  flex: 0 0 auto;        /* ไม่ยืดขยาย, ขนาดตามภาพจริง */
  max-height: 200px;     /* กำหนดความสูงภาพ (ปรับได้ตามต้องการ) */
  border-radius: 8px;    /* ขอบโค้งนิดหน่อย */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.slider img:hover {
  transform: scale(1.05); /* ซูมภาพเมื่อ hover */
}

/* ปรับความสูงรูปตามขนาดหน้าจอ */
@media (max-width: 480px) {
  .slider img {
    max-height: 750px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .slider img {
    max-height: 750px;
  }
}

@media (min-width: 769px) {
  .slider img {
    max-height: 750px;
  }
}
.news {
  background-color: #f5f5f5; /* สีพื้นหลังอ่อน */
  padding: 20px;
}

.news-con {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive */
  gap: 20px;
}

.news-item {
  background: rgb(4, 38, 107);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.news-item h1 {
  font-size: 1.2rem;
  color: #f1eded;
  margin: 0;
}

.news-item a {
  text-decoration: none;
  color: inherit;
}