.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-responsible-gambling__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
    background-color: #26A9E0; /* Brand primary color for hero */
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-responsible-gambling__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-responsible-gambling__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-responsible-gambling__btn-primary:hover {
    background-color: #d86b00;
}

.page-responsible-gambling__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-responsible-gambling__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand primary color */
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__section-title {
    color: #ffffff;
}

.page-responsible-gambling__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand primary color */
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__sub-title {
    color: #ffffff;
}

.page-responsible-gambling__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-responsible-gambling__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-responsible-gambling__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-responsible-gambling__content-wrapper img {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-responsible-gambling__text-content {
    flex: 1;
    max-width: 50%;
}

.page-responsible-gambling__what-is-section,
.page-responsible-gambling__setting-limits-section,
.page-responsible-gambling__support-resources-section,
.page-responsible-gambling__fair-play-section,
.page-responsible-gambling__cta-bottom-section {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 0;
}

.page-responsible-gambling__self-assessment-section,
.page-responsible-gambling__self-exclusion-section,
.page-responsible-gambling__protecting-minors-section,
.page-responsible-gambling__faq-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 0;
}

.page-responsible-gambling__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-responsible-gambling__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* FAQ Section */
.page-responsible-gambling__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-responsible-gambling__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-responsible-gambling__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    transform: rotate(45deg);
}

.page-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #ffffff;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 1000px !important;
    padding: 20px !important;
}

.page-responsible-gambling__faq-answer .page-responsible-gambling__paragraph {
    margin-bottom: 0;
}

.page-responsible-gambling__cta-bottom-section {
    text-align: center;
    padding: 80px 0;
}

.page-responsible-gambling__cta-container {
    max-width: 900px;
}

.page-responsible-gambling__cta-bottom-section .page-responsible-gambling__paragraph {
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.5em;
    }

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

    .page-responsible-gambling__sub-title {
        font-size: 1.5em;
    }

    .page-responsible-gambling__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-responsible-gambling__content-wrapper img,
    .page-responsible-gambling__text-content {
        max-width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

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

    .page-responsible-gambling__sub-title {
        font-size: 1.3em;
    }

    .page-responsible-gambling__paragraph,
    .page-responsible-gambling__list-item {
        font-size: 1em;
    }

    .page-responsible-gambling__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
    }

    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto 20px auto;
    }

    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__content-wrapper,
    .page-responsible-gambling__hero-cta,
    .page-responsible-gambling__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-responsible-gambling__faq-question {
        padding: 15px;
    }

    .page-responsible-gambling__faq-answer {
        padding: 0 15px;
    }

    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px !important;
    }
    
    .page-responsible-gambling__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}