/* style/promotions-daily-rebate.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-background: #0a0a0a;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --button-text-color: #FFFF00;
}

/* Base styles for the page, ensuring light text on dark body background */
.page-promotions-daily-rebate {
    color: var(--light-text-color); /* Body background is dark (#0a0a0a), so text should be light */
    background-color: var(--dark-background);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-promotions-daily-rebate__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.page-promotions-daily-rebate__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Hero Section */
.page-promotions-daily-rebate__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* body handles --header-offset, this is decorative */
    overflow: hidden;
    background-color: var(--dark-background);
    color: var(--light-text-color);
}

.page-promotions-daily-rebate__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
    margin-bottom: 30px;
}

.page-promotions-daily-rebate__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.page-promotions-daily-rebate__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.page-promotions-daily-rebate__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-promotions-daily-rebate__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-promotions-daily-rebate__btn-primary,
.page-promotions-daily-rebate__btn-secondary,
.page-promotions-daily-rebate__btn-text,
.page-promotions-daily-rebate__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions-daily-rebate__btn-primary {
    background-color: var(--register-button-bg); /* Custom color for register/login */
    color: var(--button-text-color); /* Custom color for register/login font */
    border: 2px solid var(--register-button-bg);
}

.page-promotions-daily-rebate__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-promotions-daily-rebate__btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.page-promotions-daily-rebate__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-promotions-daily-rebate__btn-text {
    background-color: transparent;
    color: var(--button-text-color);
    border: none;
    text-decoration: underline;
    padding: 8px 15px;
}

.page-promotions-daily-rebate__btn-text:hover {
    color: #ffcc00;
}

.page-promotions-daily-rebate__btn-link {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
}

.page-promotions-daily-rebate__btn-link:hover {
    background-color: #005a2e;
}

/* Section backgrounds and text colors based on contrast */
.page-promotions-daily-rebate__dark-bg {
    background-color: var(--dark-background);
    color: var(--light-text-color);
}

.page-promotions-daily-rebate__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-promotions-daily-rebate__dark-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 60px 20px;
}

.page-promotions-daily-rebate__light-bg .page-promotions-daily-rebate__section-title {
    color: var(--dark-text-color);
}

.page-promotions-daily-rebate__light-bg .page-promotions-daily-rebate__text-block {
    color: var(--dark-text-color);
}

/* Intro Section */
.page-promotions-daily-rebate__intro-section {
    padding: 60px 20px;
}

/* How-to-get Section */
.page-promotions-daily-rebate__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-daily-rebate__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text-color);
}

.page-promotions-daily-rebate__step-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-promotions-daily-rebate__step-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--button-text-color);
}

.page-promotions-daily-rebate__step-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Applicable Games Section */
.page-promotions-daily-rebate__applicable-games-section {
    padding: 60px 20px;
}

.page-promotions-daily-rebate__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions-daily-rebate__game-item {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--light-text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions-daily-rebate__game-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--button-text-color);
}

.page-promotions-daily-rebate__game-item p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Terms Section */
.page-promotions-daily-rebate__terms-list {
    list-style: disc;
    margin-left: 25px;
    margin-top: 30px;
    color: var(--light-text-color);
}

.page-promotions-daily-rebate__terms-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-promotions-daily-rebate__terms-list strong {
    color: var(--button-text-color);
}

/* Why Choose Section */
.page-promotions-daily-rebate__why-choose-section {
    padding: 60px 20px;
}

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

.page-promotions-daily-rebate__feature-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--dark-text-color);
    display: flex;
    flex-direction: column;
}

.page-promotions-daily-rebate__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    object-fit: cover;
}

.page-promotions-daily-rebate__feature-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions-daily-rebate__feature-card p {
    font-size: 1em;
    flex-grow: 1;
}

/* FAQ Section */
.page-promotions-daily-rebate__faq-section {
    padding: 60px 20px;
}

.page-promotions-daily-rebate__faq-list {
    margin-top: 40px;
}

.page-promotions-daily-rebate__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--light-text-color);
}

.page-promotions-daily-rebate__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--button-text-color);
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-promotions-daily-rebate__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-promotions-daily-rebate__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

.page-promotions-daily-rebate__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-promotions-daily-rebate__faq-item[open] .page-promotions-daily-rebate__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions-daily-rebate__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

/* CTA Bottom Section */
.page-promotions-daily-rebate__cta-bottom-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--dark-background);
    color: var(--light-text-color);
}

.page-promotions-daily-rebate__cta-bottom-section .page-promotions-daily-rebate__section-title {
    color: var(--light-text-color);
}

.page-promotions-daily-rebate__cta-bottom-section .page-promotions-daily-rebate__text-block {
    color: rgba(255, 255, 255, 0.9);
}

.page-promotions-daily-rebate__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions-daily-rebate__main-title {
        font-size: 2.8em;
    }
    .page-promotions-daily-rebate__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions-daily-rebate {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions-daily-rebate__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-promotions-daily-rebate__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-promotions-daily-rebate__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-promotions-daily-rebate__hero-cta-buttons,
    .page-promotions-daily-rebate__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-promotions-daily-rebate__btn-primary,
    .page-promotions-daily-rebate__btn-secondary,
    .page-promotions-daily-rebate__btn-link {
        width: 100% !important;
        max-width: 300px !important;
        padding: 15px 20px;
        font-size: 1.1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions-daily-rebate__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions-daily-rebate__intro-section,
    .page-promotions-daily-rebate__how-to-get-section,
    .page-promotions-daily-rebate__applicable-games-section,
    .page-promotions-daily-rebate__terms-section,
    .page-promotions-daily-rebate__why-choose-section,
    .page-promotions-daily-rebate__faq-section,
    .page-promotions-daily-rebate__cta-bottom-section {
        padding: 40px 15px;
    }
    .page-promotions-daily-rebate__container,
    .page-promotions-daily-rebate__steps-grid,
    .page-promotions-daily-rebate__game-list,
    .page-promotions-daily-rebate__features-grid {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box !important;
    }
    .page-promotions-daily-rebate img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions-daily-rebate__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions-daily-rebate__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-promotions-daily-rebate__step-card, .page-promotions-daily-rebate__game-item, .page-promotions-daily-rebate__feature-card {
        padding: 20px;
    }
    .page-promotions-daily-rebate__hero-image {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .page-promotions-daily-rebate__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }
    .page-promotions-daily-rebate__section-title {
        font-size: 1.6em;
    }
}