.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Assuming shared.css defines --dark-bg-1 as a dark color */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 120px 0 80px; /* Adjusted for header offset */
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-section.page-promotions__dark-bg {
    background-color: #26A9E0; /* Use brand color as a dark background */
    color: #ffffff;
}

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-promotions__hero-description {
    font-size: 1.15em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
}

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

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border-color: #26A9E0;
}

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b6;
    border-color: #1e87b6;
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 15px;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-promotions__btn-small:hover {
    background-color: #1e87b6;
}

/* General Section Styles */
.page-promotions__featured-promos,
.page-promotions__exclusive-app-offers,
.page-promotions__how-to-claim,
.page-promotions__responsible-gaming-promo,
.page-promotions__faq {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-promotions__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background */
}

.page-promotions__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px;
    color: inherit;
}

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

.page-promotions__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-promotions__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-promotions__card-link {
    text-decoration: none;
    color: #26A9E0;
    transition: color 0.3s ease;
}

.page-promotions__card-link:hover {
    color: #1e87b6;
    text-decoration: underline;
}

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

/* Exclusive App Offers */
.page-promotions__exclusive-app-offers .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    text-align: left;
}

.page-promotions__text-content {
    flex: 1;
    color: #ffffff;
}

.page-promotions__sub-title {
    font-size: 2em;
    margin-bottom: 25px;
    color: #ffffff;
}

.page-promotions__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-promotions__feature-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-promotions__list-item-title {
    color: #ffffff;
}

.page-promotions__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-promotions__download-btn {
    margin-top: 30px;
}

/* How to Claim */
.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-description {
    color: #333333;
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__step-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #333333;
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
    background-color: rgba(38, 169, 224, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-promotions__step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0;
}

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

/* Responsible Gaming */
.page-promotions__responsible-gaming-promo {
    background-color: #000000; /* Use black for strong contrast */
    color: #ffffff;
}

.page-promotions__responsible-gaming-promo .page-promotions__section-title,
.page-promotions__responsible-gaming-promo .page-promotions__section-description {
    color: #ffffff;
}

/* FAQ Section */
.page-promotions__faq .page-promotions__section-title,
.page-promotions__faq .page-promotions__section-description {
    color: #333333;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-promotions__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: #26A9E0;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }

    .page-promotions__section-title {
        font-size: 2em;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-promotions__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-promotions__image-content {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-promotions__hero-title {
        font-size: 2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        padding: 12px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__featured-promos,
    .page-promotions__exclusive-app-offers,
    .page-promotions__how-to-claim,
    .page-promotions__responsible-gaming-promo,
    .page-promotions__faq {
        padding: 60px 0;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px; /* Add padding to grid container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__promo-card,
    .page-promotions__step-card {
        padding: 20px;
    }

    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__exclusive-app-offers .page-promotions__container,
    .page-promotions__how-to-claim .page-promotions__container,
    .page-promotions__responsible-gaming-promo .page-promotions__container,
    .page-promotions__faq .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }

    .page-promotions__feature-list li {
        font-size: 1em;
    }
}