/* ==========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================== */
:root {
  --bg-dark: #1e1f22;
  --bg-card: #2b2d31;
  --bg-card-hover: #313338;
  --nav-bg: #111214;
  --accent-purple: #5865f2;
  --text-main: #f2f3f5;
  --text-muted: #949ba4;
  --font-family: 'Kanit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
}

/* ==========================================
   2. NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  /* สีพื้นหลังโปร่งแสงเล็กน้อย */
  background-color: rgba(255, 255, 255, 0.01); 
  /* ทำให้ฉากหลังที่อยู่ใต้ Navbar เบลอ */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* รองรับ Safari */
  
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-right: 2rem;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
}

/* ==========================================
   3. HERO BANNER SLIDER
   ========================================== */
.hero-section {
  margin-top: 60px;
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2rem;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(30, 31, 34, 0.2) 0%, rgba(30, 31, 34, 1) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
}

/* ==========================================
   4. LAYOUT & SECTION HEADERS
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--accent-purple);
  border-radius: 2px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-all {
  background-color: transparent;
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-all:hover {
  background-color: var(--accent-purple);
  color: #fff;
}

.arrow-btn {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.arrow-btn:hover {
  background-color: var(--bg-card-hover);
}

/* ==========================================
   5. CAROUSEL / GRID SYSTEM
   ========================================== */
.slider-wrapper {
  position: relative;
  margin-bottom: 4rem;
}

.grid-container {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.grid-container::-webkit-scrollbar {
  display: none;
}

.grid-container .card {
  flex: 0 0 calc(25% - 0.9rem);
  min-width: 250px;
}

.grid-container.show-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  overflow-x: visible;
}

.grid-container.show-all .card {
  flex: none;
  width: 100%;
}

/* ==========================================
   6. CARD ITEM STYLE (Hover Overlay Effect)
   ========================================== */
.card {
  position: relative;
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  height: 320px; 
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 1rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(43, 45, 49, 0) 0%, rgba(43, 45, 49, 0.95) 40%, rgba(43, 45, 49, 1) 100%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card:hover .card-content {
  transform: translateY(0);
  opacity: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.card-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.card-tag {
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-main);
}

/* ส่วนไอคอนดวงตา Views Counter */
.card-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto; /* ดันปุ่มไปชิดขวาสุด */
}

.card-views svg {
  stroke: var(--text-muted);
  transition: stroke 0.2s ease;
}

.card:hover .card-views {
  color: var(--text-main);
}

.card:hover .card-views svg {
  stroke: var(--accent-purple);
}

/* ==========================================
   7. DETAIL PAGE STYLES
   ========================================== */
.detail-container {
  margin-top: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-btn:hover { color: var(--text-main); }

.detail-cover {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-body {
  color: #dbdee1;
  font-size: 1.05rem;
  line-height: 1.8;
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* ==========================================
   SERVER PROMOTION SECTION STYLES
   ========================================== */
.card-facebook { --card-color: #00a2ff; }
.card-tiktok   { --card-color: #ff0050; }
.card-streamer { --card-color: #df09fc; }
.card-youtube  { --card-color: #ff0000; }

.promo-banner-box {
  background: linear-gradient(135deg, #09131d 0%, #002b49 35%, #4a1e00 70%, #1a0a00 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 32px rgba(0, 162, 255, 0.15), 
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.promo-header {
  text-align: center;
  margin-bottom: 2rem;
}

.promo-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.promo-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.promo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-btn {
  background-color: #00a2ff;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-top: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 162, 255, 0.3);
}

.promo-btn:hover {
  background-color: #0082cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 162, 255, 0.5);
}

.promo-card-inner {
  position: relative;
  width: 100%;
  background-color: #1e1f22;
  border: 2px solid #00a2ff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 162, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 162, 255, 0.6);
}

.promo-bg-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.85);
  
}

.promo-bg-text {
  position: absolute;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  letter-spacing: 1px;
}

 .promo-info-box {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 1rem;

  

  border-top: 1px solid rgba(251, 243, 243, 0);

} 

.promo-info-left {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  color: #949ba4;
  text-transform: uppercase;
  line-height: 1;
}

.info-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.info-type {
  font-size: 0.85rem;
  font-weight: 600;
  color: #00a2ff;
  line-height: 1;
}

.promo-info-right {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.promo-card .promo-btn {
  background-color: var(--card-color);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.promo-card .promo-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.promo-card .promo-card-inner {
  width: 100%;
  background-color: #1e1f22;
  border: 2px solid var(--card-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px var(--card-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card .promo-card-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--card-color);
}

.promo-card .info-type {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card-color);
  line-height: 1;
}

/* ==========================================
   DROPDOWN MENU STYLES
   ========================================== */
.dropdown {
  position: relative;
}

.arrow-down {
  font-size: 0.75rem;
  margin-left: 3px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.dropdown:hover .arrow-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background-color: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  color: #ffffff;
  background-color: var(--bg-card-hover);
  padding-left: 1.5rem;
}

/* ==========================================
   HOME PAGE EXCLUSIVE STYLES
   ========================================== */
.home-page-body {
  overflow-x: hidden;
}

.home-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 4rem 2rem 4rem;
}

.home-overlay {
  background: radial-gradient(circle at left, rgba(30, 31, 34, 0.4) 0%, rgba(17, 18, 20, 0.34) 100%);
}

.home-content-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
}

.home-left-box {
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.home-video-wrapper {
  width: 100%;
  background: var(--bg-card);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.home-btn-group {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.home-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-discord {
  background-color: #5865f2;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
  background-color: #4752c4;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.btn-website {
  background-color: #ff7700;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
}

.btn-website:hover {
  background-color: #cc4700;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 157, 0, 0.6);
}

@media (max-width: 768px) {
  .home-hero {
    padding: 80px 1.5rem 2rem 1.5rem;
    justify-content: center;
  }

  .home-left-box {
    max-width: 100%;
  }

  .home-btn-group {
    flex-direction: column;
  }
}

/* ==========================================
   OUR VIDEO SECTION STYLES
   ========================================== */
#video-section {
  margin-bottom: 4rem;
}

.video-grid-container .video-card {
  flex: 0 0 calc(33.333% - 0.8rem);
  min-width: 300px;
}

.video-grid-container.show-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  overflow-x: visible;
}

.video-grid-container.show-all .video-card {
  flex: none;
  width: 100%;
}

.video-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-title {
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
}

/* ==========================================
   HOW TO JOIN SECTION STYLES
   ========================================== */
.how-to-join-section {
  padding: 5rem 1rem;
  background-color: #161719;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.join-header {
  text-align: center;
  margin-bottom: 3rem;
}

.join-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.join-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.join-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.2rem 1.5rem 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 119, 0, 0.3);
}

.step-badge {
  position: absolute;
  top: -15px;
  background: linear-gradient(135deg, #ff7700, #ff4500);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.step-desc strong {
  color: #fff;
}

kbd {
  background-color: #111214;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85rem;
  color: #ff7700;
  font-family: inherit;
}

.btn-discord-step {
  margin-top: auto;
  background-color: #5865f2;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-discord-step:hover {
  background-color: #4752c4;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.copy-box {
  margin-top: auto;
  width: 100%;
  background-color: #111214;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 6px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.copy-box code {
  font-family: monospace;
  color: #00ffcc;
  font-size: 0.85rem;
  word-break: break-all;
}

.copy-btn {
  background-color: #ff7700;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background-color: #e06800;
}




/* ==========================================
   BUTTON STYLE UPDATES
   ========================================== */
.btn-how-to-play {
  background-color: #ff7700;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 119, 0, 0.4);
}

.btn-how-to-play:hover {
  background-color: #e06800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 119, 0, 0.6);
}

/* ==========================================
   HOW TO JOIN SECTION STYLES
   ========================================== */
.how-to-join-section {
  padding: 5rem 1rem;
  background-color: #161719;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.join-header {
  text-align: center;
  margin-bottom: 3rem;
}

.join-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.join-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Steps Grid System */
.join-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.2rem 1.5rem 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 119, 0, 0.3);
}

/* Badge STEP 1, 2, 3 */
.step-badge {
  position: absolute;
  top: -15px;
  background: linear-gradient(135deg, #ff7700, #ff4500);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.step-desc strong {
  color: #fff;
}

kbd {
  background-color: #111214;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85rem;
  color: #ff7700;
  font-family: inherit;
}

/* ปุ่มใน Step 2 */
.btn-discord-step {
  margin-top: auto;
  background-color: #5865f2;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-discord-step:hover {
  background-color: #4752c4;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* กล่อง คัดลอก IP ใน Step 3 */
.copy-box {
  margin-top: auto;
  width: 100%;
  background-color: #111214;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 6px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.copy-box code {
  font-family: monospace;
  color: #00ffcc;
  font-size: 0.85rem;
  word-break: break-all;
}

.copy-btn {
  background-color: #ff7700;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background-color: #e06800;
}

/* ==========================================
   RESPONSIVE DESIGN (จอขนาดเล็ก & มือถือ)
   ========================================== */

/* 1. แท็บเล็ตและหน้าจอขนาดกลาง (<= 992px) */
@media (max-width: 992px) {
  .hero-section {
    height: 320px;
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .grid-container .card {
    flex: 0 0 calc(33.333% - 0.8rem);
  }

  .video-grid-container .video-card {
    flex: 0 0 calc(50% - 0.6rem);
  }
}

/* 2. สมาร์ตโฟน (<= 768px) */
@media (max-width: 768px) {
  /* Dynamic Responsive Navbar */
  .navbar {
    padding: 0 1rem;
    justify-content: space-between;
  }

  .nav-brand {
    margin-right: 0;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #111214;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    border: none;
    text-align: center;
    padding: 0.5rem 0 0 0;
  }

  .dropdown-item {
    padding: 0.4rem 0;
  }

  .dropdown-item:hover {
    padding-left: 0;
  }

  /* Hero & Main Content Area */
  .hero-section {
    height: 250px;
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .container {
    padding: 1.5rem 1rem 3rem 1rem;
  }

  .promo-banner-box {
    padding: 1.2rem 1rem;
  }

  .promo-title {
    font-size: 1.6rem;
  }

  .promo-card-grid {
    grid-template-columns: 1fr;
  }

  /* Slider Cards Layout */
  .grid-container .card {
    flex: 0 0 calc(70% - 0.5rem);
    min-width: 200px;
    height: 280px;
  }

  .video-grid-container .video-card {
    flex: 0 0 calc(85% - 0.5rem);
    min-width: 240px;
  }

  /* Detail Pages Responsive */
  .detail-container {
    margin-top: 70px;
    padding: 1rem;
  }

  .detail-cover {
    height: 220px;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .detail-body {
    padding: 1.2rem;
    font-size: 0.95rem;
  }
}

/* 3. สมาร์ตโฟนขนาดเล็ก (<= 480px) */
@media (max-width: 480px) {
  .grid-container .card {
    flex: 0 0 calc(85% - 0.5rem);
  }

  .video-grid-container .video-card {
    flex: 0 0 100%;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .btn-all {
    padding: 3px 8px;
    font-size: 0.75rem;
  }

  .arrow-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
}

/* ==========================================
   MOBILE MENU TOGGLE BTN
   ========================================== */
.menu-toggle {
  display: none; /* ซ่อนเป็นค่าเริ่มต้น (บนจอ PC) */
  user-select: none;
}

/* แสดงผลเฉพาะบนหน้าจอขนาดเล็ก */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* โชว์ 3 ขีดเฉพาะบนมือถือ */
  }
}

 .footer {

  background-color: #111214;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding: 1rem 1rem;

  color: var(--text-muted);

  text-align: center;

} 

.link_info {

  color: #7efbff;

  text-decoration: underline;

  transition: color 0.2s;

}