@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap");

@font-face {
  font-family: "LINESeedSansTH";
  src: url("./font/WOFF2/LINESeedSansTH_W_Th.woff2") format("woff2"),
    url("./font/WOFF/LINESeedSansTH_W_Th.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("./font/WOFF2/LINESeedSansTH_W_Rg.woff2") format("woff2"),
    url("./font/WOFF/LINESeedSansTH_W_Rg.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("./font/WOFF2/LINESeedSansTH_W_Bd.woff2") format("woff2"),
    url("./font/WOFF/LINESeedSansTH_W_Bd.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("./font/WOFF2/LINESeedSansTH_W_XBd.woff2") format("woff2"),
    url("./font/WOFF/LINESeedSansTH_W_XBd.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("./font/WOFF2/LINESeedSansTH_W_He.woff2") format("woff2"),
    url("./font/WOFF/LINESeedSansTH_W_He.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --panel: #0a0a0a;
  --accent: #d4af37;
  --accent-strong: #f9e58b;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --border: rgba(212, 175, 55, 0.2);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --wp-bg: #f0f2f4;
  --wp-panel: #ffffff;
  --wp-panel-strong: #f6f7f7;
  --wp-border: #dfe3e8;
  --wp-border-strong: #cfd6df;
  --wp-primary: #2271b1;
  --wp-primary-strong: #135e96;
  --wp-sidebar: #1d2327;
  --wp-sidebar-strong: #2c3338;
  --wp-text-strong: #0f172a;
  --wp-muted: #6b7280;
  --wp-radius: 12px;
  --radius: 18px;
  --nav-dark: #191919;
  --nav-orange: #d4af37;
  --nav-orange-strong: #8a7018;
  --nav-text: #f8f9fb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "LINESeedSansTH", "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.35)),
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.04), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(212, 175, 55, 0.06), transparent 34%),
    url('../img/bg-content-yulgang.png'),
    linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
  background-size: auto, auto, auto, cover, auto;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, fixed, scroll;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

/* Commented out to reduce excessive borders
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
*/

.hero-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  position: relative;
  z-index: 6;
}

.nav-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  background: var(--nav-dark);
  color: var(--nav-text);
  font-family: "LINESeedSansTH", "Manrope", "Segoe UI", sans-serif;
  gap: 14px;
}

.nav-topbar__left,
.nav-topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.playpark-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5f5f5;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.playpark-logo__badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0ea5e9, #0b78c9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.playpark-logo__text {
  font-size: 0.95rem;
}

.playpark-logo__triangle {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #f8fafc;
  transform: translateX(2px);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f1f5f9;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-topbar__right .topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

.nav-topbar__right .topbar-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-main {
  position: relative;
  background: linear-gradient(135deg, #ff9d2f, #ff7a00);
  color: #fff;
  overflow: visible;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.24);
  z-index: 5;
}

.nav-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 12px, transparent 12px),
    radial-gradient(circle at 80px 80px, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 12px, transparent 12px);
  background-size: 110px 110px;
  opacity: 0.5;
}

.nav-main__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 32px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .nav-main__inner {
    max-width: 100%;
    padding: 4px 12px !important;
    gap: 8px;
    min-height: auto !important;
  }

  .nav-main {
    min-height: 64px !important;
    max-height: 64px !important;
  }

  .nav-logo {
    padding: 0 !important;
  }

  .nav-logo img {
    height: 56px !important;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px 6px 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-brand {
  display: grid;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  min-width: 210px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.nav-brand__logo {
  font-family: "LINESeedSansTH", "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.nav-brand__tag {
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-primary {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-primary__item {
  position: relative;
}

.nav-primary__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: "LINESeedSansTH", "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.nav-primary__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-primary__link i,
.nav-primary__submenu i,
.nav-drawer__link i {
  font-size: 16px;
  line-height: 1;
}

.nav-primary__link.is-active {
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.nav-primary__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 10px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.nav-primary__submenu a {
  padding: 10px 14px;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

.nav-primary__submenu a:last-child {
  border-bottom: none;
}

.nav-primary__submenu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-primary__item.has-submenu:hover .nav-primary__submenu,
.nav-primary__item.has-submenu:focus-within .nav-primary__submenu {
  display: flex;
}

.nav-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-icon:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.26);
}

.nav-icon i {
  font-size: 18px;
  line-height: 1;
}

.page-main {
  background: transparent;
}

.page-main .layout {
  grid-template-columns: 1fr;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-main .sidebar {
  display: none;
}

.page-main .main-panel {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.page-main .footer {
  display: none;
}

.hero-banner {
  position: relative;
  min-height: calc(100vh - 70px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.94);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(8, 10, 20, 0.45) 60%, rgba(8, 10, 20, 0.75) 100%);
  z-index: 0;
}

.hero-banner__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 48px 72px;
}

.hero-banner__left {
  display: flex;
  justify-content: flex-start;
}

.hero-banner__illustration {
  width: min(52vw, 760px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.35));
  animation: heroFloat 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-banner__right {
  display: grid;
  gap: 18px;
  justify-items: center;
  align-content: center;
}

.hero-banner__badge {
  width: min(40vw, 520px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
  animation: heroBadgeDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-banner__cta-group {
  display: grid;
  gap: 12px;
  width: min(46vw, 620px);
}

.hero-banner__cta {
  display: block;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.hero-banner__cta img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-banner__cta:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.hero-banner__cta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-banner__cta--small {
  width: 100%;
}

.hero-banner__cta--large {
  width: 100%;
}

@keyframes heroFloat {
  from {
    transform: translate3d(-8px, 6px, 0) scale(1.01);
  }

  to {
    transform: translate3d(10px, -6px, 0) scale(1.02);
  }
}

@keyframes heroBadgeDrift {
  from {
    transform: translate3d(6px, -4px, 0) rotate(-0.4deg);
  }

  to {
    transform: translate3d(-8px, 8px, 0) rotate(0.6deg);
  }
}

.highlight {
  padding: 36px 24px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.highlight__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.highlight__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fbbf24;
}

.highlight__line {
  flex: 1;
  height: 3px;
  background: linear-gradient(135deg, var(--nav-orange), var(--nav-orange-strong));
  border-radius: 999px;
  opacity: 0.8;
}

.highlight__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.highlight-card {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.highlight-card__thumb {
  background-size: cover;
  background-position: center;
  min-height: 180px;
}

.highlight-card__meta {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #e5e7eb;
  background: #0b1220;
  border-top: 1px solid #1f2937;
}

.news-section {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 10px 24px 40px;
}

.news-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.news-section__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
}

.news-section__tabs {
  display: inline-flex;
  gap: 10px;
  color: #f9fafb;
  flex-wrap: wrap;
}

.news-section__tabs a,
.news-section__tabs span {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  cursor: pointer;
}

.news-section__tabs .is-active {
  border-color: var(--accent-strong);
  color: #fbbf24;
}

.news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.news-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.news-card {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 200px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.news-card__thumb {
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #0b1220;
}

.news-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.news-card__body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.news-card__body h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
}

.news-card__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.news-side {
  display: grid;
  gap: 12px;
}

.news-side__block {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.news-side__label {
  padding: 10px 12px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid #1f2937;
}

.news-side__thumb {
  min-height: 140px;
  background-size: cover;
  background-position: center;
}

.hall {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 20px 24px 40px;
}

.hall__title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 14px;
}

.hall__tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.hall__tab {
  border: 1px solid #1f2937;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hall__tab.is-active {
  background: linear-gradient(135deg, var(--nav-orange), var(--nav-orange-strong));
  color: #0b0e1a;
  border-color: transparent;
}

.hall__avatars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.hall__avatar {
  background: #111827;
  border: 2px solid #1f2937;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  color: #e5e7eb;
  font-weight: 800;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hall__avatar-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1f2937, #0b1220);
  border-radius: 4px;
  margin-bottom: 8px;
}

.hall__avatar-label {
  font-size: 0.95rem;
}

.hall__avatar.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hall__table {
  background: #0b0e1a;
  border: 1px solid #1f2937;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hall__head,
.hall__row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1.2fr 2fr 2fr;
  gap: 10px;
  padding: 12px 14px;
  align-items: center;
}

.hall__head {
  background: #111827;
  font-weight: 800;
  color: #fbbf24;
}

.hall__row:nth-child(even) {
  background: #0f172a;
}

.hall__row:nth-child(odd) {
  background: #0c111c;
}

.admin {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 0 40px;
  display: grid;
  gap: 14px;
}

.admin.auth {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
}

.admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav {
  display: inline-flex;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 8px 10px;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 10px;
}

.admin-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #f8fafc;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.admin__menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.admin__menu-card {
  padding: 16px;
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: #f8fafc;
  border: 1px solid #1f2937;
  border-radius: 12px;
  background: #0f172a;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.admin__menu-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.admin__menu-title {
  font-weight: 800;
}

.admin__menu-meta {
  color: var(--muted);
}

.admin__card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.admin__list {
  display: grid;
  gap: 8px;
}

.admin__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #1f2937;
  border-radius: 10px;
  background: #0f172a;
}

.admin__row small {
  color: var(--muted);
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.admin-card-news {
  border: 1px solid #1f2937;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 140px auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.admin-card-news__thumb {
  background-size: cover;
  background-position: center;
}

.admin-card-news__body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.admin-card-news__tags {
  display: flex;
  gap: 6px;
  align-items: center;
}

.admin-card-news__title {
  font-weight: 800;
  color: #f8fafc;
}

.admin-card-news__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-card-news__summary {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.admin-card-news__actions {
  margin-top: 4px;
}

.admin__edit {
  margin: 8px 0 16px;
  border: 1px solid #1f2937;
  border-radius: 10px;
  background: #0b1220;
  padding: 8px 10px;
}

.admin__edit summary {
  cursor: pointer;
  font-weight: 800;
  color: #fbbf24;
  list-style: none;
}

.admin__edit summary::marker,
.admin__edit summary::-webkit-details-marker {
  display: none;
}

.admin__edit[open] {
  border-color: var(--accent);
}

/* WordPress-like admin layout */
body[class*="page-admin"] {
  --wp-bg: #0b0e1a;
  --wp-panel: #0f172a;
  --wp-panel-strong: #0c111c;
  --wp-border: #1f2937;
  --wp-border-strong: #243044;
  --wp-primary: var(--nav-orange);
  --wp-primary-strong: var(--nav-orange-strong);
  --wp-muted: #9ca3af;
  --wp-text-strong: #e5e7eb;
  --wp-sidebar: #0d1422;
  background: radial-gradient(circle at 16% 18%, rgba(255, 147, 31, 0.08), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(255, 122, 0, 0.08), transparent 32%),
    linear-gradient(135deg, #0c111c 0%, #0f172a 100%);
  color: var(--wp-text-strong);
}

body[class*="page-admin"] .hero-nav,
body[class*="page-admin"] .footer,
body[class*="page-admin"] .breadcrumb {
  display: none;
}

body[class*="page-admin"] .layout {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body[class*="page-admin"] .main-panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.wp-admin {
  background: var(--wp-panel);
  border: 1px solid var(--wp-border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  min-height: 100vh;
}

.wp-admin__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--nav-orange), var(--nav-orange-strong));
  color: #fff9f3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.wp-admin__bar-left,
.wp-admin__bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--nav-orange-strong);
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 20px rgba(255, 147, 31, 0.2);
}

.wp-admin__crumb {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.wp-admin__user {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.wp-admin__body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 680px;
}

.wp-admin__sidebar {
  background: var(--wp-sidebar);
  color: #e5e7eb;
  padding: 14px 12px 18px;
  border-right: 1px solid rgba(255, 147, 31, 0.12);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
}

.wp-admin__brand {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 147, 31, 0.25);
}

.wp-admin__brand small {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  color: #cbd5e1;
}

.wp-admin__menu {
  margin: 12px 0 0;
  display: grid;
  gap: 4px;
}

.wp-admin__menu-link {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e5e7eb;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.14s ease, border 0.14s ease, color 0.14s ease;
}

.wp-admin__menu-link i {
  font-size: 18px;
  line-height: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.wp-admin__menu-link:hover {
  background: rgba(255, 147, 31, 0.12);
  border-color: rgba(255, 147, 31, 0.4);
  color: #fff7ec;
}

.wp-admin__menu-link.is-active {
  background: linear-gradient(135deg, var(--nav-orange), var(--nav-orange-strong));
  color: #0b0f1a;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.25);
}

.wp-admin__menu-label {
  font-weight: 800;
  grid-column: 2;
}

.wp-admin__menu-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  grid-column: 2;
}

.wp-admin__content {
  background: var(--wp-panel);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.wp-admin__content-header {
  background: #111827;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.wp-admin__eyebrow {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--wp-muted);
}

.wp-admin__content-header h1 {
  margin: 0;
  color: var(--wp-text-strong);
  letter-spacing: 0.2px;
}

.wp-admin__lede {
  margin: 6px 0 0;
  color: var(--wp-muted);
}

.wp-admin__content-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wp-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--wp-border);
  background: #0f172a;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.12s ease;
}

.wp-button:hover {
  transform: translateY(-1px);
  border-color: var(--wp-border-strong);
}

.wp-button--primary {
  background: var(--wp-primary);
  border-color: var(--wp-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 147, 31, 0.28);
}

.wp-button--ghost {
  background: transparent;
  border-color: rgba(255, 147, 31, 0.5);
  color: #fff4eb;
}

.wp-button--subtle {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.08);
}

.wp-action-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--wp-border);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.12s ease;
}

.wp-action-icon i {
  font-size: 16px;
  line-height: 1;
}

.wp-action-icon:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 147, 31, 0.5);
  color: #fff7ec;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.wp-action-icon--edit {
  background: rgba(255, 147, 31, 0.12);
  border-color: rgba(255, 147, 31, 0.5);
  color: #ffd8a8;
}

.wp-action-icon--delete {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecdd3;
}

.wp-grid {
  display: grid;
  gap: 12px;
}

.wp-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.wp-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wp-card {
  background: #0f172a;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.wp-card__header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--wp-border);
}

.wp-card__title {
  margin: 0;
  font-size: 1.05rem;
  color: #fff7ed;
}

.wp-card__meta {
  color: var(--wp-muted);
  font-size: 0.95rem;
  margin: 0;
}

.wp-card__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.wp-field {
  display: grid;
  gap: 6px;
}

.wp-field label {
  font-weight: 700;
  color: #e5e7eb;
}

.wp-field input,
.wp-field select,
.wp-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--wp-border);
  background: #0b1220;
  color: #e5e7eb;
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.24);
}

.wp-field textarea {
  resize: vertical;
  min-height: 96px;
}

.wp-notice {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
}

.wp-notice+.wp-notice {
  margin-top: 6px;
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.wp-table thead {
  background: #111827;
}

.wp-table th,
.wp-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--wp-border);
  text-align: left;
  color: var(--wp-text-strong);
  vertical-align: top;
}

.wp-table__title {
  font-weight: 800;
  color: var(--wp-text-strong);
  margin-bottom: 4px;
}

.wp-table__meta {
  color: var(--wp-muted);
  font-size: 0.92rem;
}

.wp-table th {
  color: #e5e7eb;
}

.wp-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.wp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fef3c7;
  font-weight: 700;
  border: 1px solid rgba(255, 147, 31, 0.3);
}

.wp-pill--outline {
  background: transparent;
  color: var(--nav-orange);
  border-color: rgba(255, 147, 31, 0.6);
}

.wp-inline-editor {
  margin-top: 10px;
  border: 1px solid var(--wp-border);
  border-radius: 10px;
  background: #0f172a;
}

.wp-inline-editor summary {
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  color: #fef3c7;
}

.wp-inline-editor summary::marker,
.wp-inline-editor summary::-webkit-details-marker {
  display: none;
}

.wp-inline-editor[open] {
  border-color: var(--nav-orange);
  box-shadow: 0 10px 20px rgba(255, 147, 31, 0.15);
}

.wp-inline-editor .form {
  padding: 10px 12px 12px;
  background: #0b1220;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wp-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 147, 31, 0.35);
  border-radius: var(--wp-radius);
  background: linear-gradient(135deg, rgba(255, 147, 31, 0.12), rgba(12, 17, 28, 0.85));
}

.wp-stat__label {
  color: #fef3c7;
  font-weight: 700;
}

.wp-stat__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.wp-empty {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 147, 31, 0.45);
  text-align: center;
  color: #fef3c7;
  background: rgba(255, 147, 31, 0.08);
}

.wp-editor {
  border: 1px solid var(--wp-border);
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.wp-editor__toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.wp-editor__btn {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 147, 31, 0.4);
  background: rgba(255, 147, 31, 0.1);
  cursor: pointer;
  font-weight: 700;
  color: #fef3c7;
  transition: background 0.1s ease, transform 0.1s ease;
}

.wp-editor__select,
.wp-editor__color {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fef3c7;
  font-weight: 700;
}

.wp-editor__color {
  padding: 6px;
  height: 36px;
  width: 46px;
}

.wp-editor__btn:hover {
  background: rgba(255, 147, 31, 0.2);
  transform: translateY(-1px);
}

.wp-editor__area {
  min-height: 140px;
  padding: 12px 12px 14px;
  outline: none;
  color: #e5e7eb;
}

.wp-editor__area img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.wp-editor__area:focus {
  background: rgba(255, 255, 255, 0.03);
}

.wp-editor__input {
  display: none;
}

@media (max-width: 980px) {
  .wp-admin__body {
    grid-template-columns: 1fr;
  }

  .wp-admin__sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
  }

  .wp-admin__menu {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  body[class*="page-admin"] .layout {
    padding: 0 12px;
  }

  .wp-admin__content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wp-admin__content-actions {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .admin__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {

  .hall__head,
  .hall__row {
    grid-template-columns: 1fr 1.6fr 1fr 1fr 1fr;
  }

  .hall__head div:nth-child(6),
  .hall__head div:nth-child(7),
  .hall__row div:nth-child(6),
  .hall__row div:nth-child(7) {
    display: none;
  }
}

@media (max-width: 640px) {

  .hall__head,
  .hall__row {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    row-gap: 6px;
  }

  .hall__row div:nth-child(3),
  .hall__row div:nth-child(4),
  .hall__row div:nth-child(5) {
    font-size: 0.9rem;
  }

  .hall__head div:nth-child(3),
  .hall__head div:nth-child(4),
  .hall__head div:nth-child(5) {
    display: none;
  }

  .hall__head div:nth-child(2)::after {
    content: " / รายละเอียด";
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-main {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon--caret {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.nav-toggle__checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.nav-toggle:hover {
  transform: translateY(-1px);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 7;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 82%;
  height: 100%;
  background: #0f172a;
  color: var(--text);
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 8;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-close .icon {
  stroke: #fff;
  stroke-width: 2.2;
}

.nav-drawer__body {
  display: grid;
  padding: 8px 10px 10px;
  overflow: auto;
}

.nav-drawer__submenu {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer__link--child {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 4px 0;
  transition: border 0.15s ease, background 0.15s ease;
}

.nav-drawer__link:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.nav-drawer__link.is-active {
  border-color: #38bdf8;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.18);
}

.nav-drawer__footer {
  padding: 12px 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-drawer__icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#nav-toggle:checked~.nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

#nav-toggle:checked~.nav-drawer {
  transform: translateX(0);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  max-width: 1400px;
  margin: 26px auto;
  padding: 0 20px;
}

.sidebar {
  display: none;
}

.sidebar h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  background: #0b1220;
  transition: all 0.16s ease;
}

.side-links a span {
  color: var(--muted);
  font-size: 0.85rem;
}

.side-links a:hover {
  border-color: #334155;
  background: #111a2b;
  transform: translateY(-1px);
}

.side-links .is-active {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.08);
}

.sidebar__note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0b1220;
  color: var(--text);
  border: 1px dashed #38bdf8;
  font-size: 0.9rem;
}

.main-panel {
  padding: 22px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--accent-strong);
}

.breadcrumb__divider {
  color: var(--muted);
}

.page-header {
  margin-bottom: 14px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f172a;
}

.card h3 {
  margin: 0 0 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ecfeff;
  color: #0f172a;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid #99f6e4;
  width: fit-content;
}

.badge--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.list li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f172a;
}

.profile-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--nav-orange), var(--nav-orange-strong));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0b1220;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 122, 0, 0.28);
}

.btn.secondary {
  background: #1f2937;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
}

.field input {
  padding: 10px 12px;
  border: 1px solid #263143;
  background: #0b1220;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: transparent;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: #1e293b;
  color: #fca5a5;
  border: 1px solid #f87171;
}

.download-grid {
  display: grid;
  gap: 18px;
}

.download-block {
  background: #0f172a;
  border: 1px solid #1f2937;
}

.download-block__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #1f2937;
}

.download-block__title {
  font-weight: 800;
  color: #fbbf24;
  font-size: 1.05rem;
}

.download-block__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.download-block__body {
  padding: 12px 14px 14px;
}

.download-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.download-block__table {
  display: grid;
  gap: 10px;
  padding: 12px 14px 16px;
}

.download-row,
.requirements-row,
.requirements-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 120px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 10px;
}

.requirements-head {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  color: var(--text);
}

.requirements-row {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.requirements-head {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.download-block__table--compact {
  gap: 8px;
}

.download-row__action {
  text-align: right;
}

@media (max-width: 760px) {

  .download-row,
  .requirements-row,
  .requirements-head {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .download-row__action {
    text-align: left;
  }
}

.footer--dark {
  max-width: none;
  background: #0c111c;
  color: #d1d5db;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer__logos img {
  max-height: 54px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.footer__meta {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer__social {
  text-align: right;
}

.footer__social-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f9fafb;
}

.footer__social-line {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 4px 0 10px;
}

.footer__social-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__social-icons a img {
  width: 32px;
  height: 32px;
  display: block;
}

.footer--dark::before {
  content: "";
  display: block;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg width='64' height='16' viewBox='0 0 64 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8h8v8H0V8Zm8 0h8v8H8V8Zm16 0h8v8h-8V8Zm8 0h8v8h-8V8Zm16 0h8v8h-8V8Zm8 0h8v8h-8V8ZM8 0h8v8H8V0Zm16 0h8v8h-8V0Zm16 0h8v8h-8V0Zm16 0h8v8h-8V0Z' fill='%23202639' fill-opacity='0.9'/%3E%3C/svg%3E") repeat-x;
  opacity: 0.7;
}

@media (max-width: 960px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer__social {
    text-align: center;
  }

  .footer__logos {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.page-news .main-panel {
  padding: 26px 24px 30px;
  background: #0b1220;
  border-color: #1b2436;
}

.news-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.12), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(255, 147, 31, 0.12), transparent 30%),
    #0f172a;
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 40%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.15), transparent 55%);
}

.news-hero>* {
  position: relative;
  z-index: 1;
}

.news-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.news-crumbs a {
  color: #bae6fd;
}

.news-crumbs span::before {
  content: "/";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.4);
}

.news-hero__heading {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.news-hero h1 {
  margin: 6px 0 6px;
  font-family: "Kanit", "Manrope", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.5px;
}

.news-hero p {
  margin: 0;
  color: var(--muted);
}

.news-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 8px;
  min-width: 240px;
}

.news-meta__item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 4px;
  text-align: center;
}

.news-meta__item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.news-meta__item strong {
  font-size: 1.2rem;
  letter-spacing: 0.3px;
}

.news-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.news-tab {
  border: 1px solid #1f2937;
  background: #0b1220;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.news-tab:hover {
  border-color: #334155;
  background: #111a2b;
}

.news-tab.is-active {
  color: #0f172a;
  background: linear-gradient(135deg, var(--nav-orange), var(--nav-orange-strong));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.26);
}

.news-section {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 ข่าวต่อแถว */
  gap: 18px;
}

/* Responsive: Tablet - 2 columns */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: Mobile - 1 column */
@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: #334155;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.news-card--featured {
  grid-column: span 2;
  min-height: 360px;
}

.news-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.news-card--featured .news-card__media {
  aspect-ratio: 16 / 7;
}

.news-card__shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.news-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.news-pill--announce {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.4);
}

.news-pill--highlight {
  background: rgba(255, 147, 31, 0.24);
  border-color: rgba(255, 147, 31, 0.46);
}

.news-pill--warning {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.48);
}

.news-pill--event {
  background: rgba(94, 234, 212, 0.2);
  border-color: rgba(94, 234, 212, 0.45);
}

.news-pill--promo {
  background: rgba(180, 167, 255, 0.22);
  border-color: rgba(180, 167, 255, 0.5);
}

.news-card__body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 8px;
}

.news-card__category {
  font-size: 0.9rem;
  color: #93c5fd;
  letter-spacing: 0.3px;
}

.news-card__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.news-card__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 4px;
}

.news-card__tag {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  font-weight: 700;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    margin: 18px auto;
  }

  .sidebar {
    position: relative;
  }

  .nav-topbar,
  .nav-main__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-topbar {
    padding: 12px 20px;
  }

  .nav-main__inner {
    padding: 14px 20px;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-icons {
    margin-left: 0;
    display: none;
  }

  .nav-primary {
    width: 100%;
    justify-content: flex-start;
    display: none;
  }

  .nav-primary__link {
    width: calc(50% - 4px);
    padding: 10px 12px;
  }

  .nav-primary__submenu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    display: none;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .nav-logo {
    order: 1;
  }

  .nav-drawer {
    display: grid;
  }

  .hero-banner__content {
    grid-template-columns: 1fr;
    padding: 24px 20px 48px;
    text-align: center;
  }

  .hero-banner__left {
    justify-content: center;
    order: 2;
  }

  .hero-banner__right {
    order: 1;
  }

  .hero-banner__illustration {
    width: min(82vw, 620px);
  }

  .hero-banner__badge {
    width: min(72vw, 520px);
  }

  .hero-banner__cta-group {
    width: min(90vw, 620px);
  }
}

@media (max-width: 640px) {
  .nav-primary__link {
    width: 100%;
  }

  .hero-banner__cta-row {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: 0;
  }

  .news-hero__heading {
    flex-direction: column;
  }

  .news-meta {
    width: 100%;
  }

  .news-card--featured {
    grid-column: span 1;
    min-height: auto;
  }
}