body,
html {
  height: 100%;
  margin: 0;
  font-family: "Sarabun", sans-serif;
  background-color: #000;
}

/* ===== พื้นหลัง Panel ===== */
.panel {
  min-height: 100vh;
  background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.85),
      rgba(105, 2, 2, 0.7),
      rgba(105, 2, 2, 0.3),
      rgba(255, 155, 155, 0)
    ),
    url("https://t4.ftcdn.net/jpg/00/17/33/59/360_F_17335975_wezHs72ORL3CY2dFLVi9XtLx4XDOgZBT.jpg")
      no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  color: white;
}

.top-container {
  padding: 1rem 2rem;
}

nav {
  padding: 1rem 2rem;
}

nav h2 {
  margin: 0;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.btn-login {
  background: white;
  border-color: #d50000;
  color: #d50000;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #d50000;
  color: white;
}

.bottom-container {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  gap: 2rem;
}

.hero .text-area {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: 1.2rem;
  color: #f1f1f1;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.btn-main {
  background: white;
  border: 2px solid #d50000;
  color: #d50000;
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-main:hover {
  background: #d50000;
  color: white;
}

/* ===== Carousel ===== */
.carousel-inner img {
  border-radius: 10px;
  max-height: 600px;
  object-fit: cover;
}

.carousel {
  flex: 1;
  max-width: 550px;
  margin: 0 20px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .bottom-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .carousel-inner img {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .top-container {
    display: none; /* ซ่อน header บน mobile */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
