/*
Theme Name: POE88
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.m-25{
    margin-top: 25px;
}

.button, button, input[type=button], input[type=reset], input[type=submit] {
    border: none;
}

a.button.success {
    background-image: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
}



.button-register i.fa-solid.fa-user-plus {
   background: linear-gradient(180deg,rgba(254, 235, 96, 1) 0%, rgba(208, 158, 70, 1) 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}



.absolute-footer {
    padding-bottom: 60px;
}

.btn-co-main{
    background: linear-gradient(180deg,rgba(178, 0, 0, 1) 0%, rgba(115, 0, 0, 1) 100%);
    border: solid 2px #b20000;
    margin-bottom: 15px;
  
}
.btn-co-main span , .btn-co-sub span {
    font-size: clamp(18px, 2.5vw, 24px) !important;
    font-weight: bold;
    padding: 10px 24px !important;
}

.btn-co-sub{
    background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
    border: solid 2px #FFD700;
    margin-bottom: 15px;
}


.btn-ft-main{
    background: linear-gradient(180deg, #FF0A00 0%, #f2295b 100%);
}

.btn-ft-sub{
    background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
}

.btn-ft-main ,.btn-ft-sub {
    margin-bottom: 0 !important;
    font-size: 18px !important;
}

.btn-ft {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

:root{
  --lotto-bg: #1a1a1a;          /* พื้นการ์ด */
  --lotto-card: linear-gradient(180deg, #262626, #1f1f1f);       /* พื้นกล่องย่อย */
  --lotto-border: #ffffff14;      /* เส้นแบ่งอ่อน */
  --lotto-primary: #ffffff;     /* สีเลขหลัก */
  --lotto-text: #dfdfdf;
  --lotto-muted: #dfdfdf;
  --lotto-pill: #FFD700;        /* แท็บวันที่ */
}

.thai-lottery-card {
  background: var(--lotto-bg);
  border-radius: 16px;
  padding: 18px;
  box-shadow:
    0 1px 0 rgba(0,0,0,.03),
    0 6px 24px rgba(14, 23, 38, .06);
  color: var(--lotto-text);
  position: relative;
  overflow: hidden;
}

/* หัวการ์ด */
.thai-lottery-title{
  display:flex; align-items:center; gap:10px;
  font-size: clamp(16px, 2.3vw, 24px);
  font-weight: 700; margin: 0 0 10px;
  color: #ff0000 !important;
}
.thai-lottery-title::before{
  content: url(../../uploads/2025/10/th.png) ;
  
  font-size: 18px; line-height: 1;
}
.thai-lottery-draw-date{
  position:absolute; top:20px; right:20px;
  background: var(--lotto-pill);
  color:#000000; font-weight:700;
  font-size: 16px; line-height: 1;
  padding: 8px 12px; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

/* รางวัลที่ 1 (กล่องใหญ่) */
.thai-lottery-primary-prize-section{
  background: var(--lotto-card);
  border: 1px solid var(--lotto-border);
  border-radius: 12px;
  padding: clamp(4px, 3vw, 8px);
  text-align: center;
  margin-bottom: 14px;
}
.thai-lottery-primary-number{
  color: var(--lotto-primary);
  font-weight: 700;
  font-size: clamp(54px, 8vw, 64px);
  letter-spacing: 1px;
  line-height: 1.05;
}
.thai-lottery-label{
  margin-top: 6px;
  font-size: 18px;
  color: var(--lotto-muted);
  font-weight: 500;
}

/* กล่องย่อย 3 ตัวหน้า/ท้าย + 2 ตัวล่าง เป็นกริด 2 คอลัมน์ */
.thai-lottery-sub-prizes{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 14px;
}

/* กล่องย่อย */
.thai-lottery-sub-prize{
  background: var(--lotto-card);
  border: 1px solid var(--lotto-border);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  align-content: center;
  text-align: center;
  min-height: 74px;
}
.thai-lottery-sub-prize .thai-lottery-num{
  color: var(--lotto-primary);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 40px);
  line-height: 1.1;
}

/* label ข้างล่างตัวเลขของกล่องย่อย */
.thai-lottery-sub-prize .thai-lottery-label{
  margin-top: 4px;
  font-size: 18px;
  color: var(--lotto-muted);
  font-weight: 500;
}




.post-item .col-inner{
    background: #fff;
}




.header-bottom {
    padding-top: 10px;
}


.scroll-box{
    width: 100%;
    max-width: 700px;
    background: #141414 !important;
    height: 40px !important;
}

.header-bottom .header-search-form {
    border: #252525 solid 1px;
    background: #141414;
    border-radius: 10px;
    padding: 2px 12px;
    height: 40px !important;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

.thai-lottery-draw-date{ top:10px; right:10px; padding: 7px 10px; }

.header-main {
    height: 60px !important;
}

#logo img {
    max-height: 45px !important;
}
.stuck .header-main .nav > li > a{
    line-height: 22px !important;
}

.button-sale {
    font-size: 14px !important;
    column-gap: 5px;
    padding: 4px !important;
}

.button-register{
    font-size: 14px !important;
    column-gap: 5px;
    padding: 4px !important;
}

.button-sale i,.button-register i{
    font-size: 14px !important;
}

.btn-co-main span, .btn-co-sub span{
    font-size: 24px;
}

.btn-co-main,.btn-co-sub{
    margin-bottom: 0;
}

.col-m-p20 .col {
    padding-bottom: 20px;
}

.col-m-p10 .col {
    padding-bottom: 10px;
}

.tab-home ul li {
    width: 31%;
}

.tab-home ul li a{
padding:  8px;
}

.box-img-lotto{
padding: 10px;
}

.box-img-lotto  .box-image{
    width: 70% !important;
}

.gap-10 .col{
padding: 0 5px 10px;
}

.text-h-lotto::before,.text-h::before{
    height: 40px;
    width: 40px;
}


.text-h-lotto::after,.text-h::after{
    height: 40px;
    width: 40px;
}


}

@media (min-width: 768px) and (max-width: 1024px) {
  
.box-img-lotto .box-image{
    width: 35% !important;
}

.text-h-lotto::before ,.text-h::before{
    height: 60px;
    width: 60px;
}

.text-h-lotto::after,.text-h::after{
    height: 60px;
    width: 60px;
}
  
}