:root {
    --primary-color: #FF6115;
    --secondary-color: #FE8706;
    --dark-bg: #252B38;
    --light-text: #FFFFFF;
    --dark-text: #000000;
    --btn-orange: #DD6010;
    --table-header: #F6D1C4;
    --table-row-light: #FFFEFE;
    --table-row-dark: #FEF0EB;
}

.d-pc {
    display: block;
}

.d-mb {
    display: none;
}

/* Default: Show PC slider, hide mobile slider */
.slider-pc {
    display: block;
}

.slider-mb {
    display: none;
}

body {
    font-family: 'Sarabun', sans-serif;
    overflow-x: hidden;
    position: relative;
}

.wp-cskh {
    position:fixed;
    right: 10px;
    bottom: 80px;
    z-index: 1;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
}

#btn-line.active {
    bottom: 160px; /* hoặc giá trị cao hơn tuỳ ý */
    opacity: 1;
}

.wp-back {
    width: max-content;
    height: auto;
    position: fixed;
    bottom: 85px;
    left: 10px;
    background: linear-gradient(0deg, #f49a25 10.31%, #f7ba22 71.66%), linear-gradient(180deg, #ff8000 -.74%, rgba(255, 128, 0, 0) 111.57%);
    border: 2px solid #FF6115;
    gap: 5px;
    border-radius: 18px;
    font-size: 12px;
    z-index: 999;
    color: #fff !important;
    font-weight: 500;
}

.wp-back a {
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap:5px;
    padding: 5px 10px;
}

.wp-back .wp-back-icon {
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-back .wp-back-icon img{
    width: 100%;
    height: 100%;
}



.main-banner {
    width: 100%;
}

.main-banner img {
    width: 100%;
}

#btn-line.hide {
    opacity: 0;
    pointer-events: none;
}

#btn-tele.active {
    bottom: 240px; /* hoặc giá trị cao hơn tuỳ ý old  */ 
    opacity: 1;
}

#btn-tele.hide {
    opacity: 0;
    pointer-events: none;
}

#btn-teleOrange.active {
    bottom: 240px; /* hoặc giá trị cao hơn tuỳ ý old 320px*/
    opacity: 1;
}

#btn-teleOrange.hide {
    opacity: 0;
    pointer-events: none;
}


/* Header */
.header {
    background-color: var(--dark-bg);
    padding: 15px 0;
}

.logo-container {
    max-width: 200px;
}

.logo-container img {
    width: 100%;
    height: auto;
}

.btn-group {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.login-btn {
    border: 2px solid var(--light-text);
    color: var(--light-text);
    background-color: transparent;
    border-radius: 30px;
    padding: 8px 30px;
    font-weight: 700;
    margin-right: 10px;
    transition: all 0.3s;
}

.register-btn {
    background-color: var(--btn-orange);
    border: 1.5px solid var(--light-text);
    color: var(--light-text);
    border-radius: 30px;
    padding: 8px 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.login-btn:hover {
    background-color: var(--light-text);
    color: var(--dark-text);
}

.register-btn:hover {
    background-color: var(--light-text);
    color: var(--dark-text);
}

.slick-dotted.slick-slider {
    margin-bottom: 0px !important;
}

/* Marquee Section */
.marquee-section {
    background-color: #FF9300;
    height: 50px;
}

.marquee-section .container {
    height: 100%;
    position: relative;
    padding-left: 52px;
}
.marquee-section .container .speaker-symbol {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-color: #FF9300;
}

.marquee-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.marquee-item {
    height: 100%;
    display: inline-block;
    padding-left: 100%; /* Start the text off-screen */
    animation: marquee 30s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 15px;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.main-title-section {
    margin-bottom: 20px;
}

/*main-title-section*/
.main-title-section .container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 50%;
    gap:20px;
}

.main-title-section .container .main-title {
    color: #ffffff;
    font-family: Sarabun;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    width: 50%;
    height: 30px;
    background: #FF9300;
    border-radius: 0px 0px 60px 60px;
    background: linear-gradient(0deg, #FF6115 0%, #FE8706 100%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding:20px 0px;
    cursor: pointer;
    text-decoration: none;
}


/* Section Headers */
.section-header {
    width: 100%;
    height: 35px;
    border-bottom: 1px solid #BCB7B7;
    margin-bottom: 25px;
}

.section-header .section-header-content {
    height: 100%;
    border-radius: 0px 60px 0px 0px;
    background: linear-gradient(0deg, #FF6115 0%, #FE8706 100%);
    width: fit-content;
    padding: 0px 40px 0px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #FFF;
    font-family: Sarabun;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}


/* Benefits Section */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    padding: 0 15px;
}

.benefit-card {
    background: url('/assets/img/benefit/bg.png');
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center center;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: unset;
    flex-shrink: 0;
}

.benefit-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
}

.benefit-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.benefit-desc {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    color: var(--dark-text);
}

/* How to Earn Section */
.earn-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    padding: 0 15px;
}

.step-card {
    background: url('/assets/img/earn/bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    border-radius: 12px;
    
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 350px !important;
    margin:0px 3px;
}

.step-number {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding-bottom: 10px;
}

.step-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.step-desc {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    color: var(--dark-text);
}

/* Commission Table */
.commission-section {
    margin-bottom: 50px;
    padding: 0 15px;
}

.commission-title {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
}

.commission-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: separate;
    border-spacing: 0;
}

.commission-table th {
    background-color: var(--table-header);
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #fff;
}

.commission-table td {
    padding: 10px 15px;
    text-align: center;
    border: 1px solid #fff;
}

.commission-table tr td {
    background-color: var(--table-row-dark);
}

.note-text p {
    padding:0;
    margin:0;
    color: #000;
    font-family: Sarabun;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 180%;
    text-align: left;
}

.note-text .title {
    color: #FE6D17;
    font-family: Sarabun;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 180%;
}

.note-text .highlight {
    color: #FE6D17;
    font-family: Sarabun;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 180%;
}

.note-text .super-highlight {
    color: #ff0000;
    font-family: Sarabun;
    font-size: 16px;
    font-style: normal;
}
/* Bonus Table */
.bonus-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: separate;
    border-spacing: 0;
}

.bonus-table th {
    background-color: var(--table-header);
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px;
    text-align: center;
    border: 1px solid #fff;
}

.bonus-table td {
    padding: 10px 15px;
    text-align: center;
    border: 1px solid #fff;
}

.bonus-table tr td {
    background-color: var(--table-row-dark);
}


/* Notes Section */
.notes-section {
    padding: 0 15px 30px;
}

.note-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.note-title {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    padding: 30px 15px;
    text-align: center;
    color: var(--light-text);
    margin-bottom: 30px;
}

.contact-title {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
}

.contact-item {
    display: inline-block;
    margin: 0 15px;
    font-size: 18px;
    font-weight: 500;
}

.contact-item img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 15px;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.footer-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
}

#btn-cskh {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .d-pc {
        display: none;
    }
    
    .d-mb {
        display: block;
    }

    .wp-back {
        bottom: 30px;
        left: 10px;
    }

    .slider-pc {
        display: none;
    }

    .slider-mb {
        display: block;
    }

    .header {
        height: 50px;
    }

    .logo-container {
        width: 100%;
        height: 100%;
        max-width: unset;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-container img {
        height: 90%;
        width: auto;
    }

    .banner-slide img {
        width: 100%;
    }

    .login-mb-section,
    .main-title-section-section {
        width: 100%;
        height: 50px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .login-mb-section .login-button {
        width: 50%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(90deg, #252C3A 0%, #2E3C5A 41.83%, #252C3A 96.15%);
    }

    .login-mb-section .register-button {
        width: 50%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(90deg, #CF4A24 0%, #FE7114 24.52%, #CF4A24 50%, #F36818 81.25%, #CF4A24 100%);;
    }

    .login-mb-section .main-title {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        font-family: Sarabun;
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .main-title-section-section .main-content {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #FFC311;
        box-shadow: 1px 3px 5.7px 0px rgba(0, 0, 0, 0.25) inset;
        color: #D88A0F;
        font-family: Sarabun;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        text-decoration: none;
    }

    .main-video-section {
        width: 100%;
        height: max-content;
        display: flex;
        align-items: center;
        justify-content: center;
        padding:20px;
    }

    .main-video-section video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    /*earn-section*/
    .earn-section .container{
        width: 100%;
        padding:0px;
    }

    .earn-section .container .section-header,
    .commission-section .container .section-header {
        border: unset;
        display: flex;
        justify-content: center;
    }

    .earn-section .container .section-header .section-header-content,
    .commission-section .container .section-header .section-header-content {
        height: 100%;
        border-top-left-radius: 60px;
        border-top-right-radius: 60px;
        background: linear-gradient(0deg, #FF6115 0%, #FE8706 100%);
        width: fit-content;
        display: flex;
        align-items: center;
        justify-content: center;
        padding:0px 30px;
    }
    
    .earn-section .earn-steps-container {
        display: flex;
        flex-direction: row;
        gap:15px;
    }
    
    .earn-section .earn-steps-container .step-card {
        height: 100%;
        padding:0px;
        border-radius: 15px;
        background: linear-gradient(0deg, #FED1C1 0%, rgba(255, 255, 255, 0.00) 100%);  
    }

    .earn-section .earn-steps-container .step-number {
        width: 100%;
        height: 60px;
        padding:0px;
        margin:0px;
    }
    .earn-section .earn-steps-container .step-number img{
        height: 100%;
        width: auto;
    }

    .earn-section .earn-steps-container .step-desc{
        text-align: left;
        padding:0px 5px;
        font-size: 15px;
        line-height: 1.5;
    }

    .wp-cskh {
        width: 65px;
        height: 65px;
        right: 25px;
        bottom: 20px;
    }

    .wp-cskh a {
        width: 100%;
        height: 100%;
    }

    .wp-cskh a img {
        width: 100%;
        height: 100%;
    }
    
    #btn-line.active {
        bottom: 95px; /* hoặc giá trị cao hơn tuỳ ý */
        opacity: 1;
    }
    
    #btn-line.hide {
        opacity: 0;
        pointer-events: none;
    }
    
    #btn-tele.active {
        bottom: 160px; /* hoặc giá trị cao hơn tuỳ ý */
        opacity: 1;
    }
    
    #btn-tele.hide {
        opacity: 0;
        pointer-events: none;
    }
    
    #btn-teleOrange.active {
        bottom:  160px; /* hoặc giá trị cao hơn tuỳ ý old 225px*/
        opacity: 1;
    }
    
    #btn-teleOrange.hide {
        opacity: 0;
        pointer-events: none;
    }
}