@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
body {
  margin: 0;
  padding: 70px 0 0 0;
  font-family: 'Kanit', sans-serif;
  font-size: 18px;

  background-image: url('/img/BG-UsedCar.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  }
  
.container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
  font-family: 'Kanit', sans-serif;
  color: #333;
}

.intro-heading {
  font-size: 28px;
  color: #005baa;
  margin-bottom: 20px;
}

.intro-text {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 40px;
}

.main-heading {
  font-size: 26px;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
  position: relative;
}

.curly-arrow {
  display: flex;
  justify-content: center;
  animation: floatArrow 2s ease-in-out infinite;
  margin-bottom: 40px;
}

@keyframes floatArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.buy-step-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 60px auto;
  font-family: 'Kanit', sans-serif;
}

.buy-step-card {
  flex: 1 1 30%;
  min-width: 200px;
  background-color: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.buy-step-card:hover {
  transform: translateY(-5px);
}

.buy-step-card h2 {
  color: #007bff;
  margin-bottom: 15px;
  font-size: 20px;
}

.buy-step-card p {
  font-size: 16px;
  line-height: 1.6;
}

.btn-search {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-search:hover {
  background-color: #0056b3;
}

.line-button {
  display: inline-block;
  background-color: #00c300;
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s;
}
.line-button:hover {
  background-color: #00a800;
}
.line-button i {
  font-size: 24px;
  color: #ffffff;
}

.social-button {
display: inline-block;
padding: 10px 15px;
border-radius: 8px;
color: white;
text-decoration: none;
font-weight: bold;
margin-right: 10px;
  gap: 10px; /* ระยะห่างระหว่างปุ่ม */
  flex-wrap: wrap; /* ถ้าจอเล็กเกินจะขึ้นบรรทัดใหม่ */
    margin-top: 10px;
transition: background-color 0.3s;
}

.social-button.facebook {
display: inline-block;
background-color: #1877f2;
  padding: 10px 15px;
  border-radius: 10px;
}

.social-button.tiktok {
background-color: #000000;
  padding: 10px 15px;
  border-radius: 10px;
}

.social-button:hover {
opacity: 0.8;
}


/* Responsive สำหรับหน้าจอเล็ก (เช่น มือถือ) */
@media (max-width: 768px) {
  .buy-step-container {
    flex-direction: column;
    align-items: center;
  }

  .buy-step-card {
    width: 90%;
  }
}
.intro-section {
  text-align: center;
  margin-bottom: 40px;
}

.intro-heading {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: bold;
}

.best {
  color: red;
  font-size: 48px;
  font-weight: 900;
}

.services {
  color: #333;
  font-size: 32px;
  font-weight: 600;
}

.underline-curve {
  margin-top: -10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.intro-text-2 {
  font-size: 24px; /* หรือใช้ 2em, 150% ก็ได้ */
  font-weight: bold; /* ถ้าต้องการให้ตัวหนา */
  color: #333; /* สีข้อความ */
  margin-top: 10px;
  margin-bottom: 290px; /* เพิ่มระยะห่างจากข้อความถึงการ์ด */
  position: relative;
  z-index: 2; /* ให้ข้อความอยู่ด้านหน้า */
}

.zigzag-container {
  max-width: 1200px;
  margin: 70px auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-layout {
  position: relative;
  width: 500px;
  height: 500px;
  margin-top: 180px; /* เลื่อนการ์ดทั้งหมดลงด้านล่าง */
  margin: 50px auto;
  gap: 30px;
  
}

.circle-layout img {
  width: 250px;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 50px auto;
  z-index: 2;

}

.card-circle {
  position: absolute;
  width: 200px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

/* วางการ์ดรอบๆ เป็นวงกลม 6 ใบ */
.card1  { top: -25%;   left: 50%; }
.card2  { top: 15%;   left: 115%; }
.card3  { top: 70%;   left: 115%; }
.card4  { top: 120%;  left: 50%; }
.card5  { top: 70%;   left: -10%; }
.card6  { top: 15%;   left: -10%; }

/* Responsive มือถือ: วางเรียงแนวตั้ง */
@media (max-width: 768px) {
  .circle-layout {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-circle {
    position: static;
    margin: 15px 0;
    transform: none;
    width: 90%;
  }

  .circle-layout img {
    margin: 30px 0;
    position: static;
    transform: none;
    gap: 30px;
  }
}
/* ไอคอนแบบวงกลม */
.icon-circle {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: #07AFB1; /* สีพื้นหลังของวงกลม */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-circle i {
  color: white;
  font-size: 24px;
}