.promotion-section {
    width: 100%;
}

.promotion-banner {
    background: linear-gradient(90deg, #9ee407 0%, #b4ff00 100%);
    border-radius: 5px;
    padding: 12px 20px;
    box-shadow: 0 0 15px rgba(180, 255, 0, 0.5);
    animation: glowing 2s infinite;
    z-index: 2;
    position: relative;
}

.promotion-text {
    background-color: rgb(0, 0, 0);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    position: relative;
}

.promotion-icon {
    background-color: #2a2a2a;
    height: 100%;
    padding: 8px 15px;
    border-radius: 4px 0 0 4px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.promotion-icon i,
.promotion-icon span {
    color: #ffffff;
}

.promotion-icon::after {
    content: '';
    position: absolute;
    right: -20px;
    border: 10px solid transparent;
    border-left-color: #2a2a2a;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 15px rgba(180, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(180, 255, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 15px rgba(180, 255, 0, 0.5);
    }
}

.promotion-text-promotion {
    overflow: hidden;
    position: relative;
}

.promotion-slider {
    display: flex;
    width: 100%;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.slide img {
    pointer-events: none;
}

@keyframes slide {
    0%, 45% {
        transform: translateX(0);
    }
    50%, 95% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

.features-section {
    padding: 10px 0;
    margin-top: -1px;
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.feature-item {
    background: linear-gradient(to bottom, #9eff00, #70b500);
    border-radius: 15px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    flex: 0 0 80px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
}

.feature-text {
    flex: 1;
    max-width: 200px;
}

.feature-text h3 {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.feature-text p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        margin: 0 20px;
    }
}

.promotion-content {
    background-image: linear-gradient(245deg, #9ee407 62%, #000 59%);
    border-radius: 5px;
    padding: 12px 20px;
    box-shadow: 0 0 15px rgba(180, 255, 0, 0.5);
    animation: glowing 2s infinite;
}

.promotion-content h2,
.promotion-content h3 {
    color: #232323;    
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #CFFB50, 0 0 20px #CFFB50, 0 0 30px #CFFB50;
}

.promotion-content p {
    color: #232323;    
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #CFFB50, 0 0 20px #CFFB50, 0 0 30px #CFFB50;
}

.promotion2-content p:last-child {
    margin-bottom: 0;
}

.promotion2-content {
    background-image: linear-gradient(245deg, #9ee407 62%, #000 59%);
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 0 15px rgba(180, 255, 0, 0.5);
    animation: glowing 2s infinite;
}

.promotion2-content img {
    max-width: 70%; /* ลดขนาดรูปลงเหลือ 80% ของ container */
    height: auto;
    display: block;
    margin: 0 auto; /* จัดให้อยู่กึ่งกลาง */
}

.promotion2-text h2 {
    color: #000000;    
    font-weight: bold;
    text-shadow: 0 0 10px #CFFB50, 0 0 20px #CFFB50, 0 0 30px #CFFB50;
    margin-top: 50px;
}

.promotion2-content p {
    color: #000000;    
    font-size: 1.1rem;
    margin-top: 35px;
    text-shadow: 0 0 10px #CFFB50, 0 0 20px #CFFB50, 0 0 30px #CFFB50;
}

.promotion2-content p:last-child {
    margin-bottom: 0;
}

.promotion2-icons {
    display: flex;
    align-items: center;
    border-radius: 10px;
    margin-top: 50px;
}

.promotion2-icon {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
}

.promotion2-icons img {
    width: 100%;
    max-width: 22%;
    border-radius: 10px;
    border: 1px solid rgb(91, 133, 0);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 1);
    filter: brightness(100%) contrast(100%) saturate(137%) blur(0px) hue-rotate(29deg);
    background-image: linear-gradient(170deg, #9dff0000 0%, #014300 100%);
    transition: all 0.3s ease;
    height: auto;
}

@media (max-width: 768px) {
    .promotion2-icons {
        flex-direction: column;
        gap: 20px;  /* Adds space between stacked items */
        margin: 50px;
    }

    .promotion2-icons img {
        width: 30%;
        max-width: 22%;
        border-radius: 10px;
        border: 1px solid rgb(91, 133, 0);
        box-shadow: 8px 8px 15px rgba(0, 0, 0, 1);
        filter: brightness(100%) contrast(100%) saturate(137%) blur(0px) hue-rotate(29deg);
        background-image: linear-gradient(170deg, #9dff0000 0%, #014300 100%);
        transition: all 0.3s ease;
        height: auto;
    }
}


.icon-text {
    color: #000000;    
    font-size: 1.1rem;
    margin-top: -35px;
    font-weight: bold;
    text-shadow: 0 0 10px #CFFB50, 0 0 20px #CFFB50, 0 0 30px #CFFB50;
}

@media screen and (max-width: 768px) {
    .promotion2-content img {
        max-width: 90%; /* ปรับให้ใหญ่ขึ้นเล็กน้อยบนมือถือ */
    }
}

.content-mobile {
    background-color: #000;
    padding: 20px 0;
    color: #fff;
}

.content-mobile-header {
    background: transparent;
    width: 100%;
    margin: 0;
}

.content-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.content-mobile-topic {
    margin-top: 40px;
    padding: 0 0 40px 0;
}

.elementor-divider-separator {
    width: 100%;
    height: 25px;
    background: repeating-linear-gradient(
        -45deg,
        #000000,
        #000000 5px,
        #b8fd04 5px,
        #b8fd04 10px
    );
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    display: block;
}

.text-box-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: -15px;
}

.text-box {
    border: 2px solid #b8fd04;
    background-color: #b8fd04;
    padding: 5px 25px;
    text-align: center;
    color: #000; /* สีข้อความขาว (ถ้าต้องการ) */
    margin: 0;
    border-radius: 5px; /* ถ้าต้องการมุมโค้ง */
}

p.drop-cap {
    font-size: 16px;  /* ปรับขนาดตามต้องการ */
    color: #fff;
}

p.drop-cap:first-letter {
    color: #b8fd04;
    float: left;
    font-size: 46px;
    line-height: 1;
    padding-right: 8px;
    padding-top: 4px;
}

.img-barr2x {
    display: flex;
    justify-content: center;
    align-items: center;
}

.barr2x {
    box-shadow: 0 0 15px rgba(149, 204, 3, 0.8);
    filter: brightness(100%) contrast(100%) saturate(137%) blur(0px) hue-rotate(29deg);
    text-shadow: 
        0 0 30px #95cc03,
        0 0 40px #95cc03,
        0 0 50px #95cc03,
        0 0 60px #95cc03;
    width: 1px;
    height: 100%;
}

@media (max-width: 768px) {  /* เมื่อหน้าจอเล็กกว่า 768px */
    .content-mobile-topic {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0 0 40px 0;
    }
    
    .barr2x {
        display: none;  /* ซ่อน barr2x */
    }
    
    .col-md-5 {
        width: 100%;  /* ให้คอลัมน์กินพื้นที่เต็ม */
    }
}

.text-box-casino-studios {
    color: #000000;    
    font-weight: bold;
    display: flex;
    justify-content: left;
    width: 100%;
    margin-top: -15px;
}

.casino-studios {
    background-image: linear-gradient(245deg, #000 20%, #9ee407 10% );
    width: 270px;
    border-radius: 5px;
    padding: 12px 10px;
    margin-bottom: 0px;
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 15px;
}

.casino-item {
    width: 100%;
    transition: transform 0.3s ease;
}

.casino-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* เพิ่ม hover effect (ถ้าต้องการ) */
.casino-item:hover {
    transform: scale(1.05);
}

.casino-text {
    color: #fff;
}

.game-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;    
}

.game-category {
    grid-column: span 1;
    display: flex;
    align-items: center;
    gap: 20px;
    background-image: radial-gradient(at top center, #c0ff5b 2%, #70b500 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-image {
    flex: 0 0 120px;
    position: relative;
}

.game-image img:not(.hot-icon) {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-image: linear-gradient(140deg, #111111 50%, #272727f1 50%);
}

.hot-icon {
    position: absolute;
    border-radius: 10px;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 25px;
    z-index: 1;
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-text {
    color: #000000;
    margin-bottom: 10px;
}

.game-text h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.game-text p {
    margin: 0;
}

.play-button {
    padding: 8px 20px;
    font-size: 14px;
    margin: 0 auto;
    display: block;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    fill: none;
    background-color: transparent;
    background-image: radial-gradient(at top center, #9eff00 2%, #026200 100%);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #9eff00;
    border-radius: 6px;
}

.play-button:hover {
    background: #111111;
    color: #ff9900;
}

.game-info .button-wrapper {
    text-align: center;
}

@media screen and (max-width: 992px) {
    .game-categories {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .game-categories .game-category:nth-child(3) {
        order: 2;
    }
    .game-categories .game-category:nth-child(4) {
        order: 2;
    }
}

/* Additional breakpoint for even smaller screens */
@media screen and (max-width: 576px) {
    .game-category {
        max-width: 400px;         /* Smaller max-width for mobile */
    }
}

/* Large Game Category Styles */
.game-category-large {
    position: relative;
    overflow: visible;
    grid-column: 3;
    grid-row: span 2;
    background-image: url('../img/features/bg_531x491.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-category-large img {
    position: absolute;
    width: 120%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.game-image-large {
    position: relative;
    width: 100%;
    height: 60%;
    overflow: visible;
}

.game-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.game-info-large {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-text-large h4 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.game-text-large p {
    color: #ccc;
    line-height: 1.6;
}

.play-button-large {
    width: 100%;
    padding: 12px;
    background: #ff9900;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.play-button-large:hover {
    background: #ff8800;
}

/* Responsive layout */
@media (max-width: 768px) {
    .game-categories {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .game-category-large {
        order: 999;
        height: 400px; /* กำหนดความสูงที่แน่นอนสำหรับ mobile */
        overflow: hidden; /* เปลี่ยนเป็น hidden เมื่ออยู่ใน mobile */
    }

    .game-category-large img {
        position: relative; /* เปลี่ยนจาก absolute เป็น relative */
        width: 100%; /* ปรับขนาดให้พอดีกับ container */
        transform: none; /* ยกเลิก transform */
        top: auto;
        left: auto;
    }
}

.accordion-list {
    color: #000;
    cursor: pointer;
    padding: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #9eff00;
    margin: 2px 0px;
    border-radius: 10px;
}

.accordion-list:hover {
    color: #ff9900;
}

.accordion-tab-title {
    flex: 1;    
    font-weight: bold;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: all 0.3s ease-out;
    opacity: 0;    
    font-weight: bold;
}

.accordion-content h4 {
    color: #b9ff00;
    margin-top: -5px;
    margin-bottom: 20px;
}

.accordion-content p {
    margin-top: -10px;
    color: #ffffff;    
}

.accordion-content.active {
    max-height: 1000px; /* หรือค่าที่เหมาะสมกับเนื้อหาของคุณ */
    opacity: 1;
    padding: 15px;
    margin-bottom: 10px;
}

.fa-accordion-icon.fa-minus,
.fa-toggle.fa-angle-down {
    display: none;
}

.accordion-list.active .fa-accordion-icon.fa-plus,
.accordion-list.active .fa-toggle.fa-angle-right {
    display: none;
}

.accordion-list.active .fa-accordion-icon.fa-minus,
.accordion-list.active .fa-toggle.fa-angle-down {
    display: inline-block;
}

/* จัดการ icon ทั้งหมดที่อยู่ด้านซ้าย */
.accordion-list .fa-accordion-icon {
    margin-right: 10px;
}

/* จัดการ icon ลูกศรที่อยู่ด้านขวา */
.accordion-list .fa-toggle {
    margin-left: auto; /* ดัน icon ไปทางขวาสุด */
}

.img-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-img {
    margin-bottom: 20px; /* ระยะห่างระหว่างรูป */
    padding: 0 15px; /* padding ซ้าย-ขวา */
}

.content-img img {
    width: 100%; /* ให้รูปเต็มความกว้างของ container */
    height: auto; /* รักษาอัตราส่วนของรูปภาพ */
    border-radius: 8px; /* มุมโค้ง (ถ้าต้องการ) */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* เงา (ถ้าต้องการ) */
    transition: transform 0.3s ease; /* animation เมื่อ hover (ถ้าต้องการ) */
}

/* effect hover (ถ้าต้องการ) */
.content-img img:hover {
    transform: translateY(-5px);
}

.football-betting {
    color: #fff;
    background-color: #000;
    padding: 20px 0;
}

.fb-header {
    background: transparent;
    width: 100%;
    margin: 0;
}

.text-fb {
    display: flex;
    justify-content: left;
    width: 100%;
    margin-top: -15px;
}

.fb {
    background-image: linear-gradient(245deg, #000 10%, #9ee407 10% );
    width: 900px;
    border-radius: 5px;
    padding: 12px 10px;
    margin-bottom: 0px;
}

.fb span {
    color: #000000;    
}

.fb-big-img {
    width: 100%; /* ให้กว้างเต็ม container */
    padding: 0 15px; /* padding เท่ากับ container ของ Bootstrap */
    margin: 0 auto;
}

.fb-big-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ปรับขนาดตาม Bootstrap container breakpoints */
@media (min-width: 576px) {
    .fb-big-img {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .fb-big-img {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .fb-big-img {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .fb-big-img {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .fb-big-img {
        max-width: 1320px;
    }
}

.betting-rates {
    margin: 30px 0;
}

.rate-card {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(180, 255, 0, 0.5);
    height: 100%; /* กำหนดความสูง 100% ของ parent */
    display: flex;
    flex-direction: column;
}

.rate-image {
    width: 100%;
    aspect-ratio: 1000/580; /* กำหนดอัตราส่วนภาพตามขนาดภาพต้นฉบับ */
    overflow: hidden;
}

.rate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.rate-text {
    padding: 15px;
    text-align: left;  /* เปลี่ยนเป็นชิดซ้าย */
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.rate-text p {
    color: #fff;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;  /* ตัวหนา */
}

.rate-text-like {
    padding: 10px 15px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rate-text-like:hover {
    background-color: rgba(158, 228, 7, 0.1);
}

.rate-text-like h6 {
    color: #9ee407;  /* สีเขียวตามที่กำหนด */
    margin: 0;
    font-weight: bold;
    font-size: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rate-card {
        margin-bottom: 15px;
    }
}

.casino-articles {
    background-color: #000;
    padding: 20px 0;
    color: #fff;
}

.article-box {
    background: #000;
    padding: 15px;
    border-radius: 10px;
    height: 100%;
}

.article-box img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.article-box h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
}

.promo-images img {
    border-radius: 10px;
    width: 100%;
}

.article-link {
    color: #fff;
    text-align: center;
}

.counter-jackpot {
    color: #fff;
}

.counter-jackpot h3 {
    color: #9ee407;
    font-size: 28px;
    font-weight: bold;    
}

.counter-jackpot-money {
    color: #9ee407;
    text-align: center;
    margin-top: -30px;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(158, 228, 7, 0.5);
    position: relative;
    animation: pulse 2s infinite;    
    letter-spacing: 2px;
}

.counter-jackpot-money p {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #9ee407;
    color: #000;
    text-align: center;
}

.elementor-counter-number {
    flex-grow: unset;
    color: #9ee407;    
    font-size: 57px;
    font-weight: 600;
    text-align: center;
}

.counter-jackpot-heading {
    color: #9ee407;
    font-size: 28px;
    font-weight: bold;    
}

.winner-slider-container {
    position: relative;
    max-width: 100%;
}

.winner-slider {
    position: relative;
    overflow: hidden;
}

.winner-slides-wrapper {
    display: flex;
    transition: transform 0.3s ease-out;
    height: fit-content; /* ปรับตามขนาดเนื้อหาจริง */
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.winner-slides-wrapper:active {
    cursor: grabbing;
}

.winner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto; /* ให้ความสูงปรับตามอัตราส่วนของรูป */
    scroll-snap-align: center;
}

.winner-slide img {
    display: block; /* ป้องกันช่องว่างใต้รูป */
    width: 100%;
    height: auto; /* รักษาอัตราส่วนของรูป */
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 2;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.winner-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    cursor: grab;
    user-select: none;
    overflow: hidden;
    transition: transform 0.3s ease-out;
}

.winner-thumbnails img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    transition: opacity 0.3s;
}

.winner-thumbnails img:hover {
    opacity: 0.8;
}

.winner-thumbnails img.active {
    opacity: 1;
    transform: scale(1);
    border: 2px solid #007bff;
}

.tooltip-image {
    cursor: pointer;
}

#custom-tooltip-container {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 999999;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 50px;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* อัตราส่วน 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px; /* เพิ่มความโค้งมนที่ขอบ */
}