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

:root {
    --color-primary: #2F6BFF;
    --color-secondary: #6FA3FF;
    --color-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --color-card-bg: #FFFFFF;
    --color-background: #F4F7FB;
    --color-text-main: #1F2D3D;
    --color-text-black: #000000;
    --color-border: #D6E2FF;
    --color-glow: #A5C4FF;
}

.page-promotions-new-user-bonus {
    padding-top: 10px; /* Small top padding for the first section, assuming body handles --header-offset */
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: Arial, sans-serif; /* Roboto气质 */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

.page-promotions-new-user-bonus__hero-section {
    display: flex;
    flex-direction: column; /* Default for mobile, will change for desktop */
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: var(--color-primary);
    color: var(--color-card-bg);
    position: relative;
}

.page-promotions-new-user-bonus__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.page-promotions-new-user-bonus__hero-image {
    width: 100%;
    height: auto; /* Ensure responsiveness */
    display: block;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.page-promotions-new-user-bonus__hero-content {
    max-width: 800px;
    padding: 0 15px;
}

.page-promotions-new-user-bonus__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--color-card-bg);
}

.page-promotions-new-user-bonus__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-promotions-new-user-bonus__cta-button,
.page-promotions-new-user-bonus__secondary-cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-height: 44px; /* Touch target area */
}

.page-promotions-new-user-bonus__cta-button {
    background: var(--color-button-gradient);
    color: var(--color-card-bg);
    border: none;
    font-size: 1.1rem;
    margin-top: 10px;
}

.page-promotions-new-user-bonus__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions-new-user-bonus__details-section,
.page-promotions-new-user-bonus__how-to-register-section,
.page-promotions-new-user-bonus__terms-section,
.page-promotions-new-user-bonus__why-choose-section,
.page-promotions-new-user-bonus__faq-section,
.page-promotions-new-user-bonus__final-cta-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-promotions-new-user-bonus__detail-card,
.page-promotions-new-user-bonus__feature-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-promotions-new-user-bonus__detail-card:hover,
.page-promotions-new-user-bonus__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 0 0 4px var(--color-glow);
}

.page-promotions-new-user-bonus__detail-card img,
.page-promotions-new-user-bonus__feature-card img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too wide */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

/* Ensure no filter is applied to images */
.page-promotions-new-user-bonus img {
    filter: none;
}

.page-promotions-new-user-bonus__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.page-promotions-new-user-bonus__steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.page-promotions-new-user-bonus__step-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.page-promotions-new-user-bonus__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-card-bg);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-promotions-new-user-bonus__terms-content {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid var(--color-border);
}

.page-promotions-new-user-bonus__terms-content ul {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

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

.page-promotions-new-user-bonus__read-more-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
}

.page-promotions-new-user-bonus__read-more-link:hover {
    text-decoration: underline;
}

.page-promotions-new-user-bonus__faq-list {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    border: 1px solid var(--color-border);
}

.page-promotions-new-user-bonus__faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

.page-promotions-new-user-bonus__faq-item:last-child {
    border-bottom: none;
}

.page-promotions-new-user-bonus__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-promotions-new-user-bonus__faq-answer {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-top: 10px;
    padding-left: 10px;
    display: none; /* Hidden by default, JavaScript will toggle */
}

.page-promotions-new-user-bonus__final-cta-section {
    text-align: center;
    padding-bottom: 60px;
}

.page-promotions-new-user-bonus__final-cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.page-promotions-new-user-bonus__secondary-cta-button {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-size: 1.1rem;
    margin-left: 15px;
    margin-top: 10px;
}

.page-promotions-new-user-bonus__secondary-cta-button:hover {
    background-color: var(--color-primary);
    color: var(--color-card-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* --- Responsive Adjustments --- */
@media (min-width: 769px) {
    .page-promotions-new-user-bonus__hero-section {
        flex-direction: row; /* Desktop: image and content side-by-side */
        justify-content: center;
        align-items: center;
        padding: 50px 20px;
        min-height: 500px; /* Ensure hero section has a decent height */
    }

    .page-promotions-new-user-bonus__hero-image-wrapper {
        flex: 1;
        margin-right: 40px;
        margin-bottom: 0;
        max-width: 60%; /* Adjust as needed */
        order: 1; /* Image first in DOM, but visually can be arranged */
    }

    .page-promotions-new-user-bonus__hero-content {
        flex: 1;
        text-align: left;
        order: 2;
    }
    
    .page-promotions-new-user-bonus__main-title {
        font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    }

    .page-promotions-new-user-bonus__details-grid,
    .page-promotions-new-user-bonus__features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-promotions-new-user-bonus__steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .page-promotions-new-user-bonus__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem); /* Adjust H1 for smaller screens */
    }

    .page-promotions-new-user-bonus__hero-image-wrapper {
        margin-bottom: 20px; /* Space between image and text on mobile */
    }
    
    .page-promotions-new-user-bonus__hero-section {
        padding: 20px 15px;
    }

    /* Ensure all content area images are responsive and not too small */
    .page-promotions-new-user-bonus__details-grid img,
    .page-promotions-new-user-bonus__features-grid img,
    .page-promotions-new-user-bonus__hero-image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    
    .page-promotions-new-user-bonus__cta-button,
    .page-promotions-new-user-bonus__secondary-cta-button {
        width: 100%;
        max-width: 320px; /* Constrain width for buttons on small screens */
        margin-left: auto;
        margin-right: auto;
        display: block;
        margin-bottom: 15px;
    }
    
    .page-promotions-new-user-bonus__secondary-cta-button {
        margin-top: 0; /* Adjust margin for stacked buttons */
    }

    .page-promotions-new-user-bonus__final-cta-section .page-promotions-new-user-bonus__secondary-cta-button {
        margin-left: auto; /* Center button when stacked */
    }

    .page-promotions-new-user-bonus__details-grid,
    .page-promotions-new-user-bonus__features-grid,
    .page-promotions-new-user-bonus__steps-container {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}

@media (max-width: 549px) {
    .page-promotions-new-user-bonus__section-title {
        font-size: 1.8rem;
    }
    .page-promotions-new-user-bonus__hero-description {
        font-size: 1rem;
    }
    .page-promotions-new-user-bonus__card-title {
        font-size: 1.3rem;
    }
}