/* style/promotions.css */
/* Base styles for the promotions page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-promotions__text-block--light {
    color: #ffffff;
}

.page-promotions__text-link {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__text-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #1a1a1a; /* A slightly lighter dark background for the hero */
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim the image to make text readable */
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: 1.3em;
    color: #f8f8f8;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't make button too wide */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
    background-color: #1e87b8;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-top: 15px;
}

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Grid Layout for Offer Types */
.page-promotions__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); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a row have same height */
    box-sizing: border-box;
    color: #f0f0f0; /* Light text for card content */
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter is applied */
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-promotions__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-promotions__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: left;
}

.page-promotions__list li {
    margin-bottom: 5px;
}

.page-promotions__game-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-promotions__game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    color: #f0f0f0;
}

.page-promotions__game-card:hover {
    transform: translateY(-3px);
}

.page-promotions__game-card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-promotions__game-card-text {
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* How-to-claim steps */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.07);
    border-left: 5px solid #26A9E0;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__step-description {
    font-size: 1.1em;
    color: #f0f0f0;
}

/* Terms and Conditions */
.page-promotions__terms-conditions .page-promotions__list {
    list-style-type: decimal;
    margin-left: 25px;
    text-align: left;
    color: #f0f0f0;
}

.page-promotions__terms-conditions .page-promotions__list li {
    margin-bottom: 10px;
}

.page-promotions__terms-conditions .page-promotions__list strong {
    color: #26A9E0;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.2em;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
    color: #FFFFFF;
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Important for JS to work reliably */
    padding: 15px 25px 25px; /* Add bottom padding when open */
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 1.05em;
    color: #f0f0f0;
}

/* Bottom CTA */
.page-promotions__cta-bottom {
    padding: 80px 0;
}

.page-promotions__cta-bottom .page-promotions__container {
    background-color: #26A9E0; /* Brand color background */
    border-radius: 10px;
    padding: 50px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: #FFFFFF;
    font-size: 2.8em;
}

.page-promotions__cta-bottom .page-promotions__text-block {
    color: #f0f0f0;
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
    .page-promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions__hero-content {
        padding: 30px 20px;
    }
    .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__text-block {
        font-size: 1em;
    }
    .page-promotions__grid,
    .page-promotions__game-offers-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-promotions__card,
    .page-promotions__game-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-promotions__card-image {
        height: auto; /* Allow height to adjust */
    }
    .page-promotions__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px; /* Adjust padding for smaller screens */
    }
    .page-promotions__card .page-promotions__cta-button {
        margin-top: 10px; /* Adjust spacing */
    }
    .page-promotions__cta-bottom .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__cta-bottom .page-promotions__text-block {
        font-size: 1em;
    }

    /* Mobile image responsive adaptations */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Override min-width for mobile */
        min-height: unset !important; /* Override min-height for mobile */
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__hero-content,
    .page-promotions__grid,
    .page-promotions__game-offers-grid,
    .page-promotions__game-card,
    .page-promotions__step-item,
    .page-promotions__faq-item,
    .page-promotions__faq-question,
    .page-promotions__faq-answer,
    .page-promotions__cta-bottom .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__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;
      display: flex;
      flex-direction: column; /* Stack buttons vertically on mobile */
    }
    .page-promotions__cta-button {
        margin-bottom: 10px; /* Spacing between stacked buttons */
    }
    .page-promotions__cta-button:last-child {
        margin-bottom: 0;
    }
}