/* ✅ ทำให้รูปภาพ responsive + กึ่งกลาง */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto; /* จัดกึ่งกลาง */
}

/* ✅ ป้องกันข้อความไม่ให้ล้นจอ */
body {
  word-wrap: break-word;
  overflow-x: hidden;
}

/* ✅ ฟอนต์ responsive */
body, p, td, span, a {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  body, p, td, span, a {
    font-size: 14px; /* มือถือฟอนต์เล็กลง */
    line-height: 1.4;
  }
}
/* ✅ Floating Social Icons - มุมขวาล่าง */
.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ปุ่มวงกลม */
.floating-icons a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-icons a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ไอคอน SVG ขนาด */
.floating-icons img {
  width: 28px;
  height: 28px;
}


body {
  font-family: 'Prompt', sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e4ec);
  margin: 0;
  padding: 0;
}

/* Section Container */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 60px auto;
  max-width: 1100px;
  padding: 0 20px;
}

/* Card Style */
.card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.4);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* Heading */
.card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* List */
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card ul li {
  margin: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: #444;
  position: relative;
  padding-left: 20px;
}

.card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00b894;
  font-size: 14px;
}

/* Contact */
.contact {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 50px auto;
  flex-wrap: wrap;
  max-width: 900px;
}

.contact-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.contact-item img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 10px;
}

.contact-item a {
  color: #00c300;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}
/* Container */
.slider {
  width: 80%;            /* 👈 ลดขนาดกรอบเหลือ 80% ของหน้าจอ */
  max-width: 700px;      /* 👈 จำกัดไม่ให้เกิน 700px */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Slides wrapper */
.slides {
  display: flex;
  width: 400%; /* 4 รูป */
  animation: slide 20s infinite; /* 4 รูป x 5 วินาที */
}

/* Each slide */
.slide {
  flex: 0 0 25%; /* 100% / 4 รูป */
}

.slide img {
  width: 100%;   /* 👈 รูปยังเต็มกรอบ */
  display: block;
  border-radius: 15px;
}

/* Keyframes for sliding */
@keyframes slide {
  0%   { transform: translateX(0%); }
  20%  { transform: translateX(0%); }

  25%  { transform: translateX(-25%); }
  45%  { transform: translateX(-25%); }

  50%  { transform: translateX(-50%); }
  70%  { transform: translateX(-50%); }

  75%  { transform: translateX(-75%); }
  95%  { transform: translateX(-75%); }

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