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

/* Custom color variables from prompt */
:root {
    --twin68-primary: #11A84E;
    --twin68-secondary: #22C768;
    --twin68-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --twin68-card-bg: #11271B;
    --twin68-background: #08160F; /* This will be the body background from shared.css */
    --twin68-text-main: #F2FFF6;
    --twin68-text-secondary: #A7D9B8;
    --twin68-border: #2E7A4E;
    --twin68-glow: #57E38D;
    --twin68-gold: #F2C14E;
    --twin68-divider: #1E3A2A;
    --twin68-deep-green: #0A4B2C;
}

/* Base styles for the page content, considering body background is --twin68-background (dark) */
.page-promotions-new-user-welcome-bonus {
    background-color: var(--twin68-background); /* Ensures the main section has the correct background if body isn't fully covered */
    color: var(--twin68-text-main); /* Light text for dark background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* General padding for the bottom of the page content */
}

/* Hero Section */
.page-promotions-new-user-welcome-bonus__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure nothing spills out */
}

.page-promotions-new-user-welcome-bonus__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions-new-user-welcome-bonus__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions-new-user-welcome-bonus__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2; /* Ensure content is above any potential background elements */
    color: var(--twin68-text-main);
}

.page-promotions-new-user-welcome-bonus__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--twin68-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions-new-user-welcome-bonus__subtitle {
    font-size: 1.2rem;
    color: var(--twin68-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-new-user-welcome-bonus__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* General button styles */
.page-promotions-new-user-welcome-bonus__btn-primary,
.page-promotions-new-user-welcome-bonus__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-promotions-new-user-welcome-bonus__btn-primary {
    background: var(--twin68-button-gradient);
    color: var(--twin68-text-main); /* White-ish text on green gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions-new-user-welcome-bonus__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions-new-user-welcome-bonus__btn-secondary {
    background: transparent;
    color: var(--twin68-primary);
    border: 2px solid var(--twin68-primary);
    box-shadow: 0 2px 10px rgba(17, 168, 78, 0.3);
}

.page-promotions-new-user-welcome-bonus__btn-secondary:hover {
    background: var(--twin68-primary);
    color: var(--twin68-text-main);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.5);
}

/* General Section Styling */
.page-promotions-new-user-welcome-bonus__about-bonus-section,
.page-promotions-new-user-welcome-bonus__terms-section,
.page-promotions-new-user-welcome-bonus__why-choose-section,
.page-promotions-new-user-welcome-bonus__faq-section,
.page-promotions-new-user-welcome-bonus__cta-final-section {
    padding: 80px 20px;
    box-sizing: border-box;
    color: var(--twin68-text-main);
}

.page-promotions-new-user-welcome-bonus__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions-new-user-welcome-bonus__section-title {
    font-size: 2.5rem;
    color: var(--twin68-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions-new-user-welcome-bonus__description {
    font-size: 1.1rem;
    color: var(--twin68-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

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

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

.page-promotions-new-user-welcome-bonus__step-card:hover,
.page-promotions-new-user-welcome-bonus__benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions-new-user-welcome-bonus__step-card img,
.page-promotions-new-user-welcome-bonus__benefit-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-promotions-new-user-welcome-bonus__step-title,
.page-promotions-new-user-welcome-bonus__benefit-title {
    font-size: 1.7rem;
    color: var(--twin68-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-new-user-welcome-bonus__step-text,
.page-promotions-new-user-welcome-bonus__benefit-text {
    font-size: 1rem;
    color: var(--twin68-text-secondary);
}

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

/* Terms List */
.page-promotions-new-user-welcome-bonus__terms-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 50px auto;
    max-width: 900px;
}

.page-promotions-new-user-welcome-bonus__terms-list li {
    background-color: var(--twin68-card-bg);
    border: 1px solid var(--twin68-divider);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--twin68-text-main);
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-new-user-welcome-bonus__terms-list li::before {
    content: "✅";
    margin-right: 10px;
    color: var(--twin68-primary);
}

/* FAQ Section */
.page-promotions-new-user-welcome-bonus__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions-new-user-welcome-bonus__faq-item {
    background-color: var(--twin68-card-bg);
    border: 1px solid var(--twin68-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-new-user-welcome-bonus__faq-item summary {
    list-style: none; /* Hide default marker for details tag */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--twin68-primary);
    background-color: var(--twin68-deep-green);
    border-bottom: 1px solid var(--twin68-divider);
    transition: background-color 0.3s ease;
}

.page-promotions-new-user-welcome-bonus__faq-item summary:hover {
    background-color: var(--twin68-primary);
    color: var(--twin68-text-main);
}

/* Hide default arrow for Webkit browsers */
.page-promotions-new-user-welcome-bonus__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions-new-user-welcome-bonus__faq-qtext {
    flex-grow: 1;
}

.page-promotions-new-user-welcome-bonus__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--twin68-text-main); /* Ensure toggle is visible */
}

.page-promotions-new-user-welcome-bonus__faq-item[open] .page-promotions-new-user-welcome-bonus__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-promotions-new-user-welcome-bonus__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--twin68-text-secondary);
    line-height: 1.7;
    background-color: var(--twin68-card-bg);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .page-promotions-new-user-welcome-bonus {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions-new-user-welcome-bonus__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding for section */
    }

    .page-promotions-new-user-welcome-bonus__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-promotions-new-user-welcome-bonus__subtitle {
        font-size: 1rem;
    }

    .page-promotions-new-user-welcome-bonus__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container of buttons */
    }

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

    .page-promotions-new-user-welcome-bonus__about-bonus-section,
    .page-promotions-new-user-welcome-bonus__terms-section,
    .page-promotions-new-user-welcome-bonus__why-choose-section,
    .page-promotions-new-user-welcome-bonus__faq-section,
    .page-promotions-new-user-welcome-bonus__cta-final-section {
        padding: 40px 15px;
    }

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

    .page-promotions-new-user-welcome-bonus__description {
        font-size: 1rem;
        margin-bottom: 40px;
    }

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

    .page-promotions-new-user-welcome-bonus__step-card,
    .page-promotions-new-user-welcome-bonus__benefit-card {
        padding: 20px;
    }

    .page-promotions-new-user-welcome-bonus__step-title,
    .page-promotions-new-user-welcome-bonus__benefit-title {
        font-size: 1.5rem;
    }

    .page-promotions-new-user-welcome-bonus__terms-list {
        margin-bottom: 40px;
    }

    .page-promotions-new-user-welcome-bonus__terms-list li {
        padding: 15px;
        font-size: 0.95rem;
    }

    .page-promotions-new-user-welcome-bonus__faq-item summary {
        font-size: 1.05rem;
        padding: 15px;
    }

    .page-promotions-new-user-welcome-bonus__faq-answer {
        padding: 15px;
        font-size: 0.95rem;
    }

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

    /* All containers that might hold images/videos/buttons */
    .page-promotions-new-user-welcome-bonus__section,
    .page-promotions-new-user-welcome-bonus__card,
    .page-promotions-new-user-welcome-bonus__container,
    .page-promotions-new-user-welcome-bonus__hero-image-wrapper,
    .page-promotions-new-user-welcome-bonus__cta-buttons,
    .page-promotions-new-user-welcome-bonus__video-section,
    .page-promotions-new-user-welcome-bonus__video-container,
    .page-promotions-new-user-welcome-bonus__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* Add horizontal padding to prevent content from touching screen edges */
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific override for sections/containers that already have padding, to ensure it's still applied */
    .page-promotions-new-user-welcome-bonus__about-bonus-section,
    .page-promotions-new-user-welcome-bonus__terms-section,
    .page-promotions-new-user-welcome-bonus__why-choose-section,
    .page-promotions-new-user-welcome-bonus__faq-section,
    .page-promotions-new-user-welcome-bonus__cta-final-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-promotions-new-user-welcome-bonus__hero-content {
        padding-left: 0;
        padding-right: 0;
    }
}