/* style.css */

body {
  background-color: #f5f5f5;
}

/* ส่วนของการ์ดโปรไฟล์ และการ์ดล็อกอิน */
.profile-card,
.login-card {
  width: 90%;
  max-width: 600px; /* ขยายขนาดรองรับจอใหญ่ขึ้น */
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* รูปโปรไฟล์ */
.profile-img {
  width: 20vw;
  max-width: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* ปุ่มไลน์ */
.btn-line {
  background-color: #00c300;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-line:hover {
  background-color: #00a800;
}

/* ไอคอนในปุ่ม */
.line-icon {
  width: 24px;
  height: 24px;
}

/* Responsive สำหรับจอเล็ก */
@media (max-width: 576px) {
  .profile-card,
  .login-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  .btn-line {
    font-size: 1rem;
    padding: 0.65rem;
  }
  .profile-img {
    width: 30vw;
  }
}

.hero-section {
  height: 100vh;
  background: url("../images/tb-awareness-desktop.png") center/cover no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* เพิ่ม overlay แบบมืดเล็กน้อย */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* ข้อความอยู่บน overlay */
.hero-section > div {
  position: relative;
  z-index: 2;
}

/* สำหรับหน้าจอเล็ก: ใช้รูปแนวตั้ง */
@media (max-width: 768px) {
  .hero-section {
    background: url("../images/tb-awareness-mobile.png") center/cover no-repeat;
  }
}

.bounce {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

html {
  scroll-behavior: smooth;
}

.scroll-down-btn:hover {
  animation: bounce 2s infinite;
}

.scroll-down-btn {
  animation: bounce 2s infinite;
  animation-delay: 1s;
}

/* สำหรับ radio แบบมีพื้นหลังสี */
.form-check.bg-opacity-10 {
  transition: background-color 0.3s ease;
  font-size: 1.25rem;
}

/* ปุ่มใหญ่ เห็นชัด */
.btn-lg {
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
}

/* หัวข้อกลางสวยๆ */
h2.text-primary {
  font-size: 2rem;
  color: #007bff !important;
  margin-bottom: 1.5rem;
}



