@font-face {
  font-family: "DBHelvethaicaX";
  src: url("../fonts/DBHelvethaicaX.ttf") format("truetype"),
       url("../fonts/DB-HELVETHAICA-X.TTF") format("truetype"),
       url("../fonts/DB-HELVETHAICA-X.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit.ttf") format("truetype");
}

:root {
  --main-color: #0a092a;
  --second-color: #202680;

      --main-font: "Kanit", sans-serif;
  --second-font: "DBHelvethaicaX", sans-serif;

  --white-color: #fff;
  --black-color: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--main-font);
}
html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}
body {
  font-size: 16px;
  line-height: 24px;
  background-color: var(--main-color);
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
button {
  cursor: pointer;
  border: none;
}

.container {
  width: 1200px;
  margin: 0 auto;
  height: 100%;
}

ul,
li {
  list-style: none;
}

.primary-btn {
  min-width: 160px;
  height: 50px;
  color: var(--white-color);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
}

/* -- Header -- */
header {
  background: linear-gradient(
    #004494 0%,
    var(--second-color) 30%,
    var(--main-color) 100%
  );
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  z-index: 99;
}

.header-menu {
  width: 100%;
  height: auto;
  position: relative;
  padding: 45px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 180px;
}
.header-logo {
  height: auto;
  width: 180px;
  position: absolute;
  left: 0;
  top: 0;
}

.header-menu .menu-header {
  flex-grow: 1;
}
.header-menu ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
}
.header-menu li a {
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1;
  text-shadow: 0px 5px 3.9px rgba(0, 0, 0, 0.13);
  font-size: 14.5px;
}
.header-menu li a span:nth-child(1) {
  font-size: 24.5px;
  font-weight: bold;
}

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
}

.btn-auth .primary-btn.register-btn {
  background-image: -moz-linear-gradient(
    90deg,
    rgb(69, 0, 0) 48%,
    rgb(194, 12, 20) 100%
  );
  background-image: -webkit-linear-gradient(
    90deg,
    rgb(69, 0, 0) 48%,
    rgb(194, 12, 20) 100%
  );
  background-image: -ms-linear-gradient(
    90deg,
    rgb(69, 0, 0) 48%,
    rgb(194, 12, 20) 100%
  );
}

.btn-auth .primary-btn.login-btn {
  background-color: var(--black-color);
}

.btn-auth .primary-btn {
  font-size: 26.5px;
  font-weight: bold;
  line-height: 1;
}

.btn-auth .primary-btn::before {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  bottom: -3px;
  left: -3px;
  background: linear-gradient(to bottom, #4588d9, var(--main-color));
  border-radius: 10px;
  z-index: -1;
}

/* slide-max section */
.slide-max {
  width: 100%;
  height: auto;
  margin-top: 140px;
  position: relative;
}
.slide-max article {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  background: linear-gradient(
    90deg,
    #00000000,
    #00000000,
    #000000,
    #000000,
    #00000000,
    #00000000
  );
  padding: 5px 0;
}

.slide-max article p {
  font-size: 18.5px;
  color: var(--white-color);
}
.slide-max figure {
  width: 100%;
  height: auto;
  display: flex;
}

/* description-sec */
.description-sec {
  width: 100%;
  min-height: 450px;
  height: auto;
  color: var(--white-color);
  z-index: 1;
  position: relative;
  background: linear-gradient(
    145deg,
    var(--main-color) 10%,
    var(--second-color) 50%,
    var(--main-color) 90%
  );
}
@media (min-width: 992px) {
  .description-sec { height: 450px; }
}

/* Mobile adjustments: keep desktop as-is, shrink typography and layout on small screens */
@media (max-width: 768px) {
  .container { width: 100%; }
  .description-sec { overflow-x: hidden; }
  .description-content { padding: 12px 10px; }
  .description-content article { width: 100%; max-width: 100%; }
    .description-content article h1 {
    font-size: clamp(12px, 4.4vw, 18px);
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    letter-spacing: 0;
  }
  .description-content article p {
    font-size: 12.5px;
    line-height: 1.5;
  }
  .description-content figure { display: none; }
}


@media (max-width: 480px) {
  .description-sec { overflow-x: hidden; }
    .description-content { padding: 8px 6px; }
  .description-content article h1 {
    font-size: clamp(12px, 3.6vw, 16px);
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    letter-spacing: 0;
  }
  .description-content article p {
    font-size: 12px;
    line-height: 1.55;
  }
}





.description-sec .container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("../images/bg-text.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.description-content {
  padding: 24px 15px;
  position: relative;
  height: 100%;
}
.description-content article {
  width: 60%;
  height: 100%;
}
.description-content article h1 {
  font-family: var(--second-font); /* DBHelvethaicaX */
  font-weight: 700;
  color: #ffffff;
  font-size: clamp(32px, 5.2vw, 56px);
  margin: 0 0 12px;
  line-height: 1.15;
  white-space: normal; /* allow wrapping */
  text-shadow: 0 6px 14px rgba(0,0,0,0.45);
  letter-spacing: 0.6px;
  word-break: keep-all;
}




.description-content article p {
  font-family: var(--second-font);
  font-weight: 400;
}


.description-content article p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.6;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}





.description-content figure {
  width: auto;
  height: 100%;
  position: absolute;
  top: 7%;
  right: 15px;
  z-index: -1;
}

/* promotion-sec */
.promotion-sec {
  padding: 40px 0;
}
.promotion-sec h2 {
  font-family: var(--second-font);
  font-size: 90px;
  color: rgb(255, 255, 255);
  line-height: 1;
  filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.6));
  font-weight: bolder;
  text-align: center;
  font-style: italic;
}
/*
.promotion-card-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 16px;
  flex-wrap: wrap;
}*/
.card-promotion {
  background-color: rgb(0, 0, 0);
  width: calc(20% - 25px);
  max-width: 315px;
  aspect-ratio: 1 / 1;
  box-shadow: 0px 0px 20px 0px #2f2d7e;
}

/* games-sec */
.games-sec {
  background: linear-gradient(
    145deg,
    var(--main-color) 0%,
    #040517 50%,
    #040517 70%,
    var(--main-color) 100%
  );
  position: relative;
}

.games-sec::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("../images/bg-game.PNG");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.games-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: url("../images/bg-game.PNG");
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scaleX(-1);
}

.header-game {
  width: 100%;
  padding: 30px;
  height: auto;
  background: linear-gradient(
    145deg,
    var(--second-color) 0%,
    var(--main-color) 50%,
    #07081d 60%,
    var(--main-color) 70%,
    var(--second-color) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.games-sec .container {
  z-index: 1;
  position: relative;
}
.game-btn {
  font-family: var(--second-font);
  font-size: 40px;
  border-radius: 20px;
  min-width: 325px;
  height: auto;
  color: var(--white-color);
  background: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 35px;
  line-height: 1.2;
  gap: 6px;
  box-shadow: 0px 0px 10px 0px #4e50c2;
}
.game-btn figure {
  width: 58px;
  height: 58px;
}
.game-card-box {
  display: flex;
  align-items: center;
  justify-content: center;
  row-gap: 8px;
  column-gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  padding: 40px 0;
}
.card-game {
  cursor: pointer;
  width: calc(33% - 8px);
  height: auto;
  display: flex;
}
.game-btn:nth-child(1) {
  background: linear-gradient(
    -60deg,
    var(--main-color) 20%,
    var(--second-color) 50%,
    #6da9f2 100%
  );
}
/* .footer-content */
footer {
  position: relative;
  width: 100%;
}
footer .container {
  position: relative;
}
.footer-content {
  padding: 20px 120px 70px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-content ul li a {
  font-size: 22px;
  line-height: 1.2;
  color: #6b6b6b;
}
.footer-content ul li {
  margin: 6px 0;
}
.footer-content figure {
  width: 290px;
  height: auto;
}
.bank-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: absolute;
  width: 90%;
  height: auto;
  top: 25px;
  left: 0;
}
.bank-icon-box figure {
  width: 50px;
  height: 50px;
}

.nav-footer {
  width: 100%;
  height: 120px;
  position: relative;
  background: linear-gradient(
    to bottom,
    #1f4794 0%,
    #1f2275 32%,
    var(--main-color) 70% 70%
  );
  overflow: hidden;
}
.nav-footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 155px;
  height: 155px;
  background: var(--main-color);
  border-radius: 50%;
  box-shadow: 0 10px 40px 0 rgba(58, 123, 213, 0.25);
  z-index: 2;
}
.nav-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  height: 30px;
  background-color: #2f5db3;
  box-shadow: 0px 0px 15px 8px #3260b3;
  border-radius: 0 0 30px 30px;
  z-index: 1;
  opacity: 0.5;
}
.nav-footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.nav-footer ul {
  position: relative;
  z-index: 9;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 55px;
}

.nav-footer ul li {
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
}
.nav-footer ul li figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-footer ul li figcaption p {
  font-size: 12px;
  color: var(--white-color);
}
.nav-footer ul:nth-child(2) li {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}
.nav-footer figure {
  background: var(--black-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid #2e6abc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-footer a {
  font-size: 22px;
  color: var(--white-color);
}

.nav-footer-menu figure img {
  width: 43px;
  height: auto;
}

.circle-menu-register {
  color: var(--white-color);
  z-index: 99;
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  box-shadow: 0px 0px 12px 8px rgb(18 36 89);
  border-radius: 50%;
  background-image: -webkit-linear-gradient(
    -141deg,
    rgb(10, 9, 42) 0%,
    rgb(32, 38, 128) 47%,
    rgb(70, 138, 219) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.circle-menu-register h3 {
  font-size: 44px;
  line-height: 0.8;
}

.circle-menu-register h4 {
  font-size: 26px;
}

.circle-menu-register hgroup {
  width: calc(100% - 15px);
  height: calc(100% - 15px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: -webkit-linear-gradient(
    -141deg,
    rgb(10, 9, 42) 0%,
    rgb(32, 38, 128) 47%,
    rgb(70, 138, 219) 100%
  );
  z-index: 3;
  box-shadow: inset 2px 3px 10px 0px rgb(148 148 200);
}

.circle-menu-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #969696 14%,
    #e3e3e3 26%,
    #ffffff 45%,
    #cdcdcd 47%,
    #686868 61%,
    #848484 72%,
    #f3f3f3 83%,
    #444444 99%
  );
  border-radius: 50%;
  z-index: 1;
}
.circle-menu-register::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  background: linear-gradient(
    270deg,
    #969696 14%,
    #e3e3e3 26%,
    #ffffff 45%,
    #cdcdcd 47%,
    #686868 61%,
    #848484 72%,
    #f3f3f3 83%,
    #444444 99%
  );
  border-radius: 50%;
  z-index: 2;
}
.close-menu-icon {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}
.close-menu-icon span {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--white-color);
  top: 50%;
  left: 0;
  border-radius: 4px;
}
.close-menu-icon span:nth-child(1) {
  transform: rotate(45deg);
}
.close-menu-icon span:nth-child(2) {
  transform: rotate(-45deg);
}
.close-menu {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  z-index: 9999;
}
.close-menu:hover .close-menu-icon {
  cursor: pointer;
  /* transform: rotate(90deg);
  transition: all 0.3s ease-in-out; */
}

.menu-mobile {
  display: none;
  padding: 5px 30px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 99;
  height: 90px;
  justify-content: space-between;
  background: linear-gradient(
    to bottom,
    #1f4794 0%,
    #1f2275 32%,
    var(--main-color) 70% 70%
  );
  box-shadow: 0px 0px 15px 8px var(--main-color);
  top: 0;
  left: 0;
}
.menu-mobile figure {
  width: auto;
  height: 100%;
}
.hamburger-menu {
  /* display: none; */
  width: 36px;
  height: 36px;
}
.hamburger-menu:hover {
  cursor: pointer;
}
.hamburger-icon {
  position: relative;
  width: 100%;
  height: 100%;
}
.hamburger-icon span {
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to bottom,
    white,
    #579eb0 26%,
    rgb(40 38 123) 100%
  );
  top: 50%;
  left: 0;
  border-radius: 4px;
}
.hamburger-icon span:nth-child(1) {
  transform: translateY(-10px);
}
.hamburger-icon span:nth-child(3) {
  transform: translateY(10px);
}
.menu-mobile section {
  display: flex;
  align-items: center;
  width: auto;
  height: 100%;
  gap: 15px;
}
