:root {
    --page-bg: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
}

.page-responsible-gambling {
    background-color: var(--page-bg); /* Body background is handled by shared.css var(--background-color) */
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, relying on body for header offset */
    background-color: var(--card-bg); /* Darker background for hero */
    overflow: hidden; /* Ensure nothing overflows */
}

.page-responsible-gambling__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-responsible-gambling__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap image slightly for design, but text is below */
    position: relative;
    z-index: 1; /* Ensure content is above any subtle image bleed */
    background-color: var(--card-bg); /* Background for text area */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-responsible-gambling__intro-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* CTA Button - Primary Style */
.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* General Content Sections */
.page-responsible-gambling__content-section {
    padding: 60px 20px;
    background-color: var(--page-bg);
}

.page-responsible-gambling__dark-section {
    background-color: var(--card-bg);
}

.page-responsible-gambling__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Inner padding for container */
}

.page-responsible-gambling__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-responsible-gambling__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-responsible-gambling__text-block {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-responsible-gambling__text-block p {
    margin-bottom: 15px;
}

.page-responsible-gambling__sub-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Image with Text Layouts */
.page-responsible-gambling__image-text-block,
.page-responsible-gambling__text-image-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-responsible-gambling__image-text-block .page-responsible-gambling__text-block,
.page-responsible-gambling__text-image-block .page-responsible-gambling__text-block {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
}

.page-responsible-gambling__content-image {
    flex: 0 0 auto; /* Don't grow/shrink by default */
    max-width: 50%; /* Max width for image in desktop layout */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element */
    object-fit: cover;
}

.page-responsible-gambling__image-text-block .page-responsible-gambling__content-image {
    order: 2; /* Image on right */
}
.page-responsible-gambling__text-image-block .page-responsible-gambling__content-image {
    order: 1; /* Image on left */
}
.page-responsible-gambling__image-text-block .page-responsible-gambling__text-block {
    order: 1;
}
.page-responsible-gambling__text-image-block .page-responsible-gambling__text-block {
    order: 2;
}

/* Lists */
.page-responsible-gambling__list,
.page-responsible-gambling__numbered-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-responsible-gambling__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-responsible-gambling__list li::before {
    content: '•'; /* Bullet point */
    position: absolute;
    left: 0;
    color: var(--gold-color);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-responsible-gambling__numbered-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-responsible-gambling__numbered-list li::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
    position: absolute;
    left: 0;
    color: var(--gold-color);
    font-weight: bold;
    font-size: 1em;
    line-height: 1;
}

/* Secondary Button Style */
.page-responsible-gambling__btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 13px 28px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 600;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    padding: 60px 20px;
    background-color: var(--card-bg);
}

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

.page-responsible-gambling__faq-item {
    background-color: var(--page-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-responsible-gambling__faq-item details[open] {
    background-color: var(--deep-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main);
    user-select: none;
    list-style: none; /* Remove default marker for details summary */
}

.page-responsible-gambling__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-responsible-gambling__faq-qtext {
    flex-grow: 1;
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-responsible-gambling__faq-item details[open] .page-responsible-gambling__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X */
}

.page-responsible-gambling__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}
.page-responsible-gambling__faq-answer p {
    margin-bottom: 0;
}


/* Call to Action Section */
.page-responsible-gambling__cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--deep-green);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gambling__hero-content {
        margin-top: -50px;
        padding: 30px 20px;
    }

    .page-responsible-gambling__image-text-block,
    .page-responsible-gambling__text-image-block {
        flex-direction: column; /* Stack image and text vertically */
        gap: 30px;
    }
    .page-responsible-gambling__image-text-block .page-responsible-gambling__content-image,
    .page-responsible-gambling__text-image-block .page-responsible-gambling__content-image {
        order: unset; /* Reset order for stacking */
        max-width: 100%;
    }
    .page-responsible-gambling__image-text-block .page-responsible-gambling__text-block,
    .page-responsible-gambling__text-image-block .page-responsible-gambling__text-block {
        order: unset;
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        padding-bottom: 40px;
    }
    .page-responsible-gambling__hero-image-wrapper {
        max-height: 300px;
    }
    .page-responsible-gambling__hero-content {
        margin-top: -30px;
        padding: 20px 15px;
    }

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

    .page-responsible-gambling__intro-text {
        font-size: 1em;
    }

    .page-responsible-gambling__cta-button,
    .page-responsible-gambling__btn-secondary {
        font-size: 1em;
        padding: 12px 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-responsible-gambling__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button group */
    }

    .page-responsible-gambling__content-section,
    .page-responsible-gambling__faq-section,
    .page-responsible-gambling__cta-section {
        padding: 40px 15px;
    }

    .page-responsible-gambling__container {
        padding: 0; /* Remove inner padding as section already has it */
    }

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

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

    /* Images responsiveness */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that might hold images/videos/buttons */
    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__hero-section,
    .page-responsible-gambling__hero-content,
    .page-responsible-gambling__image-text-block,
    .page-responsible-gambling__text-image-block,
    .page-responsible-gambling__faq-list,
    .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; /* Prevent horizontal scroll */
    }
    
    .page-responsible-gambling__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}