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

/* Variables */
:root {
    --primary-color: #0A2240;
    --secondary-color: #E6B34B;
    --text-light: #ffffff;
    --text-dark: #333333;
    --light-bg: #f8f9fa;
    --dark-bg-section: #0A2240; /* Using primary color for dark sections */
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-promotions-new-user-bonus {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the page, assuming dark body bg from shared */
}

/* Ensure main content area has appropriate text color if body bg is dark */
.page-promotions-new-user-bonus .page-promotions-new-user-bonus__content-area {
    color: var(--text-dark); /* For sections with light backgrounds */
    background-color: var(--light-bg); /* Default background for content area */
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-promotions-new-user-bonus__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions-new-user-bonus__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark); /* Ensure contrast */
}

/* Hero Section */
.page-promotions-new-user-bonus__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-promotions-new-user-bonus__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none !important; /* Ensure no image filter */
}

.page-promotions-new-user-bonus__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions-new-user-bonus__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

.page-promotions-new-user-bonus__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions-new-user-bonus__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-promotions-new-user-bonus__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Buttons */
.page-promotions-new-user-bonus__btn-primary,
.page-promotions-new-user-bonus__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-promotions-new-user-bonus__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-promotions-new-user-bonus__btn-primary:hover {
    background-color: #d4a23a; /* Darken secondary color */
    color: var(--text-light);
}

.page-promotions-new-user-bonus__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-promotions-new-user-bonus__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

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

/* Dark Section styling */
.page-promotions-new-user-bonus__dark-section {
    background-color: var(--dark-bg-section);
    color: var(--text-light);
    padding: 60px 20px;
}

.page-promotions-new-user-bonus__dark-section .page-promotions-new-user-bonus__section-title {
    color: var(--secondary-color);
}

.page-promotions-new-user-bonus__dark-section .page-promotions-new-user-bonus__section-description {
    color: var(--text-light);
}

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

.page-promotions-new-user-bonus__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

.page-promotions-new-user-bonus__step-item:hover {
    transform: translateY(-5px);
}

.page-promotions-new-user-bonus__step-image {
    width: 100%;
    max-width: 300px; /* Max width for step images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    filter: none !important; /* Ensure no image filter */
}

.page-promotions-new-user-bonus__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-promotions-new-user-bonus__step-item p {
    font-size: 1em;
    color: var(--text-light);
}

/* Card Grid */
.page-promotions-new-user-bonus__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-new-user-bonus__card {
    background-color: var(--card-bg);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.page-promotions-new-user-bonus__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions-new-user-bonus__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none !important; /* Ensure no image filter */
}

.page-promotions-new-user-bonus__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-new-user-bonus__card-link {
    display: inline-block;
    margin-top: auto; /* Push link to bottom */
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions-new-user-bonus__card-link:hover {
    color: var(--primary-color);
}

/* Why Choose Us Section */
.page-promotions-new-user-bonus__why-choose-us-section {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

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

.page-promotions-new-user-bonus__reason-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
}

.page-promotions-new-user-bonus__reason-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    filter: none !important; /* Ensure no image filter */
}

.page-promotions-new-user-bonus__reason-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-new-user-bonus__reason-item p {
    font-size: 1em;
    color: var(--text-dark);
}

/* Terms and Conditions List */
.page-promotions-new-user-bonus__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-promotions-new-user-bonus__terms-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-light);
}

.page-promotions-new-user-bonus__terms-list li p {
    margin: 0;
}

/* FAQ Section */
.page-promotions-new-user-bonus__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-new-user-bonus__faq-item {
    background-color: var(--card-bg);
    color: var(--text-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-promotions-new-user-bonus__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    color: var(--primary-color);
}

.page-promotions-new-user-bonus__faq-question:hover {
    background-color: #e9ecef;
}

.page-promotions-new-user-bonus__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.page-promotions-new-user-bonus__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-promotions-new-user-bonus__faq-item.active .page-promotions-new-user-bonus__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions-new-user-bonus__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-promotions-new-user-bonus__faq-item.active .page-promotions-new-user-bonus__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-promotions-new-user-bonus__faq-answer p {
    margin: 0;
    padding-top: 10px;
    color: var(--text-dark);
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-promotions-new-user-bonus__hero-title {
        font-size: 3em;
    }
    .page-promotions-new-user-bonus__hero-description {
        font-size: 1.1em;
    }
    .page-promotions-new-user-bonus__section-title {
        font-size: 2em;
    }
    .page-promotions-new-user-bonus__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-promotions-new-user-bonus__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-promotions-new-user-bonus__hero-title {
        font-size: 2.2em;
    }
    .page-promotions-new-user-bonus__hero-description {
        font-size: 0.95em;
    }
    .page-promotions-new-user-bonus__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions-new-user-bonus__btn-primary,
    .page-promotions-new-user-bonus__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* General content containers for mobile */
    .page-promotions-new-user-bonus__content-area,
    .page-promotions-new-user-bonus__dark-section {
        padding: 30px 15px !important; /* Add horizontal padding to prevent overflow */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-promotions-new-user-bonus__section-title {
        font-size: 1.8em;
    }
    .page-promotions-new-user-bonus__section-description {
        font-size: 0.9em;
    }

    .page-promotions-new-user-bonus__steps-grid,
    .page-promotions-new-user-bonus__card-grid,
    .page-promotions-new-user-bonus__reason-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-new-user-bonus__step-item,
    .page-promotions-new-user-bonus__card,
    .page-promotions-new-user-bonus__reason-item {
        padding: 20px;
    }

    .page-promotions-new-user-bonus__step-image,
    .page-promotions-new-user-bonus__card-image,
    .page-promotions-new-user-bonus__reason-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover;
    }

    .page-promotions-new-user-bonus__terms-list,
    .page-promotions-new-user-bonus__faq-list {
        padding: 0 15px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-promotions-new-user-bonus__faq-question {
        padding: 15px 20px;
    }
    .page-promotions-new-user-bonus__faq-question h3 {
        font-size: 1.1em;
    }
    .page-promotions-new-user-bonus__faq-answer {
        padding: 0 20px;
    }
    .page-promotions-new-user-bonus__faq-item.active .page-promotions-new-user-bonus__faq-answer {
        padding: 10px 20px 20px;
    }
}

/* Ensure images do not use filter */
.page-promotions-new-user-bonus img {
    filter: none !important;
}

/* Color contrast adjustments for text on dark backgrounds from shared.css */
/* Assuming shared.css body has --dark-bg, text in general page content needs to be light */
.page-promotions-new-user-bonus {
    color: var(--text-light); /* Default text color for page body */
}
.page-promotions-new-user-bonus p,
.page-promotions-new-user-bonus li {
    color: var(--text-light); /* Default text color for paragraphs and list items */
}

/* Override for specific sections that have light background */
.page-promotions-new-user-bonus__content-area p,
.page-promotions-new-user-bonus__content-area li,
.page-promotions-new-user-bonus__card p,
.page-promotions-new-user-bonus__reason-item p {
    color: var(--text-dark); /* Dark text on light background areas */
}

/* Titles in light background sections */
.page-promotions-new-user-bonus__content-area .page-promotions-new-user-bonus__section-title,
.page-promotions-new-user-bonus__content-area h2,
.page-promotions-new-user-bonus__content-area h3 {
    color: var(--primary-color); /* Dark primary color for titles on light background */
}

/* FAQ question text color */
.page-promotions-new-user-bonus__faq-question h3 {
    color: var(--primary-color);
}

/* Ensure all text in dark sections is light */
.page-promotions-new-user-bonus__dark-section p,
.page-promotions-new-user-bonus__dark-section li {
    color: var(--text-light);
}

/* Button text contrast is handled by specific button styles */