.section-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* ทำให้รู้สึกว่าเป็นปุ่ม */
  padding: 20px;
  border-radius: 10px;
}

/* hover effect */
.section-container:hover {
  transform: translateY(-5px) scale(1.02); /* ยกขึ้นเล็กน้อย + ขยาย */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* เงา */
  background-color: #f8f8f8; /* เปลี่ยนพื้นหลังเล็กน้อย */
}

.image-section img {
  max-width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover effect เฉพาะรูป */
.section-container:hover{
  transform: scale(1.05); /* ขยายภาพเล็กน้อย */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.product-card {
  flex: 1 1 calc((60% - 40px) / 3);
  overflow: hidden;
  border-radius: 10px;
  background-color: #fff;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover effect */
.product-card:hover {
  transform: translateY(-5px) scale(1.02); /* ยกขึ้นเล็กน้อย + ขยาย */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* เงา */
}

/* ชื่อสินค้า */
.product-card h3 {
  color: #0074c7;
  margin-top: 10px;
}

/* รายละเอียด */
.product-card p {
  font-size: 14px;
  color: #555;
}

.article-card {
  border-radius: 10px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.article-card img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px 10px 0 0; /* ให้มุมบนโค้ง */
}

/* hover effect */
.article-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ชื่อและข้อความ */
.article-card h5 {
  color: #0074c7;
  margin-top: 10px;
}

.article-card p {
  font-size: 14px;
  color: #555;
}

.youtube-section .video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.youtube-section .video-item {
  flex: 1 1 300px; /* กำหนดขนาดขั้นต่ำ */
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background-color: #000; /* placeholder */
}

.youtube-section .video-item iframe {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover effect */
.youtube-section .video-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.youtube-section .video-item:hover iframe {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ปุ่ม social icon ปกติ */
.social-icon {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* YouTube hover */
.social-icon.yt:hover {
  content: url("../images/socials/YT01.png");
}

/* Facebook hover */
.social-icon.fb:hover {
  content: url("../images/socials/FB01.png");
}

/* Instagram hover */
.social-icon.ig:hover {
  content: url("../images/socials/IG01.png");
}

/* X hover */
.social-icon.x:hover {
  content: url("../images/socials/X01.png");
}
