/*
Theme Name: COSCA168T
Theme URI: https://cosca168.live/
Author: COSCA168T
Author URI: https://cosca168.live/
*/

/* ==== Basic Setup ==== */
body {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    background-color: #1a1a1a;
}

/* ============================================
 DESKTOP STYLES (หน้าจอ PC)
============================================
*/

.entry-header {
    display: none;
}
.header-desktop {
      background-image:  linear-gradient(to bottom, #892121 0%,#b56551 64%,#c18366 100%); /* สีเขียวเข้มของแถบ Header */
    padding: 10px 0; /* ระยะห่างบน-ล่างของแถบ */
}

.header-desktop .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-navigation {
    flex-grow: 1;
}

.site-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.site-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.site-navigation a:hover {
    color: #f8a529;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.header-buttons a {
    text-decoration: none;
    font-weight: 600;
    color: #ffffff;
    transition: transform 0.2s;
    white-space: nowrap;
}

.header-buttons a:hover {
    transform: scale(1.05);
}

.button-login {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 10px 25px;
    border-radius: 50px;
}

.button-register {
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
  font-family: inherit;
  font-size: 1em;
  box-sizing: border-box;
  border: 1px solid #a55d07;
  border-radius: .3em;
  height: 2.75em;
  text-transform: uppercase;
  padding: 0 1em;
  box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(110,80,20,.4),
              inset 0 -2px 5px 1px rgba(139,66,8,1),
              inset 0 -1px 1px 3px rgba(250,227,133,1);
  background-image: linear-gradient(160deg, #a54e07, #b47e11, #fef1a2, #bc881b, #a54e0e);
  color: rgb(120,50,5);
  text-shadow: 0 2px 2px rgba(250, 227, 133, 1);
  cursor: pointer;
}

/* --- Mobile Header (ซ่อนไว้ก่อนในจอ PC) --- */
.header-mobile {
    display: none;
}


/*
 ============================================
  Responsive Design Section (สำหรับ Tablet และ Mobile)
 ============================================
*/
@media (max-width: 992px) {
    /* เมื่อหน้าจอแคบลง... */

    /* 1. ซ่อน Header ของ PC */
    .header-desktop {
        display: none;
    }

    /* 2. แสดง Header ของ Mobile */
    .header-mobile {
        display: block;
    }

    .header-mobile-top {
    background-image:  linear-gradient(to bottom, #892121 0%,#b56551 64%,#c18366 100%); /* สีเขียวเข้มของแถบ Header */
    padding: 10px 0; /* ระยะห่างบน-ล่างของแถบ */
    padding: 10px 0;
    }

    .header-mobile-top .header-container {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-navigation-mobile {
        background-color: #000000;
        padding: 8px 0;
        overflow-x: auto; /* ทำให้เลื่อนได้ */
        -webkit-overflow-scrolling: touch;
    }
    
    /* ซ่อนแถบ scrollbar */
    .site-navigation-mobile::-webkit-scrollbar { display: none; }
    .site-navigation-mobile { -ms-overflow-style: none; scrollbar-width: none; }

    .site-navigation-mobile ul {
        margin: 0;
        padding: 0 15px;
        list-style: none;
        display: flex;
        width: max-content;
        gap: 25px;
    }

    .site-navigation-mobile a {
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .header-buttons a {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}
/*
/*
 ============================================
  Footer Section
 ============================================
*/

/* --- Footer สำหรับ PC (ซ่อนไว้ก่อน) --- */
/* .site-footer {
    display: none;
} */

/* --- Footer สำหรับ Mobile (ซ่อนไว้ก่อนในจอ PC) --- */
.mobile-footer-nav {
    display: none;
}


/*
 ============================================
  Responsive - Footer Section
 ============================================
*/
@media (max-width: 768px) {
    /* เมื่อเป็นจอมือถือ... */

    /* เพิ่มระยะห่างด้านล่างของเนื้อหาเว็บ เพื่อไม่ให้โดนเมนูมือถือบัง */
    body {
        padding-bottom: 70px;
    }

    /* แสดง Footer ของ Mobile */
    .mobile-footer-nav {
        display: flex;
        justify-content: space-around;
        align-items: flex-end; /* จัดให้ไอคอนธรรมดาอยู่ชิดล่าง */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background-image:  linear-gradient(to bottom, #892121 0%,#b56551 64%,#c18366 100%);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 0 5px; /* เพิ่มระยะห่างซ้ายขวาเล็กน้อย */
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #a9a9a9;
        font-size: 12px;
        transition: color 0.3s;
        flex: 1; /* แบ่งพื้นที่ให้เท่าๆ กัน */
        padding-bottom: 5px; /* ดันไอคอนขึ้นเล็กน้อย */
        box-sizing: border-box;
    }

    .mobile-nav-item:hover {
        color: #ffffff;
    }

    .mobile-nav-item img {
        height: 28px; /* ขนาดไอคอนปกติ */
        width: auto;
        margin-bottom: 4px;
    }

    /* กล่องหุ้มปุ่ม Play */
    .play-button-wrapper {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    /* ปุ่ม Play ตรงกลาง */
    .mobile-nav-item.play-button {
        position: absolute;
        bottom: 15px; /* ดันปุ่มให้นูนขึ้นมา */
        width: 80px;  /* ขนาดวงกลม */
        height: 80px; /* ขนาดวงกลม */
        border-radius: 50%;
        background-image: linear-gradient(186deg, #FAF514 0%, #FA8914 100%);
        justify-content: center;
        padding: 0;
        color: #333;
        font-weight: bold;
        animation: pulse 2s infinite; /* เรียกใช้ Animation */
    }

    .mobile-nav-item.play-button img {
        height: 45px; /* ขนาดจอยเกม */
        margin-top: 5px;
    }

    /* Animation แสงกระพริบ */
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(250, 137, 20, 0.7);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(250, 137, 20, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(250, 137, 20, 0);
        }
    }
}
/* --- สไตล์ปุ่ม "เข้าเล่น" และ Animation --- */
.mobile-nav-item.play-button img {
    width: 55px; /* กำหนดขนาดรูปจอยเกม */
    height: auto;
    margin-bottom: 4px;
    /* เรียกใช้ animation ที่เราจะสร้าง */
    animation: wiggle 2s ease-in-out infinite;
}

/* --- โค้ดสำหรับสร้างท่าขยับ (Animation) --- */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg); /* ขยับไปทางซ้าย */
    }
    75% {
        transform: rotate(8deg); /* ขยับไปทางขวา */
    }
}
/*
 ============================================
  Hero Slider Section
 ============================================
 
/* ขนาดและพื้นฐานของ Swiper */
.swiper { 
    width: 100%; 
    height: 400px; 
    overflow: hidden; 
}
.swiper-wrapper { 
    display: flex; }
.swiper-slide {
  flex-shrink: 0;
  width: auto;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
}
.swiper-wrapper {
  transition-timing-function: linear
}

/* Responsive */
@media (max-width: 768px) {
  .swiper { height: 250px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .swiper { height: 320px; }
}
/*
 ============================================
  Promo Section
 ============================================
*/
.promo-section {
    padding: 50px 0;
    background-color: #0c0c0c; /* สีพื้นหลังเข้ม */
    background-image: linear-gradient(rgba(0, 0, 0, 0.342), rgba(0, 0, 0, 0.301)), url('http://cosca168t.local/wp-content/themes/COSCA168T/images/bg.jpg');
    background-size: cover;
    background-attachment: fixed; /* ทำให้เกิด Parallax Effect ง่ายๆ */
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.promo-column {
    flex: 1; /* แบ่งครึ่งให้แต่ละคอลัมน์ */
}

/* --- คอลัมน์วิดีโอ --- */
.promo-video video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #333;
}

/* --- คอลัมน์เนื้อหา --- */
.promo-text h2 {
    color: #ffffff;
    font-size: 28px;
    margin-top: 0;
}

.promo-text p {
    color: #c0c0c0;
    font-size: 16px;
    line-height: 1.7;
}

.promo-text a img {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-top: 20px;
    transition: transform 0.3s;
}

.promo-text a:hover img {
    transform: scale(1.05);
}


/*
 ============================================
  Responsive - Promo Section
 ============================================
*/
@media (max-width: 768px) {
    .promo-container {
        flex-direction: column; /* ทำให้คอลัมน์เรียงต่อกันในแนวตั้ง */
    }

    .promo-text h2 {
        font-size: 22px;
        text-align: center;
    }

    .promo-text p {
        text-align: center;
    }

    .promo-text a {
        display: block;
        text-align: center;
    }
}

/*
 ============================================
  Section Divider
 ============================================
*/
.section-divider {
    height: 0.5px; /* ความสูงของเส้น */
    background-image: linear-gradient(90deg, transparent, #F0B90B, transparent); /* ไล่สีทองจากจางไปเข้มแล้วไปจาง */
    border-top: 1px solid #f9d777;
    border-bottom: 1px solid #a57c07;
}
.section-divider-2 {
    height: 0.5px; /* ความสูงของเส้น */
    background-image: linear-gradient(90deg, transparent, #F0B90B, transparent); /* ไล่สีทองจากจางไปเข้มแล้วไปจาง */
    border-top: 1px solid #f9d777;
    border-bottom: 1px solid #a57c07;
    box-shadow: 0 0 5px #f6ff71, 0 0 15px #fdc731, 0 0 25px #ffb004;
}

/*
/*

/* ============================================
  โค้ดที่เพิ่มเข้ามาใหม่สำหรับ Section เพิ่มเติม
============================================
*/
.promo-text.text-center {
    text-align: center;
}
.content-logo {
    max-width: 200px;
    margin-bottom: 15px;
}
.action-button {
    max-width: 250px;
    margin-top: 15px;
}
.full-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Slider Styles --- */
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#promo-slider-1.swiper {
    height: 350px;
    width: 100%;
}

#promo-slider-2.swiper {
    height: 150px;
}

#promo-slider-2 .swiper-slide {
    width: 25%;
}

@media (max-width: 768px) {
    #promo-slider-2 .swiper-slide {
        width: 50%;
    }
}
/*
 ============================================
  Coverflow + Content Styles (CSS ชุดใหม่)
 ============================================
*/

.new-promo-section {
    padding: 50px 0;
    background-color: #0c0c0c;
    background-image: linear-gradient(rgba(0, 0, 0, 0.774), rgba(0, 0, 0, 0.76)), url('https://t4.ftcdn.net/jpg/08/76/99/47/360_F_876994798_jL48TmmN3Ajb1H0EKCEPocBUyPqTfgEg.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
}

.new-promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px; /* ระยะห่างระหว่าง 2 คอลัมน์ */
}

/* --- จัดการคอลัมน์ --- */
.new-promo-column {
    flex: 1; /* แบ่งพื้นที่เท่าๆ กัน */
}

/* --- สไลเดอร์ในคอลัมน์ซ้าย --- */
.new-promo-slider-column {
    width: 60%; /* กำหนดความกว้าง */
}

.new-promo-swiper .swiper-pagination {
   position: absolute; /* เปลี่ยนเป็น absolute */
   bottom: 5px;      /* กำหนดระยะห่างจากด้านล่าง */
   left: 50%;       /* จัดให้อยู่ตรงกลางในแนวนอน */
   z-index: 10;       /* ให้ Pagination อยู่เหนือรูปภาพ */
}

.new-promo-swiper .swiper-pagination-bullet {
   margin: 0 5px; /* ปรับระยะห่างระหว่างจุด */
}

.new-promo-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 400px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.new-promo-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- สไตล์ Pagination --- */
.new-promo-swiper .swiper-pagination-bullet { background: #a0a0a0; }
.new-promo-swiper .swiper-pagination-bullet-active { background: #f0b90b; }
.new-promo-swiper .swiper-3d .swiper-slide-shadow-left,
.new-promo-swiper .swiper-3d .swiper-slide-shadow-right {
    background-image: none;
}

/* --- เนื้อหาในคอลัมน์ขวา --- */
.new-promo-text-column {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-content-logo { max-width: 200px; height: auto; margin-bottom: 20px; }
.promo-heading { font-size: 28px; margin-top: 0; margin-bottom: 15px; color: #ffffff; }
.promo-paragraph { color: #c0c0c0; line-height: 1.7; font-size: 16px; margin-bottom: 25px; }

.promo-action-button img {
    max-width: 300px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-out;
}
.promo-action-button:hover img { transform: scale(1.05); }

/* --- Responsive สำหรับจอเล็ก --- */
@media (max-width: 992px) {
    .new-promo-container {
        flex-direction: column; 
    }
    .new-promo-slider-column,
    .new-promo-text-column {
        width: 100%; 
    }
    .new-promo-text-column {
        align-items: center; 
        text-align: center;
    }
}
@media (min-width: 992px) {
    .new-promo-swiper .swiper-slide {
        width: 400px;  
        height: 350px; 
    }
}
/*
 ============================================
  Feature Banner Wrapper Styles (ส่วนสีเขียว)
 ============================================
*/

.feature-banner-wrapper {
    padding: 60px 0;
    margin-top: 50px; 
    background: linear-gradient(90deg, #000000b9 0%, #000000b7 100%);
    color: #ffffff;
}

.feature-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.feature-banner-column {
    flex: 1;
}

.feature-banner-image {
    text-align: center;
}

.feature-banner-image img {
    max-width: 100%;
    height: auto;
}

.feature-banner-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-banner-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.feature-buttons {
    display: flex;
    gap: 15px;
}

.feature-button {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #b4a764;
}

.feature-button-login {
    background-color: #1a1a1a;
    color: #ffffff;
}

.feature-button-register {
padding: -1rem 4rem;
  border-radius: 100vmax;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  background: linear-gradient(45deg, #DAAF08 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #DAAF08 90% 100%);
  background-size: 800% 400%;
  animation: gradient 5s infinite cubic-bezier(.62, .28, .23, .99) both;
  color: #fff;
  border: 0;
}

.feature-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .feature-banner-container {
        flex-direction: column;
        text-align: center;
    }
    .feature-banner-text h2 {
        font-size: 28px;
    }
    .feature-buttons {
        justify-content: center;
    }
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}
/*
 ============================================
  How-To & Reviews Section Styles
 ============================================
*/

.how-to-reviews-section {
    padding: 60px 20px;
    background-color: #0c0c0c;
    background-image: linear-gradient(rgba(0, 0, 0, 0.589), rgb(0, 0, 0)), url('https://www.shutterstock.com/image-illustration/rose-gold-casino-chips-dices-600nw-1672076986.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.how-to-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: #f0b90b;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 15px;
}

/* --- สไตล์ของสไลเดอร์ --- */
.how-to-swiper,
.reviews-swiper {
    width: 100%;
    height: auto;
    padding: 0 40px; /* เพิ่มระยะห่างซ้ายขวาให้ปุ่มลูกศร */
    position: relative;
}

.how-to-swiper .swiper-slide img,
.reviews-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.5); /* ขอบสีทองจางๆ */
}

/* --- สไตล์ปุ่มลูกศร --- */
.how-to-swiper .swiper-button-next,
.how-to-swiper .swiper-button-prev,
.reviews-swiper .swiper-button-next,
.reviews-swiper .swiper-button-prev {
    color: #f0b90b; /* สีทอง */
}

.how-to-swiper .swiper-button-next::after,
.how-to-swiper .swiper-button-prev::after,
.reviews-swiper .swiper-button-next::after,
.reviews-swiper .swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
}


/* --- สไตล์ปุ่มด้านล่างสุด --- */
.final-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.final-button {
    display: inline-block;
    background:linear-gradient(167deg, #00E71D 0%, #025816 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.final-button:hover {
    background-color: #f0b90b;
    color: #0d2a1d;
}

/*
 ============================================
  Site Footer Styles (เวอร์ชัน 2 แถว 4 คอลัมน์)
 ============================================
*/

.site-footer {
    padding: 0px 20px;
    background-color: #000000;
    background-image: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0.534)), url('https://girlsunited.essence.com/wp-content/uploads/2023/02/GUWeb_OurDollarMatters-1-1920x1080.jpg');
    color: #ffffff;
    text-align: center;
}

.site-footer .footer-container {
    max-width: 900px; /* <-- ปรับความกว้างกลับมารองรับ 4 คอลัมน์ */
    margin: 0 auto;
}

.site-footer .footer-logo img {
    max-width: 100px;
    height: auto;
    margin-bottom: -20px;
}

.site-footer .footer-tagline {
    font-size: 15px;
    color: #e0e0e0;
    margin-bottom: 10px;
}
.site-footer .payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 0px;
}

/* --- จุดแก้ไขที่สำคัญที่สุด --- */
.site-footer .payment-logos .payment-logo-item {
    flex: 1 1 calc(25% - 15px); /* <-- แก้เป็น 25% เพื่อให้เรียง 4 คอลัมน์ */
    max-width: 180px; /* <-- จำกัดขนาดให้เล็กลง */
}

.site-footer .payment-logo-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.site-footer .footer-copyright p {
    margin: 5px 0;
    font-size: 14px;
    color: #a0a0a0;
}
/* --- Responsive สำหรับจอเล็ก --- */
@media (max-width: 768px) {
    .payment-logo-item {
        flex-basis: calc(50% - 20px); /* เปลี่ยนเป็น 2 คอลัมน์ในจอมือถือ */
    }
}