body {
  margin: 0;
  font-family: 'Noto Sans Thai', sans-serif;
  background: url('../images/kvbg2.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

/* === เอฟเฟกต์แสงกระพริบ === */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
  }
  50% {
    box-shadow: 0 0 15px #66ffff, 0 0 30px #66ffff, 0 0 45px #66ffff;
  }
}

.glow-effect {
  animation: glow-pulse 1.5s infinite ease-in-out;
}

.top-menu {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 0;
}

.menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-left a img {
  margin: 0 60px;
  height: 65px;
  transition: transform 0.1s;
}

.menu-left a img:hover {
  transform: scale(1.1);
}

.logo-header {
  text-align: center;
  padding: 30px 0 40px;
}

.logo {
  max-width: 300px;
  height: auto;
  animation: pulse-logo 2s infinite ease-in-out;
}
/* ===== เอฟเฟกต์แสงฟ้าแบบไม่กระพริบ ===== */
.blue-glow {
  filter: drop-shadow(0 0 5px #00ffff) drop-shadow(0 0 10px #00ffff);
}

/* เอฟเฟกต์แสงกระพริบ */
.glow-menu {
  filter: drop-shadow(0 0 10px #00ffff) drop-shadow(0 0 20px #00ffff);
  transition: 0.3s ease-in-out;
}

@keyframes glow-flicker {
  0%, 100% {
    filter: drop-shadow(0 0 4px #00ccff) drop-shadow(0 0 8px #00ccff); /* ฟ้าอ่อน */
  }
  50% {
    filter: drop-shadow(0 0 10px #00ffff) drop-shadow(0 0 20px #00ffff); /* ฟ้าสว่าง */
  }
}

@keyframes pulse-logo {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.logo {
  max-width: 250px;
  height: auto;
  animation: pulse-logo 2s infinite ease-in-out;
}

.main-area {
  max-width: 1700px;
  margin: 10px auto;
  display: flex;
  flex-direction: row-reverse;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

.side-banner {
  width: 250px;
  margin-top: -350px;
}

.side-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 250px;
}

.side-left img {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100%;
  display: block;
}

.online-status-panel {
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 260px;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  margin-top: -230px;
  margin-left: 0px;
  border: 2px solid #00FFFF;
  animation: glow-pulse 1.5s infinite ease-in-out;
}

.online-box-item {
  padding: 2px 0px;
  border-radius: 6px;
  font-size: 12px;
  color: #00FF00;
  display: flex;
  justify-content: space-between;
}

.online-label {
  font-weight: bold;
  font-size: 12px;
  color: #00FF99;
}

.online-value {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-green {
  color: #4cd964;
}

.news-box {
  flex: 5;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.news-bg {
  background: url('../images/eddga-studio_09.png') no-repeat center center;
  background-size: cover;
  width: 200vw;
  margin-left: calc(-10vw + 10%);
  padding: 80px 200px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 60px;
  border-radius: 0px;
  min-height: 600px;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  /*margin-top: -80px;*/ /* หรือ -60px, -80px ตามต้องการ */
}

.news-bg h2 {
  font-size: 0px;
  margin-top: 0px;
  margin-bottom: 10px;
  /*border-bottom: 10px solid #000;*/
  padding-bottom: 30px;
}

.news-bg ul {
  list-style: none;
  padding-left: 0;
  margin: 50px 0;
}

.news-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0px 40px;
  margin-bottom: 35px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  font-size: 16px;
}

.news-text {
  font-size: 14px;
  flex: 1;
  color: #fff;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1;
}

.news-time {
  font-size: 11px;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-time i {
  color: #C82729;
}

.side-banner {
  width: 250px;
}

.banner-buttons {
  background: url('../images/eddga-studio_10.png') no-repeat top left;
  background-size: contain;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 30px;
}

.main-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 80px;
}

.main-buttons a img {
  height: 60px;
  width: auto;
  transition: transform 0.2s;
}

.main-buttons a img:hover {
  transform: scale(1.05);
}

.server-image-container {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-top: 120px;
}

.server-image-container img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.server-info-overlay {
  position: absolute;
  bottom: 115px;
  left: 0px;
  right: 15px;
  color: #fff;
  padding: 8px;
  font-size: 13px;
  border-radius: 6px;
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}

.overlay-buttons {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 38px;
  align-items: center;
}

.overlay-buttons a {
  margin: 0;
  padding: 0;
}

.overlay-buttons a img {
  width: 140px;
  margin: 0;
  padding: 0;
  display: block;
  transition: transform 0.2s;
}

.overlay-buttons a img:hover {
  transform: scale(1.05);
}

.download-page {
  text-align: center;
  margin-top: 150px;
  color: white;
}

.download-button {
  background-color: #f0c674;
  color: black;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.2s;
}

.download-button:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 768px) {
  .main-area {
    flex-direction: column;
    align-items: center;
  }
  .side-banner, .side-left {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
  }
  .online-status-panel {
    width: 100%;
    margin-top: 10px;
  }
  .news-bg {
    padding: 30px 20px;
    min-height: auto;
  }
  .banner-buttons {
    height: auto;
    padding-top: 10px;
  }
  .main-buttons {
    margin-top: 30px;
  }
}

.server-detail-box {
  position: absolute;
  top: 140px;
  left: 30px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #00FFCC;
  border-radius: 10px;
  padding: 15px;
  width: 220px;
  z-index: 10;
  font-family: 'Noto Sans Thai', sans-serif;
  color: #fff;
  animation: glow-pulse 1.5s infinite ease-in-out;
}

.server-detail-box .panel-title {
  font-size: 16px;
  font-weight: bold;
  color: #00FF99;
  margin-bottom: 10px;
  text-align: center;
}

.server-detail-box .info-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.server-detail-box .label {
  color: #00FF99;
  font-weight: bold;
}

.server-detail-box .value {
  font-weight: bold;
  color: #FF0066;
}
