:root {
  --wg-navy: #071126;
  --wg-navy2: #020817;
  --wg-gold: #c99718;
  --wg-gold2: #e0b327;
  --wg-text: #f4f0df;
  --wg-width: 1180px;
  --wg-border: #a97608;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Tahoma,
    sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
}
.inner,
.content-shell,
.brand-wrap,
.nav-wrap {
  width: min(var(--wg-width), calc(100% - 32px));
  margin: auto;
}
.site-header {
  background: var(--wg-navy2);
  color: #fff;
}
.brand-wrap {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    #142a61 0,
    #071126 50%,
    #020817 100%
  );
  padding: 28px 0;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
  color: #dda70f;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.custom-logo-link {
  display: flex;
  justify-content: center;
}
.custom-logo,
.wamagame-header-image {
  display: block;
  max-height: 170px;
  max-width: min(760px, 90vw);
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-tagline {
  margin-top: 12px;
  color: #d8dce7;
  font-size: 14px;
}
.nav-band {
  border-top: 4px solid var(--wg-gold);
  background: #081225;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
}
.nav-wrap {
  display: flex;
  align-items: stretch;
  min-height: 54px;
}
.primary-nav {
  flex: 1;
  min-width: 0;
}
.primary-nav ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav li {
  position: relative;
}
.primary-nav > ul > li > a {
  height: 100%;
  display: flex;
  align-items: center;
}
.primary-nav a {
  display: block;
  padding: 14px 15px;
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  background: #101d35;
  color: #f2c646;
}
.primary-nav .menu-item-has-children > a:after {
  content: "⌄";
  font-size: 12px;
  margin-left: 7px;
  color: #d8b13a;
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #081225;
  border-top: 2px solid var(--wg-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.primary-nav .sub-menu li {
  width: 100%;
}
.primary-nav .sub-menu a {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  display: block;
}
.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 18px;
  background: linear-gradient(#d6a72d, #a9740b);
  color: #fff8dc;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  border-left: 1px solid #e6bd52;
}
.nav-cta:hover {
  background: linear-gradient(#e1b944, #b9800c);
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 750;
  padding: 12px 0;
}
.hamburger {
  width: 24px;
  display: grid;
  gap: 4px;
}
.hamburger i {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.contact-bar {
  background: #05070d;
  color: #fff;
  text-align: center;
  padding: 34px 0 38px;
}
.contact-bar p {
  font-size: 21px;
  margin: 0 0 19px;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 235px;
  min-height: 54px;
  border-radius: 999px;
  padding: 9px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.2),
    0 2px 5px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.15s,
    filter 0.15s;
}
.contact-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.contact-icon {
  font-size: 20px;
  line-height: 1;
}
.contact-btn-1 {
  background: linear-gradient(#d4b823, #887000);
}
.contact-btn-2 {
  background: linear-gradient(#45d86b, #087f25);
}
.contact-btn-3 {
  background: linear-gradient(#31bcd7, #08768e);
}
.site-content {
  min-height: 50vh;
}
.content-shell {
  padding: 40px 0;
}
.posts {
  max-width: 900px;
}
.post-card {
  padding: 0 0 32px;
  margin: 0 0 32px;
  border-bottom: 1px solid #ddd;
}
.post-card img,
.single-post img {
  max-width: 100%;
  height: auto;
}
.post-card h2 {
  margin: 12px 0 4px;
}
.post-card h2 a {
  text-decoration: none;
}
.meta {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 12px;
}
.single-post {
  max-width: 900px;
}
.site-footer {
  background: var(--wg-navy);
  color: #fff;
  padding: 34px 0;
  border-top: 1px solid #16233b;
}
.site-footer p {
  margin: 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-description {
  flex: 1;
}
.footer-line {
  color: #d4ad30;
  font-weight: 800;
  text-decoration: none;
  margin-left: 4px;
}
.footer-line:hover {
  text-decoration: underline;
}
.footer-copyright {
  color: #aeb7c8;
  font-size: 13px;
  white-space: nowrap;
}
.scroll-up {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wg-gold);
  color: #111;
  text-decoration: none;
  font-weight: 900;
}
.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .primary-nav a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
  }
  .nav-cta {
    padding: 0 13px;
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .inner,
  .content-shell,
  .brand-wrap,
  .nav-wrap {
    width: min(100% - 24px, var(--wg-width));
  }
  .brand-wrap {
    min-height: 140px;
    padding: 20px 0;
  }
  .brand {
    font-size: 42px;
  }
  .custom-logo,
  .wamagame-header-image {
    max-height: 112px;
    max-width: 92vw;
  }
  .nav-band {
    border-top-width: 3px;
  }
  .nav-wrap {
    display: block;
    min-height: 0;
  }
  .menu-toggle {
    display: flex;
    width: 100%;
    min-height: 50px;
  }
  .primary-nav {
    display: none;
    margin: 0 -12px;
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    display: block;
  }
  .primary-nav li {
    width: 100%;
  }
  .primary-nav a,
  .primary-nav > ul > li > a {
    display: block;
    height: auto;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    white-space: normal;
  }
  .primary-nav .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    background: #050d1d;
    border: 0;
    box-shadow: none;
    padding-left: 14px;
  }
  .primary-nav .sub-menu a {
    font-size: 14px;
    color: #dce2ed;
  }
  .primary-nav .menu-item-has-children > a:after {
    content: "";
  }
  .nav-cta {
    min-height: 48px;
    margin: 0 -12px;
    padding: 0 14px;
    border-left: 0;
    border-top: 1px solid #e6bd52;
  }
  .contact-bar {
    padding: 27px 0 30px;
  }
  .contact-bar p {
    font-size: 18px;
  }
  .contact-actions {
    display: grid;
    gap: 12px;
  }
  .contact-btn {
    width: min(360px, 90vw);
    min-width: 0;
  }
  .content-shell {
    padding: 28px 0;
  }
  .footer-inner {
    display: block;
  }
  .footer-copyright {
    margin-top: 12px !important;
    white-space: normal;
  }
}

/* =========================================================
   WAMAGAME FRONT PAGE
   ========================================================= */

.wg-home {
  background: #02050d;
  color: #e8e8e8;
  padding: 34px 20px 48px;
}

.wg-home-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* =========================================================
   SECTION TITLE
   ========================================================= */

.wg-home-section {
  margin-bottom: 38px;
}

.wg-section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;

  margin: 0 0 18px;
  padding: 0 0 10px;

  color: #d8bd69;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;

  border-bottom: 2px solid #9d7914;
}

.wg-star {
  color: #e2bd42;
  font-size: 19px;
}

/* =========================================================
   LINKS
   ========================================================= */

.wg-home a {
  color: inherit;
  text-decoration: none;
}

.wg-home a:hover {
  color: #e4c65d;
}

/* =========================================================
   FEATURED / แอพเด่นเกมดัง
   ========================================================= */

.wg-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

/* Main featured article */

.wg-featured-main {
  background: #071126;
  overflow: hidden;
}

.wg-featured-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020713;
}

.wg-featured-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wg-featured-main:hover .wg-featured-main-image img {
  transform: scale(1.025);
}

.wg-featured-main-body {
  padding: 18px 20px 21px;
}

.wg-featured-main-body h2 {
  margin: 0 0 9px;
  color: #e5d394;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.wg-post-date {
  margin-bottom: 10px;
  color: #8991a0;
  font-size: 14px;
  line-height: 1.5;
}

.wg-excerpt {
  color: #c9cbd1;
  font-size: 15px;
  line-height: 1.75;
}

/* Featured side */

.wg-featured-side {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* =========================================================
   SMALL POST
   ========================================================= */

.wg-small-post {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 14px;

  min-height: 108px;
  padding: 10px;

  background: #071126;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.wg-small-post:hover {
  background: #0a1730;
}

.wg-small-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 88px;
  overflow: hidden;
  background: #020713;
}

.wg-small-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wg-small-body {
  min-width: 0;
  align-self: center;
}

.wg-small-body h3 {
  margin: 0 0 8px;

  color: #e2d39c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

/* =========================================================
   LOWER 2 COLUMNS
   เกมคาสิโน + เทคนิคขั้นเทพ
   ========================================================= */

.wg-home-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.wg-category-column {
  min-width: 0;
  margin-bottom: 0;
}

/* Main article in each column */

.wg-column-featured {
  margin-bottom: 9px;
  background: #071126;
  overflow: hidden;
}

.wg-column-featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  background: #020713;
}

.wg-column-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wg-column-featured:hover .wg-column-featured-image img {
  transform: scale(1.025);
}

.wg-column-featured-body {
  padding: 15px 17px 18px;
}

.wg-column-featured-body h2 {
  margin: 0 0 8px;

  color: #e3d197;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.wg-column-featured .wg-excerpt {
  font-size: 14px;
}

/* Small article list */

.wg-post-list {
  display: grid;
  gap: 4px;
}

.wg-post-list .wg-small-post {
  grid-template-columns: 135px minmax(0, 1fr);
  min-height: 92px;
  padding: 8px;
}

.wg-post-list .wg-small-thumb {
  min-height: 76px;
}

/* =========================================================
   NO POSTS
   ========================================================= */

.wg-no-posts {
  padding: 20px;
  color: #aaa;
  background: #071126;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {
  .wg-home-inner {
    max-width: 820px;
  }

  .wg-featured-grid {
    grid-template-columns: 1fr;
  }

  .wg-featured-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .wg-small-post {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .wg-home-columns {
    gap: 16px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .wg-home {
    padding: 24px 14px 35px;
  }

  .wg-home-section {
    margin-bottom: 30px;
  }

  .wg-section-title {
    margin-bottom: 14px;
    font-size: 18px;
  }

  /* Featured */

  .wg-featured-grid {
    display: block;
  }

  .wg-featured-main {
    margin-bottom: 8px;
  }

  .wg-featured-main-body {
    padding: 14px 15px 17px;
  }

  .wg-featured-main-body h2 {
    font-size: 20px;
  }

  .wg-featured-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  /* Lower columns stack */

  .wg-home-columns {
    display: block;
  }

  .wg-category-column {
    margin-bottom: 30px;
  }

  .wg-column-featured-body h2 {
    font-size: 18px;
  }

  /* Small posts */

  .wg-small-post,
  .wg-post-list .wg-small-post {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    min-height: 82px;
    padding: 7px;
  }

  .wg-small-thumb,
  .wg-post-list .wg-small-thumb {
    min-height: 70px;
    aspect-ratio: 16 / 10;
  }

 /*Yin
 .wg-small-body h3,
  .wg-post-list .wg-small-body h3 {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.35;
  }
*/
  .wg-excerpt {
    font-size: 14px;
  }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {
  .wg-home {
    padding-left: 10px;
    padding-right: 10px;
  }

  .wg-small-post,
  .wg-post-list .wg-small-post {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .wg-featured-main-body h2 {
    font-size: 18px;
  }
}
/* =========================================================
   WAMAGAME ARCHIVE / CATEGORY
   ========================================================= */

.wg-archive {
  min-height: 600px;
  padding: 34px 20px 50px;
  background: #02050d;
  color: #e8e8e8;
}

.wg-archive-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Header */

.wg-archive-header {
  margin-bottom: 20px;
}

.wg-archive-title {
  display: flex;
  align-items: center;
  gap: 7px;

  margin: 0;
  padding: 0 0 11px;

  color: #d8bd69;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;

  border-bottom: 2px solid #9d7914;
}

.wg-archive-description {
  margin-top: 13px;
  color: #aaaeb8;
  font-size: 14px;
  line-height: 1.7;
}

/* Links */

.wg-archive a {
  color: inherit;
  text-decoration: none;
}

.wg-archive a:hover {
  color: #e4c65d;
}

/* =========================================================
   GRID
   ========================================================= */

.wg-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* =========================================================
   FIRST / FEATURED ARTICLE
   ========================================================= */

.wg-archive-featured {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);

  background: #071126;
  overflow: hidden;
}

.wg-archive-featured-image {
  display: block;
  min-height: 350px;
  overflow: hidden;
  background: #020713;
}

.wg-archive-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wg-archive-featured:hover .wg-archive-featured-image img {
  transform: scale(1.025);
}

.wg-archive-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.wg-archive-featured-body h2 {
  margin: 0 0 11px;

  color: #e4d294;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
}

/* =========================================================
   NORMAL ARTICLE CARDS
   ========================================================= */

.wg-archive-card {
  background: #071126;
  overflow: hidden;
}

.wg-archive-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  background: #020713;
}

.wg-archive-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wg-archive-card:hover .wg-archive-card-image img {
  transform: scale(1.025);
}

.wg-archive-card-body {
  padding: 16px 18px 20px;
}

.wg-archive-card-body h2 {
  margin: 0 0 9px;

  color: #e3d197;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

/* Meta + excerpt */

.wg-archive-meta {
  margin-bottom: 10px;
  color: #858e9d;
  font-size: 12px;
  line-height: 1.5;
}

.wg-archive-excerpt {
  color: #c7c9cf;
  font-size: 14px;
  line-height: 1.75;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.wg-pagination {
  margin-top: 34px;
}

.wg-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.wg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 38px;
  padding: 0 12px;

  border: 1px solid #26334b;
  background: #071126;

  color: #d5d7dc;
  font-size: 13px;
  text-decoration: none;

  transition: 0.2s ease;
}

.wg-pagination a.page-numbers:hover {
  border-color: #b98b0c;
  background: #101c33;
  color: #e8c650;
}

.wg-pagination .page-numbers.current {
  border-color: #c99a11;
  background: #b98608;
  color: #fff;
}

/* Empty archive */

.wg-archive-empty {
  padding: 50px 20px;
  text-align: center;
  background: #071126;
}

.wg-archive-empty h2 {
  margin-top: 0;
  color: #dfc772;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .wg-archive-featured {
    grid-template-columns: 1fr;
  }

  .wg-archive-featured-image,
  .wg-archive-featured-image img {
    min-height: 0;
  }

  .wg-archive-featured-image {
    aspect-ratio: 16 / 9;
  }

  .wg-archive-featured-body {
    padding: 20px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .wg-archive {
    padding: 25px 14px 36px;
  }

  .wg-archive-title {
    font-size: 19px;
  }

  .wg-archive-grid {
    display: block;
  }

  .wg-archive-featured,
  .wg-archive-card {
    margin-bottom: 12px;
  }

  .wg-archive-featured-body {
    padding: 16px;
  }

  .wg-archive-featured-body h2 {
    font-size: 20px;
  }

  .wg-archive-card-body {
    padding: 14px 15px 17px;
  }

  .wg-archive-card-body h2 {
    font-size: 17px;
  }

  .wg-archive-excerpt {
    font-size: 13px;
  }
}

/* =========================================================
   ACTIVE MENU — WAMAGAME
   ========================================================= */

/* เมนูปกติ */
.primary-nav .menu > li > a {
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

/* หน้าที่กำลังเปิดอยู่ = พื้นทอง */
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-menu-parent > a,
.primary-nav .menu > li.current-menu-ancestor > a,
.primary-nav .menu > li.current_page_item > a,
.primary-nav .menu > li.current_page_parent > a,
.primary-nav .menu > li.current_page_ancestor > a {
  background: linear-gradient(#d6a72d, #a9740b);
  color: #fff8dc;
}

/* Hover */
.primary-nav .menu > li > a:hover {
  background: linear-gradient(#e1b944, #b9800c);
  color: #fff;
}

/* ---------- MOBILE ---------- */

@media (max-width: 720px) {
  .primary-nav .menu > li.current-menu-item > a,
  .primary-nav .menu > li.current-menu-parent > a,
  .primary-nav .menu > li.current-menu-ancestor > a,
  .primary-nav .menu > li.current_page_item > a,
  .primary-nav .menu > li.current_page_parent > a,
  .primary-nav .menu > li.current_page_ancestor > a {
    border-left: 3px solid #e6bd52;
  }
}

/* =========================================================
   WAMAGAME SINGLE POST
   ========================================================= */

.wg-single {
  background: #02050d;
  color: #c9cbd1;
  padding: 38px 20px 55px;
}

.wg-single-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

/* =========================================================
   ARTICLE HEADER
   ========================================================= */

.wg-single-header {
  margin-bottom: 24px;
}

.wg-single-category {
  margin-bottom: 13px;
  padding-bottom: 9px;

  border-bottom: 1px solid #9d7914;

  color: #d6b951;
  font-size: 16px;
  font-weight: 700;
}

.wg-single-title {
  margin: 0 0 13px;

  color: #e1cf91;
  font-size: 32px;
  line-height: 1.45;
  font-weight: 700;
}

.wg-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;

  color: #7f8795;
  font-size: 12px;
}

.wg-single-meta a {
  color: #9b9faa;
  text-decoration: none;
}

.wg-single-meta a:hover {
  color: #d9bd60;
}

/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.wg-single-featured {
  margin: 0 auto 28px;
  text-align: center;
}

.wg-single-featured img {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;

  margin: 0 auto;
}

/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.wg-single-content {
  color: #c9cbd1;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.wg-single-content p {
  margin: 0 0 1.35em;
}

.wg-single-content h2,
.wg-single-content h3,
.wg-single-content h4 {
  color: #dbc77f;
  line-height: 1.5;
}

.wg-single-content h2 {
  margin: 1.8em 0 0.65em;
  font-size: 25px;
}

.wg-single-content h3 {
  margin: 1.6em 0 0.6em;
  font-size: 21px;
}

.wg-single-content h4 {
  margin: 1.5em 0 0.5em;
  font-size: 18px;
}

.wg-single-content a {
  color: #d9b941;
  text-decoration: none;
}

.wg-single-content a:hover {
  text-decoration: underline;
}

/* สำคัญ — ป้องกันภาพเก่าในบทความล้นกรอบ */

.wg-single-content img {
  max-width: 100%;
  height: auto;
}

.wg-single-content img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wg-single-content figure {
  max-width: 100%;
}

.wg-single-content .wp-caption {
  max-width: 100%;
}

.wg-single-content blockquote {
  margin: 25px 0;
  padding: 12px 20px;

  border-left: 3px solid #bd9118;
  background: #071126;

  color: #d4d5da;
}

/* Lists */

.wg-single-content ul,
.wg-single-content ol {
  margin: 0 0 1.4em;
  padding-left: 25px;
}

.wg-single-content li {
  margin-bottom: 0.45em;
}

/* Tables */

.wg-single-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.wg-single-content th,
.wg-single-content td {
  padding: 10px;
  border: 1px solid #253047;
}

.wg-single-content th {
  background: #0a1428;
  color: #ddc879;
}

/* =========================================================
   TAGS
   ========================================================= */

.wg-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-top: 35px;
  padding-top: 18px;

  border-top: 1px solid #263047;

  color: #9298a4;
  font-size: 12px;
}

.wg-single-tags strong {
  color: #d6bc63;
}

.wg-single-tags a {
  padding: 4px 9px;

  border: 1px solid #27344d;
  background: #071126;

  color: #bfc2c9;
  text-decoration: none;
}

.wg-single-tags a:hover {
  border-color: #aa8114;
  color: #e2c55e;
}

/* =========================================================
   RELATED POSTS
   ========================================================= */

.wg-related {
  margin-top: 48px;
  padding-top: 5px;
}

.wg-related-heading {
  margin: 0 0 20px;
  padding: 0 0 10px;

  border-bottom: 2px solid #9d7914;

  color: #d8bd69;
  font-size: 20px;
  line-height: 1.4;
}

.wg-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wg-related-card {
  background: #071126;
  overflow: hidden;
}

.wg-related-image {
  display: block;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  background: #050a15;
}

.wg-related-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  transition: transform 0.3s ease;
}

.wg-related-card:hover img {
  transform: scale(1.025);
}

.wg-related-noimage {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  color: #b68c18;
  font-weight: 700;
}

.wg-related-card h3 {
  margin: 0;
  padding: 13px 15px 16px;

  color: #ded09b;
  font-size: 16px;
  line-height: 1.5;
}

.wg-related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.wg-related-card h3 a:hover {
  color: #e8c75a;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .wg-single {
    padding: 27px 14px 40px;
  }

  .wg-single-title {
    font-size: 24px;
  }

  .wg-single-content {
    font-size: 15px;
    line-height: 1.85;
  }

  .wg-single-content h2 {
    font-size: 21px;
  }

  .wg-single-content h3 {
    font-size: 19px;
  }

  .wg-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* FIX SINGLE PAGE FULL WIDTH */
body.single,
body.single #page,
body.single .site,
body.single .site-content,
body.single main,
body.single .wg-single {
  width: 100% !important;
  max-width: none !important;
}

body.single .wg-single {
  display: block !important;
  box-sizing: border-box;
  background: #02050d;
}

/* FIX PAGE FULL WIDTH + DARK BACKGROUND */
body.page,
body.page #page,
body.page .site,
body.page .site-content,
body.page main {
  width: 100% !important;
  max-width: none !important;
}

body.page {
  background: #02050d;
}

body.page main {
  box-sizing: border-box;
}
/* PAGE CONTENT TEXT ON DARK BACKGROUND */
body.page .entry-content,
body.page .entry-content p,
body.page .entry-content li,
body.page .entry-content div {
  color: #e7e7e7;
}

body.page .entry-title,
body.page .entry-content h1,
body.page .entry-content h2,
body.page .entry-content h3,
body.page .entry-content h4,
body.page .entry-content strong,
body.page .entry-content b {
  color: #ead17a;
}

body.page .entry-content a {
  color: #d6a72d;
}
/* PAGE TITLE */
body.page .entry-title,
body.page h1.entry-title,
body.page .page-title,
body.page main h1 {
  color: #ead17a !important;
}

/* =========================================================
   WAMAGAME TYPOGRAPHY
   ========================================================= */

html,
body,
button,
input,
select,
textarea {
  font-family: Helvetica, sans-serif;
}
/* รายการย่อย เกมคาสิโน + เทคนิคขั้นเทพ
   ให้ขนาดเท่ารายการย่อย แอพเด่นเกมดัง */
.wg-post-list .wg-small-post .wg-small-body h3,
.wg-post-list .wg-small-post .wg-small-body h3 a {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* ===== CONTACT BUTTON TYPOGRAPHY ===== */

.contact-btn {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400 !important;
    line-height: 1.15;
    letter-spacing: 0;
}

.contact-btn span:last-child {
    text-align: left;
    font-size: 17px !important;
    font-weight: 400 !important;
}

.contact-btn small {
    display: block;
    margin-top: 1px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.15;
}

/* CENTER NORMAL PAGE CONTENT */
body.page .content-shell > .single-post {
    margin-left: auto;
    margin-right: auto;
}