.page-responsible-gambling {
    color: #ffffff; /* Body background is dark, so default text is light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-responsible-gambling__dark-bg {
    background-color: #1a1a2e; /* Inherited from body or dark sections */
    color: #ffffff;
}

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

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-responsible-gambling__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

.page-responsible-gambling__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-responsible-gambling__hero-content {
    order: 2; /* Content after image */
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    z-index: 10;
    position: relative;
    background-color: rgba(26, 26, 46, 0.7); /* Slightly transparent background for text on dark hero */
    border-radius: 8px;
    margin-top: -80px; /* Pull up slightly over image for visual flow */
}

.page-responsible-gambling__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-responsible-gambling__description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

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

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

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

.page-responsible-gambling__btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #1e87b8;
}

/* Section Titles */
.page-responsible-gambling__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Intro Section */
.page-responsible-gambling__intro-section p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

/* Tools Section */
.page-responsible-gambling__tools-section {
    padding: 80px 0;
}

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

.page-responsible-gambling__tool-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-responsible-gambling__tool-card:hover {
    transform: translateY(-5px);
}

.page-responsible-gambling__tool-icon {
    width: 100%; /* Ensure full width within card */
    max-width: 300px; /* Limit icon size */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-responsible-gambling__tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-responsible-gambling__tool-card p {
    font-size: 1rem;
    color: #f0f0f0;
}

/* Signs Section */
.page-responsible-gambling__signs-section {
    padding: 80px 0;
}

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

.page-responsible-gambling__sign-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 40px); /* 3 items per row on desktop */
    max-width: calc(33% - 40px);
    box-sizing: border-box;
    color: #333333;
}

.page-responsible-gambling__sign-icon {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 3px solid #26A9E0;
}

.page-responsible-gambling__sign-item p {
    font-size: 1rem;
    color: #555555;
}

.page-responsible-gambling__text-center {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
}

/* Help Section */
.page-responsible-gambling__help-section {
    padding: 80px 0;
}

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

.page-responsible-gambling__resource-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-responsible-gambling__resource-card:hover {
    transform: translateY(-5px);
}

.page-responsible-gambling__resource-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-responsible-gambling__resource-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-responsible-gambling__resource-card p {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
}

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

/* Tips Section */
.page-responsible-gambling__tips-section {
    padding: 80px 0;
}

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

.page-responsible-gambling__tip-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-responsible-gambling__tip-card:hover {
    transform: translateY(-5px);
}

.page-responsible-gambling__tip-icon {
    width: 100%;
    max-width: 100px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid #26A9E0;
}

.page-responsible-gambling__tip-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-responsible-gambling__tip-card p {
    font-size: 1rem;
    color: #555555;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    padding: 80px 0;
}

.page-responsible-gambling__faq-list {
    margin-top: 40px;
}

.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;
    background-color: rgba(38, 169, 224, 0.8);
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    user-select: none;
    list-style: none;
}

.page-responsible-gambling__faq-question::-webkit-details-marker {
    display: none;
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-responsible-gambling__faq-answer {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    color: #f0f0f0;
}

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

.page-responsible-gambling__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Final CTA Section */
.page-responsible-gambling__final-cta {
    padding: 80px 0;
    text-align: center;
}

.page-responsible-gambling__final-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555555;
}

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

/* Global image styles */
.page-responsible-gambling img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-content {
        margin-top: -60px;
        padding: 20px;
    }
}

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

    .page-responsible-gambling__hero-section {
        padding-bottom: 40px;
    }

    .page-responsible-gambling__hero-content {
        margin-top: -40px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-responsible-gambling__main-title {
        font-size: 2rem;
    }

    .page-responsible-gambling__description {
        font-size: 1rem;
    }

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

    .page-responsible-gambling__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-responsible-gambling__tools-section,
    .page-responsible-gambling__signs-section,
    .page-responsible-gambling__help-section,
    .page-responsible-gambling__tips-section,
    .page-responsible-gambling__faq-section,
    .page-responsible-gambling__final-cta {
        padding: 40px 0;
    }

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

    .page-responsible-gambling__tools-grid,
    .page-responsible-gambling__help-resources,
    .page-responsible-gambling__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-responsible-gambling__sign-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gambling__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-responsible-gambling__main-title {
        font-size: 1.8rem;
    }

    .page-responsible-gambling__section-title {
        font-size: 1.6rem;
    }

    .page-responsible-gambling__tool-title,
    .page-responsible-gambling__resource-title,
    .page-responsible-gambling__tip-title {
        font-size: 1.3rem;
    }

    .page-responsible-gambling__faq-question {
        font-size: 1rem;
    }
}