/* style/promotions.css */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* White title on dark background */
}

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden;
    background-color: #0d0d0d; /* Dark background for hero */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Slightly transparent to make text readable */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #ffffff; /* White text for contrast on dark red */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
}

.page-promotions__btn-small:hover {
    background-color: #02944b;
    border-color: #02944b;
}

/* Image styling */
.page-promotions__image-full-width {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 8px;
}

/* Card Grid */
.page-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background on dark body */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-promotions__card-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    background-color: #111111; /* Slightly lighter dark background */
}

.page-promotions__accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Very light transparent background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.03);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439; /* Brand green for toggle icon */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.8;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__responsible-gaming-note {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-top: 30px;
}

.page-promotions__responsible-gaming-note a {
    color: #017439;
    text-decoration: underline;
}

.page-promotions__responsible-gaming-note a:hover {
    color: #02944b;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    background-color: #0a0a0a; /* Darker background */
}

.page-promotions__step-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    text-align: left;
    padding-left: 70px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 25px;
    top: 25px;
    background-color: #017439; /* Brand green */
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-promotions__step-item p {
    color: #e0e0e0;
}

.page-promotions__step-item a {
    color: #017439;
    text-decoration: underline;
}

.page-promotions__step-item a:hover {
    color: #02944b;
}

/* Final CTA Section */
.page-promotions__cta-final {
    background-color: #017439; /* Brand green background */
    padding: 80px 0;
}

.page-promotions__cta-final .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__cta-final .page-promotions__section-description {
    color: #ffffff;
}

.page-promotions__cta-final .page-promotions__cta-buttons {
    margin-top: 40px;
}

.page-promotions__cta-final .page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    border-color: #C30808;
    color: #ffffff;
}

.page-promotions__cta-final .page-promotions__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-promotions__cta-final .page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

.page-promotions__cta-final .page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is applied */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
    }
    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__card-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image {
        height: 200px;
    }
    .page-promotions__card-content {
        padding: 20px;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
    .page-promotions__step-item {
        padding: 20px;
        padding-left: 60px;
    }
    .page-promotions__step-item::before {
        left: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    .page-promotions__image-full-width,
    .page-promotions__card-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-final {
      padding: 60px 0;
    }
}

/* Ensure no filter on images */
.page-promotions img {
    filter: none !important;
}

/* Contrast fixes */
.page-promotions__dark-section {
  background: #017439; /* Brand green */
  color: #ffffff;
}
.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__section-description {
  color: #ffffff;
}