/* Base Button Styles */
.promotionContainer .btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    background-color: var(--yellow-dark);
}

/* Container Layout */
.promotion-container {
    background-position: center center;
    background-size: cover;
    min-height: 500px;
    display: block;
}

.promo-page-container {
    width: 1050px;
    max-width: 100%;
    margin: 0 auto;
}

.button-nav {
    margin-left: 0px;
    margin-top: 10px;
}

#promotionContainer .container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}

#promoPage .btn-promotion,
#promoPage .btn-clear {
    background-color: var(--color);
    display: inline-flex;
    font-size: 14px;
    margin-right: 3px;
}

/* Promotion Image Styles */
.promo-img {
    width: 50%;
    min-height: 100px;
    float: left;
    padding-left: 10px;
}

.promo_group_body_inner img {
    min-height: 75px;
    border-radius: 5px;
    max-width: 100%;
    height: auto;
}

/* Promotion Body Styles */
.promo_group_body {
    background: transparent;
    border: 1px solid var(--color);
    border-radius: 6px;
    margin-bottom: 10px;
    margin-top: 10px;
    box-shadow: 1px 2px 2px var(--color);
    position: relative;
    /* min-height: 215px; */
}

/* Button Styles */
#promoPage .btn-default,
#promoPage .btn-clear {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    border-color: red;
}

#promoPage .btn-default:hover,
#promoPage .btn-clear:hover {
    opacity: 0.85;
}

.btn-promo {
    min-width: 110px;
    background-color: var(--color) !important;
    display: inline-flex;
    border-radius: 5px;
}

.btn-default.btn-promo {
    background-color: #161411 !important;
    min-width: 110px;
}

.btn-promo,
.btn-promotion,
#promoPage .btn-promotion,
#promoPage .btn-clear {
    border-radius: 5px !important;
    min-width: 100px;
}

/* Promotion Details */
.promo_detail {
    padding: 10px 0 0 10px !important;
    display: block;
    color: #989898;
}

.promo_t {
    display: none;
}

.promo-details-body {
    margin: 10px;
    text-align: left;
    padding-left: 10px;
    float: left;
    margin: auto;
    width: 100%;
    height: 100%;
    position: relative;
    color: var(--txt);
}

.promo-content-wrapper {
    overflow: auto;
}

.promo-content-text {
    margin-top: 0pt;
    margin-bottom: 5pt;
    line-height: 1.38;
}

.promo-details-body p strong {
    color: var(--color);
}

.promo-details-body table p {
    color: var(--eee);
}

.promo-details-body table td {
    border: 1px solid #ccc;
}

/* Promotion Item Description */
.promo-item-desc {
    width: 100%;
    display: block;
    min-height: 65px;
    padding-left: 10px;
    margin: auto;
    text-align: center;
    margin-top: 50px;
}

.promo-item-desc h2.promo-title span.promo-pTitle {
    color: var(--color);
}

.countdown,
.promo-details-body *,
.promo-pTitle {
    color: var(--color);
}

.promo_group_body_inner {
    padding: 10px 10px 10px;
    transition: transform 0.2s ease-in-out;
}

/* Mobile-only modal interactions */
@media (max-width: 767px) {
    .promo_group_body_inner {
        cursor: pointer;
    }

    .btn-hide-mobile-view {
        display: none;
    }

    .promo_group_body_inner:hover {
        transform: translateY(-2px);
    }
}

.promo_group_body_inner,
.promo_group_body_inner * {
    transition-duration: inherit !important;
}

/* List Styles */
#promoPage ol li {
    margin-left: 40px;
    list-style: decimal;
}

body[data-dir="fafa878"] #promoPage ol li {
    margin-left: 18px !important;
    list-style: decimal;
}

/* Countdown Styles */
.countdown {
    font-size: 18px;
    color: var(--color);
    margin-top: 5px;
    position: absolute;
    margin-left: 15px;
}

/* Utility Classes */
.clearfix::after {
    width: 100%;
    display: inline-block;
    clear: both;
    content: "";
}

.promo-desc span {
    color: #989898 !important;
}

#promotionContainer {
    display: block !important;
}

.videohome {
    float: left;
    width: 52% !important;
}

.radioin-sen {
    margin-left: 180px;
    margin-bottom: 10px;
}

/* Font Family Overrides */
.footer-box .title,
.title-games,
.label .chec9,
.regis-title1,
.button_register,
.text2,
.input select,
.term_condition,
.deposit-text,
.small,
small,
#promoPage .btn-default,
#promoPage .btn-clear,
.withdrawal-text {
    font-family: Kh-Battambang !important;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    display: none !important;
}

/* Modal Overlay - Only show on mobile */
.modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.show {
    display: flex !important;
}

/* Hide modals on desktop (>= 768px) */
@media (min-width: 768px) {
    .modal-overlay {
        display: none !important;
    }

    .modal-overlay.show {
        display: none !important;
    }
}

/* Modal Container */
.modal-container {
    background: #fff;
    border-radius: 10px;
    width: 400px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s ease-in-out;
    margin: 0;
}

/* Modal Header */
.modal-header {
    background: var(--color);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal Body */
.modal-body {
    padding: 0;
    max-height: 100vh;
    overflow-y: auto;
    color: var(--txt);
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.modal-image-section {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.modal-image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* margin-bottom: 15px; */
}

.modal-action-container {
    text-align: center;
}

.modal-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--color);
    /* margin-bottom: 15px; */
}

.modal-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn-group .btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.modal-btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-btn-group .btn-default {
    background-color: var(--color) !important;
    color: #fff !important;
    border: none !important;
}

.modal-btn-group .btn-default:hover {
    background-color: var(--color) !important;
    opacity: 0.9 !important;
}

.modal-divider {
    height: 1px;
    background: #eee;
    margin: 0;
}

.modal-content p {
    margin-bottom: 10px;
}

.modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.modal-content table td,
.modal-content table th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.modal-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Scrollbar Styles */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

/* Animation Classes */
.anime-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.anime-zoom-in {
    animation: zoomIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .promo_t {
        display: none !important;
    }

    .modal-overlay {
        padding: 10px;
    }

    .modal-container {
        width: 95%;
        max-height: 95%;
        margin: 0;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-image-section {
        padding: 15px;
    }

    .modal-content {
        padding: 15px;
        max-height: 250px;
    }

    .modal-btn-group {
        flex-direction: column;
        align-items: center;
        margin-bottom: .1rem;
    }

    .clearfix {
        display: none !important;
    }

    .modal-btn-group .btn {
        width: 100%;
        max-width: 200px;
    }

    #promotionContainer .container {
        width: 100%;
    }

    .promo-img {
        width: 100%;
        float: none;
        padding: unset !important;
    }

    .promo-item-desc {
        width: 100%;
        text-align: center;
        display: none;
    }

    #pageContainer .title-pc-view {
        opacity: 1 !important;
        display: flex;
        justify-content: space-between;
        gap: .1rem;
        margin: 0 0 .2rem 0;
    }
}

.title-timer {
    color: red;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 480px) {
    #promoPage .btn-promotion {
        font-size: 12px;
        padding: 8px 12px;
        margin-right: 2px;
    }

    .promo_group_body {
        margin-bottom: 15px;
    }
}

#pageContainer .title-pc-view {
    opacity: 0;
}

.modal-overlay[style*="display: none"] {
    display: none !important;
}

.modal-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}