.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: var(--dark-bg-1); /* Assuming shared.css defines --dark-bg-1 as a dark color */
}

.page-responsible-gambling__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

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

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

.page-responsible-gambling__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    gap: 40px;
    flex-wrap: wrap;
}

.page-responsible-gambling__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

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

.page-responsible-gambling__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-responsible-gambling__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-responsible-gambling__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    text-align: center;
}

.page-responsible-gambling__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherits from parent section */
}

.page-responsible-gambling__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-responsible-gambling__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-responsible-gambling__card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

.page-responsible-gambling__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-responsible-gambling__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: inherit;
}

.page-responsible-gambling__card-text {
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 5px;
    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;
}

.page-responsible-gambling__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-responsible-gambling__hero-section .page-responsible-gambling__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-responsible-gambling__light-bg .page-responsible-gambling__btn-secondary {
    color: #017439;
    border-color: #017439;
}

.page-responsible-gambling__light-bg .page-responsible-gambling__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-responsible-gambling__btn-link {
    display: inline-block;
    margin-top: 20px;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-responsible-gambling__btn-link:hover {
    color: #005a2d;
    text-decoration: underline;
}

.page-responsible-gambling__button-group {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-responsible-gambling__button-group--center {
    justify-content: center;
}

.page-responsible-gambling__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-responsible-gambling__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__faq-section {
    padding: 60px 20px;
}

.page-responsible-gambling__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

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

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

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: justify;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px 20px;
}

.page-responsible-gambling__faq-answer p {
    margin: 0;
    color: inherit;
}

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

.page-responsible-gambling__cta-content {
    max-width: 800px;
}

.page-responsible-gambling__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-responsible-gambling {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-responsible-gambling__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-responsible-gambling__hero-content {
        max-width: 100%;
        min-width: unset;
    }

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

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

    .page-responsible-gambling__hero-buttons,
    .page-responsible-gambling__button-group,
    .page-responsible-gambling__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gambling__container {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-responsible-gambling__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-responsible-gambling__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-responsible-gambling__grid--two-columns {
        grid-template-columns: 1fr;
    }

    .page-responsible-gambling__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

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

    /* Mobile image and video responsiveness */
    .page-responsible-gambling img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-responsible-gambling video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-responsible-gambling__hero-image-wrapper,
    .page-responsible-gambling__image-wrapper,
    .page-responsible-gambling__video-section,
    .page-responsible-gambling__video-container,
    .page-responsible-gambling__video-wrapper,
    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-responsible-gambling__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px 20px 20px;
    }
}