/* style/promotions-new-user-bonus.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #26A9E0;
    --button-login: #EA7C07;
    --border-color: #e0e0e0;
}

.page-promotions-new-user-bonus {
    color: var(--text-dark); /* Default text color for light body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-promotions-new-user-bonus__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions-new-user-bonus__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
}

.page-promotions-new-user-bonus__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* HERO Section */
.page-promotions-new-user-bonus__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3aade0 100%);
    color: var(--text-light);
    overflow: hidden; /* Prevent content overflow */
}

.page-promotions-new-user-bonus__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background layers */
}

.page-promotions-new-user-bonus__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 900px; /* Adjust image width within hero */
}

.page-promotions-new-user-bonus__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-promotions-new-user-bonus__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-promotions-new-user-bonus__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-promotions-new-user-bonus__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    opacity: 0.9;
}

.page-promotions-new-user-bonus__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-login); /* Use login color for CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-promotions-new-user-bonus__cta-button:hover {
    background: #e06c00; /* Slightly darker orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-promotions-new-user-bonus__benefits-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.page-promotions-new-user-bonus__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions-new-user-bonus__benefit-item {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-promotions-new-user-bonus__benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions-new-user-bonus__benefit-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px;
    object-fit: cover;
}

.page-promotions-new-user-bonus__benefit-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions-new-user-bonus__benefit-description {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
}

/* How to Claim Section */
.page-promotions-new-user-bonus__how-to-claim-section {
    padding: 80px 0;
    background: var(--bg-dark); /* Use primary color as dark background */
    color: var(--text-light);
}

.page-promotions-new-user-bonus__how-to-claim-section .page-promotions-new-user-bonus__section-title {
    color: var(--text-light);
}

.page-promotions-new-user-bonus__how-to-claim-section .page-promotions-new-user-bonus__section-title::after {
    background: var(--text-light);
}

.page-promotions-new-user-bonus__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions-new-user-bonus__step-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions-new-user-bonus__step-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1;
    opacity: 0.8;
}

.page-promotions-new-user-bonus__step-title {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions-new-user-bonus__step-description {
    font-size: 16px;
    color: var(--text-light);
    opacity: 0.9;
}

.page-promotions-new-user-bonus__cta-center {
    text-align: center;
    margin-top: 60px;
}

.page-promotions-new-user-bonus__btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-login);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-promotions-new-user-bonus__btn-primary:hover {
    background: #e06c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Terms & Conditions Section */
.page-promotions-new-user-bonus__terms-conditions-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.page-promotions-new-user-bonus__content-area {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions-new-user-bonus__content-area p {
    margin-bottom: 15px;
}

.page-promotions-new-user-bonus__terms-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-promotions-new-user-bonus__terms-list li {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-promotions-new-user-bonus__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions-new-user-bonus__text-link:hover {
    color: #1a7bb0; /* Darker primary color */
}

/* FAQ Section */
.page-promotions-new-user-bonus__faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.page-promotions-new-user-bonus__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

/* FAQ容器样式 */
.page-promotions-new-user-bonus__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions-new-user-bonus__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* FAQ展开状态 - ⚠️ 使用!important和足够大的max-height确保一定能展开 */
.page-promotions-new-user-bonus__faq-item.active .page-promotions-new-user-bonus__faq-answer {
    max-height: 2000px !important; /* ⚠️ 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color);
}

/* 问题样式 */
.page-promotions-new-user-bonus__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border-radius: 8px; /* For top corners */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions-new-user-bonus__faq-item.active .page-promotions-new-user-bonus__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-promotions-new-user-bonus__faq-question:hover {
    background: var(--bg-light);
}

.page-promotions-new-user-bonus__faq-question:active {
    background: #e9e9e9;
}

/* 问题标题样式 */
.page-promotions-new-user-bonus__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-promotions-new-user-bonus__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-promotions-new-user-bonus__faq-item.active .page-promotions-new-user-bonus__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or use '-' */
    color: var(--button-login);
}

/* Call to Action Section */
.page-promotions-new-user-bonus__call-to-action {
    padding: 80px 0;
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.page-promotions-new-user-bonus__call-to-action .page-promotions-new-user-bonus__section-title {
    color: var(--text-light);
}

.page-promotions-new-user-bonus__call-to-action .page-promotions-new-user-bonus__section-title::after {
    background: var(--text-light);
}

.page-promotions-new-user-bonus__cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-new-user-bonus__main-title {
        font-size: 42px;
    }
    .page-promotions-new-user-bonus__intro-text {
        font-size: 18px;
    }
    .page-promotions-new-user-bonus__cta-button {
        padding: 15px 35px;
        font-size: 20px;
    }
    .page-promotions-new-user-bonus__section-title {
        font-size: 32px;
    }
    .page-promotions-new-user-bonus__benefit-title,
    .page-promotions-new-user-bonus__step-title {
        font-size: 22px;
    }
    .page-promotions-new-user-bonus__faq-question h3 {
        font-size: 17px;
    }
    .page-promotions-new-user-bonus__btn-primary {
        padding: 15px 35px;
        font-size: 20px;
    }
}


@media (max-width: 768px) {
    .page-promotions-new-user-bonus__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fixed header offset for mobile */
    .page-promotions-new-user-bonus__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-promotions-new-user-bonus__main-title {
        font-size: 32px;
        line-height: 1.3;
    }
    .page-promotions-new-user-bonus__intro-text {
        font-size: 16px;
    }
    .page-promotions-new-user-bonus__cta-button {
        padding: 14px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions-new-user-bonus__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-promotions-new-user-bonus__benefits-grid,
    .page-promotions-new-user-bonus__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions-new-user-bonus__benefit-item,
    .page-promotions-new-user-bonus__step-item {
        padding: 25px;
    }

    .page-promotions-new-user-bonus__benefit-item img,
    .page-promotions-new-user-bonus__step-item img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions-new-user-bonus img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions-new-user-bonus__content-area {
        font-size: 15px;
    }

    .page-promotions-new-user-bonus__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-promotions-new-user-bonus__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-promotions-new-user-bonus__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-promotions-new-user-bonus__faq-answer {
        padding: 0 15px;
    }
    
    .page-promotions-new-user-bonus__faq-item.active .page-promotions-new-user-bonus__faq-answer {
        padding: 15px !important;
    }

    .page-promotions-new-user-bonus__btn-primary {
        padding: 14px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions-new-user-bonus__cta-center {
        padding: 0 15px;
    }

    .page-promotions-new-user-bonus__cta-description {
        font-size: 16px;
        padding: 0 10px;
    }
}