.page-resources-safe-gambling-responsible-gaming {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Body background is light */
}

.page-resources-safe-gambling-responsible-gaming__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden; /* For hero image */
}

.page-resources-safe-gambling-responsible-gaming__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-resources-safe-gambling-responsible-gaming__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-safe-gambling-responsible-gaming__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-resources-safe-gambling-responsible-gaming__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources-safe-gambling-responsible-gaming__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: none; /* No filter to change color */
}

.page-resources-safe-gambling-responsible-gaming__section {
    padding: 80px 20px;
    text-align: center;
}

.page-resources-safe-gambling-responsible-gaming__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources-safe-gambling-responsible-gaming__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #017439; /* Brand primary color for titles on light background */
}

.page-resources-safe-gambling-responsible-gaming__dark-bg .page-resources-safe-gambling-responsible-gaming__section-title {
    color: #ffffff; /* White for titles on dark background */
}

.page-resources-safe-gambling-responsible-gaming__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-resources-safe-gambling-responsible-gaming__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources-safe-gambling-responsible-gaming__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: left;
}

.page-resources-safe-gambling-responsible-gaming__highlight {
    font-weight: bold;
    color: #017439;
}
.page-resources-safe-gambling-responsible-gaming__dark-bg .page-resources-safe-gambling-responsible-gaming__highlight {
    color: #FFFF00; /* Highlight on dark background */
}

.page-resources-safe-gambling-responsible-gaming__btn-primary,
.page-resources-safe-gambling-responsible-gaming__btn-secondary,
.page-resources-safe-gambling-responsible-gaming__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For button responsiveness */
    box-sizing: border-box; /* For button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-safe-gambling-responsible-gaming__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
    margin: 10px;
}

.page-resources-safe-gambling-responsible-gaming__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-resources-safe-gambling-responsible-gaming__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    margin: 10px;
}

.page-resources-safe-gambling-responsible-gaming__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2c;
    border-color: #005f2c;
}

/* Video Section */
.page-resources-safe-gambling-responsible-gaming__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 800px; /* Max width for video */
    background-color: #000;
}

.page-resources-safe-gambling-responsible-gaming__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: none; /* No filter to change color */
    cursor: pointer;
}

.page-resources-safe-gambling-responsible-gaming__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Make it clickable over video controls */
    cursor: pointer;
    background: transparent; /* Ensure overlay is invisible */
}

/* Principles Grid */
.page-resources-safe-gambling-responsible-gaming__principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-resources-safe-gambling-responsible-gaming__principle-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-resources-safe-gambling-responsible-gaming__principle-card .page-resources-safe-gambling-responsible-gaming__card-title {
    color: #FFFF00; /* Yellow for titles on dark bg */
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-resources-safe-gambling-responsible-gaming__principle-card .page-resources-safe-gambling-responsible-gaming__card-text {
    color: #ffffff;
    font-size: 1em;
    line-height: 1.6;
}

/* Tools Grid */
.page-resources-safe-gambling-responsible-gaming__tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-resources-safe-gambling-responsible-gaming__tool-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0; /* Added for contrast */
}

.page-resources-safe-gambling-responsible-gaming__tool-card .page-resources-safe-gambling-responsible-gaming__card-title {
    color: #017439;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-resources-safe-gambling-responsible-gaming__tool-card .page-resources-safe-gambling-responsible-gaming__card-text {
    color: #333333;
    font-size: 1em;
    line-height: 1.6;
}

/* Images within content */
.page-resources-safe-gambling-responsible-gaming__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 60px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    filter: none; /* No filter to change color */
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

/* List styles */
.page-resources-safe-gambling-responsible-gaming__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-resources-safe-gambling-responsible-gaming__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.7;
    color: inherit; /* Inherit color from parent section */
}

.page-resources-safe-gambling-responsible-gaming__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFFF00; /* Yellow checkmark on dark bg */
    font-weight: bold;
    font-size: 1.2em;
}

.page-resources-safe-gambling-responsible-gaming__light-bg .page-resources-safe-gambling-responsible-gaming__list-item::before {
    color: #017439; /* Green checkmark on light bg */
}

/* FAQ Section */
.page-resources-safe-gambling-responsible-gaming__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-resources-safe-gambling-responsible-gaming__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-resources-safe-gambling-responsible-gaming__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f0f0f0;
    list-style: none; /* For details/summary */
}

.page-resources-safe-gambling-responsible-gaming__faq-question::-webkit-details-marker {
    display: none;
}

.page-resources-safe-gambling-responsible-gaming__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-resources-safe-gambling-responsible-gaming__faq-item[open] .page-resources-safe-gambling-responsible-gaming__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-resources-safe-gambling-responsible-gaming__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #333333;
}

/* CTA Section */
.page-resources-safe-gambling-responsible-gaming__cta-section {
    padding: 100px 20px;
    background-color: #017439;
    color: #ffffff;
}

.page-resources-safe-gambling-responsible-gaming__cta-content {
    max-width: 900px;
}

.page-resources-safe-gambling-responsible-gaming__cta-section .page-resources-safe-gambling-responsible-gaming__section-title {
    color: #ffffff;
}

.page-resources-safe-gambling-responsible-gaming__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    width: 100%; /* For responsiveness */
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    overflow: hidden; /* For responsiveness */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-safe-gambling-responsible-gaming__hero-title {
        font-size: 2.8em;
    }
    .page-resources-safe-gambling-responsible-gaming__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-safe-gambling-responsible-gaming__hero-section {
        flex-direction: column;
        min-height: auto;
        padding-bottom: 40px;
    }
    .page-resources-safe-gambling-responsible-gaming__hero-title {
        font-size: 2.2em;
    }
    .page-resources-safe-gambling-responsible-gaming__hero-description {
        font-size: 1em;
    }
    .page-resources-safe-gambling-responsible-gaming__section {
        padding: 60px 15px;
    }
}