@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. GLOBAL SETUP & FONTS
   ========================================================================== */

@font-face {
  font-family: 'Sukhumvit Set';
  src: url('../fonts/SukhumvitSet-Medium.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: #081522;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

/* การตั้งค่าฟอนต์มาตรฐานสำหรับหน้าเว็บทั้งหมด */
body {
  font-family: 'Sukhumvit Set', 'Sarabun', sans-serif;
  font-weight: 600; /* น้ำหนักเริ่มต้น (Regular) */
  line-height: 1.8;
}

/* กลุ่มหัวข้อ (จะดึงไฟล์ SukhumvitSet-Bold มาใช้โดยอัตโนมัติ) */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.dropdown-item,
.prof-big-title {
  font-weight: 700;
}

c1,
.nd-body {
  font-weight: 100;
}

/* ==========================================================================
   3. GRID SYSTEM (1920px Center Lock)
   ========================================================================== */
.grid-layout-container {
  display: grid;
  grid-template-columns: 340px 1240px 340px;
  width: 1920px;
  margin: 0 auto;
  height: 100%;
}

.grid-center {
  position: relative;
  height: 100%;
  width: 1240px;
  margin: 0 auto;
}

/* ==========================================================================
   4. NAVBAR & HEADER
   ========================================================================== */
.special-icon-img {
  width: 30px;
  height: 30px;
}
.nav-icon-sm {
  width: 28px;
  height: 28px;
}
.custom-nav {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 2500;
  display: flex;
  justify-content: center;
}

.nav-pill-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 10px;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
  padding: 10px 25px;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 0px;
}
.special-icons-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-links-group {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 10px;
  font-size: 14px;
}
.custom-link {
  gap: 10px;
  color: white !important;
  text-decoration: none !important;
  padding: 5px 15px;
  font-size: 14px;
  transition: 0.3s;
  display: flex;
  align-items: center;
}
.nav-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hamburger-btn {
  display: none;
}

/* ==========================================================================
   5. DROPDOWN MENUS (Apple Glassmorphism Style)
   ========================================================================== */
/* Text Links Dropdown */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-item-dropdown .caret {
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.6);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.nav-item-dropdown:hover .caret {
  transform: rotate(180deg);
  border-top-color: #14799e;
}

.nav-dropdown-popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  min-width: 150px;
  padding: 10px !important;

  /* เอฟเฟกต์ Glass */
  background: rgb(10 27 42) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
}
.nav-dropdown-popup::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 25px;
  background: transparent;
}
.nav-item-dropdown:hover .nav-dropdown-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.nav-dropdown-popup .dropdown-item {
  color: #dddddd !important;
  font-size: 14px;
  padding: 10px 15px;
  text-align: left;
  font-weight: 600;
  border-radius: 8px !important;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
}
.nav-dropdown-popup .dropdown-item:hover {
  background: rgba(75, 183, 222, 0.25);
  color: #ffffff !important;
  transform: translateX(4px);
}

/* Icon Popups */
.custom-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.dropdown-popup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  padding: 15px !important;

  background: rgb(10 27 42) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
}
.dropdown-popup::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 25px;
  background: transparent;
}
.custom-dropdown:hover .dropdown-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.account-popup .desktop-login-btn {
  background-color: #0d526f !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  text-align: center;
  font-size: 15px;
  text-decoration: none;
  width: 100%;
  transition: 0.2s;
  white-space: nowrap;
}
.account-popup .desktop-login-btn:hover {
  background-color: #14799e !important;
  transform: translateY(-1px);
}

.dropdown-item,
.desktop-plain-link {
  color: #ffffff !important;
  border-radius: 8px !important;
  text-align: center;
  font-size: 15px;
  text-decoration: none;
  transition: 0.2s;
  display: block;
  padding: 10px 15px;
  width: 100%;
}
.dropdown-item:hover,
.desktop-plain-link:hover {
  background: rgba(75, 183, 222, 0.25);
  color: #ffffff !important;
}

.lang-popup {
  min-width: 72px;
  padding: 12px 10px !important;
  gap: 0;
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.96) !important;
}
.lang-popup .language-switch-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  min-height: 42px;
  padding: 8px 4px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
}
.lang-popup .language-switch-btn:hover,
.lang-popup .language-switch-btn.active {
  background: transparent !important;
  color: #fff !important;
  transform: none;
}
.account-popup {
  min-width: 160px;
}
.dropdown-divider {
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 5px auto;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.slider-section {
  position: relative;
  margin-top: -92px;
  width: 100%;
}
.slider-bgs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: #000000;
}
.bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
  filter: brightness(0.6);
}
.bg-img.active {
  opacity: 1;
}

.hero-main-area {
  height: calc(100% - 80px);
  display: flex;
  align-items: center;
  padding-top: 92px;
  position: relative;
}
.headline-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 0;
}
.hero-title {
  position: absolute;
  top: 40%;
  left: 0;
  transform: none;
  width: 100%;
  max-width: 800px;
  color: white;
  font-size: 58px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  opacity: 0;
  visibility: hidden;
  text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
  text-align: left;
  transition: all 0.5s ease;
}
.hero-title.active {
  opacity: 1;
  visibility: visible;
}

.character-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
  overflow: visible;
}
.hero-char {
  position: absolute;
  right: 0;
  bottom: -80px;
  width: 600px;
  height: auto;
  opacity: 0;
  visibility: hidden;
  object-fit: contain;
  object-position: bottom right;
  transform: translateX(150px);
  z-index: 10;
  will-change: transform, opacity;
  image-rendering: -webkit-optimize-contrast;
}
.hero-char.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ==========================================================================
   7. HERO SUB NAVIGATION 
   ========================================================================== */
.hero-sub-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 50;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hero-sub-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  z-index: 1;
}

.nav-container-wrapper {
  display: flex;
  width: 1920px;
  height: 100%;
}
.nav-spacer-left,
.nav-spacer-right {
  width: 340px;
  height: 100%;
  background: transparent;
  pointer-events: none;
  flex-shrink: 0;
}
.nav-main-controls {
  width: 1240px;
  display: flex;
  height: 100%;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.nav-tabs-group {
  display: flex;
  flex-grow: 1;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  text-align: center;
  position: relative;
}
.nav-tab:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -4px 0px #14799e;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(75, 183, 222, 0.1), transparent);
  pointer-events: none;
}
.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-arrow {
  width: 90px;
  height: 100%;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   8. NEWS & UPDATES (HOMEPAGE)
   ========================================================================== */
.news-section {
  background-color: #ffffff;
  color: #091725;
}
.news-section .row {
  --bs-gutter-x: 60px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}
.news-col {
  width: 33.333% !important;
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  height: 30px;
}
.news-header h2 {
  font-size: 24px;
  margin: 0;
}

.plus-icon {
  width: 24px;
  height: 24px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.news-divider {
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
  margin-bottom: 20px;
}
.news-list-container {
  height: 220px;
  overflow: hidden;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(220px / 5);
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 15px;
  position: relative;
  left: 0;
  gap: 20px;
}
.news-list li a {
  font-size: 14px;
  color: #000000bd;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.news-list li a:hover {
  color: #14799e;
}
.news-date {
  color: #999999;
  font-size: 14px;
  flex-shrink: 0;
  text-align: right;
  min-width: 70px;
  white-space: nowrap;
}

.news-list li:hover {
  background-color: #e7f5fa;
  padding-left: 25px;
}
.news-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #0d526f;
  opacity: 0;
  transition: all 0.3s ease;
}
.news-list li:hover::before {
  opacity: 1;
}
.news-list li:hover .news-date {
  color: #0d526f;
}
.news-list li:last-child {
  border-bottom: none;
}

.news-banner-container {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.banner-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: transform 0.5s ease;
}
.banner-img.active {
  opacity: 1;
  z-index: 2;
}
.news-banner-container:hover .banner-img.active {
  transform: scale(1.05);
}

.banner-dots {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot.active {
  background-color: #ffffff;
  width: 20px;
  border-radius: 10px;
}
.dot:hover {
  background-color: #ffffff;
}

/* ==========================================================================
   9. PROFESSIONS SECTION
   ========================================================================== */
.professions-section {
  position: relative;
  width: 100%;
  height: 1080px;
  background: #000;
  overflow: hidden;
}
.prof-bg-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.prof-bg-main {
  width: 100%;
  height: 130%;
  object-fit: cover;
  filter: brightness(0.3);
  top: -10%;
  position: absolute;
  will-change: transform;
}
.prof-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 50%,
    transparent 0%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.prof-title-layer {
  position: absolute;
  top: 150px;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}
.prof-big-title {
  font-size: 125px;
  color: #fff;
  line-height: 1;
  margin: 0;
  position: absolute;
  left: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
}

.prof-char-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.prof-char-img {
  height: 95% !important;
  object-fit: contain;
  margin-left: 280px;
  margin-top: 40px;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.9));
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  will-change: transform, opacity;
}

.prof-content-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.prof-info-box {
  position: absolute;
  left: 0;
  top: 380px;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: auto;
  text-shadow:
    0 0 15px rgba(0, 0, 0, 1),
    0 0 5px rgba(0, 0, 0, 1);
  will-change: transform, opacity;
}

.prof-difficulty {
  font-size: 20px;
  color: #fff;
  margin: 0;
}
.prof-description {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.prof-video-box {
  width: 280px;
  height: 160px;
  top: 80px;
  background: #091725;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.prof-video-box:hover {
  transform: scale(1.03);
  border-color: rgba(75, 183, 222, 0.5);
}
.prof-video-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prof-video-box:hover img {
  transform: scale(1.1);
}

.play-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 55px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}
.prof-video-box:hover .play-trigger {
  background: rgba(75, 183, 222, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 20px rgba(75, 183, 222, 0.6);
}
.play-trigger svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.prof-controls-wrapper {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 100;
}
.prof-glass-bar {
  width: 1100px;
  height: 85px;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}
.prof-icons-scroll-container {
  width: 100%;
  overflow: visible;
  display: flex;
  justify-content: center;
}
.prof-icons-scroll-container::-webkit-scrollbar {
  display: none;
}
.prof-icons-list {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.prof-nav-icon {
  width: 50px;
  height: 50px;
  opacity: 0.45;
  cursor: pointer;
  flex-shrink: 0;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity;
}
.prof-nav-icon.active {
  opacity: 1;
  transform: scale(1.4);
  filter: drop-shadow(0 0 15px rgba(75, 183, 222, 0.8))
    drop-shadow(0 0 5px rgba(75, 183, 222, 0.5));
  z-index: 10;
}
.prof-nav-icon:hover:not(.active) {
  opacity: 0.8;
  transform: translateY(-5px);
}

.glass-circle-btn {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: rgba(7, 29, 47, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 101;
}
.glass-circle-btn:hover {
  background: rgba(75, 183, 222, 0.3);
  border-color: rgba(75, 183, 222, 0.6);
  box-shadow: 0 0 20px rgba(75, 183, 222, 0.4);
}
.glass-circle-btn:active {
  transform: scale(0.9);
  background: rgba(75, 183, 222, 0.6);
}

/* ==========================================================================
   10. FEATURES SECTION
   ========================================================================== */
.features-section {
  position: relative;
  padding-top: 130px;
  padding-bottom: 0;
  background: #000000;
  overflow: hidden;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
  opacity: 0;
}
.feature-item.reverse {
  flex-direction: row-reverse;
}
.feature-text {
  flex: 1;
  z-index: 10;
}
.feature-text h2 {
  font-size: 36px;
  color: rgb(255, 255, 255);
  line-height: 1.3;
  margin-top: 15px;
  margin-bottom: 20px;
}
.feature-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}
.feat-badge {
  font-size: 14px;
  color: #76d8ef;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.feature-img {
  flex: 1.3;
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 5;
}

/* ==========================================================================
   11. GSAP VIDEO SHOWCASE & CTA
   ========================================================================== */
.showcase-container {
  position: relative;
  width: 100%;
}
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000000;
}
.headline {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  color: #ffffff;
  z-index: 10;
  text-align: center;
  font-size: 3.5rem;
  pointer-events: none;
}
.headline span {
  color: #76d8ef;
  font-size: 2.5rem;
}
.video-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.clip1 {
  opacity: 1;
  transform: scale(0.4);
  border-radius: 20px;
}
.titles-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 15;
  pointer-events: none;
}
.video-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  font-size: 4rem;
  color: #ffffff;
}
.video-title span {
  font-size: 2rem;
  color: #ffffff;
}
.scroll-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
}

.cta-download {
  position: relative;
  padding: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #06121e;
  border-top: 1px solid #1c3445;
  overflow: hidden;
}
.cta-download h2 {
  font-size: 2rem;
  color: #f0f0f0;
  margin-bottom: 50px;
  line-height: 1.8;
}
.btn-download,
.btn-login {
  white-space: nowrap;
  max-width: 100%;
  padding: 10px clamp(20px, 5vw, 35px);
  font-weight: bold;
  font-family: 'Sukhumvit Set', sans-serif;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-download {
  background: #14799e;
}
.btn-login {
  background: #142e42;
}
.btn-download:hover {
  background: #0d526f !important;
  color: #fff !important;
  transform: scale(1.05);
}
.btn-login:hover {
  background: #0d2031 !important;
  color: #fff !important;
  transform: scale(1.05);
}
.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.5;
}
.cta-content {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   12. FOOTER & BACK TO TOP
   ========================================================================== */
.main-footer {
  width: 100%;
  background-color: #102334;
  padding: 60px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.footer-social {
  display: flex;
  gap: 30px;
  align-items: center;
}
.social-link img {
  width: 30px;
  height: 30px;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}
.social-link:hover img {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-3px);
}
.footer-info {
  text-align: center;
  color: #676767;
  font-size: 13px;
}
.footer-info p {
  margin-bottom: 8px;
}
.footer-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}
.footer-links a {
  color: #676767;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(7, 29, 47, 0.4) !important;
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999 !important;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  outline: none;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-8px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.4) !important;
}
.back-to-top:hover {
  background: rgba(75, 183, 222, 0.5) !important;
  transform: translateY(-8px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.4) !important;
}
.back-to-top:active {
  transform: translateY(-4px) scale(0.95);
}

/* ==========================================================================
   13. PAGES: DOWNLOAD
   ========================================================================== */
.download-hero-bg.slider-section {
  height: 250px !important;
  min-height: 250px !important;
  margin-top: -92px;
}
.download-hero-bg .bg-img {
  filter: brightness(0.3);
  opacity: 1 !important;
}
.client-section-full {
  background-color: #102334;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 70px 0;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}
.download-main-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.btn-download-action {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 50px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: #14799e;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}
.btn-download-action:hover {
  background: #0d526f !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
}
.mirror-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #3b3b3b;
}
.mirror-links p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
}
.mirror-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.btn-mirror {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #444;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.btn-mirror img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.btn-mirror:hover {
  background: #f0f0f0;
  border-color: #14799e;
  color: #14799e;
  transform: translateY(-2px);
}
.download-divider {
  width: 100%;
  height: 1px;
  background-color: #3b3b3b;
  margin-bottom: 20px;
}
.specs-section {
  padding: 80px 0;
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}
.spec-card {
  background: #081522;
  padding: 30px;
  border-radius: 15px;
  color: #dfdfdf;
}
.spec-card h4 {
  color: #ffffff;
  margin-bottom: 20px;
}
.spec-card ul {
  list-style: none;
  padding: 0;
}
.spec-card li {
  color: #ffffffce;
  margin-bottom: 10px;
  border-bottom: 1px solid #3b3b3b;
  padding-bottom: 20px;
  font-size: 14px;
}

/* ==========================================================================
   14. PAGES: NEWS
   ========================================================================== */
.news-page-wrapper {
  background-color: #0a1928;
  padding: 60px 0 100px 0;
  min-height: 800px;
}
.news-filter-tabs {
  display: flex;
  width: 100%;
  background-color: #081522;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid #294355;
}
.news-tab {
  flex: 1;
  text-align: center;
  padding: 18px 0;
  color: #aaaaaa;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid #294355;
}
.news-tab:last-child {
  border-right: none;
}
.news-tab:hover {
  background-color: #193549;
  color: #ffffff;
}
.news-tab.active {
  background-color: #14799e;
  color: #ffffff;
}
.news-search-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}
.news-search-input-wrapper {
  position: relative;
  width: 350px;
}
.news-search-input {
  width: 100%;
  background-color: #081522;
  border: 1px solid #294355;
  color: #fff;
  padding: 12px 40px 12px 20px;
  border-radius: 4px;
  font-family: 'Sarabun', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}
.news-search-input:focus {
  border-color: #14799e;
}
.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.news-board-list {
  display: flex;
  flex-direction: column;
}
.news-board-item {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #1c3445;
  transition: background-color 0.3s;
  text-decoration: none;
}
.news-board-item:hover {
  background-color: rgba(75, 183, 222, 0.05);
}
.news-board-img {
  width: 280px;
  height: 155px;
  background-color: #0d2031;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #294355;
}
.news-board-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-board-item:hover .news-board-img img {
  transform: scale(1.05);
}
.news-board-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-board-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: 'Sarabun', sans-serif;
}
.news-board-cat {
  font-size: 1rem;
  font-family: 'Sukhumvit Set', sans-serif;
}
.news-board-cat.release-tag {
  color: #00bfff;
}
.news-board-cat.update-tag {
  color: #14799e;
}
.news-board-cat.event-tag {
  color: #ff6600;
}
.news-board-date {
  color: #888888;
  font-size: 0.95rem;
}
.news-board-title {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.news-board-item:hover .news-board-title {
  color: #14799e;
}
.news-board-desc {
  color: #9e9e9e;
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}
.page-btn,
.page-num {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #081522;
  border: 1px solid #294355;
  color: #aaaaaa;
  text-decoration: none;
  font-family: 'Sukhumvit Set', sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.page-btn:hover,
.page-num:hover {
  background-color: #193549;
  color: #ffffff;
  border-color: #14799e;
  transform: translateY(-2px);
}
.page-num.active {
  background-color: #14799e;
  color: #ffffff;
  border-color: #14799e;
}
.page-dots {
  color: #888;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 0 5px;
}

/* ==========================================================================
   15. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* --- 1920px --- */
@media (min-width: 1920px) {
  .slider-section {
    height: 765px !important;
  }
  .news-section {
    height: 430px !important;
    padding: 60px 0 !important;
    overflow: hidden;
  }
}

/* --- 1441px - 1919px --- */
@media (min-width: 1441px), (max-width: 1919px), (max-height: 1399px) {
  .news-section {
    padding: 60px 0 !important;
    height: auto !important;
  }
}

/* --- Max 1919px --- */
@media (max-width: 1919px) {
  .slider-section {
    height: 765px !important;
  }
  .grid-layout-container,
  .nav-container-wrapper {
    width: 100%;
    grid-template-columns: 1fr 1240px 1fr;
  }
}

/* --- Min 1025px (Desktop Base) --- */
@media (min-width: 1025px) {
  .nav-links-group {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .nav-links-group li {
    margin: 0 0px !important;
  }
  .special-icons-group {
    margin-left: auto !important;
    gap: 12px !important;
  }
  .special-icons-group .ms-3 {
    margin-left: 0 !important;
  }
  .download-btn-content.ms-4 {
    margin-left: 15px !important;
  }

  /* ซ่อนปุ่ม Hamburger ในหน้า Desktop */
  .hamburger-btn {
    display: none !important;
  }
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* --- Max 1440px --- */
@media (max-width: 1440px) {
  .grid-layout-container,
  .nav-container-wrapper {
    grid-template-columns: 1fr 1140px 1fr !important;
  }
  .grid-center {
    width: 1140px !important;
  }
  .nav-wrapper {
    max-width: 1300px !important;
  }
  .nav-links-group {
    margin-left: 20px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .custom-link {
    padding: 0 14px !important;
    font-size: 15px !important;
  }
  .download-btn-content {
    width: 180px !important;
    height: 50px !important;
  }
  .download-text {
    font-size: 16px !important;
  }
  .character-wrapper {
    transform: scale(1.2);
    display: block !important;
    position: absolute !important;
    width: 95% !important;
    height: 95% !important;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1 !important;
  }
  .headline-wrapper {
    padding-left: 0 !important;
  }
  .hero-title {
    position: absolute;
    top: 40%;
    font-size: 52px !important;
    max-width: 500px;
  }
  .hero-char {
    width: 480px !important;
    bottom: -40px !important;
  }
  .prof-big-title {
    font-size: 95px !important;
    top: -10px !important;
  }
  .prof-char-img {
    margin-left: 150px !important;
    height: 85% !important;
  }
  .prof-info-box {
    top: 320px !important;
    width: 380px !important;
  }
  .prof-video-box {
    width: 250px !important;
    height: 145px !important;
    margin-top: 20px !important;
  }
  .prof-glass-bar {
    width: 950px !important;
    height: 75px !important;
  }
  .prof-nav-icon {
    width: 45px !important;
    height: 45px !important;
  }
  .news-section .row {
    --bs-gutter-x: 30px !important;
  }
  .news-list-container,
  .news-banner-container {
    height: 180px !important;
  }
  .news-list li {
    height: calc(180px / 5);
    font-size: 14px !important;
    padding: 0 10px !important;
    gap: 10px !important;
  }
  .news-date {
    font-size: 12px !important;
    min-width: 55px !important;
  }
}

/* --- Max 1280px (Tablet Layout Only) --- */
@media (max-width: 1280px) {
  .grid-layout-container,
  .nav-container-wrapper {
    grid-template-columns: 0 100% 0 !important;
    padding: 0 100px !important;
  }
  .grid-center {
    width: 100% !important;
    padding: 0 !important;
    left: 0 !important;
  }

  .nav-wrapper {
    display: contents !important;
  }
  .custom-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0px 30px !important;
    height: auto !important;
    background: transparent;
  }
  .nav-main-controls {
    width: 100%;
  }

  .headline-wrapper {
    position: relative !important;
    width: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 30px !important;
    z-index: 20 !important;
  }
  .hero-title {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
    text-align: left !important;
    font-size: 52px !important;
    max-width: 500px !important;
    line-height: 1.4 !important;
    top: 45% !important;
    padding-left: 20px !important;
  }
  .character-wrapper {
    transform: scale(1.2);
    display: block !important;
    position: absolute !important;
    width: 95% !important;
    height: 95% !important;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1 !important;
  }
  .hero-char {
    position: absolute !important;
    left: auto !important;
    margin: 0 !important;
    right: -10px !important;
    bottom: -30px !important;
    width: 55% !important;
    max-width: 500px !important;
    height: 85% !important;
    object-fit: contain !important;
    object-position: bottom right !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.8s ease !important;
  }
  .hero-char.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .news-section {
    padding: 60px 0 !important;
    height: auto !important;
  }
  .news-section .row {
    --bs-gutter-x: 20px !important;
  }
  .news-header h2 {
    font-size: 20px !important;
  }
  .news-list-container {
    height: auto;
    overflow: visible;
  }

  .professions-section {
    min-height: 950px !important;
    height: auto !important;
  }
  .prof-big-title {
    font-size: 80px !important;
    text-align: center !important;
    width: 100% !important;
  }
  .prof-char-img {
    margin-left: 0 !important;
    margin-top: 150px !important;
    height: 60% !important;
  }
  .prof-info-box {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin: 350px auto 0 !important;
    width: 100% !important;
    max-width: 500px !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 20px !important;
  }
  .prof-video-box {
    margin-top: 20px !important;
  }
  .prof-controls-wrapper {
    width: 100% !important;
    padding: 0 20px !important;
    bottom: 40px !important;
  }
  .prof-glass-bar {
    width: 100% !important;
    height: auto !important;
  }
  .glass-circle-btn {
    display: none !important;
  }

  .feature-img {
    max-width: 400px !important;
  }

  .news-search-bar {
    justify-content: flex-start !important;
    margin-top: 20px;
  }
  .news-search-input-wrapper {
    width: 100% !important;
  }
  .news-board-item {
    gap: 20px !important;
  }
  .news-board-img {
    width: 220px !important;
    height: 125px !important;
  }
  .news-board-title {
    font-size: 1.25rem !important;
    margin-bottom: 5px !important;
  }
  .news-board-desc {
    font-size: 0.95rem !important;
  }
}

/* --- Max 1024px (iPad & Mobile Menu Trigger) --- */
@media (max-width: 1024px) {
  .nav-links-group,
  .special-icons-group,
  .download-btn-content {
    display: none !important;
  }
  .nav-spacer-left,
  .nav-spacer-right {
    display: none;
  }

  .nav-pill-container {
    justify-content: space-between !important;
    width: 100% !important;
    background: transparent !important; /* ล้างสีพื้นหลัง */
    border: none !important; /* เอากรอบออก */
    box-shadow: none !important; /* เอาเงาออก */
    backdrop-filter: none !important; /* ปิดเอฟเฟคเบลอกระจก */
    -webkit-backdrop-filter: none !important; /* ปิดเอฟเฟคเบลอกระจกสำหรับ Safari */
    padding: 0px 15px !important; /* ปรับระยะขอบซ้ายขวาให้พอดีจอ */
    margin: 0 !important;
  }

  .hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 2001;
    margin: 0 0 0 auto !important;
    flex-shrink: 0 !important;
  }
  .hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }
  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }

  .mobile-menu-overlay {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(7, 29, 47, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1500;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .mobile-menu-overlay.active {
    right: 0;
  }
  .mobile-menu-overlay .nav-links-group,
  .mobile-menu-overlay .special-icons-group,
  .mobile-menu-overlay .mobile-account-group,
  .mobile-menu-overlay .mobile-lang-selector,
  .mobile-menu-overlay .download-btn-content {
    display: flex !important;
    flex-direction: column;
  }
  .mobile-links {
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
  }
  .mobile-links .custom-link {
    font-size: 18px !important;
    padding: 15px 0 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100%;
  }
  .mobile-divider {
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
  }
  .mobile-account-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 0 20px;
  }
  .login-btn {
    background-color: #0d526f !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 15px 0 !important;
    width: 100%;
    text-align: center;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: 'Sukhumvit Set', sans-serif;
  }
  .login-btn:hover {
    background-color: #14799e !important;
  }
  .plain-text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
    border: none !important;
    font-size: 16px;
    text-decoration: none;
    font-family: 'Sukhumvit Set', sans-serif;
  }
  .nav-icon-sm {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    vertical-align: middle;
  }
  .mobile-menu-overlay.active .nav-icon-sm {
    animation: pulseIcon 2s infinite;
  }
  .mobile-lang-selector {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }
  .mobile-lang-selector .lang-icons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .mobile-lang-selector .btn-lang {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    padding: 10px;
    background-color: #ffffff00;
    border: #ffffff00;
  }
  .mobile-lang-selector .btn-lang.active,
  .mobile-lang-selector .btn-lang:hover {
    color: #14799e !important;
    transform: scale(1.1);
  }

  .hero-char {
    position: absolute !important;
    left: auto !important;
    margin: 0 !important;
    right: -10px !important;
    bottom: -20px !important;
    width: 55% !important;
    max-width: 450px !important;
    height: 75% !important;
    object-fit: contain !important;
    object-position: bottom right !important;
    transform: translateZ(0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition:
      opacity 0.8s ease,
      visibility 0.8s ease !important;
  }
  .hero-char.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) translateZ(0) !important;
  }

  .feature-item {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    margin-bottom: 60px;
  }
  .feature-item.reverse {
    flex-direction: column-reverse;
  }
  .feature-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .feature-text {
    text-align: center;
    padding: 0;
  }
  .feat-badge {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.85rem;
    padding: 5px 12px;
  }
  .feature-text h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 15px;
  }
  .feature-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #b8b8b8;
  }
}

/* --- Max 991px (Tablet Devices) --- */
@media (max-width: 991px) {
  .grid-layout-container,
  .nav-container-wrapper {
    display: block !important;
    padding: 0 20px !important;
  }
  .grid-side,
  .nav-spacer-left,
  .nav-spacer-right {
    display: none !important;
  }
  .grid-center,
  .nav-main-controls {
    position: relative;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    height: 100%;
    padding: 0 !important;
  }

  .slider-section {
    height: 500px !important;
    margin-top: 0 !important;
  }
  .hero-main-area {
    display: block !important;
    padding-top: 100px;
  }
  .headline-wrapper {
    padding-left: 0 !important;
    width: 100% !important;
    height: auto !important;
    position: absolute !important;
    top: 100px !important;
    left: 0;
    z-index: 20 !important;
    display: flex !important;
    justify-content: center !important;
  }
  .hero-title {
    position: absolute !important;
    top: 0 !important;
    color: white;
    font-size: 35px !important;
    line-height: 1.3;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    text-align: center !important;
    transform: none !important;
    padding: 0 15px !important;
  }
  .hero-char {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    bottom: -20px !important;
    width: 100% !important;
    max-width: 380px !important;
    height: 60% !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    z-index: 10 !important;
  }
  .hero-sub-nav {
    height: 60px;
  }
  .nav-tab {
    font-size: 12px;
    padding: 0 5px;
  }

  .news-section {
    padding: 40px 0 !important;
    height: auto !important;
  }
  .news-section .row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }
  .news-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .news-list-container {
    height: auto;
    overflow: visible;
  }

  /*  บังคับสัดส่วนแบนเนอร์ข่าว 16:9 */
  .news-banner-container {
    width: 100% !important;
    height: auto !important;
    padding-bottom: 56.25% !important; /* บังคับความสูงจากความกว้าง 16:9 */
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
  }
  .banner-wrapper,
  .banner-wrapper a {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  .banner-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .professions-section {
    height: auto;
    min-height: 950px;
  }
  .prof-big-title {
    font-size: 50px;
    top: -70px;
  }
  .prof-char-layer {
    align-items: flex-start;
  }
  .prof-char-img {
    height: 48% !important;
    margin-top: 100px;
  }
  .prof-info-box {
    position: relative;
    top: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    margin-top: 380px;
    padding: 0 20px;
    align-items: center;
    text-align: center;
  }
  .prof-video-box {
    width: 100%;
    max-width: 320px;
    height: 180px;
    top: 110px;
    margin-top: -50px !important;
  }
  .prof-controls-wrapper {
    width: 100% !important;
    padding: 0 15px !important;
    bottom: 50px !important;
    gap: 10px !important;
    left: 0 !important;
    transform: none !important;
    justify-content: center !important;
  }
  .prof-glass-bar {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }
  .prof-icons-scroll-container {
    padding: 15px 0;
    overflow-x: visible !important;
    display: block !important;
  }
  .prof-icons-list {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    padding: 0 !important;
    justify-items: center;
    align-items: center;
  }
  .prof-nav-icon {
    width: 35px !important;
    height: 35px !important;
    flex-shrink: 0;
  }
  .glass-circle-btn {
    display: none !important;
  }

  .feature-item {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    margin-bottom: 60px;
  }
  .feature-item.reverse {
    flex-direction: column-reverse;
  }
  .feature-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .feature-text {
    text-align: center;
    padding: 0;
  }
  .feat-badge {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.85rem;
    padding: 5px 12px;
  }
  .feature-text h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 15px;
  }
  .feature-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #b8b8b8;
  }

  .headline span {
    font-size: 1.2rem;
  }
  .video-title {
    font-size: 2rem;
    padding: 0 20px;
  }
  .video-title span {
    font-size: 1.2rem;
  }
  .scroll-dots {
    right: 15px;
    gap: 10px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
  .cta-download {
    padding: 60px 20px 40px 20px;
  }
  .cta-download h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }
  .btn-download {
    padding: 12px 30px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }

  .footer-content {
    gap: 20px;
  }
  .footer-social {
    gap: 20px;
  }
  .back-to-top {
    display: none !important;
  }

  .download-hero-bg.slider-section {
    height: 200px !important;
    min-height: 200px !important;
    margin-top: -92px;
  }
  .btn-download-action {
    width: 100%;
    max-width: 300px;
  }
  .mirror-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-mirror {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .news-filter-tabs {
    flex-wrap: wrap !important;
    border-right: none !important;
  }
  .news-tab {
    flex: 0 0 50% !important;
    border-bottom: 1px solid #294355 !important;
    border-right: 1px solid #294355 !important;
  }
  .news-tab:nth-child(2n) {
    border-right: none !important;
  }
  .news-search-bar {
    justify-content: flex-start;
  }
  .news-search-input-wrapper {
    width: 100%;
  }
  .news-board-item {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 20px 0 !important;
  }
  .news-board-img {
    width: 100% !important;
    height: 200px !important;
  }
  .news-board-content {
    width: 100% !important;
  }
  .news-pagination {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .page-btn,
  .page-num {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }
}

/* --- Max 480px --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 34px !important;
  }
  .prof-big-title {
    font-size: 40px !important;
  }
  .hero-char {
    width: 280px !important;
    height: 55% !important;
    bottom: -30px !important;
  }
}

/* --- Max 400px --- */
@media screen and (max-width: 400px) {
  .headline {
    font-size: 1.8rem;
  }
  .video-title {
    font-size: 1.6rem;
  }
}

/* --- Max 480px --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 34px !important;
  }
  .prof-big-title {
    font-size: 40px !important;
  }
  .hero-char {
    width: 280px !important;
    height: 55% !important;
    bottom: -30px !important;
  }
}

/* --- Max 400px --- */
@media screen and (max-width: 400px) {
  .headline {
    font-size: 1.8rem;
  }
  .video-title {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   16. หน้าอ่านข่าว (News Detail Page)
   ========================================================================== */

/* คอนเทนเนอร์หลักของหน้าข่าว */
.news-detail-wrapper {
  background-color: #0a1928;
  padding: 60px 0 120px 0;
  min-height: 600px;
}

/* จำกัดความกว้างเนื้อหา */
.nd-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* หัวข้อข่าว */
.nd-title {
  font-size: 2.2rem;

  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* วันที่และข้อมูลทั่วไป */
.nd-date {
  font-size: 0.95rem;
  color: #888888;
  margin-bottom: 25px;
  font-family: 'Sarabun', sans-serif;
}

/* เส้นคั่นเนื้อหา */
.nd-divider {
  width: 100%;
  height: 1px;
  background-color: #294355;
  margin: 30px 0;
}

/* เนื้อหาข่าวหลัก */
.nd-body {
  font-size: 1.1rem;
  color: #cccccc;
  font-family: 'Sarabun', serif;
  line-height: 1.8;
}

.nd-body p {
  margin-bottom: 20px;
}

.nd-body strong {
  color: #ffffff;
}

/* รูปภาพประกอบในเนื้อหาข่าว */
.nd-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  border: 1px solid #294355;
}

/* ส่วนท้ายของข่าว (ปุ่มย้อนกลับ) */
.nd-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

/* ปุ่มย้อนกลับแบบมีกรอบ */
.nd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid #444;
  border-radius: 4px;
  color: #aaaaaa;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Sukhumvit Set', sans-serif;
  transition: all 0.3s ease;
}

.nd-back-btn:hover {
  color: #ffffff;
  background-color: rgba(75, 183, 222, 0.1);
}

/* --- Responsive: หน้าอ่านข่าว --- */
@media (max-width: 768px) {
  .nd-title {
    font-size: 1.6rem;
  }
  .nd-body {
    font-size: 1rem;
  }
  .nd-back-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}

.nd-body {
  font-family: 'Sarabun', sans-serif;
}

/* ==========================================================================
   17. หน้าล็อกอิน (Login Page)
   ========================================================================== */

/* พื้นหลังและการจัดตำแหน่งหน้าล็อกอิน */
.login-page-wrapper {
  background-color: #0a1928;
  padding: 100px 0 100px 0;
  min-height: 700px;
  display: flex;
  align-items: flex-start;
}

/* กล่องล็อกอินหลัก */
.login-container {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

.login-title {
  font-size: 2.5rem;

  color: #ffffff;
  margin-bottom: 100px;
}

/* กลุ่มช่องกรอกข้อมูล */
.login-input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.login-input {
  width: 100%;
  background-color: #102334;
  border: 1px solid #294355;
  padding: 15px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

/* ทำให้ขอบบนโค้ง */
.login-input:first-child {
  border-radius: 8px 8px 0 0;
}

/* ทำให้ขอบล่างโค้งและเส้นไม่ซ้อนกัน */
.login-input:last-child {
  border-radius: 0 0 8px 8px;
  border-top: none;
}

.login-input:focus {
  background-color: #183449;
}

/* ตัวเลือกเพิ่มเติม (จำรหัสผ่าน) */
.login-options {
  display: flex;
  margin-bottom: 25px;
  font-size: 12px;

  color: #aaaaaa;
}

.login-options label {
  display: flex;
  align-items: center; /* บังคับให้อยู่กึ่งกลางบรรทัด */
  cursor: pointer;
  user-select: none; /* ป้องกันการคลุมดำข้อความ */
}

/* ปรับแต่ง Checkbox */
.login-options input[type='checkbox'] {
  margin: 0 15px 0 0;
  accent-color: #14799e;
  width: 22px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ปุ่มยืนยันการล็อกอิน */
.btn-login-submit {
  width: 100%;
  padding: 15px;
  background-color: #14799e;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login-submit:hover {
  background-color: #0d526f;
  transform: translateY(-2px);
}

/* ลิงก์ใต้ปุ่ม (ลืมรหัสผ่าน / สมัครสมาชิก) */
.login-footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 15px;
}

.login-footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.login-footer-links a:hover {
  color: #76d8ef;
}

/* --- Responsive: หน้าล็อกอิน --- */
@media (max-width: 768px) {
  .login-title {
    font-size: 2rem;
  }
  .login-page-wrapper {
    padding: 60px 0;
  }
}

/* ==========================================================================
   18. หน้าสมัครสมาชิก (Register Page)
   ========================================================================== */

/* ขยายกล่องให้กว้างขึ้นสำหรับฟอร์มสมัคร */
.register-container {
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

/* กลุ่ม Checkbox ยอมรับเงื่อนไข */
.register-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  text-align: left;
}

.register-checkbox-group label {
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #aaaaaa;
  cursor: pointer;
  line-height: 1.5;
}

.register-checkbox-group input[type='checkbox'] {
  margin: 3px 15px 0 0;
  accent-color: #14799e;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.register-checkbox-group a {
  color: #14799e;
  text-decoration: none;

  transition: color 0.3s;
}

.register-checkbox-group a:hover {
  color: #9ae9fa;
  text-decoration: underline;
}

/* คำอธิบายใต้ช่องกรอกข้อมูล */
.input-hint {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  color: #777;
  margin-top: 8px;
  margin-bottom: 20px;
  padding-left: 5px;
}

/* การจัดช่องกรอกแบบครึ่งแถว (เช่น ชื่อ-นามสกุล) */
.input-row-flex {
  display: flex;
  background-color: #102334;
}

.input-row-flex .login-input {
  border-bottom: none !important;
}

.input-row-flex .login-input:first-child {
  border-right: 1px solid #294355 !important;
}

/* ช่องเลือกวันที่ */
.date-input-wrapper {
  display: flex;
  align-items: center;
  background-color: #102334;
  padding-right: 10px;
}

.date-label {
  padding-left: 15px;
  color: #666;
  font-size: 0.9rem;
  white-space: nowrap;
}

.date-field {
  border-bottom: none !important;
  color-scheme: dark; /* กำหนดให้ไอคอนปฏิทินเป็นสีขาว */
}

.date-field::-webkit-datetime-edit-text,
.date-field::-webkit-datetime-edit-month-field,
.date-field::-webkit-datetime-edit-day-field,
.date-field::-webkit-datetime-edit-year-field {
  color: rgba(255, 255, 255, 0.4);
}

/* การจัดระเบียบลิงก์ข้อตกลง */
.agreement-label {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.checkbox-row {
  display: flex;
  align-items: center;
}

.agreement-links {
  padding-left: 37px;
  margin-top: 5px;
}

.agreement-links a {
  font-size: 0.95rem;
  color: #399fc3;
  text-decoration: underline !important;
}

/* ส่วนหัวข้อฟอร์มแบบมีจุดนำ */
.form-section {
  text-align: left;
  margin-top: 25px;
}

.section-label {
  font-size: 0.95rem;
  color: #ffffff;

  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.req-dot {
  color: #14799e;
  font-size: 1.2rem;
  line-height: 0;
  position: relative;
  top: -3px;
}

/* ช่องกรอกข้อมูลแบบแยกชิ้นเดี่ยว */
.single-input {
  width: 100%;
  background-color: #102334;
  border: 1px solid #294355;
  padding: 15px;
  color: #fff;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  outline: none;
}

.single-input:focus {
  background-color: #183449;
}

/* ช่องกรอกข้อมูลแบบกลุ่มกรอบเดียวกัน */
.grouped-row {
  border: 1px solid #294355;
  border-radius: 4px;
  overflow: hidden;
}

.grouped-row .single-input {
  border: none;
  border-radius: 0;
}

.grouped-row .single-input:first-child {
  border-right: 1px solid #294355;
}

/* ปุ่มสมัครสมาชิก */
.btn-register-submit {
  width: 100%;
  padding: 15px;
  background-color: #14799e;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;

  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-register-submit:hover {
  background-color: #0d526f;
  transform: translateY(-2px);
}

/* ==========================================================================
   19. หน้าลืมรหัสผ่าน (Forgot Password Page)
   ========================================================================== */

/* ข้อความอธิบายด้านบน */
.forgot-desc {
  font-size: 1rem;
  color: #888;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ปุ่มยืนยันลืมรหัสผ่าน */
.btn-forgot-submit {
  margin-top: 10px;
}

/* ==========================================================================
   20. หน้าเติมเงิน (Top-up Page - Two-Sided Layout)
   ========================================================================== */

.topup-wrapper {
  padding: 60px 0 100px;
  background-color: #0a1928;
}

/* โครงสร้างหลักแบบแบ่ง 3 คอลัมน์ (ซ้ายกลางขวา) */
.topup-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

/* การ์ดเติมเงินแบ่งฝั่งรูปภาพและฟอร์ม */
.topup-main-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #0a1928;
  border-radius: 8px;
  overflow: hidden;
  gap: 30px;
  align-items: start;
}

/* ฝั่งรูปโปรโมท (ซ้าย) */
.topup-promo-side img {
  max-width: 450px;
  height: auto;
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* ฝั่งฟอร์ม (ขวา) */
.topup-form-side {
  padding: 10px;
  text-align: left;
}

.topup-form-side .single-input {
  background-color: #294355 !important;
  border: 1px solid #444 !important;
  padding: 18px 15px !important;
}

/* กล่องแสดงสถานะการยืนยัน (เช่น Cloudflare) */
.verification-box {
  border: 1px solid #444;
  padding: 15px;
  margin: 20px 0;
  background-color: #102334;
}

.verify-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.verify-icon {
  width: 30px;
  height: 30px;
  background-color: #12b886;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.verify-text span {
  display: block;
  color: #fff;
  font-weight: bold;
}

.verify-text small {
  color: #888;
  font-size: 0.7rem;
}

/* กล่องหมายเหตุ/คำแนะนำ */
.topup-notice {
  margin-top: 30px;
  color: #888;
}

.topup-notice h6 {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.notice-icon {
  font-style: normal;
  margin-right: 5px;
}

.topup-notice ul {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
}

.topup-notice li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.topup-notice-check {
  display: flex;
  align-items: center;
}

.topup-check-input {
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.topup-notice-check label {
  cursor: pointer;
  line-height: 1.4;
  margin: 0;
}

/* ปุ่มเติมเงิน */
.topup-form-side .btn-register-submit {
  background-color: #14799e !important;
  border-radius: 4px !important;
  padding: 18px !important;
}

/* --- Responsive: หน้าเติมเงิน --- */
@media (max-width: 991px) {
  .topup-main-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .topup-promo-side {
    order: -1; /* สลับให้รูปขึ้นก่อนฟอร์ม */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    grid-column: 1;
    height: auto;
  }

  .topup-promo-side img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: none;
  }
}

/* ==========================================================================
   21. แดชบอร์ดผู้ใช้ (Dashboard)
   ========================================================================== */

/* คอนเทนเนอร์หลักของหน้า Dashboard */
.dashboard-page-wrapper {
  background-color: #0a1928;
  padding: 50px 0 100px 0;
  min-height: 700px;
  display: flex;
  align-items: flex-start;
}

.dashboard-flex-container {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  align-items: flex-start;
  width: 100%;
}

/* --- แถบเมนูด้านซ้าย (Sidebar) --- */
.dashboard-sidebar {
  flex: 0 0 320px;
  width: 100%;
}

.user-profile-box.no-avatar {
  background: #102334;
  padding: 30px 25px;
  border-radius: 12px;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 25px;
}

.display-name {
  color: #fff;
  font-size: 1.6rem;

  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* เมนูการจัดการบัญชี */
.account-actions-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  background: #183449;
  color: #eee;
  text-decoration: none;

  border-radius: 8px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.action-btn:hover {
  background: #294355;
  color: #fff;
  transform: translateX(5px);
}

.menu-icon {
  width: 18px;
  height: 18px;
  color: #888;
  transition: 0.3s;
}

.action-btn:hover .menu-icon {
  color: #14799e;
}

.menu-divider {
  border: none;
  border-top: 1px solid #294355;
  margin: 25px 0;
}

/* กล่องแจ้งเตือนความปลอดภัยใน Sidebar */
.verify-security-box {
  background: linear-gradient(145deg, #1f2322 0%, #1a1f1c 100%);
  border: 1px solid #2ecc71;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.verify-header {
  color: #2ecc71;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.verify-icon-svg {
  width: 20px;
  height: 20px;
}

.verify-desc {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 18px;
  line-height: 1.5;
  font-family: 'Sarabun', sans-serif;
}

.btn-verify-action {
  width: 100%;
  padding: 12px;
  background-color: #2ecc71;
  color: #091725;
  border: none;
  border-radius: 6px;

  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-verify-action:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

/* --- ส่วนข้อมูลด้านขวา (Content Side) --- */
.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0; /* ป้องกันเนื้อหาดันจนทะลุคอนเทนเนอร์ */
}

/* การ์ดแสดงข้อมูลทั่วไป */
.info-card-modern {
  background: #102334;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.card-header-main {
  padding: 15px 25px;
  background: #183449;
  color: #fff;

  border-bottom: 2px solid #294355;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.border-orange .header-icon {
  color: #ffffff;
}
.border-orange {
  border-bottom-color: #313131 !important;
}

/* Grid จัดเรียงรายละเอียด */
.info-grid-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 25px;
  gap: 25px;
}

.detail-item label {
  display: block;
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.detail-item span {
  color: #fff;
  font-size: 1rem;
  font-family: 'Sarabun', sans-serif;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

/* ส่วนแสดงยอดเงิน (Deposit) */
.deposit-flex {
  display: flex;
  padding: 30px 25px;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.deposit-box {
  flex: 1;
}

.deposit-box label {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.deposit-box .val {
  font-size: 1.8rem;

  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.deposit-box .val img {
  width: 24px;
}
.deposit-box small {
  color: #17a9ef;
}

.deposit-divider {
  width: 1px;
  height: 60px;
  background-color: #294355;
}

/* --- Responsive: หน้า Dashboard --- */
@media (max-width: 991px) {
  .dashboard-flex-container {
    flex-direction: column;
    width: 100%;
  }

  .dashboard-sidebar,
  .dashboard-content {
    width: 100%;
    flex: none;
  }

  .account-actions-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .action-btn {
    flex: 1 1 45%;
    justify-content: center;
  }

  .info-grid-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .deposit-flex {
    flex-direction: column;
    gap: 30px;
  }

  .deposit-divider {
    width: 80%;
    height: 1px;
  }
}

@media (max-width: 480px) {
  .action-btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   22. หน้า 404 Not Found
   ========================================================================== */

/* จัดตำแหน่งหน้า Error ไว้ตรงกลางจอ */
.error-container {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.error-title {
  font-size: 10rem;

  color: #14799e;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(75, 183, 222, 0.5); /* เอฟเฟกต์เรืองแสง */
}

.error-subtitle {
  font-size: 2.2rem;
  color: #ffffff;

  margin-bottom: 15px;
}

.error-desc {
  color: #aaaaaa;
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ปุ่มกลับสู่หน้าหลัก */
.btn-home-return {
  display: inline-block;
  padding: 15px 40px;
  background-color: #14799e;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;

  transition: all 0.3s ease;
  border: 1px solid #14799e;
}

.btn-home-return:hover {
  background-color: #0d526f;
  border-color: #0d526f;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(75, 183, 222, 0.4);
  color: #ffffff;
}

/* --- Responsive: หน้า Error --- */
@media (max-width: 768px) {
  .error-title {
    font-size: 7rem;
  }
  .error-subtitle {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   FLOATING PROMO BANNER
   ========================================================================== */
.floating-promo-banner {
  position: fixed;
  top: 50%; /* ดันลงมาครึ่งจอ */
  right: 0; /* ให้ชิดขวาติดขอบจอ (ถ้าอยากเว้นขอบให้เปลี่ยนเป็น right: 10px;) */
  transform: translateY(
    -50%
  ); /* ดึงกลับขึ้นมาครึ่งนึงของความสูงรูป เพื่อให้อยู่ตรงกลางเป๊ะๆ */
  z-index: 9998;
  display: block;
  animation: floatPromo 4s ease-in-out infinite; /* เอฟเฟกต์ลอยขึ้นลงเบาๆ */
}

.floating-promo-banner img {
  width: 250px; /*  ปรับขนาดความกว้างของรูปตรงนี้ */
  height: auto;
  border-radius: 8px 0 0 8px; /* ทำให้มุมซ้ายบนและซ้ายล่างโค้งมนนิดๆ */
  display: block;
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

/* เอฟเฟกต์เวลาเอาเมาส์ไปชี้ */
.floating-promo-banner:hover img {
  filter: brightness(1.1); /* สว่างขึ้นนิดหน่อย */
  transform: scale(1.02); /* ขยายใหญ่ขึ้นนิดนึง */
}

/* หยุดลอยเวลาเอาเมาส์ไปชี้  */
.floating-promo-banner:hover {
  animation-play-state: paused;
}

/* ปุ่มกากบาท (X) สำหรับปิด */
.close-promo {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}

.close-promo:hover {
  background: #76d8ef; /* เปลี่ยนเป็นสีแดงตอนเอาเมาส์ชี้ */
}

/* Animation แบนเนอร์ลอย */
@keyframes floatPromo {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 10px));
  } /* ลอยขึ้น 10px */
  100% {
    transform: translateY(-50%);
  }
}

/* Responsive สำหรับหน้าจอมือถือ */
@media (max-width: 768px) {
  .floating-promo-banner img {
    width: 160px; /* ย่อขนาดรูปลงในมือถือ เพื่อไม่ให้บังเนื้อหาเว็บมากเกินไป */
  }
}

/* ==========================================================================
   FORM INLINE ALERT
   ========================================================================== */
.form-alert {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-family: 'Sarabun', sans-serif;
  line-height: 1.5;
}
.form-alert.is-active {
  display: block;
}
.form-alert.success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #6fcf97;
}
.form-alert.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #f28b8b;
}
.form-alert.warning {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #f0c040;
}

/* Keep shared mobile links below the header and reachable on short screens. */
@media (max-width:1024px){
  .mobile-menu-overlay{justify-content:flex-start;padding:100px 0 30px;overflow-y:auto;overscroll-behavior:contain;gap:20px}
  .mobile-menu-overlay>.mobile-links{flex-shrink:0;margin:0!important;gap:10px}
  .mobile-menu-overlay>.mobile-divider,.mobile-menu-overlay>.mobile-account-group,.mobile-menu-overlay>.mobile-lang-selector{flex-shrink:0}
}
