/* -------------------- GLOBAL -------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Kanit', sans-serif;
  background: #111 url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  color: #FF0000;
}
html, body {
  margin: 0;
}

main#main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  animation: fadeIn 1s ease-in;
}

/* ✅ Container สำหรับเนื้อหาหลัก */
.main-content-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  background: transparent;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* -------------------- STATUS BOX -------------------- */
.status-box {
  font-size: 1.1rem;
  margin-bottom: 30px;
  background: #1a1a1a;
  padding: 12px 20px;
  border-left: 4px solid #CC0000;
  color: #fff;
}

/* -------------------- HEADINGS -------------------- */
h2 {
  font-size: 1.8rem;
  color: #FF0000;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

/* -------------------- NEWS -------------------- */
.news-card {
  background: #1a1a1a;
  padding: 20px;
  border-left: 3px solid #CC0000;
  margin-bottom: 15px;
  color: #eee;
  transition: background 0.3s;
}
.news-card:hover {
  background: #222;
}

/* -------------------- LATEST NEWS SECTION -------------------- */
.latest-news-section {
  background: transparent;
  padding: 40px 0;
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* -------------------- NEWS SECTION -------------------- */
.news-section {
  background: transparent;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.news-header {
  text-align: center;
  height: 120px;
}

.news-header h2 {
  font-size: 32px;
  color: #ff0000;
  margin: 0 0 10px 0;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.news-header p {
  font-size: 16px;
  color: #ccc;
  margin: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

/* ✅ การ์ดตรงกลางขยับลงมา - เฉพาะส่วนข่าวสารล่าสุด */
.latest-news-section .news-card:nth-child(2) {
  transform: translateY(30px);
  z-index: 2;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(255, 215, 0, 0.4);
  border: 2px solid rgba(255, 0, 0, 0.3);
}

.latest-news-section .news-card:nth-child(2):hover {
  transform: translateY(25px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 12px 30px rgba(255, 215, 0, 0.6);
  border-color: #ff0000;
}

/* ✅ การ์ดตรงกลาง - Tag พิเศษ - เฉพาะส่วนข่าวสารล่าสุด */
.latest-news-section .news-card:nth-child(2) .news-tag {
  background: linear-gradient(135deg, #ff0000, #ff4444, #ff0000);
  animation: pulse-glow 2s ease-in-out infinite alternate;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

@keyframes pulse-glow {
  from { 
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    transform: scale(1);
  }
  to { 
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
  }
}

.news-card {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(255, 215, 0, 0.1);
  transform: translateY(0);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(255, 215, 0, 0.3);
  border-color: #ff0000;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff0000, #ff4444, #ff0000);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover::before {
  opacity: 1;
}

.news-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.9);
}

.news-card:hover .news-image img {
  transform: scale(1.08);
  filter: brightness(1);
}

.news-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #ff0000, #ff4444);
  color: #000;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(10px);
}

.news-content {
  padding: 25px;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-content h3 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 12px 0;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-content p {
  font-size: 14px;
  color: #bbb;
  margin: 0 0 18px 0;
  line-height: 1.6;
  opacity: 0.9;
}

.news-meta {
  margin-bottom: 15px;
}

.news-date {
  font-size: 12px;
  color: #ff0000;
  font-weight: 500;
  opacity: 0.8;
}

.news-read-more {
  width: 100%;
  background: linear-gradient(135deg, #ff0000, #ff4444);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: 'Kanit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.news-read-more:hover {
  background: linear-gradient(135deg, #ff4444, #ff0000);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.news-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.category-btn {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #ff0000;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Kanit', sans-serif;
}

.category-btn:hover {
  background: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.category-btn.active {
  background: #ff0000;
  color: #000;
  border-color: #ff0000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.no-news {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
}

/* -------------------- NEWS MODAL -------------------- */
.news-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.news-modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  padding: 0;
  border: 2px solid #ff0000;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.news-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ff0000;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.news-modal-close:hover {
  background: #ff0000;
  color: #000;
  transform: scale(1.1);
}

.news-modal-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.news-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #ff0000, #ff4444);
  color: #000;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.news-modal-body {
  padding: 30px;
}

.news-modal-body h2 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 15px 0;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.news-modal-date {
  color: #ff0000;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.news-modal-category {
  color: #ff0000;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
}

.news-modal-description {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
  .news-modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .news-modal-image {
    height: 200px;
  }
  
  .news-modal-body {
    padding: 20px;
  }
  
  .news-modal-body h2 {
    font-size: 20px;
  }
  
  .news-modal-description {
    font-size: 14px;
  }
  
  .news-modal-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
    width: 30px;
    height: 30px;
  }
}

/* -------------------- PROMO SECTION -------------------- */
.promo-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 20px;
  padding: 40px 20px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.promo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF0000, #CC0000, #FF0000);
  animation: shimmer 2s infinite;
}

.promo-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  background: linear-gradient(45deg, #FF0000, #FFF);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.promo-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.promo-slider img {
  width: 280px;
  height: auto;
  border-radius: 15px;
  border: 3px solid transparent;
  background: linear-gradient(45deg, #FF0000, #CC0000) border-box;
  transition: all 0.4s ease;
  object-fit: cover;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.promo-slider img:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
  border-color: #FF0000;
}

/* -------------------- VIDEO SECTION -------------------- */
.video-section {
  margin-top: 60px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF0000, #CC0000, #FF0000);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.video-carousel {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 10px;
  scrollbar-width: thin;
  scrollbar-color: #FF0000 #333;
}

.video-card {
  flex: 0 0 350px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 2px solid transparent;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  border-radius: 15px;
  padding: 20px;
  scroll-snap-align: start;
  color: #fff;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, #FF0000, #CC0000, #FF0000);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-card:hover::before {
  opacity: 1;
}

.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.video-card iframe {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.video-card:hover iframe {
  transform: scale(1.05);
}

.video-card p {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FF0000;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.video-card small {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
  line-height: 1.4;
  opacity: 0.8;
}

.video-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  background: linear-gradient(45deg, #FF0000, #FFF);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.iframe {
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}

/* -------------------- RESPONSIVE -------------------- */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .latest-news-section,
  .news-section {
    max-width: 800px;
  }
  
  .news-categories {
    gap: 12px;
    margin: 20px 0;
  }
  
  /* ✅ ปิดเอฟเฟกต์เลเยอร์ในหน้าจอกลาง - เฉพาะส่วนข่าวสารล่าสุด */
  .latest-news-section .news-card:nth-child(2) {
    transform: none;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(255, 215, 0, 0.1);
    border: 1px solid #333;
  }
  
  .latest-news-section .news-card:nth-child(2):hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(255, 215, 0, 0.3);
    border-color: #ff0000;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .latest-news-section {
    padding: 20px 15px;
    max-width: 100%;
  }
  
  .news-section {
    padding: 20px 15px;
    max-width: 100%;
  }
  
  .news-header h2 {
    font-size: 24px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 100%;
  }
  
  .news-categories {
    gap: 10px;
    margin: 20px 0;
  }
  
  .category-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .main-content-container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  /* ✅ ปิดเอฟเฟกต์เลเยอร์ในหน้าจอเล็ก - เฉพาะส่วนข่าวสารล่าสุด */
  .latest-news-section .news-card:nth-child(2) {
    transform: none;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(255, 215, 0, 0.1);
    border: 1px solid #333;
  }
  
  .latest-news-section .news-card:nth-child(2):hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(255, 215, 0, 0.3);
    border-color: #ff0000;
  }
}

/* -------------------- MARQUEE ประกาศ -------------------- */
.announcement-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  border-radius: 15px;
  padding: 15px 0;
  color: #FF0000;
  font-weight: 500;
  font-size: 1.1rem;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, #FF0000, #CC0000, #FF0000);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.announce-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 1.1rem;
  color: #FF0000;
  border-right: 2px solid #FF0000;
  height: 100%;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-left: 20px;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-marquee 20s linear infinite;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes scroll-marquee {
  0%   { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* -------------------- FILTER TABS -------------------- */
.promo-categories {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  color: #FF0000;
  border: 2px solid #FF0000;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: 'Kanit', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
  transition: left 0.6s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(45deg, #FF0000, #CC0000);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.filter-btn.active {
  border-color: #FFF;
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  display: inline-block;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  border: 2px solid #FF0000;
  box-shadow: 0 0 20px #FF000066;
}

/* ✅ ปุ่ม X อยู่มุมของรูป */
.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #FF0000;
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 8px #FF000088;
  transition: transform 0.2s ease;

  /** ✅ เพิ่ม z-index สูงๆ เข้าไปตรงนี้ */
  z-index: 10000;
}

.lightbox-close:hover {
  transform: scale(1.1);
}


.footer-credit {
  text-align: center;
  font-family: 'Kanit', sans-serif;
  color: #FF0000;
  background: rgba(0, 0, 0, 0.85);
  padding: 14px 0;
  font-size: 0.95rem;
  box-shadow: 0 -1px 6px #FF000033;
}

.footer-credit a {
  color: #00ccff;
  text-decoration: none;
  font-weight: bold;
}

.footer-credit a:hover {
  text-decoration: underline;
}



.hero-header {
  text-align: center;
  padding: 60px 20px 40px;
  margin-top: 0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.server-name {
  font-size: 4.2rem;
  font-family: 'Kanit', sans-serif;
  background: linear-gradient(45deg, #FF0000, #FFF, #FF0000);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 30px;
  position: relative;
  animation: glow 2s ease-in-out infinite alternate;
}

.server-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FF0000, transparent);
  border-radius: 2px;
}

@keyframes glow {
  from { text-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
  to { text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.3); }
}

.server-description {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-btn {
  display: inline-block;
  background: linear-gradient(45deg, #FF0000, #CC0000);
  color: #000;
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  background: linear-gradient(45deg, #FFF, #FF0000);
  color: #000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 35px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#particles-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}
.hero-header {
  position: relative;
  z-index: 2;
}


.promo-slider img,
.video-card,
.lightbox-close,
.download-btn,
.filter-btn {
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.video-card:hover,
.promo-slider img:hover,
.download-btn:hover,
.filter-btn:hover {
  will-change: transform;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

img, .video-card, .download-btn, .filter-btn, .lightbox-close {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes scroll-marquee {
  0%   { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

@media (max-width: 600px) {
  .video-card,
  .promo-slider img {
    transition: none;
    transform: none !important;
    will-change: auto;
  }
}

.zombie-right {
  position: fixed;
  right: 0;
  bottom: 0;
  height: 300px; /* ปรับขนาดได้ตามต้องการ */
  z-index: 9999;
  pointer-events: none; /* ไม่ให้บังปุ่มอื่น */
  user-select: none;
}
.social-sidebar.right {
  position: fixed;
  top: 45%;
  right: 12px; /* ✅ ขยับออกจากขอบจอ */
  transform: translateY(-50%);
  background: #111;
  border: 1px solid #FF0000;
  border-radius: 40px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  box-shadow: 0 0 8px #FF000055;
}

.social-sidebar.right a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  width: 34px;  /* ✅ เล็กลง */
  height: 34px;
  border-radius: 50%;
  color: #FF0000;
  font-size: 16px; /* ✅ มินิมอล */
  text-decoration: none;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.2);
  transition: all 0.2s ease;
}

.social-sidebar.right a:hover {
  background: #FF0000;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 8px #FF000088;
}


@media screen and (max-width: 768px) {
  .wrapper {
    padding: 20px 12px;
  }

  .status-box,
  .news-card,
  .video-card {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  .promo-slider {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .promo-slider img {
    width: 100%;
    max-width: 180px;
  }

  .video-card {
    flex: 0 0 100%;
    max-width: 90%;
    margin: 0 auto;
  }

  .video-card iframe {
    height: 180px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-header {
    padding: 24px 12px;
  }

  .server-name {
    font-size: 2.4rem;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }

  .server-description {
    font-size: 1rem;
  }

  .download-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .announcement-bar {
    flex-direction: column;
    padding: 8px 0;
    font-size: 0.95rem;
  }

  .announce-icon {
    border: none;
    padding-bottom: 4px;
  }

  .lightbox-content img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .social-sidebar.right {
    right: 6px;
    padding: 6px 4px;
    gap: 6px;
  }

  .social-sidebar.right a {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .zombie-right {
    height: 200px;
  }
}

/* รองรับหน้าจอเล็กมาก */
@media screen and (max-width: 480px) {
  .promo-slider img {
    max-width: 160px;
  }

  .video-card iframe {
    height: 160px;
  }

  .server-name {
    font-size: 2rem;
  }

  .wallet-box span {
    font-size: 0.85rem;
  }

  .user-box-btn span {
    display: none;
  }

  .dropdown-content a {
    font-size: 0.9rem;
  }
}

/* -------------------- PROMO SECTION NEW -------------------- */
.promo-section-new {
  background: #1a1a1a;
  border-radius: 0;
  padding: 40px 20px;
  margin: 40px 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  border: none;
}

/* ✅ Header ใหม่ */
.promo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 20px;
}

.promo-header h2 {
  font-size: 1.8rem;
  color: #FF0000;
  margin: 0;
  border: none;
  padding: 0;
  font-weight: 600;
}

.promo-header a {
  color: #FF0000;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.promo-header a:hover {
  text-decoration: underline;
}

/* ✅ เส้นแบ่ง */
.promo-separator {
  height: 1px;
  background: #333;
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* ✅ ปุ่มเลือกหมวดหมู่ใหม่ */
.promo-categories-new {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  flex-wrap: wrap;
  background: #222;
  padding: 15px 20px;
  border-radius: 0;
}

.filter-btn-new {
  background: transparent;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Kanit', sans-serif;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn-new .category-count {
  background: rgba(255, 215, 0, 0.2);
  color: #FF0000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.filter-btn-new.active .category-count {
  background: rgba(0, 0, 0, 0.3);
  color: #000;
  border-color: rgba(0, 0, 0, 0.5);
}

.filter-btn-new:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #FF0000;
}

.filter-btn-new.active {
  background: #FF0000;
  color: #000;
  font-weight: 600;
}

/* ✅ รูปโปรโมชั่นใหม่ */
.promo-slider-container {
  position: relative;
  overflow: hidden;
  padding: 0 70px; /* เพิ่มพื้นที่สำหรับปุ่มเลื่อน */
}

.promo-slider-new {
  display: flex;
  gap: 0; /* ลบ gap เพื่อให้การ์ดติดกัน */
  transition: transform 0.5s ease;
  padding: 0;
  overflow: hidden;
  width: 100%;
}

/* ปุ่มเลื่อนซ้าย-ขวา */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 2px solid rgba(255, 215, 0, 0.6);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF0000;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background: linear-gradient(145deg, #FF0000, #FFC107);
  color: #000;
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border-color: #FF0000;
}

.slider-btn:active {
  box-shadow: 
    0 2px 10px rgba(255, 215, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.slider-btn-left {
  left: 10px;
}

.slider-btn-right {
  right: 10px;
}

/* เพิ่มเอฟเฟกต์เงาและแสง */
.slider-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.slider-btn:hover::before {
  opacity: 1;
}

/* จุดบอกตำแหน่ง (dots) */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  padding: 10px 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
}

.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.dot.active {
  background: linear-gradient(135deg, #FF0000, #FFC107);
  transform: scale(1.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.dot.active::before {
  background: #000;
  transform: translate(-50%, -50%) scale(0.8);
}

.dot:hover {
  background: rgba(255, 215, 0, 0.6);
  transform: scale(1.1);
  border-color: rgba(255, 215, 0, 0.8);
}

.promo-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: #1e3a8a;
  border: none;
  flex: 0 0 100%; /* แสดงเต็มความกว้าง */
  min-width: 100%;
  max-width: 100%;
  width: 100%; /* เพิ่ม width เพื่อให้แน่ใจ */
  opacity: 1;
  transform: scale(1);
}

.promo-card:hover {
  transform: none;
  box-shadow: none;
}

/* ซ่อนการ์ดอื่นๆ ที่ไม่ใช่การ์ดแรกในแต่ละ container */
.promo-slider-new .promo-card:not(:first-child) {
  display: none;
}

/* แสดงการ์ดที่ active เท่านั้น */
.promo-slider-new .promo-card.active {
  display: block;
}

.promo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: none;
  display: block;
}

.promo-card:hover img {
  transform: none;
}

/* ✅ Overlay ข้อมูล */
.promo-overlay {
  position: static;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  color: white;
}

.promo-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-category {
  background: none;
  color: #fff;
  padding: 0;
  border-radius: 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: none;
}

.promo-date {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
}

.promo-description {
  color: #fff;
  font-size: 1rem;
  margin: 10px 0;
  line-height: 1.4;
}

.promo-views {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  margin: 10px 0;
}

.promo-views i {
  color: #ccc;
}

.promo-read-more {
  color: #00ff00;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.promo-read-more:hover {
  text-decoration: underline;
}

/* ✅ Responsive */
@media screen and (max-width: 768px) {
  .promo-section-new {
    padding: 30px 15px;
    margin: 30px 0;
  }
  
  .promo-header h2 {
    font-size: 1.5rem;
  }
  
  .promo-categories-new {
    padding: 10px 15px;
  }
}

/* -------------------- GAMEPLAY SECTION -------------------- */
.gameplay-section {
  padding: 60px 20px;
  margin: 40px 0;
}

.gameplay-header {
  text-align: center;
  margin-bottom: 50px;
}

.gameplay-header h2 {
  font-size: 2.5rem;
  color: #FF0000;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.gameplay-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.gameplay-card {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 30px 25px;
  text-align: center;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.gameplay-card:hover {
  transform: translateY(-5px);
  border-color: #FF0000;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.card-icon {
  margin-bottom: 20px;
}

.card-icon i {
  font-size: 3rem;
  color: #d9ff00;
}

.gameplay-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.gameplay-card p {
  color: #ccc;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* -------------------- CALL TO ACTION SECTION -------------------- */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 20px;
  margin: 40px 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: #FF0000;
  margin: 0 0 20px 0;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.cta-content p {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 40px 0;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.register-btn {
  background: #FF0000;
  color: #000;
}

.register-btn:hover {
  background: #FFC000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.download-btn {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.download-btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive for new sections */
@media screen and (max-width: 768px) {
  .gameplay-header h2 {
    font-size: 2rem;
  }
  
  .gameplay-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  /* Carousel responsive */
  .promo-slider-container {
    padding: 0 60px;
  }
  
  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  
  .slider-btn-left {
    left: 8px;
  }
  
  .slider-btn-right {
    right: 8px;
  }
  
  .promo-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
  
  .filter-btn-new {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .promo-categories-new {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-btn-new {
    text-align: center;
  }
  
  /* Carousel mobile responsive */
  .promo-slider-container {
    padding: 0 50px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .slider-btn-left {
    left: 5px;
  }
  
  .slider-btn-right {
    right: 5px;
  }
  
  .promo-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
  
  .slider-dots {
    margin-top: 15px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}
