.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for consistency with body default */
}

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px; /* Ensure hero is visible */
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-responsible-gambling__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
}

.page-responsible-gambling__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-responsible-gambling__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* General Container & Layout */
.page-responsible-gambling__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-responsible-gambling__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.page-responsible-gambling__text-content {
    flex: 1;
}

.page-responsible-gambling__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Sections */
.page-responsible-gambling__introduction,
.page-responsible-gambling__tools,
.page-responsible-gambling__seeking-help,
.page-responsible-gambling__parental-control,
.page-responsible-gambling__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-responsible-gambling__dark-section {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color as dark background */
    color: #ffffff;
}

.page-responsible-gambling__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary brand color for titles on light background */
    text-align: center;
    margin-bottom: 40px;
}

.page-responsible-gambling__section-title--white {
    color: #ffffff; /* White title on dark background */
}

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

.page-responsible-gambling__text-block--white {
    color: #ffffff;
}

/* Grid Layout */
.page-responsible-gambling__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Cards */
.page-responsible-gambling__card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__card--dark {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-responsible-gambling__card-title {
    font-size: 1.5em;
    color: #017439; /* Primary color on light card */
    margin-bottom: 15px;
}

.page-responsible-gambling__card-title--white {
    color: #ffffff; /* White title on dark card */
}

.page-responsible-gambling__card-text {
    font-size: 1em;
    color: #555555;
}

.page-responsible-gambling__card-text--white {
    color: #f0f0f0;
}

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

.page-responsible-gambling__list-item {
    background-color: #f9f9f9;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #017439;
    border-radius: 4px;
    font-size: 1.05em;
    color: #333333;
}

/* Buttons */
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary,
.page-responsible-gambling__hero-button,
.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__hero-button {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-responsible-gambling__btn-primary:hover,
.page-responsible-gambling__hero-button:hover {
    background-color: #005a2b; /* Darker green on hover */
    border-color: #005a2b;
}

.page-responsible-gambling__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Primary brand color text */
    border: 2px solid #017439;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2b;
    border-color: #005a2b;
}

.page-responsible-gambling__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Special button colors for Register/Login if present */
.page-responsible-gambling__btn-register {
    background-color: #C30808; /* Custom red for register */
    color: #FFFF00; /* Custom yellow font */
    border: 2px solid #C30808;
}

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

.page-responsible-gambling__btn-login {
    background-color: #C30808; /* Custom red for login */
    color: #FFFF00; /* Custom yellow font */
    border: 2px solid #C30808;
}

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

/* FAQ Section */
.page-responsible-gambling__faq-list {
    margin-top: 30px;
}

.page-responsible-gambling__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.page-responsible-gambling__faq-question:hover {
    background-color: #005a2b; /* Darker green on hover */
}

.page-responsible-gambling__faq-title {
    margin: 0;
    color: #ffffff;
}

.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); /* Change to '-' like effect */
}

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

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

.page-responsible-gambling__faq-answer p {
    margin: 0;
    font-size: 1.05em;
}

/* CTA Section */
.page-responsible-gambling__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

/* 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__container--flex {
        flex-direction: column;
        text-align: center;
    }

    .page-responsible-gambling__container--reverse {
        flex-direction: column; /* On smaller screens, reverse order for consistency */
    }

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

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        padding: 40px 15px;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .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;
        margin-bottom: 30px;
    }

    .page-responsible-gambling__text-block {
        font-size: 1em;
    }

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

    .page-responsible-gambling__card {
        padding: 25px;
    }

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

    .page-responsible-gambling__list-item {
        font-size: 1em;
        padding: 12px 15px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary,
    .page-responsible-gambling__hero-button,
    .page-responsible-gambling__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Add margin between stacked buttons */
    }
    
    .page-responsible-gambling__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

    .page-responsible-gambling__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image and video responsive styles */
    .page-responsible-gambling img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-responsible-gambling__image-wrapper,
    .page-responsible-gambling__video-section,
    .page-responsible-gambling__video-container,
    .page-responsible-gambling__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

/* Ensure images don't have color filters */
.page-responsible-gambling img {
    filter: none;
}