.page-responsible-gaming {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for white body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might handle body */
}

/* Hero Section */
.page-responsible-gaming__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    background-color: #f8f9fa; /* Light background for hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure no overflow */
}

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

.page-responsible-gaming__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-responsible-gaming__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em); /* Use clamp for H1 font size */
    font-weight: 700;
    color: #26A9E0; /* Brand color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-responsible-gaming__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-responsible-gaming__cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #26A9E0; /* Brand color for primary CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: 2px solid transparent; /* For contrast fix */
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-responsible-gaming__cta-button:hover {
    background-color: #1e87b7; /* Darker shade on hover */
}

/* General Content Section */
.page-responsible-gaming__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #FFFFFF; /* Default light background */
    border-bottom: 1px solid #eeeeee;
}

.page-responsible-gaming__section:last-of-type {
    border-bottom: none;
}

.page-responsible-gaming__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-responsible-gaming__content-block {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-responsible-gaming__content-block--reverse {
    flex-direction: row-reverse;
}

.page-responsible-gaming__text-content,
.page-responsible-gaming__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-responsible-gaming__text-content p {
    margin-bottom: 15px;
    color: #333333;
}

.page-responsible-gaming__text-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333333;
}

.page-responsible-gaming__text-content li {
    margin-bottom: 8px;
    color: #333333;
}

.page-responsible-gaming__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Call to Action Section */
.page-responsible-gaming__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #26A9E0; /* Brand color background for strong CTA */
    color: #ffffff;
}

.page-responsible-gaming__cta-heading {
    font-size: clamp(1.8em, 3vw, 2.5em);
    margin-bottom: 25px;
    font-weight: 700;
}

.page-responsible-gaming__cta-text {
    font-size: 1.1em;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.page-responsible-gaming__btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background-color: #ffffff;
    color: #26A9E0; /* Brand color text for secondary CTA */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #ffffff;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-responsible-gaming__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1e87b7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-responsible-gaming__hero-section,
    .page-responsible-gaming__section,
    .page-responsible-gaming__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-responsible-gaming__hero-image,
    .page-responsible-gaming__image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-responsible-gaming__content-block {
        flex-direction: column;
        gap: 30px;
    }

    .page-responsible-gaming__content-block--reverse {
        flex-direction: column; /* Stacks normally on mobile */
    }

    .page-responsible-gaming__text-content,
    .page-responsible-gaming__image-wrapper {
        min-width: unset;
        width: 100%;
    }

    /* Buttons responsive */
    .page-responsible-gaming__cta-button,
    .page-responsible-gaming__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 15px; /* Add space between stacked buttons */
    }
    
    .page-responsible-gaming__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-responsible-gaming__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
}

/* Specific contrast fixes */
.page-responsible-gaming__dark-section {
  background: #26A9E0;
  color: #ffffff; /* Forced white text */
}

.page-responsible-gaming__dark-section .page-responsible-gaming__section-title {
  color: #ffffff !important; /* Ensure title is white on dark background */
}

.page-responsible-gaming__dark-section .page-responsible-gaming__text-content p,
.page-responsible-gaming__dark-section .page-responsible-gaming__text-content ul,
.page-responsible-gaming__dark-section .page-responsible-gaming__text-content li {
  color: #ffffff;
}

.page-responsible-gaming__btn-primary {
  background: #26A9E0;
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
}

.page-responsible-gaming__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Use brand color ensuring contrast */
  border: 2px solid #26A9E0;
}