img.banner {
    width: 100%;
    border: 2px solid transparent;
    border-radius: 30px;
    background-origin: border-box;
    transition: all 0.5s ease-in-out 0s;
}

img.banner:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.join-btn {
    width: 30%;
    position: absolute;
    bottom: -10%;
    right: 38%;
}

.more-btn {
    width: 30%;
    position: absolute;
    bottom: -10%;
    right: 6%;
}

.join-btn img,
.more-btn img {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#section-promotions h2 {
    text-align: left;
    margin: 0 auto 40px;
    max-width: 1024px;
    width: 100%;
}

@media only screen and (max-width: 991px) {
    #section-promotions h2 {
        margin: 0 auto 20px;
    }
}

img.promo-angpao {
    width: 100%;
    border: 2px solid transparent;
    border-radius: 30px;
    background-image: linear-gradient(9deg, #d964bc 0%, rgba(255, 255, 255, 1) 50%, #d964bc 100%);
    background-origin: border-box;
    transition: all 0.5s ease-in-out 0s;
}

img.promo-angpao:hover {
    transform: scale(1.12);
    cursor: pointer;
}

.claim-btn {
    width: 55%;
    position: absolute;
    bottom: -5%;
    right: 23%;
}

.claim-btn img {
    width: 100%;
    height: 100%;
    animation: grow linear infinite 1s;
    cursor: pointer;
}

@keyframes grow {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

#home-bonus,
#promo-pop {
    overflow: scroll;
    padding: 20px !important;
    height: auto;
    width: 90%;
    border-radius: 8px;
    visibility: hidden;
    display: none;
}

#home-bonus.active {
    visibility: visible;
}

#home-bonus .title,
#promo-pop .title_promo {
    font-weight: 700;
    padding-bottom: 10px
}

#home-bonus p,
#promo-pop p {
    margin-top: 10px
}

#home-bonus .btns,
#promo-pop .btns_promo {
    overflow: hidden;
    margin-top: 20px;
    text-align: center;
}

#home-bonus .btns .btn.single,
#promo-pop .btns_promo .btn.single {
    width: 125px;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
    color: #000;
    font-weight: 700;
}

#popupwindow,
#popupwindow_promo {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, .6);
    visibility: hidden;
    -webkit-transition: opacity .3s
}

#popupwindow.active {
    visibility: visible;
}

.promo-wrap.active #promo-pop {
    visibility: visible!important;
    display: block!important;
}

.promo-wrap.active #popupwindow_promo {
    visibility: visible!important;
}

#section-promotions {
    padding: 30px 0 0
}

#section-promotions h1 {
    text-align: center;
    margin: 0 0 40px;
    font-weight: 700;
}

#section-promotions #section-promotion-items {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto
}

#section-promotions #section-promotion-items .promotion-item {
    margin-bottom: 40px;
    box-shadow: 0 7px 18px 0 rgba(2, 3, 2, .75)
}

#section-promotions #section-promotion-items .promotion-item .item-header {
    padding: 15px 270px 15px 20px;
    color: #fff;
    letter-spacing: 1px;
    font-family: a Atmospheric Regular, sans-serif;
    position: relative;
    background: #000;
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #f8d065, #99560c, #e1c667, #fbf09c);
    border-image-slice: 1;
    border-bottom: 0;
}

#section-promotions #section-promotion-items .promotion-item .item-header .item-action {
    position: absolute;
    right: 15px;
    transform: translateY(-50%);
    top: 50%;
    height: 36px
}

#section-promotions #section-promotion-items .promotion-item .item-header .item-action .btn-more-info {
    cursor: pointer;
    display: inline-block
}

#section-promotions #section-promotion-items .promotion-item .item-header .item-action .btn-more-info img {
    height: 36px
}

#section-promotions #section-promotion-items .promotion-item .item-image {
    border: 1px solid #2a2a2a;
}

#section-promotions #section-promotion-items .promotion-item .item-image img {
    width: 100%
}

#section-promotions #section-promotion-items .promotion-item .item-content {
    opacity: 0;
    z-index: -1;
    max-height: 0;
    position: relative;
    transition: max-height .2s;
    overflow-x: auto;
    color: #fff;
    padding: 0;
    font-weight: lighter;
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #f8d065, #99560c, #e1c667, #fbf09c);
    border-image-slice: 1;
    background: #000;
}

#section-promotions #section-promotion-items .promotion-item.active .item-content {
    max-height: none;
    padding: 15px 20px;
    opacity: 1;
    z-index: 1
}

@media only screen and (max-width:991px) {
    #section-promotions {
        padding: 30px 20px 0
    }
    #section-promotions h1 {
        margin: 0 0 20px
    }
}

@media only screen and (max-width:768px) {
    #section-promotions #section-promotion-items .promotion-item .item-header {
        font-size: 14px;
        padding: 15px 230px 15px 20px
    }
    #section-promotions #section-promotion-items .promotion-item .item-header .item-action,
    #section-promotions #section-promotion-items .promotion-item .item-header .item-action .btn-more-info img {
        height: 30px
    }
}

@media only screen and (max-width:480px) {
    #section-promotions #section-promotion-items .promotion-item .item-header {
        padding: 15px 200px 15px 20px;
        font-size: 12px
    }
    #section-promotions #section-promotion-items .promotion-item .item-header .item-action,
    #section-promotions #section-promotion-items .promotion-item .item-header .item-action .btn-more-info img {
        height: 25px
    }
}

@media only screen and (max-width:390px) {
    #section-promotions #section-promotion-items .promotion-item .item-header {
        padding: 15px 130px 15px 20px
    }
    #section-promotions #section-promotion-items .promotion-item .item-header .item-action {
        height: 50px
    }
    #section-promotions #section-promotion-items .promotion-item .item-header .item-action .btn-more-info {
        display: block
    }
    #section-promotions #section-promotion-items .promotion-item .item-header .item-action .btn-more-info img {
        height: 25px
    }
}

/* Popup container */
#popupwindow,
#popupwindow_promo {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup box */
#home-bonus {
    width: 95%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    background: #111;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Scrollable content */
.popup-content {
    overflow-y: auto;
    max-height: 55vh;
    padding-right: 5px;
}

/* 🚨 FORCE TinyMCE content to behave */
.popup-content * {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Tables fix */
.popup-content table {
    width: 100% !important;
    overflow-x: auto;
    border-collapse: collapse;
}

/* Table cells */
.popup-content td,
.popup-content th {
    word-break: break-word;
    font-size: 12px !important;
}

/* Images */
.popup-content img {
    max-width: 100%;
    height: auto;
}

/* Text scaling */
.popup-content span,
.popup-content p {
    font-size: 14px !important;
}

/* Banner */
.banner {
    width: 100%;
    height: auto;
    margin: 10px 0;
}

/* Buttons always visible */
.btns {
    margin-top: auto;
}

/* 🔥 Force all text to stay inside */
.popup-content {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Override TinyMCE inline styles */
.popup-content * {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Fix long inline elements like span */
.popup-content span,
.popup-content p,
.popup-content div {
    max-width: 100%;
}

@media (max-width: 375px) {
    #home-bonus {
    max-height: 70vh;
}
    .popup-content {
    max-height: 40vh;
}
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #222;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.popup-content {
    scrollbar-width: thin;
    scrollbar-color: #888 #222;
}