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

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

.page-promotions-welcome-bonus {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

.page-promotions-welcome-bonus__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions-welcome-bonus__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-promotions-welcome-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); /* Ensure content is below fixed header */
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

.page-promotions-welcome-bonus__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-promotions-welcome-bonus__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-promotions-welcome-bonus__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions-welcome-bonus__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-light);
}

.page-promotions-welcome-bonus__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions-welcome-bonus__cta-button:hover {
    background: darken(var(--button-login), 10%); /* Darken on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-promotions-welcome-bonus__introduction-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* How to Claim Section */
.page-promotions-welcome-bonus__how-to-claim-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    color: var(--text-dark);
}

.page-promotions-welcome-bonus__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-welcome-bonus__step-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-welcome-bonus__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions-welcome-bonus__step-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-promotions-welcome-bonus__step-item h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions-welcome-bonus__button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-promotions-welcome-bonus__btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.page-promotions-welcome-bonus__btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Terms & Conditions Section */
.page-promotions-welcome-bonus__terms-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions-welcome-bonus__terms-section .page-promotions-welcome-bonus__section-title {
    color: var(--text-light);
}

.page-promotions-welcome-bonus__terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-welcome-bonus__terms-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions-welcome-bonus__terms-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-promotions-welcome-bonus__terms-item h3 {
    font-size: 1.8em;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Eligible Games Section */
.page-promotions-welcome-bonus__eligible-games-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

.page-promotions-welcome-bonus__game-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.page-promotions-welcome-bonus__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-promotions-welcome-bonus__game-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.page-promotions-welcome-bonus__game-card h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-promotions-welcome-bonus__game-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions-welcome-bonus__game-card h3 a:hover {
    text-decoration: underline;
    color: darken(var(--primary-color), 10%);
}

/* Why Choose Section */
.page-promotions-welcome-bonus__why-choose-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions-welcome-bonus__why-choose-section .page-promotions-welcome-bonus__section-title {
    color: var(--text-light);
}

.page-promotions-welcome-bonus__features-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.page-promotions-welcome-bonus__features-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions-welcome-bonus__features-list li strong {
    color: var(--text-light);
    margin-right: 10px;
}

/* FAQ Section */
.page-promotions-welcome-bonus__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-promotions-welcome-bonus__faq-list {
    margin-top: 40px;
}

.page-promotions-welcome-bonus__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.page-promotions-welcome-bonus__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions-welcome-bonus__faq-question:hover {
    background: #f5f5f5;
}

.page-promotions-welcome-bonus__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-promotions-welcome-bonus__faq-toggle {
    font-size: 24px;
    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: 28px;
    height: 28px;
}

.page-promotions-welcome-bonus__faq-item.active .page-promotions-welcome-bonus__faq-toggle {
    color: var(--button-login);
    transform: rotate(45deg); /* Change to X */
}

.page-promotions-welcome-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;
    padding: 0 20px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-dark);
}

.page-promotions-welcome-bonus__faq-item.active .page-promotions-welcome-bonus__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid var(--border-light);
}

/* Final CTA Section */
.page-promotions-welcome-bonus__cta-final-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.page-promotions-welcome-bonus__cta-final-section .page-promotions-welcome-bonus__section-title {
    color: var(--text-light);
}

.page-promotions-welcome-bonus__cta-final-section .page-promotions-welcome-bonus__text-block {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-welcome-bonus__hero-title {
        font-size: 3em;
    }

    .page-promotions-welcome-bonus__hero-description {
        font-size: 1.2em;
    }

    .page-promotions-welcome-bonus__section-title {
        font-size: 2em;
    }

    .page-promotions-welcome-bonus__features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-promotions-welcome-bonus__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions-welcome-bonus__hero-title {
        font-size: 2.2em;
    }

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

    .page-promotions-welcome-bonus__cta-button {
        padding: 15px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions-welcome-bonus__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions-welcome-bonus__text-block {
        font-size: 1em;
        text-align: left;
    }

    .page-promotions-welcome-bonus__how-to-claim-section, 
    .page-promotions-welcome-bonus__introduction-section,
    .page-promotions-welcome-bonus__terms-section,
    .page-promotions-welcome-bonus__eligible-games-section,
    .page-promotions-welcome-bonus__why-choose-section,
    .page-promotions-welcome-bonus__faq-section,
    .page-promotions-welcome-bonus__cta-final-section {
        padding: 40px 0;
    }

    .page-promotions-welcome-bonus__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions-welcome-bonus__steps-grid,
    .page-promotions-welcome-bonus__terms-grid,
    .page-promotions-welcome-bonus__game-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-welcome-bonus__step-item,
    .page-promotions-welcome-bonus__terms-item,
    .page-promotions-welcome-bonus__game-card {
        padding: 20px;
    }

    .page-promotions-welcome-bonus__step-item h3,
    .page-promotions-welcome-bonus__terms-item h3,
    .page-promotions-welcome-bonus__game-card h3 {
        font-size: 1.5em;
    }

    .page-promotions-welcome-bonus__features-list li {
        font-size: 1em;
        padding: 15px 20px;
    }

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

    /* Image specific responsive styles */
    .page-promotions-welcome-bonus img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions-welcome-bonus__section,
    .page-promotions-welcome-bonus__card,
    .page-promotions-welcome-bonus__container,
    .page-promotions-welcome-bonus__button-wrapper,
    .page-promotions-welcome-bonus__steps-grid,
    .page-promotions-welcome-bonus__terms-grid,
    .page-promotions-welcome-bonus__game-categories,
    .page-promotions-welcome-bonus__features-list,
    .page-promotions-welcome-bonus__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button specific responsive styles */
    .page-promotions-welcome-bonus__cta-button,
    .page-promotions-welcome-bonus__btn-primary,
    .page-promotions-welcome-bonus__btn-secondary,
    .page-promotions-welcome-bonus a[class*="button"],
    .page-promotions-welcome-bonus a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-promotions-welcome-bonus__cta-buttons,
    .page-promotions-welcome-bonus__button-group,
    .page-promotions-welcome-bonus__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    
    .page-promotions-welcome-bonus__cta-buttons {
      display: flex;
      flex-direction: column; 
    }
}