@charset "utf-8";
  
@font-face {
    font-family: 'DBHelvethaicaX';
     src: url('./fonts/DBHelvethaicaX-55Regular.woff2') format('woff2'),
       url('./fonts/DBHelvethaicaX-55Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
    unicode-range: U+0E00-0E7F, U+0020-007F; 
}

 
@font-face {
  font-family: 'DBHelvethaicaBd';
  src: local('DBHelvethaicaX-65Med'),
       url('./fonts/DBHelvethaicaX-65Med.woff2') format('woff2'),
       url('./fonts/DBHelvethaicaX-65Med.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F, U+0020-007F;
}


div#loadPage_content {
   position: fixed;
   margin: auto;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   color: #000;
   background-color: #FFF;
   z-index: 500000000;
   text-align: center;
   opacity: .7;
   padding-top: 200px;
   vertical-align: middle;
   filter: alpha(opacity=70);
   display: none;
 }
 /* ====== preload ========== */
 img {
   max-width: 100%;
 }
 html {
   width: 100%;
 }
 
 :root {
  --color-primary: #ffd502;
  --color-remark: #e30000;
  --color-bg: #ffe357;
  --color-surface: #999999;
  --color-text: #333333; 
  --color-border: #ffd502; 
  --color-card: #ffffff; 
  --text-size:22px; 
}

/* Example usage */
body {
 background: url(../../img/bg.jpg) bottom center no-repeat;
  background-size:100%;
  background-color:#ffe357;
  color: var(--color-text);
  font-family: "DBHelvethaicaX", sans-serif; 
  font-size: clamp(20px, 3vw, 22px);
   line-height: 120%;
}


.background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: -1;
}


.loading{
    background-color: rgba(255,255,255,0.8); width: 100%; height: 100%; position: fixed;
    text-align:center; z-index: 99; color:var(--color-text); padding-top: 25%;   
    font-family: 'DBHelvethaicaX'; font-size: 40px; display: none;
}

 

 
 


.spinner-load {
     
    display: inline-block;
   width: 60px;
   height: 60px;
   animation: spinner-load-y0fdc1 2s infinite ease;
   transform-style: preserve-3d;
}

.spinner-load > div {
   background-color: rgba(243,191,96,0.2);
   height: 100%;
   position: absolute;
   width: 100%;
   border: 2.2px solid  var(--color-border);
}

.spinner-load div:nth-of-type(1) {
   transform: translateZ(-22.4px) rotateY(180deg);
}

.spinner-load div:nth-of-type(2) {
   transform: rotateY(-270deg) translateX(50%);
   transform-origin: top right;
}

.spinner-load div:nth-of-type(3) {
   transform: rotateY(270deg) translateX(-50%);
   transform-origin: center left;
}

.spinner-load div:nth-of-type(4) {
   transform: rotateX(90deg) translateY(-50%);
   transform-origin: top center;
}

.spinner-load div:nth-of-type(5) {
   transform: rotateX(-90deg) translateY(50%);
   transform-origin: bottom center;
}

.spinner-load div:nth-of-type(6) {
   transform: translateZ(22.4px);
}

@keyframes spinner-load-y0fdc1 {
   0% {
      transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
   }

   50% {
      transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
   }

   100% {
      transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
   }
}



.card {
  background: var(--color-card);
  border: 5px solid var(--color-border);
  border-radius: 25px;
  padding: 1.5rem; min-height: 100px;
  transition: 0.3s ease; padding: 40px !important;
}

.card:hover {
  border-color: #744b2e;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

.card .col-sm{
  margin-top: 20px; text-align: left;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}
  
 .stop-scrolling {
   /*overflow: hidden;*/
 }


.btn-submit{
  display: inline-block;
  margin-top: 40px;
  padding: 8px 56px; min-width: 200px;

  background: var(--color-primary);
  color: var(--color-text);

  font-size: 24px;
  font-weight: 500;

  border-radius: 999px;
  border: 2px solid transparent;

  cursor: pointer;

  /* effect */
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* hover */
.btn-submit:hover{
  background: var(--color-text);
  color: var(--color-primary);

  border-color: var(--color-primary);

  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* click */
.btn-submit:active{
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
 h1 {
   margin: 0; font-family: 'DBHelvethaicaBd';
   padding: 0;   
   font-size: clamp(36px, 3vw, 48px);
   line-height: 120%;
   font-weight: normal;
   letter-spacing: 0px;
 }
 h2 {
   margin: 0; font-family: 'DBHelvethaicaBd';
   padding: 0;   color: var(--color-text-muted);
   font-size: 24px; 
   line-height: 110%;
   font-weight: normal;
   letter-spacing: 1px;
 }
 h3 {
   margin: 0; font-family: 'DBHelvethaicaBd';
   padding: 0;
   font-size: 22px;
   line-height: 110%;
   font-weight: normal;
   letter-spacing: 1px;
 }

 b{
  font-family: 'DBHelvethaicaBd'; font-weight: normal;
 }  

.fade.in {
    opacity: 1
}

 

 a, a:hover, a:link {
   text-decoration: none;
 }
 .bull {
   font-family: "sans-serif";
   width: 20px;
 }

 

input:focus::-webkit-input-placeholder {
    color: transparent;
}


 
 
 table {
   font-family: "DBHelvethaicaX", sans-serif;
   font-size: clamp(20px, 3vw, var(var(--text-size)));
   line-height: 140%;
 }
 table td {
   padding: 2px 0;
   border: 0 !important;
 }
 table tr {
   border: 0 !important;
 }

.remark_table{ 
  font-size: clamp(18px, 3vw, 20px);
   line-height: 140%;
}

 ul, li {}
 .header ul, .header li , .footer ul, .footer li {
   margin: 0;
   padding: 0;
   list-style: none;
 }
 
 .clear {
   clear: both;
 }
 
 .top5 {
   margin-top: 5px; 
 }
 .top10 {
   margin-top: 10px;
 }
 .top20 {
   margin-top: 20px;
 }
 
 .top40 {
   margin-top: 40px;
 }
  .top80 {
   margin-top: 80px;
 }
 
 


 .webshow {}
 .mobileshow {
   display: none;
 }
 
 #load_popup img {
   /*	width: 100%;*/
 }
 area:focus {
   outline: 0;
 }

 
 .area_content {
   width: 94%;
   margin-left: auto;
   margin-right: auto;
   position: relative;
   max-width: 1100px;
   border: 0px #000 solid;
   text-align: left;  
 }
 .padding_page {
   padding: 60px 0;
 } 

.popup{
    width: 100%;
  height: 100%;
  z-index: 999999;
  top: 0;
  bottom: 0;
  position: fixed;
  background: var(--color-surface); color: var(--color-text);
  padding: 20px 0 0px 0;
  overflow: scroll;
  text-align: center;
  display: none;
}
 
.fixed{
    position: fixed !important; width: 100%; z-index: 999;
}


.bg_head{
  background-color: #fff; padding: 15px 0;
}

.bg_head .logo{
  height: 70px;  
}

.logout{
     cursor: pointer; background-color: #000; color: #fff; padding-left: 10px; padding-right: 10px; border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

.menu-header{
  padding: 20px 0;
}

.menu-header{
   position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: right; /* หรือไม่ต้องใส่ก็ได้ */
  gap: 60px;                  /* คุมระยะห่างเอง */
  max-width: 1280px;
  margin: 0 auto;   
}

 
.menu-header  li{
  display: inline-block;
}

.menu-header .active{
  color: var(--color-primary); font-weight: bold;
}

@media all and (max-width: 1250px) {

.menu-header{ 
  gap: 30px;           
}

 
}

@media all and (max-width: 1050px) {


  
  .logo{
     text-align: center;
  }

  .bg_head .logo{
  height: 50px;  
}

  
.bg_head .col-12{
  padding: 0; 
}

.bg_head .col-12{
min-width: 100%;
}

 
 

 .menu-header{
    display: none; position: relative; text-align: left; background-color: #fff;  
    margin: 15px 0 0 0; padding: 0;  gap: 10px;                  /* คุมระยะห่างเอง */
  }

  .menu-header li{
	width: 100%;
	margin: 0;  
	padding: 8px 5%; border-top: 1px #333 solid;
} 


/* Icon 1 */

#nav-icon1 { 
  width: 35px;
  height: 25px;
  position: absolute; right: 0;
  margin: 15px 20px 0 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon1 span {
  display: block;
  position: absolute;
  height: 1px ;
  width: 100%;
  background: #000 ;
  border-radius: 5px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon1 span:nth-child(1) {
  top: 0px;
}

#nav-icon1 span:nth-child(2) {
  top: 7px;
}

#nav-icon1 span:nth-child(3) {
  top: 14px;
}

#nav-icon1.open span:nth-child(1) {
  top: 18px;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
}

#nav-icon1.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

#nav-icon1.open span:nth-child(3) {
  top: 18px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

 

}


.footer{
  background-color: #fff; padding: 10px 0; text-align: center;
  font-size: clamp(18px, 3vw, 22px);
}

h1.page_title{
  display: inline-block; vertical-align: top; 
  background: url(../../img/tp/title.png) top left no-repeat;
  background-size: 30px; padding: 0 40px;   
}

.search{
  background: url(../../img/tp/search.png) center center no-repeat;
  background-size: 75%; border: 0;
  background-color: #000; display: inline-block;
  width: 40px; height: 40px; border-radius: 75px; margin-top: 40px;
  transition: 0.3s ease; 
}

.search:hover{
  background: url(../../img/tp/search.png) center center no-repeat;
  background-size: 90%; background-color:#744b2e; transform: rotate(45deg); 
}

#rank ,#profile{
  margin-top: 80px;
}

 .archive-wrap{
  padding: 50px 50px 20px 50px;  
 }

  .archive-wrap2{
  padding: 10px 50px 0 50px;
 }

.article-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* หรือไม่ต้องใส่ก็ได้ */
  gap: 30px;                  /* คุมระยะห่างเอง */
  max-width: 1280px;
  margin: 0 auto; 
}


.article-wrap  div{
  display: inline-block;
}

.article_box{
  border-bottom: 5px #ffbc20 solid;
 padding: 0 0 20px 0;
}

.btn-status{
  min-width: 120px;
}


.article-wrap > div{
 
}

.article-wrap .point01{
    width: 5%;  
  }
  .article-wrap .point02{
    width: 20%;
  }
  .article-wrap .point03{
    width: 20%;
  }

   .article-wrap .point04{
    width: 20%; 
  }

    .article-wrap .point05{
    width: 20%; 
  }

  .archive-remark{
     font-size: clamp(18px, 3vw, 18px); line-height: 100%;  width: 100%;
  }

  .archive-desc{
    font-size: clamp(18px, 3vw, 18px); line-height: 100%;  color: var(--color-remark);
  }

  .form-control ,.form-select{
    border-radius: 50px !important;
    font-size: var(--text-size); line-height: 120%;
    padding-left: 20px;  
  }

  .form-control::placeholder{ 
    color: var(--color-surface);
  }

.text-file{
  display: none !important;
}

  @media all and (min-width: 769px) and (max-width: 1040px){
.article-wrap {
  gap: 10px;    
}


  .archive-wrap{
  padding: 50px 20px 0px 20px;  
 }

  .archive-wrap2{
  padding: 20px 20px 0 20px;
 }

}

@media all and (max-width: 768px) {
.card {
  padding: 20px  20px !important;
}

 

#rank{
  margin: 50px 0 0 0;
}



  .article-wrap {
  gap: 4%;    
}

  .archive-wrap{
  padding: 50px 0 0 0;  
 }

  .archive-wrap2{
  padding: 20px 0 0 0;
 }


.article-wrap .point01{
    width: 12%;  
  }
  .article-wrap .point02{
    width: 34%; display: none;
  }
  .article-wrap .point03{
    width: 25%;
  }

   .article-wrap .point04{
    width: 25%; 
  }

   .article-wrap .point05{
    width: 25%; 
  }
 
  .btn-status{
  min-width: 100%;
}


.text-file{
  display: block !important; text-decoration: underline;
}

 

}

#btn-close{
  display: none;
}

.btn-close{ 
  display: inline-block; vertical-align: top;
  position: relative;
  width: 28px; margin: 40px 0 0  0;
  height: 28px; opacity: 1;
  background: transparent; 
  border: 0; border-radius: 75px;
  cursor: pointer; background-color:var(--color-remark);
}

/* เส้น */
.btn-close::before,
.btn-close::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background:var(--color-border);
  transform-origin: center;
}

.btn-close::before{
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* hover */
.btn-close:hover::before,
.btn-close:hover::after{
  background: var(--color-text);
}

.txt_search{
  padding: 50px 0;
  font-size: 30px; list-style: 100%; text-align: center;
}

 
.bg{
  background: url(../../img/bg.jpg) bottom center no-repeat;
  background-size:100%; min-height: 700px;
  background-color:#ffe357;
  padding:80px 0;

  position:relative;
  overflow:hidden;
}

@media (max-width: 768px){

  .bg{
    background: url(../../img/bg.jpg) no-repeat center 90%;
    background-size: cover;

    min-height: 600px;
    padding:50px 0;

    position:relative;
    overflow:hidden;
  }

  .bg::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:linear-gradient(
      to bottom,
      #ffe357 0%,
      rgba(255,227,87,0.8) 20%,
      rgba(255,227,87,0) 30%
    );

    pointer-events:none;
  }

}

.bubbles{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
/*
.bubble{
    width:60px;
  height:60px;

  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;

  position:absolute;
  bottom:-80px;

  border-radius:50%;

  background:radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.3) 40%,
    rgba(255,255,255,0.1) 60%,
    rgba(255,255,255,0.05)
  );

  backdrop-filter:blur(3px);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:26px;

  animation:bubbleMove linear forwards;
}

.bubble::before{
  content:"";
  position:absolute;
  width:10px;
  height:10px;
  background:rgba(255,255,255,0.9);
  border-radius:50%;
  top:8px;
  left:10px;
  filter:blur(1px);
}


*/
.bubble{
  width:60px;
  height:60px;

  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;

  position:absolute;
  bottom:-80px;

  border-radius:50%;

  /* 👇 แก้ตรงนี้ */
  background-image: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.3) 40%,
    rgba(255,255,255,0.1) 60%,
    rgba(255,255,255,0.05)
  );

  backdrop-filter:blur(3px);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:26px;

  animation:bubbleMove linear forwards;
}

.bubble{
  position:absolute;
  border-radius:50%;
  overflow:hidden; /* สำคัญ */

  background-size:contain, cover;
  background-repeat:no-repeat;
  background-position:center;
}

/* จุดแสงสะท้อนหลัก */

.bubble::before{
  content:"";
  position:absolute;

  width:14px;
  height:14px;

  background:rgba(255,255,255,0.9);
  border-radius:50%;

  top:8px;
  left:12px;

  filter:blur(1px);
}

/* แสงสะท้อนยาว (gloss) */

.bubble::after{
  content:"";
  position:absolute;

  width:30px;
  height:12px;

  background:rgba(255,255,255,0.5);
  border-radius:50%;

  top:20px;
  left:8px;

  transform:rotate(-25deg);
  filter:blur(2px);
}

.bubble-img{
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
}


.bubble-css{
  background:radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.3) 40%,
    rgba(255,255,255,0.1) 60%,
    rgba(255,255,255,0.05)
  );
}


@keyframes bubbleMove{

  0%{
    transform:translateY(0) rotate(0deg) scale(.7);
    opacity:0;
  }

  25%{
    transform:translate(10px,-200px) rotate(8deg); opacity:1;
  }

  50%{
    transform:translate(-10px,-500px) rotate(-10deg);
  }

  75%{
    transform:translate(5px,-800px) rotate(15deg);
  }

  100%{
    transform:translate(0,-250vh) rotate(25deg);
    opacity:0;
  }

}
 

/* The container */
.container2 {
  margin-top: 20px;
  display: inline-block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container2 a{
  color: var(--color-primary);
}

/* Hide the browser's default checkbox */
.container2 input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
    border: 1px #aaaaaa solid;
}

/* On mouse-over, add a grey background color */
.container2:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container2 input:checked ~ .checkmark {
  background-color: var(--color-primary);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container2 input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container2 .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.home-rule{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  max-width: 1280px;
  margin: 50px auto 0;   
}

.home-rule .box{
  display: flex;          /* เปลี่ยนจาก inline-block */
  flex-direction: column; /* เรียงบนลงล่าง */
  width: 30%;
}

.home-rule .box div:last-child{
  margin-top: 10px;
  background: rgba(255,255,255,0.9);
  padding: 18px 22px;
  border-radius: 16px;
  color: #333;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  flex: 1; /* ⭐ ทำให้สูงเท่ากัน */
}

.require_name ,.require_phone{
  display: none; color: #dc3545; font-size: 18px; margin-top: 5px;
}

.submit-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

@media all and (max-width: 1100px) {
.home-rule{
   gap: 20px;    
}

 
}

@media all and (max-width: 768px) {
.home-rule  .box{
  display: inline-block; width: 80%;
}
}

.thankyou{
  padding: 100px 0;
  font-size: clamp(26px, 3vw, 36px); line-height: 120%;
}

.rule h2{
  font-size: 30px; line-height: 120%;
}

.thank-remark{
  font-size: clamp(18px, 3vw, 20px); line-height: 140%; margin-top: 60px;
}


 
.table-rule   td {
  text-align: left; vertical-align: top;
}

 .table-rule   td:first-child  ,.remark_table  td:first-child{
 min-width: 20px;
}

@media all and (max-width: 768px) {
.table-rule   br {
  display: none;
}
}

.img-thumb{
  cursor: pointer;
  transition: 0.3s;
}
.img-thumb:hover{
  transform: scale(1.05);
}

/* ปุ่มปิดลอยบนพื้นดำ */
.modal-image .custom-close{
  position: fixed;
  top: 20px;
  right: 20px;

  width: 42px;
  height: 42px;

   filter: none !important;            /* ลบ filter เดิม */
  background-color: rgba(0,0,0,0.7);

  /* เปลี่ยน icon เป็นสีขาว */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M.293 1.293a1 1 0 011.414 0L8 7.586l6.293-6.293a1 1 0 111.414 1.414L9.414 9l6.293 6.293a1 1 0 01-1.414 1.414L8 10.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 9 .293 2.707a1 1 0 010-1.414z'/%3E%3C/svg%3E");

  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;

  opacity: 1; 

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1056;
}

 

.modal-image .custom-close:hover{
  background: #ffffff;
  transform: scale(1.1) rotate(90deg);
}

/* modal content */
.modal-image .modal-content{
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}

/* รูป */
.modal-img{
  max-height: 80vh;
  object-fit: contain;
}

/* backdrop ให้ดู soft */
.modal-backdrop.show{
  opacity: 0.85;
}

.modal.fade .modal-dialog{
  transform: scale(0.9);
  transition: 0.3s ease;
}
.modal.show .modal-dialog{
  transform: scale(1);
}

.upload-remark{
  color: var(--color-remark);  
  text-align: right; font-size: 18px; list-style: 100%;
  text-decoration: underline; cursor: pointer;
}

#mall{
  display: none; margin-bottom: 10px;
}

 .top-wrap{
  padding: 50px 30px 20px 30px;  
 }

  .top-wrap2{
  padding: 10px 30px 0 30px;
 }

.topbtu-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* หรือไม่ต้องใส่ก็ได้ */
  gap: 30px;                  /* คุมระยะห่างเอง */
  max-width: 1280px;
  margin: 0 auto; 
}


.topbtu-wrap  div{
  display: inline-block;
}

.article_box{
  border-bottom: 5px #ffbc20 solid;
 padding: 0 0 20px 0;
}

.topbtu-wrap > div{
 
}

.topbtu-wrap .point01{
    width: 5%;  
  }
  .topbtu-wrap .point02{
    width: 25%;
  }
  .topbtu-wrap .point03{
    width: 25%;
  }

   .topbtu-wrap .point04{
    width: 20%; 
  }

     
  .topbtu_box{
  border-bottom: 5px #ffbc20 solid;
 padding: 0 0 20px 0;
}
 

@media all and (max-width: 768px) {
.topbtu-wrap {
  gap: 10px;    
}


  .top-wrap{
  padding: 20px 0 0px 0;  
 }

  .top-wrap2{
  padding: 20px 0 0 0;
 }

 
.topbtu-wrap .point01{
    width: 15%;  
  }
  .topbtu-wrap .point02{
    width: 50%;
  }
  .topbtu-wrap .point03{
   display: none;
  }

   .topbtu-wrap .point04{
    width: 22%; 
  }
 

}


.btu{
  background: url(../../img/btu/bg2-m.jpg) top center no-repeat;
  background-size: 100%; width: 100%;  
}

.btu-logo{
 width: 45%; margin-left: auto; margin-right: auto;
 margin-top: 40px;
}



.btu-title{
 width: 65%; margin-left: auto; margin-right: auto;
 margin-top: 20px;
}



.btu-bar{
  background: url(../../img/btu/bar.png) top center no-repeat;
  background-size: 100%;
 width: 700px; margin-left: auto; margin-right: auto;
 margin-top: 40px;  
 display: flex;
  flex-wrap: wrap;
  justify-content: center; /* หรือไม่ต้องใส่ก็ได้ */
}


.btu-air{
  position: absolute; bottom: 0; width: 30%; margin-left: -10%; transform: rotate(6deg);
  margin-bottom: -60px;
}


@media all and (max-width: 768px) {

.btu-logo{
 width: 50%;  
 margin-top: 20px;
}



.btu-title{
 width: 70%;  
 margin-top: 20px;
}


.btu-air{
  width:45%; margin-left: -30px; transform: rotate(6deg);
  margin-bottom: -35px;
}

}


.btu-bar .camera{
  width: 70%; transition:transform .8s ease;
}

.btu-bar .gift{
  width: 90%; transition:transform .8s ease;
}


.btu-bar .photo{
  width: 20%;  text-align: center;
  font-size: 14px; line-height: 1; color: #fff;
  font-weight: bold; filter: grayscale(100%);
}

.btu-bar .photo-active{
filter: grayscale(0);
}


.btu-bar .box1{
  margin-top: 165px; 
}

.btu-bar .box2{
  margin-top: 168px;  
}

.btu-bar .box3{
  margin-top: 171px; 
}
.btu-bar .box4{
  margin-top: 174px; 
}

.btu-bar .box5{
    margin-top: 140px; 
}





.bar-text1{
  background: url(../../img/btu/text-1.png) center center no-repeat;
  background-size: 100%;
}

.bar-text2{
  background: url(../../img/btu/text-2.png) center center no-repeat;
  background-size: 100%;
}

.bar-text3{
  background: url(../../img/btu/text-3.png) center center no-repeat;
  background-size: 100%;
}

.bar-text4{
  background: url(../../img/btu/text-4.png) center center no-repeat;
  background-size: 100%;
}

.bar-text5{
  background: url(../../img/btu/text-5.png) center center no-repeat;
  background-size: 100%;
}

.bar-text5 span{
  width: 100%;  font-size: clamp(12px, 3vw, 12px); line-height: 1; 
}

.btn-jp{
    width: 90%; height: 40px;  
  
   display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    color:#fff;
    text-decoration:none;
    letter-spacing:1px;

   

    position:relative;
    overflow:hidden;

    transition:
        transform .4s ease,
        filter .4s ease;
}


@media all and (max-width: 768px) {
.btu{
  background: url(../../img/btu/bg2-m.jpg) top center no-repeat;
  background-size: 100%; width: 100%;  
}

.btu-bar{
  background: url(../../img/btu/bar.png) top center no-repeat;
  background-size: 100%;
 width: 320px; margin-left: auto; margin-right: auto;
 margin-top: 40px; min-height: auto;
 display: flex;
  flex-wrap: wrap;
  justify-content: center; /* หรือไม่ต้องใส่ก็ได้ */
}

.btu-bar .photo{
  font-size: 6px;
}

.bar-text5 span{
  font-size: 8px;
}
 

.btu-bar .box1{
  margin-top: 75px; 
}

.btu-bar .box2{
  margin-top: 78px;  
}

.btu-bar .box3{
  margin-top: 81px; 
}
.btu-bar .box4{
  margin-top: 84px; 
}

.btu-bar .box5{
    margin-top: 70px; 
}

.btn-jp{
    letter-spacing:0px;
}

}

/* แสงวิ่ง */
.photo-active .btn-jp::before{
    content:"";

    position:absolute;
    top:0;
    left:-120%;

    width:60%;
    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );

    transform:skewX(-20deg);

    transition:1s;
}

/* hover */

.photo-active:hover .camera , .photo-active:hover .gift{
    transform:scale(1.03);
}

.photo-active:hover .btn-jp{
    transform:translateY(-2px);
    filter:brightness(1.05);
    color: #5a2e0e;  background-position:center 2px;
}

/* แสงวิ่ง */
.photo-active .btn-jp:hover::before{
    left:160%; 
}


/* popup */
.new-popup{
    position:fixed;
    inset:0;
    text-align: center;
    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:.4s ease;

    z-index:9999;
}

/* active */
.new-popup.show{
    opacity:1;
    visibility:visible;
}

/* bg */
.popup-overlay{
    position:absolute;
    inset:0;

    background:rgba(0,0,0,.75);

    backdrop-filter:blur(3px);
}

/* content */
.popup-content{
    position:relative;
    z-index:2;

    max-width:90%;
    max-height:90vh;

    animation:popupFade .5s ease;
}

/* image */
.popup-content img{
    max-width:100%;
    max-height:75vh;

    display:block;

    border-radius:4px;
     box-shadow:
    0 30px 80px rgba(0,0,0,.35);
}



/* close */
.close-btn{
    position:absolute;
    top:-50px;
    right:0;

    background:none;
    border:none;

    color:#fff;
    font-size:28px;
    cursor:pointer;
}

/* download button */
.download-btn{
    margin-top:20px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:180px;
    height:50px;

   background: var(--color-primary);
  color: var(--color-text);

  font-size: 24px;
  font-weight: 500;

  border-radius: 999px;

    text-decoration:none;
    letter-spacing:1px;

    transition:.3s ease;
}

.download-btn:hover{
    opacity:.85; color: var(--color-text);
}

/* animation */
@keyframes popupFade{
    from{
        opacity:0;
        transform:translateY(20px) scale(.96);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.gift-wrap{
    position:relative;
    display:inline-block;
}

/* gift */
.photo-active  .gift{
    width:220px;

    animation:floatGift 3s ease-in-out infinite;
}

/* ดาว */
.spark{
    position:absolute;

    color:#fff8d8;

    text-shadow:
        0 0 8px rgba(255,255,255,.9),
        0 0 18px rgba(255,240,180,.8);

    animation:sparkle 2s ease-in-out infinite;
}

/* ตำแหน่งดาว */
.s1{
    top:10px;
    left:20px;

    font-size:28px;

    animation-delay:0s;
}

.s2{
    top:30px;
    right:10px;

    font-size:40px;

    animation-delay:.8s;
}

.s3{
    bottom:40px;
    left:10px;

    font-size:22px;

    animation-delay:1.4s;
}

/* ลอย */
@keyframes floatGift{

    0%,100%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-6px);
    }
}

/* sparkle */
@keyframes sparkle{

    0%,100%{
        opacity:.2;
        transform:
            scale(.7)
            translateY(0px);
    }

    50%{
        opacity:1;
        transform:
            scale(1.15)
            translateY(-4px);
    }
}


@media all and (max-width: 768px) {


/* ตำแหน่งดาว */
.s1{
    top:10px;
    left:20px;

    font-size:13px;

    animation-delay:0s;
}

.s2{
    top:30px;
    right:10px;

    font-size:25px;

    animation-delay:.8s;
}

.s3{
    bottom:40px;
    left:10px;

    font-size:8px;

    animation-delay:1.4s;
}
}

.gray{
  filter: grayscale(100%);
}

.sum-score{
  display: inline-block; width: auto;
  background: var(--color-card);
  border: 5px solid var(--color-border);
  color: #5a2e0e;
  border-radius: 25px;
  padding: 10px 40px;   font-size: clamp(20px, 3vw, 30px);
   line-height: 120%;
  transition: 0.3s ease;    margin-top: 20px;
}

.sum-score span{
   font-size: clamp(26px, 3vw, 40px);
   line-height: 120%; font-weight: bold;
}


@media all and (max-width: 768px) {
 
.sum-score{
  padding: 6px 30px; 
}
}