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

/* Variables based on provided color scheme */
:root {
    --zv99-primary-color: #C61F1F; /* Main Color */
    --zv99-secondary-color: #E53030; /* Auxiliary Color */
    --zv99-button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
    --zv99-card-bg: #2A1212; /* Card BG */
    --zv99-background-color: #140C0C; /* Background */
    --zv99-text-main: #FFF1E8; /* Text Main */
    --zv99-border-color: #6A1E1E; /* Border */
    --zv99-gold-color: #F3C54D; /* Gold */
    --zv99-deep-red: #7E0D0D; /* Deep Red */

    /* Generic text colors for contrast */
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
}

/* Base styles for the page content, considering body background #140C0C (dark) */
.page-promotions-new-user-bonus {
    color: var(--zv99-text-main); /* Text Main for general text on dark background */
    background-color: var(--zv99-background-color); /* Ensure consistency, though body handles it */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-promotions-new-user-bonus__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Enforce image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions-new-user-bonus__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions-new-user-bonus__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-promotions-new-user-bonus__hero-content {
    position: relative; /* Not absolute, to flow below image */
    z-index: 2;
    max-width: 900px;
    margin-top: 30px; /* Space between image and content */
    padding: 0 20px;
}

.page-promotions-new-user-bonus__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
    color: var(--zv99-gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-promotions-new-user-bonus__hero-description {
    font-size: 1.1em;
    color: var(--zv99-text-main);
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-promotions-new-user-bonus__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 15px; /* Add padding to prevent overflow */
}

.page-promotions-new-user-bonus__btn-primary,
.page-promotions-new-user-bonus__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions-new-user-bonus__btn-primary {
    background: var(--zv99-button-gradient);
    color: var(--zv99-text-main); /* Text Main for contrast on button gradient */
    border: none;
}

.page-promotions-new-user-bonus__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-promotions-new-user-bonus__btn-secondary {
    background: var(--zv99-text-main); /* White-ish background */
    color: var(--zv99-primary-color); /* Main color for text */
    border: 2px solid var(--zv99-border-color); /* Border color */
}

.page-promotions-new-user-bonus__btn-secondary:hover {
    background: var(--zv99-primary-color);
    color: var(--zv99-text-main);
    border-color: var(--zv99-primary-color);
    transform: translateY(-2px);
}

/* General Section Styles */
.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: clamp(1.8em, 3vw, 2.8em);
    color: var(--zv99-gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Promo Details Section */
.page-promotions-new-user-bonus__promo-details {
    padding: 80px 0;
    background-color: var(--zv99-deep-red); /* Deep Red for contrast */
}

.page-promotions-new-user-bonus__dark-section {
    background-color: var(--zv99-deep-red); /* Consistent dark section background */
    color: var(--zv99-text-main); /* Light text on dark background */
}

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

.page-promotions-new-user-bonus__card {
    background-color: var(--zv99-card-bg); /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--zv99-text-main); /* Text Main for contrast */
    border: 1px solid var(--zv99-border-color); /* Border color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribute space */
    min-height: 450px; /* Ensure cards have a consistent height */
}

.page-promotions-new-user-bonus__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    display: block;
}

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

.page-promotions-new-user-bonus__card-text {
    font-size: 1em;
    color: var(--zv99-text-main);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

/* How to Claim Section */
.page-promotions-new-user-bonus__how-to-claim {
    padding: 80px 0;
    background-color: var(--zv99-background-color);
}

.page-promotions-new-user-bonus__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.page-promotions-new-user-bonus__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--zv99-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--zv99-border-color);
}

.page-promotions-new-user-bonus__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--zv99-button-gradient);
    color: var(--zv99-text-main);
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.page-promotions-new-user-bonus__step-title {
    font-size: 1.4em;
    color: var(--zv99-gold-color);
    margin-top: 0;
    margin-bottom: 10px;
}

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

/* Terms and Conditions Section */
.page-promotions-new-user-bonus__terms-conditions {
    padding: 80px 0;
}

.page-promotions-new-user-bonus__terms-list {
    list-style: disc;
    padding-left: 25px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--zv99-text-main);
}

.page-promotions-new-user-bonus__terms-item {
    margin-bottom: 15px;
    font-size: 1em;
}

.page-promotions-new-user-bonus__terms-item a {
    color: var(--zv99-gold-color); /* Gold for links */
    text-decoration: underline;
}

.page-promotions-new-user-bonus__terms-item a:hover {
    color: var(--zv99-text-main);
}

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

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

.page-promotions-new-user-bonus__faq-item {
    background-color: var(--zv99-card-bg);
    border: 1px solid var(--zv99-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--zv99-text-main);
}

.page-promotions-new-user-bonus__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--zv99-gold-color);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for question */
    transition: background-color 0.3s ease;
}

.page-promotions-new-user-bonus__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions-new-user-bonus__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-promotions-new-user-bonus__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--zv99-text-main);
}

/* Details polyfill for older browsers or if JS is preferred for toggle */
.page-promotions-new-user-bonus__faq-item[open] .page-promotions-new-user-bonus__faq-answer {
    display: block;
}
.page-promotions-new-user-bonus__faq-item:not([open]) .page-promotions-new-user-bonus__faq-answer {
    display: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-new-user-bonus__hero-content {
        max-width: 700px;
    }

    .page-promotions-new-user-bonus__main-title {
        font-size: clamp(1.8em, 4vw, 3em);
    }

    .page-promotions-new-user-bonus__section-title {
        font-size: clamp(1.6em, 3vw, 2.5em);
    }

    .page-promotions-new-user-bonus__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* General mobile adaptations */
    .page-promotions-new-user-bonus {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Enforce full width for main content areas */
    .page-promotions-new-user-bonus__hero-section,
    .page-promotions-new-user-bonus__promo-details,
    .page-promotions-new-user-bonus__how-to-claim,
    .page-promotions-new-user-bonus__terms-conditions,
    .page-promotions-new-user-bonus__faq {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions-new-user-bonus__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 40px;
    }

    .page-promotions-new-user-bonus__hero-content {
        margin-top: 20px;
        padding: 0; /* Remove side padding as section has it */
    }

    .page-promotions-new-user-bonus__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em);
    }

    .page-promotions-new-user-bonus__hero-description {
        font-size: 1em;
    }

    /* Buttons responsive adaptation */
    .page-promotions-new-user-bonus__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0; /* Remove side padding as section has it */
    }

    .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;
    }

    /* Image responsive adaptation */
    .page-promotions-new-user-bonus img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that hold images must be responsive */
    .page-promotions-new-user-bonus__hero-image-wrapper,
    .page-promotions-new-user-bonus__grid-cards,
    .page-promotions-new-user-bonus__card,
    .page-promotions-new-user-bonus__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
    
    .page-promotions-new-user-bonus__card-image {
        height: auto !important; /* Allow height to adjust naturally */
    }

    .page-promotions-new-user-bonus__promo-details,
    .page-promotions-new-user-bonus__how-to-claim,
    .page-promotions-new-user-bonus__terms-conditions,
    .page-promotions-new-user-bonus__faq {
        padding: 50px 0;
    }

    .page-promotions-new-user-bonus__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-promotions-new-user-bonus__step-number {
        margin-bottom: 15px;
    }

    .page-promotions-new-user-bonus__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-promotions-new-user-bonus__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure no filter is used on images */
.page-promotions-new-user-bonus img {
    filter: none !important;
}

/* Ensure content area images meet minimum size */
.page-promotions-new-user-bonus__content-area img,
.page-promotions-new-user-bonus__card-image,
.page-promotions-new-user-bonus__step-content img { /* Assuming there could be images here */
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
  /* For mobile, ensure content images don't go below 200px if possible, but prioritize max-width: 100% */
  .page-promotions-new-user-bonus__content-area img,
  .page-promotions-new-user-bonus__card-image,
  .page-promotions-new-user-bonus__step-content img {
    width: 100% !important; /* Ensure it fills container */
    height: auto !important; /* Maintain aspect ratio */
    min-width: 200px;
    min-height: 200px;
  }
}