/*
Theme Name: UFABET888 Hello Gold
Theme URI: https://ufabet888.local/
Description: Black and gold Hello Elementor child theme for the UFABET888 local project.
Author: UFABET888 Editorial Team
Template: hello-elementor
Version: 1.3.2
Text Domain: ufabet888-hello
*/

:root {
  --ufa-black: #050505;
  --ufa-black-soft: #0b0b0c;
  --ufa-panel: #121214;
  --ufa-panel-2: #1a1a1d;
  --ufa-gold: #d9a312;
  --ufa-gold-bright: #ffd43b;
  --ufa-gold-soft: #f0c75e;
  --ufa-cream: #fff8df;
  --ufa-text: #f0f0f0;
  --ufa-muted: #aaa9a4;
  --ufa-border: rgba(235, 184, 39, 0.28);
  --ufa-red: #d9281f;
  --ufa-green: #07955c;
  --ufa-blue: #0876bd;
  --ufa-shell: 1180px;
  --ufa-radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(217, 163, 18, 0.1), transparent 38rem),
    var(--ufa-black);
  color: var(--ufa-text);
  font-family: Tahoma, "Noto Sans Thai", Arial, sans-serif;
  line-height: 1.75;
}

body.admin-bar .ufa-site-header {
  top: 32px;
}

a {
  color: var(--ufa-gold-bright);
}

a:hover,
a:focus-visible {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

.ufa-shell {
  width: min(calc(100% - 36px), var(--ufa-shell));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  background: #fff;
  color: #111;
}

.ufa-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(5, 5, 5, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.ufa-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #020202;
  color: #bbb;
  font-size: 0.76rem;
}

.ufa-topbar__inner {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ufa-topbar p {
  margin: 0;
}

.ufa-topbar strong {
  color: var(--ufa-gold-bright);
}

.ufa-topbar__trust {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ufa-topbar__trust li::before {
  margin-right: 5px;
  color: var(--ufa-gold-bright);
  content: "◆";
  font-size: 0.6em;
}

.ufa-header-main {
  display: grid;
  min-height: 76px;
  grid-template-columns: 185px minmax(340px, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.ufa-wordmark {
  display: inline-flex;
  width: 100%;
  max-width: 185px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.ufa-wordmark__image {
  display: block;
  width: 100%;
  height: auto;
}

.ufa-member-bar {
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: 1fr 1fr 112px;
  gap: 7px;
  padding: 6px;
  border: 1px solid #383838;
  border-radius: 6px;
  background: #161616;
}

.ufa-member-bar__field,
.ufa-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.ufa-member-bar__field {
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: #8b8b8b;
  font-family: Arial, sans-serif;
}

.ufa-action {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24);
}

.ufa-action--login {
  background: linear-gradient(#ef3b31, #bb130c);
}

.ufa-action--register {
  background: linear-gradient(#13b978, #007d49);
}

.ufa-action--money {
  background: linear-gradient(#168ddd, #075b99);
}

.ufa-header-actions {
  display: flex;
  gap: 8px;
}

.ufa-header-actions .ufa-action {
  min-width: 104px;
  padding-inline: 14px;
}

.ufa-nav-wrap {
  border-top: 1px solid #171717;
  border-bottom: 3px solid var(--ufa-gold-bright);
  background: #050505;
}

.ufa-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 9px 0 11px;
  list-style: none;
}

.ufa-navigation li {
  margin: 0;
}

.ufa-navigation a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 15px;
  border-radius: 999px;
  background: linear-gradient(#fff, #dedede);
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 1px #fff, 0 2px 6px rgba(0, 0, 0, 0.5);
}

.ufa-navigation .current-menu-item > a,
.ufa-navigation a:hover,
.ufa-navigation a:focus-visible {
  background: linear-gradient(#ffdc42, #eeb000);
  color: #111;
}

.ufa-menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ufa-border);
  border-radius: 6px;
  background: #171717;
  color: var(--ufa-gold-bright);
  font-size: 1.4rem;
}

.ufa-front-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2048 / 566;
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
  border-bottom: 8px solid #111820;
  background: #060606;
}

.ufa-front-hero__image {
  position: absolute;
  inset: 0;
}

.ufa-front-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ufa-article,
body:not(.home) main.site-main {
  width: min(calc(100% - 36px), var(--ufa-shell));
  margin: 38px auto 70px;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid var(--ufa-border);
  border-radius: var(--ufa-radius);
  background: linear-gradient(145deg, rgba(21, 21, 23, 0.98), rgba(9, 9, 10, 0.98));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}

.ufa-article {
  margin-top: 42px;
}

.ufa-article__intro {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ufa-border);
}

.ufa-article__intro h1 {
  margin: 0;
  color: var(--ufa-gold-bright);
  font-size: clamp(1.35rem, calc(0.9rem + 0.85vw), 1.75rem);
  line-height: 1.4;
}

.page-header .entry-title,
.ufa-article h1,
.ufa-article h2,
.ufa-article h3,
.ufa-article h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--ufa-cream);
  line-height: 1.4;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.ufa-article .page-content > h2,
.page-content > h2 {
  font-size: clamp(1.25rem, calc(1rem + 0.55vw), 1.55rem);
}

.ufa-article .page-content > h3,
.page-content > h3 {
  font-size: clamp(1.08rem, calc(0.95rem + 0.35vw), 1.28rem);
}

.page-header .entry-title {
  margin-top: 0;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--ufa-gold-bright);
}

.ufa-singular__header .entry-title {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--ufa-gold-bright);
  color: var(--ufa-cream);
  font-size: clamp(1.7rem, calc(1.1rem + 1.4vw), 2.65rem);
  line-height: 1.35;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.ufa-singular__featured-image {
  margin: 26px 0 30px;
  overflow: hidden;
  border: 1px solid var(--ufa-border);
  border-radius: 9px;
  background: #050505;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.ufa-singular__featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.ufa-singular__content > :first-child {
  margin-top: 0;
}

.ufa-article .page-content > h2,
.page-content > h2 {
  margin-top: 2.2em;
  padding-left: 14px;
  border-left: 4px solid var(--ufa-gold-bright);
}

.ufa-article .page-content > h3,
.page-content > h3 {
  color: var(--ufa-gold-soft);
}

.ufa-article p,
.ufa-article li,
.page-content p,
.page-content li {
  color: #ddd;
}

.ufa-article .wp-block-image,
.page-content .wp-block-image {
  margin: 26px auto;
  overflow: hidden;
  border: 1px solid var(--ufa-border);
  border-radius: 9px;
  background: #050505;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.ufa-article .wp-block-image img,
.page-content .wp-block-image img {
  display: block;
  width: 100%;
}

.ufa-article blockquote,
.page-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--ufa-gold-bright);
  background: rgba(217, 163, 18, 0.08);
  color: var(--ufa-cream);
}

.ufa-article table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ufa-text);
}

.ufa-article th,
.ufa-article td,
.page-content th,
.page-content td {
  padding: 11px 13px;
  border: 1px solid #3a3425;
}

.ufa-article th,
.page-content th {
  background: rgba(217, 163, 18, 0.16);
  color: var(--ufa-gold-bright);
}

.ufa-footer-cta {
  border-block: 1px solid var(--ufa-border);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(64, 45, 0, 0.85)),
    #111;
}

.ufa-blog-page {
  display: block;
}

.ufa-breadcrumbs {
  margin: 18px auto 0;
  color: #b8b8b8;
  font-size: 0.92rem;
}

.ufa-breadcrumbs p {
  margin: 0;
}

.ufa-breadcrumbs a {
  color: var(--ufa-gold-soft);
  text-decoration: none;
}

.ufa-breadcrumbs a:hover,
.ufa-breadcrumbs a:focus-visible {
  color: var(--ufa-gold-bright);
  text-decoration: underline;
}

.ufa-blog-hero {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.ufa-blog-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--ufa-gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ufa-blog-hero h1 {
  margin: 0;
  color: var(--ufa-cream);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.18;
  text-wrap: balance;
}

.ufa-blog-hero__description {
  margin: 16px auto 0;
  color: #c8c8c8;
  font-size: 1rem;
}

.ufa-blog-hero__description p {
  margin: 0;
}

.ufa-blog-hubs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 28px 0 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--ufa-border);
}

.ufa-blog-hubs a {
  padding: 8px 15px;
  border: 1px solid var(--ufa-border);
  border-radius: 999px;
  background: rgba(217, 163, 18, 0.08);
  color: var(--ufa-gold-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.ufa-blog-hubs a:hover,
.ufa-blog-hubs a:focus-visible,
.ufa-blog-hubs a.is-current {
  border-color: var(--ufa-gold-bright);
  background: var(--ufa-gold-bright);
  color: #111;
}

.ufa-blog-list__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.ufa-blog-list__heading h2 {
  margin: 0;
  color: var(--ufa-cream);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.ufa-blog-list__heading span {
  color: var(--ufa-muted);
  font-size: 0.85rem;
}

.ufa-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ufa-blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ufa-border);
  border-radius: 10px;
  background: linear-gradient(145deg, #18181a, #0b0b0c);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.ufa-blog-card__media {
  display: grid;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 212, 59, 0.25), transparent 42%),
    #080808;
  color: var(--ufa-gold-bright);
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
}

.ufa-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.ufa-blog-card:hover .ufa-blog-card__media img {
  transform: scale(1.035);
}

.ufa-blog-card__body {
  padding: 20px;
}

.ufa-blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ufa-muted);
  font-size: 0.72rem;
}

.ufa-blog-card__meta span,
.ufa-blog-card__meta a {
  color: var(--ufa-gold-bright);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.ufa-blog-card__meta a:hover,
.ufa-blog-card__meta a:focus-visible {
  text-decoration: underline;
}

.ufa-blog-card h2 {
  margin: 12px 0 10px;
  font-size: 1.08rem;
  line-height: 1.45;
  text-wrap: balance;
}

.ufa-blog-card h2 a {
  color: var(--ufa-cream);
  text-decoration: none;
}

.ufa-blog-card h2 a:hover,
.ufa-blog-card h2 a:focus-visible {
  color: var(--ufa-gold-bright);
}

.ufa-blog-card__body > p {
  margin: 0 0 16px;
  color: #bdbdbd;
  font-size: 0.86rem;
  line-height: 1.7;
}

.ufa-blog-card__link {
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.ufa-blog-pagination {
  margin-top: 36px;
}

.ufa-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ufa-blog-pagination a,
.ufa-blog-pagination span {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--ufa-border);
  border-radius: 5px;
  place-items: center;
  color: var(--ufa-text);
  text-decoration: none;
}

.ufa-blog-pagination .current,
.ufa-blog-pagination a:hover,
.ufa-blog-pagination a:focus-visible {
  border-color: var(--ufa-gold-bright);
  background: var(--ufa-gold-bright);
  color: #111;
}

.ufa-blog-empty {
  padding: 28px;
  border: 1px dashed var(--ufa-border);
  border-radius: 8px;
  color: var(--ufa-muted);
  text-align: center;
}

.ufa-footer-cta__inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ufa-footer-cta h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(0.95rem, 1.55vw, 1.25rem);
  line-height: 1.45;
  text-wrap: balance;
}

.ufa-footer-cta p {
  margin: 4px 0 0;
  color: #bdbdbd;
}

.ufa-footer-cta__actions {
  display: flex;
  gap: 9px;
}

.ufa-footer-cta__actions .ufa-action {
  min-width: 120px;
  padding-inline: 16px;
}

.ufa-site-footer {
  border-top: 3px solid var(--ufa-gold-bright);
  background: #030303;
}

.ufa-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding-block: 48px;
}

.ufa-site-footer h2,
.ufa-site-footer h3 {
  margin-top: 0;
  color: var(--ufa-gold-bright);
}

.ufa-site-footer h3 {
  font-size: 1rem;
}

.ufa-site-footer p,
.ufa-site-footer li {
  color: #aaa;
  font-size: 0.88rem;
}

.ufa-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ufa-footer-links li + li {
  margin-top: 7px;
}

.ufa-footer-links a {
  color: #c4c4c4;
  text-decoration: none;
}

.ufa-footer-links a:hover {
  color: var(--ufa-gold-bright);
}

.ufa-age-note {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid var(--ufa-border);
  border-radius: 5px;
  color: var(--ufa-gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.ufa-footer-bottom {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #242424;
  color: #777;
  font-size: 0.78rem;
}

.ufa-mobile-bar {
  display: none;
}

@media (max-width: 1000px) {
  .ufa-header-main {
    grid-template-columns: 180px 1fr auto;
  }

  .ufa-member-bar__field {
    display: none;
  }

  .ufa-member-bar {
    width: 120px;
    grid-template-columns: 1fr;
  }

  .ufa-header-actions .ufa-action {
    min-width: 92px;
  }

  .ufa-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ufa-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.admin-bar .ufa-site-header {
    top: 46px;
  }

  .ufa-topbar__trust,
  .ufa-member-bar,
  .ufa-header-actions {
    display: none;
  }

  .ufa-topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .ufa-header-main {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .ufa-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .ufa-nav-wrap {
    display: none;
  }

  .ufa-nav-wrap.is-open {
    display: block;
  }

  .ufa-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 0;
  }

  .ufa-navigation a {
    justify-content: center;
    border-radius: 5px;
  }

  .ufa-footer-cta__inner,
  .ufa-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 22px;
  }

  .ufa-footer-cta__inner {
    align-items: center;
    padding-block: 18px;
    text-align: center;
  }

  .ufa-footer-cta__actions {
    justify-content: center;
  }

  .ufa-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ufa-mobile-bar {
    position: fixed;
    z-index: 1100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ufa-border);
    background: rgba(4, 4, 4, 0.96);
    backdrop-filter: blur(12px);
  }

  .ufa-mobile-bar a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #282828;
    color: #ddd;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
  }

  .ufa-mobile-bar a:first-child {
    background: var(--ufa-gold-bright);
    color: #111;
  }

  .ufa-site-footer {
    padding-bottom: 58px;
  }
}

@media (max-width: 480px) {
  .ufa-shell {
    width: min(calc(100% - 22px), var(--ufa-shell));
  }

  .ufa-wordmark {
    max-width: 190px;
  }

  .ufa-navigation ul {
    grid-template-columns: 1fr;
  }

  .ufa-article,
  body:not(.home) main.site-main {
    width: min(calc(100% - 20px), var(--ufa-shell));
    padding: 18px;
  }

  .ufa-footer-cta__actions {
    width: 100%;
  }

  .ufa-footer-cta__actions .ufa-action {
    flex: 1;
    min-width: 0;
  }

  .ufa-blog-grid {
    grid-template-columns: 1fr;
  }

  .ufa-blog-list__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ufa-blog-card__body {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .ufa-site-header,
  .ufa-footer-cta,
  .ufa-site-footer,
  .ufa-mobile-bar {
    display: none !important;
  }

  body,
  .ufa-article,
  body:not(.home) main.site-main {
    background: #fff;
    color: #111;
    box-shadow: none;
  }
}
