/* -------------------------------- */
/* Reset และ Global ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Tahoma, sans-serif;
  background: url('../images/background-image.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* -------------------------------- */
/* Header + Hero ------------------- */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.logo {
  width: 300px;
}
.logo img {
  height: 180px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 0 6px #ffc107); /* ✅ เงาทองติดตัวโลโก้ */
}

.hero-header {
  width: 500px;
  height: 300px;
  overflow: visible; /* ✅ ต้องไม่ตัดเงาภายนอก */
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.hero-header img {
  height: 100%;
  width: auto;
  display: block;
  margin-left: 80px;

  /* ✅ เอฟเฟกต์แสงทอง + hover scale */
  filter: drop-shadow(0 0 12px rgba(255, 204, 0, 0.4));
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.hero-header img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 16px rgba(255, 204, 0, 0.6)); /* เพิ่ม glow ตอน hover */
}

.logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 16px rgba(255, 204, 0, 0.6));
}


/* -------------------------------- */
/* ปรับปุ่มเข้าสู่ระบบ LINE และ สมัครสมาชิก */
.auth-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center; /* ✅ จัดกลาง */
  gap: 8px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00c300;
  padding: 10px 20px;           /* ✅ ใหญ่ขึ้น */
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(0, 195, 0, 0.5); /* ✅ แสงเขียวอ่อน */
  transition: transform 0.2s ease-in-out;
  max-width: 260px;             /* ✅ เพิ่มความกว้าง */
}

.btn-line:hover {
  transform: scale(1.05);
}

.btn-line img {
  height: 20px;
  margin-right: 6px;
}
.btn-line span {
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}

.btn-register {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  max-width: 200px;

  background: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
}
.btn-register:hover {
  background: rgba(255,193,7,0.1);
}


/* -------------------------------- */
/* กล่องรวม label + แถบข้อความวิ่ง */
.scroll-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 800px;
  margin: 10px auto 20px auto;
}

/* ป้าย NEWS : */
.scroll-label {
  font-weight: bold;
  color: #ffc107;
  font-size: 0.95rem;
  flex-shrink: 0;
  padding: 6px 0;
}

/* กล่องข้อความวิ่ง */
.scroll-banner {
  flex: 1;
  max-width: 650px;             /* ✅ ขนาดพอดีเมื่อรวม label */
  background: #111;
  border-radius: 6px;
  padding: 6px 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* ข้อความที่วิ่ง */
.scroll-text {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  animation: scrollText 12s linear infinite;
}

@keyframes scrollText {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* ✅ News Wrapper ปรับปรุงใหม่ */
.tabs-wrapper {
  background: #111;
  padding: 20px;
  max-width: 800px;
  min-width: 800px;
  min-height: 640px; /* รองรับได้ 2 แถวข่าว */
  margin: 40px auto;
  border-radius: 10px;

  /* ✅ ขอบและเงาสีทอง */
  border: 2px solid #ffc107;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);

  box-sizing: border-box;
}

/* ✅ ขยับหัวข้อข่าวสารล่าสุดลงมา */
.news-title {
  margin-top: 10px;
  margin-bottom: 20px;
}

/* ✅ เส้นแบ่งแนวนอนระหว่าง Tabs และ Title */
.gold-divider {
  height: 2px;
  background: linear-gradient(to right, #ffcc33, #ffcc00, #ffcc33);
  margin: 16px 0;
  border-radius: 2px;
}


.tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tab {
  background: none;
  border: none;
  color: #ccc;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
}
.tab.active {
  background: #ffc107;
  color: #000;
  font-weight: bold;
}
.tab.recent {
  margin-left: auto;
  font-weight: bold;
  color: #ffc107;
}
.tab .plus {
  margin-left: 6px;
}

/* News Grid */
.news-title {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.news-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}
.news-card {
  width: 180px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  overflow: hidden;
}
.news-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.news-details {
  padding: 10px 12px;
  text-align: left;
}
.news-date {
  font-size: 0.8rem;
  color: #ccc;
}
.news-title {
  font-weight: bold;
  color: #ffc107;
  margin-top: 4px;
}
.news-link {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #fdd835;
}

/* -------------------------------- */
/* Action Buttons ------------------ */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}
.btn-download,
.btn-patch {
  background: #ffc107;
  color: #000;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  min-width: 160px;
  cursor: pointer;
}
.btn-download:hover,
.btn-patch:hover {
  background: #e6ac00;
}

/* -------------------------------- */
/* Footer -------------------------- */
.footer {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 60px;
}
.footer a {
  color: #ffc107;
  text-decoration: none;
}

/* -------------------------------- */
/* Responsive (Mobile โน้ต) --------- */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .logo img {
    height: 120px;
  }

  .hero-header {
    width: 100%;
    justify-content: center;
    align-items: center;
    height: auto;
  }

  .hero-header img {
    height: 280px;
    margin-left: 0;
  }

  .auth-buttons {
    align-items: center;
    width: 100%;
  }

  .btn-line, .btn-register {
    width: 100%;
    justify-content: center;
  }

  .news-wrapper {
    width: 100%;
    padding: 16px;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    box-sizing: border-box;
  }
}

/* ปรับ sub-menu */
.main-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0px auto 0px; /* 👈 ลดช่องว่างด้านบน/ล่าง */
}


.menu-btn {
  padding: 10px 20px;
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  border: 2px solid #ffc107;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(255,193,7,0.3);
  background: transparent;
}
.menu-btn:hover {
  background: rgba(255,193,7,0.1);
  color: #fff;
}

/* สำหรับสมัครสมาชิก */
.form-wrapper {
  background: #111;
  padding: 20px;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}
.card-center { margin: 0 auto; }

.form-message {
  background: #222;
  border: 1px solid #ffc107;
  padding: 10px;
  margin: 10px auto;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  max-width: 500px;
}

.register-form-area {
  margin-top: 20px;
}

.register-iframe {
  width: 100%;
  height: 900px; /* ปรับความสูงตามความเหมาะสม */
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
  background: #1e1e1e;
}

