@import url('https://fonts.googleapis.com/css2?family=Mitr:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400;700&display=swap');

html,
body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  /* overflow-y: scroll; */
}

body {
  font-family: "Mitr", sans-serif;
  scroll-snap-type: y mandatory;
}

@font-face {
  font-family: 'Unblocker';
  src: url(../font/Unblocker.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
}

.btn:hover {
  border: none;
}

.btn:active {
  border: none;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
}

:root {
  --white-gradient: linear-gradient(180deg,
      #FFFFFF 14%,
      #EDFCF9 57%,
      #D9FAFF 83%,
      #FFFFFF 100%);
}

.nav-main {
  position: fixed;
  width: 100%;
  z-index: 99;
}

.side-nav {
  position: fixed;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.side-nav .nav-item {
  width: 150px;
  height: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.side-nav .nav-item.active {
  clip-path: none;
  width: 150px;
  padding-left: 10px;
}

.side-nav .nav-item.btn-fix1 {
  background: url(../images/ic-fix1.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix1.active {
  background: url(../images/ic-fix1-active.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix2 {
  background: url(../images/ic-fix2.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix2.active {
  background: url(../images/ic-fix2-active.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix3 {
  background: url(../images/ic-fix3.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix3.active {
  background: url(../images/ic-fix3-active.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix4 {
  background: url(../images/ic-fix4.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix4.active {
  background: url(../images/ic-fix4-active.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix5 {
  background: url(../images/ic-fix5.webp?v=1.19) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix5.active {
  background: url(../images/ic-fix5-active.webp?v=1.19) center/contain no-repeat;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-150px) scale(0.98);
  transition: transform 1800ms cubic-bezier(.2, .9, .3, 1),
    opacity 2000ms ease;
  will-change: transform, opacity;
}

.slide-in-left.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {

  .slide-in-left,
  .slide-in-left.is-visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(250px) scale(0.98);
  transition: transform 1500ms cubic-bezier(.2, .9, .3, 1),
    opacity 1800ms ease;
  will-change: transform, opacity;
}

.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {

  .slide-in-right,
  .slide-in-right.is-visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.slide-in-bottom {
  opacity: 0;
  transform: translatey(250px) scale(0.98);
  transition: transform 1500ms cubic-bezier(.2, .9, .3, 1),
    opacity 1800ms ease;
  will-change: transform, opacity;
}

.slide-in-bottom.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {

  .slide-in-bottom,
  .slide-in-bottom.is-visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.swing {
  display: inline-block;
  font-size: 3rem;
  animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  50% {
    transform: translateX(10px);
  }

  75% {
    transform: translateX(-10px);
  }

  100% {
    transform: translateX(0);
  }
}

.pendulum {
  display: inline-block;
  font-size: 4rem;
  transform-origin: top center;
  /* จุดหมุนด้านบนตรงกลาง */
  animation: constantSwing 5s linear infinite;
  /* linear ให้ความเร็วคงที่ */
}

@keyframes constantSwing {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-20deg);
  }

  /* แกว่งซ้าย */
  50% {
    transform: rotate(20deg);
  }

  /* แกว่งขวา */
  75% {
    transform: rotate(-20deg);
  }

  /* แกว่งซ้าย */
  100% {
    transform: rotate(0deg);
  }

  /* กลับกลาง */
}

.wiggle {
  display: inline-block;
  font-size: 50px;
  animation: wiggle 2s infinite;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(3deg);
  }

  50% {
    transform: rotate(-3deg);
  }

  75% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.text-one-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-two-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-title {
  max-width: fit-content;
  width: 100%;
  padding: 30px;
  /* margin-bottom: 30px; */
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.section-title2 {
  max-width: fit-content;
  width: 100%;
  padding: 30px 80px 30px 30px;
  margin-bottom: 30px;
  overflow: hidden;
}

.text-blue {
  color: #0E8CEE !important;
}

.text-blue-dark {
  color: #003459 !important;
}

.text-preregis-title {
  font-family: 'Unblocker', sans-serif;
  font-size: 110px;
  background: var(--white-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow();
  filter: drop-shadow(0px 0px 2.5px #fff);
  letter-spacing: 5px;
}

.text-blue-linear {
  background: linear-gradient(180deg, #1096FF, #00599E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-blue-linear2 {
  background: linear-gradient(to top, #97CCF9 0%, #0A91FE 76%, #0A91FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.col-text-title-head {
  position: relative;
  padding: 0 45px;
}

.col-text-title-head::before {
  content: "";
  position: absolute;
  background: url(../images/ic-star-head-blue.webp?v=1.19) center / contain no-repeat;
  width: 36px;
  height: 36px;
  top: 5px;
  left: 0px;
  z-index: 3;
}

.col-text-title-head::after {
  content: "";
  position: absolute;
  background: url(../images/ic-star-head-blue.webp?v=1.19) center / contain no-repeat;
  width: 36px;
  height: 36px;
  top: 5px;
  right: 0px;
  z-index: 3;
}

.col-text-title-head-white {
  position: relative;
  padding: 0 45px;
}

.col-text-title-head-white::before {
  content: "";
  position: absolute;
  background: url(../images/ic-star-head-white.webp?v=1.19) center / contain no-repeat;
  width: 36px;
  height: 36px;
  top: 5px;
  left: 0px;
  z-index: 3;
}

.col-text-title-head-white::after {
  content: "";
  position: absolute;
  background: url(../images/ic-star-head-white.webp?v=1.19) center / contain no-repeat;
  width: 36px;
  height: 36px;
  top: 5px;
  right: 0px;
  z-index: 3;
}

.text-title-head {
  font-family: "Rowdies", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}

.text-description-head {
  color: #003761;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

/* section pre-register */

.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

#Sec-Preregis {
  background: url(../images/bg-pre-regis.webp?v=1.21) bottom center no-repeat;
  background-size: cover;
  width: 100%;
  margin: 0 auto;
  padding: 80px 0 30px 0;
  display: flex;
}

.img-preregis-title {
  width: 70%;
  object-fit: contain;
  margin-bottom: -5px;
}

#Sec-Preregis .text-detail {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
}

.col-run-1m {
  background: url(../images/bg-1m.webp?v=1.21) center/contain no-repeat;
  height: 65px;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.col-number-preregis {
  display: flex;
  justify-content: center;
}

.number-preregis {
  color: #fff;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 5px;
}

.number-preregis::before {
  content: "ลงทะเบียนแล้ว";
  margin-right: 12px;
}

.number-preregis::after {
  content: "คน";
  margin-left: 12px;
}

.all-timeline-mst {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0px auto;
  gap: 20px;
}

.box-timeline-mst {
  background: url(../images/bg-box-it-pre.webp?v=1.19) center/contain no-repeat;
  flex: 1;
  max-width: 140px;
  height: 180px;
  filter: drop-shadow(0px 4px 2px #00000014);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-timeline-mst:hover {
  transform: translateY(-5px);
  filter: brightness(1.05);
}

.box-timeline-mst.big-reward {
  background: url(../images/bg-bigbox-it-pre.webp?v=1.19) center / contain no-repeat;
  scale: 1.1;
}

.box-timeline-mst.big-reward.active {
  scale: 1;
  filter: drop-shadow(2px 4px 6px #FFC583);
}

.box-timeline-mst.complate {
  position: relative;
  filter: brightness(0.8);
}

.box-timeline-mst.complate .col-item-preregis {
  /* filter: brightness(0.8); */
}

.box-timeline-mst.complate .box-mst {
  /* filter: grayscale(.7); */
}

/* .box-timeline-mst.complate::after {
  content: "";
  position: absolute;
  background: url(../images/ic-complate-mst.webp?v=1.21) center / contain no-repeat;
  width: 110px;
  height: 110px;
  top: 21px;
  left: 21px;
  z-index: 3;
} */

.box-timeline-mst.active {
  display: inline-block;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  /* ขยาย */
  100% {
    transform: scale(1);
  }

  /* กลับมาปกติ */
}

.inbox-timeline-mst {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
}

.col-item-preregis {
  background: url(../images/bg-it-pre.webp?v=1.21) center / 100% no-repeat;
  width: 80%;
  aspect-ratio: 1 / 1;
  padding: 0px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-preregis {
  width: 70%;
  object-fit: contain;
}

.box-mst {
  width: 100%;
  padding: 6px;
}

.big-reward .box-mst {
  /* background: linear-gradient(to bottom, #FFC583 0%, #FDE6BA 58%); */
}

.in-box-mst {}

.big-reward .in-box-mst {}

.number-mst-preregis {
  padding: 15px 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  color: #8C7453;
}

.text-pre-success {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  color: #8C7453;
}

.timeline-section {
  background-color: #f8f9fa;
  padding: 80px 0;
  position: relative;
}

.milestone-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 35px 0 20px;
}

.milestone-points {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 77%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.milestone-point {
  width: 80px;
  height: 80px;
  background: url(../images/reward-progress02.webp?v=1.21) center/contain no-repeat;
  position: relative;
  z-index: 2;
}

.milestone-point.goal::after {
  content: "";
  background: url(../images/flag-mst.webp?v=1.21) center / contain no-repeat;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 9px;
  left: 53px;
  z-index: 1;
}

.milestone-point.complate {
  width: 80px;
  height: 80px;
  background: url(../images/reward-progress01.webp?v=1.21) center/contain no-repeat;
  position: relative;
  z-index: 2;
}

.milestone-line {
  height: 12px;
  background-color: #fff;
  position: relative;
  margin: 0 auto;
  width: 72%;
  max-width: 1000px;
  margin-bottom: -60px;
  overflow: unset;
}

.progress-bar-striped {
  background: linear-gradient(to right,
      rgb(161, 140, 218) 4%,
      rgb(57, 144, 223) 10%,
      rgb(76, 179, 229) 23%,
      rgb(131, 219, 135) 38%,
      rgb(251, 238, 117) 55%,
      rgb(250, 141, 80) 70%,
      rgb(236, 150, 171) 87%,
      rgb(243, 80, 86) 100%);
  border-radius: 10px;
  border: 1px solid #ffffffba;
  position: relative;
  overflow: unset;
}

.progress-bar-striped::after {
  content: "";
  background: url(../images/run.gif) center / contain no-repeat;
  width: 68px;
  height: 68px;
  position: absolute;
  bottom: -8px;
  right: -30px;
  z-index: 10;
}

.progress-bar-striped.step0 {
  width: 0%;
}

.progress-bar-striped.step1 {
  width: 0%;
}

.progress-bar-striped.step1-2 {
  width: 10%;
}

.progress-bar-striped.step2 {
  width: 20%;
}

.progress-bar-striped.step2-3 {
  width: 30%;
}

.progress-bar-striped.step3 {
  width: 40%;
}

.progress-bar-striped.step3-4 {
  width: 50%;
}

.progress-bar-striped.step4 {
  width: 60%;
}

.progress-bar-striped.step4-5 {
  width: 70%;
}

.progress-bar-striped.step5 {
  width: 80%;
}

.progress-bar-striped.step5-6 {
  width: 90%;
}

.progress-bar-striped.step6 {
  width: 100%;
}

.btn-main-preregis {
  background: url(../images/btn-preregis.webp?v=1.21) center / contain no-repeat;
  max-width: 264px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  aspect-ratio: 328 / 91;
}

.btn-main-preregis:hover {
  filter: brightness(1.1);
}

.btn-read-preregis {
  display: block;
  max-width: 300px;
  width: 100%;
  font-size: 20px;
  font-weight: 400;
  color: #424242;
  text-decoration: underline;
}

.btn-read-preregis:hover {
  color: #4d4d4d;
}

.btn-read-preregis:active {
  color: #4d4d4d;
}

.text-detail-preregis {
  font-size: 16px;
  font-weight: 400;
  color: #6E6E6E;
}

.col-item-preregis {
  margin-top: -10px;
}

@media (min-width: 1920px) {

  #Sec-Preregis {
    background-size: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 120px 0 30px 0;
  }

  .section {
    background-size: 100%;
    max-width: 1920px;
    margin: 0 auto;
  }

}

@media (max-width: 1200px) {
  .all-timeline-mst {
    max-width: 916px;
  }
}

@media (max-width: 1024px) {

  .all-timeline-mst {
    max-width: 900px;
    gap: 10px;
  }

  .milestone-line {
    width: 82%;
  }

  .milestone-points {
    width: 92%;
  }

  .box-timeline-mst {
    height: 153px;
  }

  .box-timeline-mst.complate::after {
    width: 98px;
    height: 98px;
    top: 17px;
    left: 17px;
  }

  .box-mst {
    margin-top: -90px;
  }

  .in-box-mst {
    padding-top: 82px;
  }

  .img-preregis-title {
    width: 96%;
  }

  #Sec-Preregis {
    padding: 100px 0 30px 0;
    align-items: center;
  }

  .number-mst-preregis {
    padding: 33px 0 2px;
    font-size: 13px;
  }

  .col-item-preregis {
    margin-top: -12px;
    width: 68%;
  }

}

@media (max-width: 992px) {

  .all-timeline-mst {
    max-width: 680px;
    gap: 10px;
  }

  .milestone-line {
    width: 84%;
  }

  .milestone-points {
    width: 94%;
  }

  .box-timeline-mst {
    max-width: 100px;
  }

  .number-mst-preregis {
    font-size: 14px;
  }

  .item-preregis {
    width: 80%;
  }

  .col-item-preregis {
    margin-top: -8px;
    width: 80%;
  }

  .box-mst {
    margin-top: -64px;
  }

  .in-box-mst {
    padding-top: 54px;
  }

  .box-timeline-mst.complate::after {
    width: 79px;
    height: 79px;
    top: 12px;
    left: 12px;
  }

  .milestone-point.goal::after {
    width: 40px;
    height: 40px;
    top: 12px;
    left: 54px;
  }

  .img-preregis-title {
    width: 100%;
    margin: 0 0 10px;
  }

  .progress-bar-striped::after {
    width: 60px;
    height: 60px;
    bottom: -8px;
    right: -30px;
  }

  .number-preregis {
    font-size: 34px;
  }

  .col-run-1m {
    height: 58px;
  }

}

@media (max-width: 768px) {

  .section-title {
    padding: 25px;
    margin-bottom: 30px;
  }

}

@media (max-width: 500px) {

  #Sec-Preregis.section {
    height: 100vh !important;
  }

  .all-timeline-mst {
    max-width: 360px;
    gap: 5px;
  }

  .box-timeline-mst {
    max-width: 52px;
  }

  .number-mst-preregis {
    font-size: 8px;
    padding: 19px 0 2px;
  }

  .box-mst {
    padding: 2px;
    border-radius: 0 12px 0 12px;
    margin-top: -33px;
  }

  .in-box-mst {
    padding-top: 28px;
    border-radius: 0 12px 0 12px;
  }

  .col-item-preregis {
    margin-top: -5px;
    padding: 2px;
  }

  .box-timeline-mst.complate::after {
    width: 40px;
    height: 40px;
    top: 7px;
    left: 7px;
  }

  .milestone-point {
    width: 50px;
    height: 50px;
  }

  .milestone-point.complate {
    width: 50px;
    height: 50px;
  }

  .milestone-line {
    height: 9px;
    margin-bottom: -39px;
  }

  .milestone-point.goal::after {
    width: 28px;
    height: 28px;
    top: 8px;
    left: 34px;
  }

  #Sec-Preregis .text-detail {
    font-size: 14px;
    padding: 0 10%;
  }

  .number-preregis {
    font-size: 18px;
  }

  .btn-main-preregis {
    max-width: 216px;
    font-size: 20px;
  }

  .btn-read-preregis {
    max-width: 230px;
    font-size: 14px;
  }

  .text-detail-preregis {
    font-size: 12px;
  }

  .progress-bar-striped::after {
    width: 37px;
    height: 37px;
    bottom: -6px;
    right: -18px;
  }

  .col-number-preregis {
    padding: 2px 0;
  }

  .section-title {
    padding: 25px;
    margin-bottom: 15px;
  }

  .text-pre-success {
    font-size: 5px;
  }

  .box-timeline-mst {
    height: 78px;
  }

  .col-run-1m {
    height: 32px;
  }

}

@media (max-width: 375px) {

  .all-timeline-mst {
    max-width: 320px;
    gap: 5px;
  }

  .box-timeline-mst.complate::after {
    width: 36px;
    height: 36px;
  }

  .milestone-points {
    width: 94%;
  }

  .milestone-line {
    width: 80%;
  }

  .milestone-container {
    padding: 25px 0;
  }

  .progress-bar-striped::after {
    width: 37px;
    height: 37px;
    bottom: -6px;
    right: -18px;
  }

  .number-preregis {
    padding: 5px 0;
  }

}


/* Section event */

#Sec-Event {
  background: url(../images/bg-sec-2.webp?v=1.19) top center no-repeat;
  background-size: cover;
  width: 100%;
  margin: 0 auto;
  padding: 100px 0 30px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.col-piero-green {
  position: absolute;
  width: 300px;
  right: 30px;
  top: -10px;
}

.img-piero-green {
  width: 100%;
  object-fit: contain;
}

.grid-layout {
  display: flex;
  width: 100%;
  max-width: 1100px;
  height: 550px;
  margin: -15px auto 0;
}

/* ฝั่งซ้าย */
.grid-layout .left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px;
  width: 100%;
}

/* ฝั่งขวา */
.grid-layout .right {
  flex: 1;
  display: flex;
  padding: 8px;
  width: 100%;
}

.grid-layout .right a {
  flex: 1;
  width: 100%;
}

.grid-layout .left a {
  flex: 1;
  width: 100%;
}

/* กล่องลิงก์ */
.grid-layout a {
  display: block;
  width: 100%;
  text-decoration: none;
}

.grid-layout a h3 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
  filter: drop-shadow(0px 2px 2px #0000002e);
}

.grid-layout a p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  filter: drop-shadow(0px 2px 2px #0000002e);
}

.grid-layout .box img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.grid-layout .left .box img,
.grid-layout .right .box img {
  max-width: 200px;
  object-fit: contain;
}

.grid-layout .box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
}

.box1 {
  margin-bottom: 8px;
  aspect-ratio: 146 / 71;
  background: url(../images/bn-ev-01.webp?v=1.19) center/cover no-repeat;
}

.box2 {
  margin-top: 8px;
  aspect-ratio: 146 / 71;
  background: url(../images/bn-ev-02.webp?v=1.19) center/cover no-repeat;
}

.box3 {
  margin-right: 8px;
  aspect-ratio: 71 / 146;
  background: url(../images/bn-ev-03.webp?v=1.19) center/cover no-repeat;
}

.box4 {
  margin-left: 8px;
  aspect-ratio: 71 / 146;
  background: url(../images/bn-ev-04.webp?v=1.19) center/cover no-repeat;
}

.text-span-ev {
  font-size: 24px;
}

/* responsive ipad & mobile */

@media (max-width: 1600px) {
  #Sec-Event {
    background-size: cover;
  }
}

@media (max-width: 1200px) {
  .col-piero-green {
    width: 190px;
  }
}

@media (max-width: 1024px) {

  .col-piero-green {
    width: 260px;
  }

  .grid-layout {
    max-width: 900px;
    height: fit-content;
  }

  .grid-layout .right {
    flex-direction: row;
  }

  .grid-layout a h3 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .grid-layout a p {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .text-span-ev {
    font-size: 20px;
  }

  .grid-layout .left .box img,
  .grid-layout .right .box img {
    max-width: 170px;
  }
}

@media (max-width: 992px) {
  .grid-layout {
    max-width: 460px;
    flex-direction: column;
  }

  .grid-layout .right {
    flex-direction: row;
  }

  .col-piero-green {
    right: -13px;
  }

  .grid-layout a h3 {
    font-size: 22px;
  }

  .grid-layout a p {
    font-size: 15px;
  }

}

@media (max-width: 768px) {

  .grid-layout {
    max-width: 390px;
  }

  .col-piero-green {
    right: -24px;
  }

  .grid-layout a h3 {
    font-size: 18px;
  }

  .text-span-ev {
    font-size: 16px;
  }

  .grid-layout a p {
    font-size: 13px;
    line-height: 1.2;
  }

  .grid-layout .left .box img,
  .grid-layout .right .box img {
    max-width: 158px;
  }
}

@media (max-width: 550px) {
  .grid-layout {
    max-width: 325px;
  }

  .col-piero-green {
    right: -22px;
    top: 9px;
    width: 189px;
  }

  .grid-layout a h3 {
    font-size: 16px;
  }

  .grid-layout a p {
    font-size: 10px;
    line-height: 1.2;
  }

  .text-span-ev {
    font-size: 14px;
  }

  .grid-layout .left .box img,
  .grid-layout .right .box img {
    max-width: 128px;
  }

}

@media (max-width: 375px) {

  #Sec-Event {
    height: fit-content !important;
  }

  .grid-layout {
    max-width: 320px;
  }

  .grid-layout .left .box img,
  .grid-layout .right .box img {
    max-width: 120px;
  }
}


/* Section news */

#Sec-News {
  width: 100%;
  padding: 20px 0 0 0;
  background: url(../images/bg-sec-3.webp?v=1.19) center/100% no-repeat;
  display: flex;
  align-items: center;
}

.warper-detail-s-news {
  margin-top: -20px;
}

.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.tab {
  overflow: hidden;
  display: flex;
  justify-content: center;
  /* margin-bottom: 30px; */
}

.tab.scroll-x {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar {
  display: none;
  /* ซ่อน scrollbar บน Chrome/Safari */
}

.scroll-x>* {
  display: inline-block;
}

.col-head-tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  border-radius: 12px;
}

.col-head-dt {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
}

.search-box {
  display: flex;
  align-items: center;
  max-width: 250px;
  width: 100%;
  padding: 6px 12px;
  border: 1.5px solid #8ecaff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #333;
  width: 100%;
}

.search-box input::placeholder {
  color: #aaa;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.search-box svg {
  width: 18px;
  height: 18px;
  stroke: #555;
}

.tabcontent {
  display: none;
}

.tab button {
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn {
  background: url(../images/bg-tab-news-hover.webp?v=1.19) center/contain no-repeat;
  max-width: 140px;
  width: 100%;
  height: 40px;
  padding: 11px 0px;
  margin: 10px 2px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #0065B4;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: url(../images/bg-tab-news.webp?v=1.19) center/contain no-repeat;
  border: none;
  color: #fff;
  filter: drop-shadow(2px 3px 3px #0e3f673d);
}

.filter-btn:hover {
  filter: brightness(1.2);
}

.col-slide-news {
  display: flex;
  /* align-items: center; */
  height: 100%;
}

/* News Card */

.col-tag-date {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.card-tag {
  color: #fff;
  border-radius: 8px 3px 15px 8px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 400;
  min-width: 25%;
  margin-right: 3px;
  text-align: center;
}

.card-tag.update {
  background: #2A9EFE;
}

.card-tag.update::after {
  content: "อัปเดทแพตช์";
}

.card-tag.promotion {
  background: #7456CE;
}

.card-tag.promotion::after {
  content: "โปรโมชั่น";
}

.card-tag.ingame {
  background: #C96EC8;
}

.card-tag.ingame::after {
  content: "กิจกรรมในเกม";
}

.card-tag.event {
  background: #C96E88;
}

.card-tag.event::after {
  content: "กิจกรรมหน้าเว็บ";
}

.card-body {
  padding: 6px 3px;
}

.card-body .text-date {
  font-size: 10px;
  color: #808080;
  padding: 4px 0 0 0;
}

.card-body .text-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #002B4C;
  margin-bottom: 3px;
}

.card-body .text-detail {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  color: #808080;
  margin-bottom: 6px;
}

.card-body .btn-read-more {
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  color: #0099DC;
}

.card-body .btn-read-more:hover {
  text-decoration: underline;
  color: #F279F6;
  filter: brightness(1.1);
}

.card-body .btn-read-more:active {
  text-decoration: underline;
  color: #F279F6;
  filter: brightness(1.1);
}

.card-body .btn-read-more .img-readmore {
  width: 8px;
  height: 8px;
  object-fit: contain;
}

.col-slide-news .news-card {
  padding: 20px;
  border-radius: 30px;
  box-shadow: none;
  height: 550px;
}

.col-slide-news .col-tag-date {
  margin-bottom: 10px;
}

.col-slide-news .card-tag {
  font-size: 13px;
  min-width: 22%;
}

.col-slide-news .news-card img {
  border-radius: 20px;
}

.col-slide-news .card-body {
  padding: 20px 10px;
}

.col-slide-news .card-body .text-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.col-slide-news .card-body .text-detail {
  font-size: 18px;
  margin-bottom: 20px;
}

.col-slide-news .card-body .text-date {
  font-size: 16px;
  padding: 6px 0 0 0;
}

.col-slide-news .card-body .btn-read-more {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.col-slide-news .card-body .btn-read-more img {
  width: 10px;
  height: 10px;
  margin-bottom: -2px;
}

.owl-news .owl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -83%;
}

.owl-news .owl-nav button {
  margin-top: -34%;
  width: 50px;
  height: 50px;
  z-index: 3;
}

.owl-news .owl-nav button:hover {
  animation: shake-slow 1.5s infinite;
}

.owl-news .owl-nav span {
  display: none !important;
}

.owl-news .owl-prev {
  background: url(../images/ic-left-news.webp?v=1.19) !important;
  background-size: contain !important;
  margin-left: -25px !important;
}

.owl-news .owl-next {
  background: url(../images/ic-right-news.webp?v=1.19) !important;
  background-size: contain !important;
  margin-right: -25px !important;
}

.owl-news.owl-theme .owl-dots .owl-dot span {
  display: none !important;
}

.owl-news .owl-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 76%;
}

.owl-news .owl-dot.active {
  background: url(../images/ic-dots-news-active.webp?v=1.19) center/contain no-repeat !important;
  width: 24px;
  height: 24px;
  z-index: 3;
  transform: scale(1.4);
}

.owl-news .owl-dot {
  background: url(../images/ic-dots-st.webp?v=1.19) center/contain no-repeat !important;
  width: 24px;
  height: 24px;
  z-index: 3;
}

.news-card {
  padding: 6px;
  border: 1px solid #E0E7FF;
  border-radius: 15px;
  box-shadow: 0px 2px 15px #00000013;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px #d3dcfe80;
}

.news-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.news-card .badge {
  border-radius: 10px;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.box-btn-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.news-card .read-more {
  font-size: 0.9rem;
  font-weight: 500;
  color: #9b59b6;
  text-decoration: none;
}

.news-card .read-more:hover {
  text-decoration: underline;
}

.filter-btn-allnews {
  margin-top: 20px;
  background: url(../images/bg-btn-main.webp?v=1.19) center/contain no-repeat;
  min-width: 170px;
  color: #fff;
}

.filter-btn h2 {
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}

.col-btn-all-news {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1600px) {
  #Sec-News {
    background-size: cover;
  }
}

@media (max-width: 1200px) {

  #Sec-News {
    background-size: cover;
  }

  .card-tag {
    padding: 4px 5px;
  }

  .owl-news .owl-nav {
    margin-top: -92%;
  }

  .col-slide-news .news-card {
    height: 510px;
  }

  .owl-news .owl-dots {
    margin-top: 82%;
  }

}

@media (max-width: 1024px) {

  .search-box {
    max-width: 180px;
    margin-left: 20px;
  }

  .card-tag {
    padding: 2px 4px;
    font-size: 7.5px;
  }

  .box-tag-date .card-tag {
    font-size: 9px;
  }

  .col-slide-news .news-card {
    height: 450px;
    border-radius: 25px;
    padding: 15px;
  }

  .col-slide-news .news-card img {
    border-radius: 12px;
  }

  .owl-news .owl-nav {
    margin-top: -100%;
  }

  .owl-news .owl-dots {
    margin-top: 89%;
  }

  .filter-btn {
    height: 32px;
    padding: 9px 0px;
  }

}

@media (max-width: 992px) {

  .filter-btn {
    max-width: 120px;
  }

  .filter-btn {
    max-width: 120px;
    height: 38px;
    padding: 9px 0px;
  }

  .col-head-tab {
    flex-direction: column-reverse;
    margin-bottom: 20px;
  }

  .search-box {
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
  }

  .card-tag {
    font-size: 9px;
  }

  .col-slide-news .news-card {
    height: 620px;
    border-radius: 30px;
    padding: 20px;
  }

  .col-slide-news .news-card img {
    border-radius: 18px;
  }

  .owl-news .owl-nav {
    margin-top: -67%;
  }

  .col-slide-news .card-tag {
    font-size: 16px;
    min-width: 20%;
    padding: 5px 5px;
  }

  .owl-news .owl-dots {
    margin-top: 62%;
    margin-bottom: 30px;
  }

  .filter-btn h2 {
    font-size: 15px;
  }

  .col-btn-all-news {
    justify-content: center;
  }

}

@media (max-width: 768px) {


  .tab {
    margin-bottom: 0;
  }

  .filter-btn-allnews {
    margin-top: 15px;
  }

}

@media (max-width: 500px) {

  #Sec-News {
    padding: 0 !important;
  }

  .tab {
    overflow: hidden;
    margin-bottom: 20px;
  }

  .filter-btn-allnews {
    margin-top: 25px;
  }

  .col-main-bg {
    padding: 15px;
    border-radius: 25px;
  }

  .col-head-tab {
    margin-bottom: 15px;
    padding: 7px 3px 3px;
  }

  .title-page {
    font-size: 40px;
    margin-bottom: 0;
  }

  .filter-btn {
    min-width: 120px;
    font-size: 13px;
    margin: 0;
    margin-bottom: .4rem;
  }

  .news-card {
    padding: 6px;
    border-radius: 15px;
  }

  .card-tag {
    font-size: 7px;
    padding: 3px 5px 2px 5px;
  }

  .news-card img {
    border-radius: 10px;
  }

  .card-body {
    padding: 8px 0px;
  }

  .card-body .text-title {
    font-size: 14px;
  }

  .card-body .text-detail {
    font-size: 12px;
  }

  .tab {
    overflow: hidden;
    margin-bottom: 0px;
    justify-content: left;
  }

  .card-body .text-date {
    font-size: 10px;
    color: #808080;
    padding: 2px 0 0 0;
  }

  .col-slide-news .news-card {
    height: 420px;
    border-radius: 30px;
    padding: 15px;
  }

  .col-slide-news .card-body .text-title {
    font-size: 18px;
  }

  .col-slide-news .card-tag {
    font-size: 14px;
    min-width: 25%;
    padding: 5px 8px;
  }

  .col-slide-news .card-body .text-detail {
    font-size: 15px;
  }

  .col-slide-news .card-body .text-date {
    font-size: 13px;
    padding: 3px 0 0 0;
  }

  .col-slide-news .card-body .btn-read-more {
    font-size: 16px;
  }

  .owl-news .owl-nav {
    margin-top: -87%;
  }

  .owl-news .owl-nav button {
    width: 42px;
    height: 42px;
  }

  .owl-news .owl-prev {
    margin-left: -10px !important;
  }

  .owl-news .owl-next {
    margin-right: -10px !important;
  }

  .owl-news .owl-dots {
    margin-top: 80%;
    margin-bottom: 35px;
  }

}

@media (max-width: 375px) {

  .filter-btn {
    margin: 0 4px 0 0;
    font-size: 12px;
  }

  .card-tag {
    font-size: 6px;
    padding: 1px 4px 1.5px 4px;
  }

  .filter-btn-allnews {
    margin-top: 15px;
  }

  .card-body .btn-read-more {
    font-size: 12px;
  }

  .box-btn-card {
    padding: 2px 0 0 0;
  }

  .owl-news .owl-nav {
    margin-top: -105%;
  }

  .owl-news .owl-dots {
    margin-top: 96%;
    margin-bottom: 35px;
  }
}


/* Section Character */

#Sec-CRT {
  width: 100%;
  padding: 0;
  background: url(../images/bg-sec-4.webp?v=1.19) top center/100% no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#Sec-CRT .section-title2 {
  margin-bottom: -30px;
}

.text-title-head.text-crt {
  color: #fff;
}

.text-description-head.text-crt {
  color: #fff;
}

.mySlides {
  display: none;
}

.mySlides .row {
  height: 100%;
  display: flex;
  align-items: center;
}

.mySlides .col-lg-5 {
  height: 100%;
}

.mySlides .col-lg-7 {
  height: 100%;
}

.cursor {
  cursor: pointer;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.caption-container {
  text-align: center;
  background-color: #222;
  padding: 4px 16px;
  color: white;
}

.big-warper-crt {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  margin-top: 84px;
  padding-right: 26px;
}

.warper-col-select-crt {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 120px;
}

.warper-col-select-crt a {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 0;
  cursor: pointer;
}

.warper-col-select-crt a:hover {
  background: #ffffff00;
  animation: shake-slow-y 1.5s infinite;
}

@keyframes shake-slow-y {
  0% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(3px);
  }

  75% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}

.warper-col-select-crt a:active {
  background: none;
}

.warper-col-select-crt a img {
  width: 100%;
}

.col-select-crt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: -20px;
}

.col-select-crt::before {
  content: "";
  position: absolute;
  background: url(../images/crt-active.webp?v=1.19) center / contain no-repeat;
  width: 141px;
  height: 141px;
  top: 192px;
  right: -23px;
  z-index: 1;
}

.col-select-crt .thumb {
  width: 95px;
  height: 95px;
  object-fit: contain;
  opacity: 1 !important;
  transition: 0.3s;
  border: none;
}

.col-select-crt .thumb:hover {
  filter: brightness(1.1);
  animation: zoom-in-out 1s ease-in-out infinite;
}

@keyframes zoom-in-out {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.col-select-crt .thumb.active {
  opacity: 1;
  transform: scale(1.5);
  margin: 25px 0;
  z-index: 3;
}

.col-select-crt .thumb.active:hover {
  animation: none;
}

.box-img-crt {
  object-fit: contain;
  width: 125%;
  position: relative;
  z-index: 5;
  margin-left: 50px;
}

.box-name-crt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-left: 45px;
}

.bg-in-box-name-crt {
  padding-right: 6%;
}

.bg-in-box-name-crt .bg1 {
  width: 100%;
}

.bg-in-box-name-crt .bg2 {
  display: none;
}

.bg-in-box-name-crt .bg3 {
  display: none;
}

.bg-in-box-name-crt .bg4 {
  display: none;
}

.in-box-name-crt {
  position: absolute;
  top: 78px;
  left: 110px;
  z-index: 3;
  width: 68%;
}

.text-name-th {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}

.text-name-en {
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  filter: drop-shadow(0px 1px 6px #ffffffc4);
  -webkit-text-stroke: 1px #fff;
  margin-bottom: 15px;
}

.text-detail-crt {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 25px;
}

.col-button-sound-crt {
  display: flex;
  align-items: center;
}

.btn-sound-crt {
  background: #ffffff00;
  border: none;
  z-index: 2;
}

.btn-sound-crt:hover {
  animation: shake-slow 1.5s infinite;
}



.btn-sound-crt img {
  width: 32px;
  object-fit: contain;
}

.warper-in-box-name-crt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.warper-all-state {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: flex-start;
}

.warper-col-progress {
  width: 100%;
  margin-left: -50px;
}

/* bar */
.warper-col-progress .progress-bar {
  width: 100%;
  height: 15px;
  background: #ffffffa3;
  border: 1px solid #ffffff;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #33bbff, #a077ff);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
}

.progress-fill.progress-10 {
  width: 10%;
}

.progress-fill.progress-20 {
  width: 20%;
}

.progress-fill.progress-30 {
  width: 30%;
}

.progress-fill.progress-40 {
  width: 40%;
}

.progress-fill.progress-50 {
  width: 50%;
}

.progress-fill.progress-60 {
  width: 60%;
}

.progress-fill.progress-70 {
  width: 70%;
}

.progress-fill.progress-80 {
  width: 80%;
}

.progress-fill.progress-90 {
  width: 90%;
}

.progress-fill.progress-100 {
  width: 100%;
}

.progress-value {
  min-width: 58px;
  font-family: "Rowdies", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: #3679C8;
  text-align: right;
  padding-top: 5px;
}

.col-icon-state {
  background: url(../images/bg-ic-state.webp?v=1.19) center/contain no-repeat;
  width: 68px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.col-icon-state img {
  width: 52%;
  object-fit: contain;
}

.col-text-state {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 24px;
  padding-left: 8px;
  background: #ffffffa3;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}




@media (max-width: 1600px) {

  #Sec-CRT {
    background-size: cover;
    background-position-x: right;
  }

  .box-name-crt {
    margin-top: -96px;
    padding-left: 55px;
  }

  .big-warper-crt {
    margin-top: 21px;
    padding-right: 24px;
  }

  #Sec-CRT .section-title2 {
    margin-bottom: -40px;
  }

  .text-name-en {
    font-size: 58px;
    margin-bottom: 6px;
  }

  .text-detail-crt {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .in-box-name-crt {
    top: 55px;
    left: 100px;
    width: 69%;
  }

  .col-text-state {
    width: 120px;
    font-size: 15px;
  }

  .warper-all-state {
    gap: 0px;
  }
}

@media (max-width: 1440px) {

  .box-name-crt {
    margin-top: -162px;
    padding-left: 55px;
  }

  .big-warper-crt {
    margin-top: -17px;
    padding-right: 8px;
  }

  .box-img-crt {
    width: 123%;
    padding-bottom: 64px;
    margin-left: 48px;
  }

  .bg-in-box-name-crt {
    padding-right: 7%;
  }

  .in-box-name-crt {
    top: 42px;
    left: 82px;
    width: 70%;
  }

  .progress-value {
    padding-top: 5px;
  }

  .text-name-th {
    font-size: 34px;
  }

  .text-name-en {
    font-size: 55px;
  }
}

@media (max-width: 1200px) {

  #Sec-CRT .section-title2 {
    margin: 0 67px -36px 0 !important;
    padding: 30px;
  }

  .box-img-crt {
    width: 120%;
    padding-bottom: 0px;
    margin-left: -5px;
  }

  .box-name-crt {
    margin-top: -82px;
    padding-left: 0;
    padding-right: 40px;
  }

  .bg-in-box-name-crt .bg1 {
    display: none;
  }

  .bg-in-box-name-crt .bg2 {
    display: block;
    width: 100%;
  }

  .in-box-name-crt {
    top: 72px;
    left: 52px;
    width: 70%;
  }

  .big-warper-crt {
    margin-top: 26px;
    padding-right: 8px;
  }
}

@media (max-width: 1024px) {
  .box-name-crt {
    margin-top: -21px;
    padding-left: 0;
    padding-right: 30px;
  }

  .box-img-crt {
    width: 130%;
    margin-left: -24px;
  }

  .text-name-th {
    font-size: 30px;
  }

  .text-name-en {
    font-size: 46px;
  }

  .btn-sound-crt img {
    width: 28px;
  }

  .text-detail-crt {
    font-size: 14px;
  }

  .progress-value {
    font-size: 20px;
  }

  .col-text-state {
    height: 22px;
  }

  .warper-col-progress .progress-bar {
    height: 13px;
  }

  .in-box-name-crt {
    top: 47px;
    left: 48px;
    width: 71%;
  }
}

@media (max-width: 992px) {
  #Sec-CRT {
    background: url(../images/bg-sec-4-md.webp?v=1.19) bottom center / 100% no-repeat;
    /* min-height: 1000px; */
    display: flex;
    align-items: center;
  }

  #Sec-CRT .section-title2 {
    margin: 0 auto !important;
  }

  .text-title-head.text-crt {
    color: #0E8CEE;
  }

  .text-description-head.text-crt {
    color: #003761;
  }

  .box-name-crt .col-text-title-head-white::before {
    background: url(../images/ic-star-head-blue.webp?v=1.19) center / contain no-repeat;
  }

  .box-name-crt .col-text-title-head-white::after {
    background: url(../images/ic-star-head-blue.webp?v=1.19) center / contain no-repeat;
  }

  .col-select-crt .thumb.active {
    margin: 0px 20px;
  }

  .col-select-crt .thumb {
    width: 130px;
    height: 130px;
  }

  .warper-col-select-crt {
    flex-direction: row;
    max-width: 100%;
    width: 100%;
  }

  .col-select-crt {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0;
  }

  .big-warper-crt {
    margin-top: 100px;
    margin-bottom: 0;
    padding-right: 0;
    width: 100%;
  }

  .bg-in-box-name-crt .bg2 {
    display: none;
  }

  .bg-in-box-name-crt .bg3 {
    display: block;
    width: 100%;
    object-fit: contain;
  }

  .bg-in-box-name-crt {
    width: 100%;
    padding-right: 0%;
  }

  .warper-in-box-name-crt {
    width: 100%;
    margin-top: -15px;
  }

  .box-name-crt {
    margin-top: 0;
    padding-left: 45px;
  }

  .box-img-crt {
    width: 321%;
    margin-left: -277px;
    margin-top: -50px;
  }

  .in-box-name-crt {
    top: 42px;
    left: 34px;
    width: 88%;
  }

  .text-detail-crt {
    font-size: 14px;
  }

  .text-name-en {
    font-size: 46px;
  }

  .text-name-th {
    font-size: 32px;
  }

  .col-icon-state {
    height: 57px;
  }

  .col-text-state {
    height: 24px;
    font-size: 16px;
  }

  .warper-col-progress .progress-bar {
    height: 15px;
  }

  .col-select-crt::before {
    background: url(../images/crt-active-md.webp?v=1.19) center / contain no-repeat;
    width: 203px;
    height: 203px;
    top: -38px;
    right: 245px;
  }

  .warper-col-select-crt a img {
    transform: rotate(270deg);
  }

  .warper-col-select-crt a {
    width: 60px;
    height: 60px;
    padding-top: 10px;
  }
}

@media (max-width: 768px) {

  .col-text-state {
    height: 19px;
    font-size: 14px;
  }

  .warper-col-progress .progress-bar {
    height: 12px;
  }

  .in-box-name-crt {
    top: 40px;
    left: 19px;
    width: 92%;
  }

  .col-icon-state {
    height: 50px;
  }

  .box-img-crt {
    width: 316%;
    margin-left: -252px;
    margin-top: -41px;
  }

  .col-select-crt .thumb {
    width: 114px;
    height: 114px;
    margin: 0 -4px;
  }

  .col-select-crt::before {
    width: 180px;
    height: 180px;
    top: -34px;
    right: 231px;
  }

  .warper-col-select-crt a {
    padding-top: 4px;
  }
}

@media (max-width: 550px) {

  .mySlides .row {
    flex-direction: column-reverse;
  }

  .box-name-crt {
    margin-top: 0;
    padding: 0;
  }

  .col-select-crt .thumb {
    width: 66px;
    height: 66px;
    margin: 0 -5px;
  }

  .box-img-crt {
    width: 68%;
    margin-top: -261%;
    margin-left: 15%;
    z-index: 0;
  }

  .warper-in-box-name-crt {
    width: 100%;
    margin-top: 32%;
  }

  .text-name-en {
    font-size: 38px;
  }

  .text-name-th {
    font-size: 26px;
  }

  .in-box-name-crt {
    top: 47px;
    left: 16px;
    width: 90%;
  }

  .bg-in-box-name-crt .bg3 {
    display: none;
  }

  .bg-in-box-name-crt .bg4 {
    display: block;
    width: 100%;
    object-fit: contain;
  }

  .col-text-state {
    height: 20px;
    font-size: 14px;
  }

  .warper-col-progress .progress-bar {
    height: 10px;
  }

  .progress-value {
    font-size: 17px;
    min-width: 38px;
  }

  .text-detail-crt {
    font-size: 13px;
  }

  .col-select-crt .thumb.active {
    margin: 0px 15px;
  }

  .col-select-crt::before {
    width: 100px;
    height: 100px;
    top: -18px;
    right: 111px;
  }

  .big-warper-crt {
    margin-top: -7px;
    margin-bottom: 0;
  }

  #Sec-CRT {
    min-height: 944px;
  }

  .warper-col-select-crt a {
    width: 56px;
    height: 56px;
    padding-top: 16px;
  }

  .col-icon-state {
    height: 55px;
  }
}

@media (max-width: 375px) {

  .text-name-th {
    font-size: 22px;
  }

  .box-img-crt {
    width: 56%;
    margin-top: -265%;
    margin-left: 20%;
  }

  .text-name-en {
    font-size: 32px;
  }

  .in-box-name-crt {
    top: 30px;
    left: 13px;
    width: 92%;
  }

  .col-icon-state {
    height: 50px;
  }

  .col-text-state {
    height: 17px;
    font-size: 13px;
  }

  .col-select-crt .thumb {
    width: 60px;
    height: 60px;
    margin: 0 -5px;
  }

  .col-select-crt::before {
    width: 95px;
    height: 95px;
    top: -19px;
    right: 98px;
  }

  .progress-value {
    font-size: 16px;
    min-width: 36px;
  }

  .text-detail-crt {
    font-size: 12px;
  }

  .warper-in-box-name-crt {
    margin-top: 25%;
  }

  #Sec-CRT {
    min-height: 830px;
  }
}


/* Section System */

#Sec-System {
  width: 100%;
  padding: 20px 0 0 0;
  background: url(../images/bg-sec-5.webp?v=1.19) center/100% no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#Sec-System .owl-carousel .owl-stage-outer {
  position: relative;
  overflow: visible;
  -webkit-transform: translate3d(0, 0, 0);
}

.col-img-piero-3 {
  position: absolute;
  bottom: -7px;
  left: 30px;
  width: 300px;
}

.img-piero-3 {
  width: 100%;
}

.warper-col-data-st {
  overflow: hidden;
  margin-top: -30px;
}

.col-data-system {
  margin-top: 60px;
}

.owl-system .owl-item {
  filter: brightness(0.7);
  transform: scale(.7);
}

.owl-system .owl-item.active.center {
  transform: scale(.9);
  z-index: 10;
  filter: brightness(1) drop-shadow(0px 2px 10px #0000002e);
}

.item-system {
  position: relative;
}

.owl-system .owl-item.active.center .item-system::after {
  content: "";
  position: absolute;
  bottom: -90px;
  right: -149px;
  width: 48%;
  height: 100%;
  background-image: url("../images/crt-bn-system.webp?v=1.09");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
}

.col-text-st {
  position: absolute;
  top: 79%;
  left: 25px;
  text-align: start;
  padding-right: 27%;
}

.col-text-st h3 {
  /* font-family: "Rowdies", sans-serif; */
  font-size: 30px;
  /* font-weight: 800; */
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 8px;
  /* -webkit-text-stroke: 1px #ffffff; */
}

.text-st-detail {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #3C88C7;
  margin: 0;
}

.owl-system .owl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12%
}

.owl-system .owl-nav button {
  margin-top: -61%;
}

.owl-system .owl-nav button:hover {
  animation: shake-slow 1.5s infinite;
}

@keyframes shake-slow {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-3px);
  }

  50% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-3px);
  }

  100% {
    transform: translateX(0);
  }
}

.owl-system .owl-prev {
  background-image: url(../images/ic-left-st.webp?v=1.19) !important;
  width: 40px;
  height: 40px;
  z-index: 3;
}

.owl-system .owl-next {
  background-image: url(../images/ic-right-st.webp?v=1.19) !important;
  width: 40px;
  height: 40px;
  z-index: 3;
}

.owl-system .owl-prev span {
  display: none !important;
}

.owl-system .owl-next span {
  display: none !important;
}

.owl-system .owl-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 0;
}

.owl-system .owl-dot.active {
  background: url(../images/ic-dots-st-active.webp?v=1.19) center/contain no-repeat !important;
  width: 24px;
  height: 30px;
  z-index: 3;
  transform: scale(1.4);
}

.owl-system .owl-dot {
  background: url(../images/ic-dots-st.webp?v=1.19) center/contain no-repeat !important;
  width: 24px;
  height: 24px;
  z-index: 3;
}

@media (max-width: 1600px) {
  #Sec-System {
    background-size: cover;
  }
}

@media (max-width: 1200px) {}

@media (max-width: 1024px) {

  #Sec-System {
    justify-content: center;
  }

  .warper-col-data-st {
    margin-top: -20px;
  }

  .owl-system .owl-item.active.center .item-system::after {
    bottom: -68px;
    right: -112px;
    width: 48%;
    height: 100%;
  }

  .col-text-st h3 {
    font-size: 24px;
  }

  .col-text-st {
    left: 15px;
  }

  .col-text-st div {
    font-size: 14px;
  }

  .col-text-st {
    left: 15px;
  }

  .text-st-detail {
    font-size: 12px;
  }

}

@media (max-width: 992px) {

  .owl-system .owl-item.active.center .item-system::after {
    bottom: -78px;
    right: -91px;
    width: 47%;
    height: 107%;
  }

  .owl-system .owl-nav {
    padding: 0 8%;
  }

  .col-text-st h3 {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .col-text-st div {
    font-size: 12px;
  }

  .col-text-st {
    left: 13px;
  }

  .owl-system .owl-dot.active {
    width: 20px;
    height: 20px;
    transform: scale(1.4);
  }

  .owl-system .owl-dot {
    width: 20px;
    height: 20px;
  }

  .owl-system .owl-nav button {
    margin-top: -59%;
  }

  .text-st-detail {
    font-size: 11px;
  }
}

@media (max-width: 768px) {

  .item-system::after {
    bottom: 6.5px;
  }
}

@media (max-width: 550px) {

  #Sec-System .owl-carousel .center {
    transform: scale(.85);
  }

  .col-img-piero-3 {
    width: 190px;
  }

  .warper-col-data-st {
    padding: 120px 0 30px;
    margin-top: -160px;
  }

  .owl-system .owl-nav {
    padding: 0;
  }

  .owl-system .owl-nav button {
    margin-top: -77%;
    width: 28px;
    height: 28px;
    background-size: contain !important;
  }

  .owl-system .owl-item.active.center .item-system::after {
    bottom: -21px;
    right: -77px;
    width: 47%;
    height: 89%;
  }

  .col-text-st h3 {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .text-st-detail {
    font-size: 10px;
  }

  .col-text-st {
    top: 78%;
  }
}

@media (max-width: 375px) {
  #Sec-System {
    height: fit-content;
    min-height: 530px;
    padding: 0 !important;
  }

  .warper-col-data-st {
    padding: 0 0 30px;
    margin-top: 0;
  }

  .section-title {
    padding: 25px;
    margin-bottom: 0;
  }

  .col-text-st h3 {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .text-st-detail {
    font-size: 8px;
  }

}


/* Main */

@media (max-width: 1024px) {

  html,
  body {
    overflow-y: visible;
  }

  #Sec-Preregis {
    height: 100vh;
  }

  .section {
    /* height: fit-content !important; */
    padding: 50px 0 !important;
    background-size: cover !important;
  }

  .text-title-head {
    font-size: 40px;
  }

  .col-text-title-head {
    padding: 0 38px;
  }

  .col-text-title-head::before {
    width: 26px;
    height: 26px;
    top: 7px;
  }

  .col-text-title-head::after {
    width: 26px;
    height: 26px;
    top: 7px;
  }

  .col-text-title-head-white {
    padding: 0 38px;
  }

  .col-text-title-head-white::before {
    width: 26px;
    height: 26px;
    top: 7px;
  }

  .col-text-title-head-white::after {
    width: 26px;
    height: 26px;
    top: 7px;
  }

}

@media (max-width: 992px) {
  #Sec-Event .section-title {
    margin-top: 10px;
    margin-bottom: 5px;
  }

  #Sec-News.section {
    height: fit-content !important;
    padding: 70px 0;
  }

  .text-preregis-title {
    font-size: 94px;
  }
}

@media (max-width: 550px) {

  /* .section {
    height: fit-content !important;
  } */

  .text-preregis-title {
    font-size: 46px;
  }

  .warper-button-menu-fix {
    display: none;
  }

  .text-title-head {
    font-size: 30px;
  }

  .text-description-head {
    font-size: 20px;
  }

  .col-text-title-head-white {
    padding: 0 29px;
  }

  .col-text-title-head-white::before {
    width: 22px;
    height: 22px;
    top: 4px;
  }

  .col-text-title-head-white::after {
    width: 22px;
    height: 22px;
    top: 4px;
  }

  html,
  body {
    scroll-behavior: smooth;
    scroll-snap-type: inherit;
    overflow-y: scroll;
  }

}

@media (max-width: 375px) {

  .text-title-head {
    font-size: 26px;
  }

  .text-description-head {
    font-size: 16px;
  }

  .col-text-title-head-white {
    padding: 0 22px;
  }

  .col-text-title-head-white::before {
    width: 16px;
    height: 16px;
    top: 4px;
  }

  .col-text-title-head-white::after {
    width: 16px;
    height: 16px;
    top: 4px;
  }

  .col-text-title-head {
    padding: 0 22px;
  }

  .col-text-title-head::before {
    width: 16px;
    height: 16px;
    top: 4px;
  }

  .col-text-title-head::after {
    width: 16px;
    height: 16px;
    top: 4px;
  }

  html,
  body {
    scroll-behavior: smooth;
    scroll-snap-type: inherit;
    overflow-y: scroll;
  }

}


/* footer */

#MainFooter {}

.footer {
  width: 100%;
  min-height: 166px !important;
  height: 5vh !important;
  scroll-snap-align: start !important;
  overflow: hidden !important;
}

.footer-top {
  background: #1092FF;
  padding: 15px 0;
  text-align: center;
}

.footer-top a {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
  width: 36px;
  height: 36px;
}

.footer-top a:hover {
  filter: brightness(.9);
}

.col-link-ft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-bottom {
  background-color: #222;
  padding: 20px 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.footer-bottom .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.col-logo-inft .rh {
  height: 25px;
  border-right: 1px solid #9A9DA3;
}

.col-logo-inft .hof {
  height: 60px;
}

.footer-bottom .links {
  text-align: start;
  flex: 1;
}

.footer-bottom .links a {
  color: #aaa;
  margin-right: 10px;
  text-decoration: none;
  font-size: 12px;
}

.footer-bottom .links a:hover {
  text-decoration: underline;
}

.footer-bottom .copyright {
  flex: 1;
  font-size: 12px;
  color: #888;
}


@media (max-width: 992px) {

  .footer-bottom .links a {
    margin: 0;
  }

  .col-link-ft {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom .copyright {
    margin-top: 10px;
    text-align: center;
  }
}