:root {
    --primary-color: #0A2342;
    --accent-color: #E0B400;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark-section: #0A2342; /* Using primary color for dark sections */
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-promotions-weekly-cashback {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-promotions-weekly-cashback__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-promotions-weekly-cashback__section-title {
    font-size: 2.5em;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions-weekly-cashback__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light); /* Default for dark sections */
}

/* Color contrast overrides for specific sections */
.page-promotions-weekly-cashback__intro-section,
.page-promotions-weekly-cashback__benefits-section,
.page-promotions-weekly-cashback__terms-conditions {
    background-color: var(--bg-light); /* Light background for these sections */
    color: var(--text-dark); /* Dark text for light background */
    padding: 60px 0;
}

.page-promotions-weekly-cashback__intro-section .page-promotions-weekly-cashback__section-title,
.page-promotions-weekly-cashback__benefits-section .page-promotions-weekly-cashback__section-title,
.page-promotions-weekly-cashback__terms-conditions .page-promotions-weekly-cashback__section-title {
    color: var(--primary-color);
}

.page-promotions-weekly-cashback__intro-section .page-promotions-weekly-cashback__section-description,
.page-promotions-weekly-cashback__benefits-section .page-promotions-weekly-cashback__section-description,
.page-promotions-weekly-cashback__terms-conditions .page-promotions-weekly-cashback__section-description {
    color: var(--text-dark);
}

.page-promotions-weekly-cashback__intro-section a,
.page-promotions-weekly-cashback__benefits-section a,
.page-promotions-weekly-cashback__terms-conditions a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-promotions-weekly-cashback__hero-section {
    padding: 100px 0;
    text-align: center;
    background-image: url('[GALLERY:hero:1920x1080:uc8 casino,weekly cashback,promotion banner,golden coins,dark background]'); /* Placeholder for hero background */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.page-promotions-weekly-cashback__hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for better text contrast */
    z-index: -1;
}

.page-promotions-weekly-cashback__hero-title {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions-weekly-cashback__hero-description {
    font-size: 1.3em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* CTA Buttons */
.page-promotions-weekly-cashback__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions-weekly-cashback__btn-primary,
.page-promotions-weekly-cashback__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;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%;
}

.page-promotions-weekly-cashback__btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.page-promotions-weekly-cashback__btn-primary:hover {
    background-color: #c9a300; /* Darken accent color */
    border-color: #c9a300; /* Darken accent color */
}

.page-promotions-weekly-cashback__btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.page-promotions-weekly-cashback__btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Intro Section */
.page-promotions-weekly-cashback__intro-section {
    padding: 60px 0;
}

.page-promotions-weekly-cashback__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-promotions-weekly-cashback__text-block {
    flex: 1;
}

.page-promotions-weekly-cashback__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-promotions-weekly-cashback__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions-weekly-cashback__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* How It Works Section */
.page-promotions-weekly-cashback__how-it-works {
    background-color: var(--bg-dark-section);
    padding: 80px 0;
    color: var(--text-light);
}

.page-promotions-weekly-cashback__how-it-works .page-promotions-weekly-cashback__section-title {
    color: var(--accent-color);
}

.page-promotions-weekly-cashback__how-it-works .page-promotions-weekly-cashback__section-description {
    color: var(--text-light);
}

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

.page-promotions-weekly-cashback__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-weekly-cashback__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-promotions-weekly-cashback__step-title {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-promotions-weekly-cashback__step-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-promotions-weekly-cashback__step-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.page-promotions-weekly-cashback__image-wrapper--full-width {
    margin-top: 60px;
    text-align: center;
}

/* Benefits Section */
.page-promotions-weekly-cashback__benefits-section {
    padding: 80px 0;
}

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

.page-promotions-weekly-cashback__benefit-card {
    background-color: var(--text-light); /* White background for cards */
    color: var(--text-dark); /* Dark text for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-promotions-weekly-cashback__benefit-card:hover {
    transform: translateY(-5px);
}

.page-promotions-weekly-cashback__benefit-card .page-promotions-weekly-cashback__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions-weekly-cashback__benefit-card p {
    font-size: 1em;
    color: #555555;
}

/* Eligible Games Section */
.page-promotions-weekly-cashback__eligible-games {
    background-color: var(--bg-dark-section);
    padding: 80px 0;
    color: var(--text-light);
}

.page-promotions-weekly-cashback__eligible-games .page-promotions-weekly-cashback__section-title {
    color: var(--accent-color);
}

.page-promotions-weekly-cashback__eligible-games .page-promotions-weekly-cashback__section-description {
    color: var(--text-light);
}

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

.page-promotions-weekly-cashback__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-weekly-cashback__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-promotions-weekly-cashback__game-card .page-promotions-weekly-cashback__card-title {
    font-size: 1.4em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.page-promotions-weekly-cashback__game-card .page-promotions-weekly-cashback__card-title a {
    color: var(--accent-color);
    text-decoration: none;
}

.page-promotions-weekly-cashback__game-card .page-promotions-weekly-cashback__card-title a:hover {
    text-decoration: underline;
}

.page-promotions-weekly-cashback__game-card p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Terms and Conditions Section */
.page-promotions-weekly-cashback__terms-conditions {
    padding: 80px 0;
}

.page-promotions-weekly-cashback__terms-list {
    list-style: disc;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding-left: 25px;
    color: var(--text-dark);
}

.page-promotions-weekly-cashback__terms-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* FAQ Section */
.page-promotions-weekly-cashback__faq-section {
    background-color: var(--bg-dark-section);
    padding: 80px 0;
    color: var(--text-light);
}

.page-promotions-weekly-cashback__faq-section .page-promotions-weekly-cashback__section-title {
    color: var(--accent-color);
}

.page-promotions-weekly-cashback__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-promotions-weekly-cashback__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-promotions-weekly-cashback__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-promotions-weekly-cashback__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions-weekly-cashback__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

/* CTA Banner Section */
.page-promotions-weekly-cashback__cta-banner {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: var(--text-light);
    text-align: center;
}

.page-promotions-weekly-cashback__cta-banner .page-promotions-weekly-cashback__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-promotions-weekly-cashback__cta-content {
    max-width: 700px;
}

.page-promotions-weekly-cashback__cta-title {
    font-size: 2.8em;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions-weekly-cashback__cta-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
}

.page-promotions-weekly-cashback__cta-image-wrapper {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .page-promotions-weekly-cashback__cta-banner .page-promotions-weekly-cashback__container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .page-promotions-weekly-cashback__cta-content {
        text-align: left;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-promotions-weekly-cashback__hero-title {
        font-size: 2.8em;
    }

    .page-promotions-weekly-cashback__section-title {
        font-size: 2em;
    }

    .page-promotions-weekly-cashback__content-grid {
        flex-direction: column;
    }

    .page-promotions-weekly-cashback__image-wrapper {
        margin-top: 30px;
    }

    .page-promotions-weekly-cashback__step-grid,
    .page-promotions-weekly-cashback__benefits-grid,
    .page-promotions-weekly-cashback__game-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .page-promotions-weekly-cashback__hero-section {
        padding: 80px 0;
    }

    .page-promotions-weekly-cashback__hero-title {
        font-size: 2.2em;
    }

    .page-promotions-weekly-cashback__hero-description {
        font-size: 1em;
    }

    .page-promotions-weekly-cashback__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions-weekly-cashback__btn-primary,
    .page-promotions-weekly-cashback__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions-weekly-cashback__section-title {
        font-size: 1.8em;
    }

    .page-promotions-weekly-cashback__section-description {
        font-size: 0.95em;
    }

    .page-promotions-weekly-cashback__intro-section,
    .page-promotions-weekly-cashback__how-it-works,
    .page-promotions-weekly-cashback__benefits-section,
    .page-promotions-weekly-cashback__eligible-games,
    .page-promotions-weekly-cashback__terms-conditions,
    .page-promotions-weekly-cashback__faq-section,
    .page-promotions-weekly-cashback__cta-banner {
        padding: 40px 0;
    }

    .page-promotions-weekly-cashback__step-item,
    .page-promotions-weekly-cashback__benefit-card,
    .page-promotions-weekly-cashback__game-card {
        padding: 20px;
    }

    .page-promotions-weekly-cashback__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .page-promotions-weekly-cashback__step-title {
        font-size: 1.3em;
    }

    .page-promotions-weekly-cashback__card-title {
        font-size: 1.3em;
    }

    .page-promotions-weekly-cashback__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-promotions-weekly-cashback__cta-title {
        font-size: 2em;
    }

    .page-promotions-weekly-cashback__cta-description {
        font-size: 1em;
    }
}

/* JavaScript for FAQ Toggle */
.page-promotions-weekly-cashback__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 25px;
    background-color: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
}

.page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-answer {
    max-height: 200px; /* Adjust based on expected content height */
    padding: 15px 25px 20px;
}

.page-promotions-weekly-cashback__faq-answer p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.page-promotions-weekly-cashback__faq-answer strong {
    color: var(--accent-color);
}