/* style/resources-responsible-gambling.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --background-dark: #000000;
    --background-light: #ffffff;
    --login-button-color: #EA7C07;
}

.page-resources-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Body background is dark, so text should be light */
    background-color: var(--background-dark);
}

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

.page-resources-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted for better visual */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--light-text-color);
    padding-top: var(--header-offset, 120px);
}

.page-resources-responsible-gambling__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-resources-responsible-gambling__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.page-resources-responsible-gambling__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.page-resources-responsible-gambling__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-responsible-gambling__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-resources-responsible-gambling__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

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

.page-resources-responsible-gambling__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-resources-responsible-gambling__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-resources-responsible-gambling__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-resources-responsible-gambling__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Sections */
.page-resources-responsible-gambling__dark-bg {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 60px 0;
}

.page-resources-responsible-gambling__light-bg {
    background-color: var(--background-light);
    color: var(--dark-text-color);
    padding: 60px 0;
}

.page-resources-responsible-gambling__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-resources-responsible-gambling__btn-primary,
.page-resources-responsible-gambling__hero-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-responsible-gambling__btn-primary:hover,
.page-resources-responsible-gambling__hero-button:hover {
    background-color: #1e87b3;
    transform: translateY(-2px);
}

.page-resources-responsible-gambling__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-responsible-gambling__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.page-resources-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;
}

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

.page-resources-responsible-gambling__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-resources-responsible-gambling__faq-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.page-resources-responsible-gambling__faq-question:hover {
    color: var(--primary-color);
}

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

.page-resources-responsible-gambling__faq-item.active .page-resources-responsible-gambling__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--light-text-color);
}

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

.page-resources-responsible-gambling__faq-answer p {
    margin-bottom: 0;
}

/* Color Contrast Fixes for light background sections */
.page-resources-responsible-gambling__contrast-fix .page-resources-responsible-gambling__section-title,
.page-resources-responsible-gambling__contrast-fix .page-resources-responsible-gambling__sub-title {
    color: var(--primary-color);
}

.page-resources-responsible-gambling__contrast-fix .page-resources-responsible-gambling__paragraph,
.page-resources-responsible-gambling__contrast-fix .page-resources-responsible-gambling__list li {
    color: var(--dark-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-responsible-gambling__hero-title {
        font-size: 2.8em;
    }
    .page-resources-responsible-gambling__section-title {
        font-size: 2em;
    }
    .page-resources-responsible-gambling__sub-title {
        font-size: 1.6em;
    }
    .page-resources-responsible-gambling__paragraph,
    .page-resources-responsible-gambling__list li,
    .page-resources-responsible-gambling__faq-question {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources-responsible-gambling {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-responsible-gambling__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-responsible-gambling__hero-title {
        font-size: 2em;
    }
    .page-resources-responsible-gambling__hero-description {
        font-size: 1em;
    }
    .page-resources-responsible-gambling__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources-responsible-gambling__sub-title {
        font-size: 1.4em;
    }
    .page-resources-responsible-gambling__container {
        padding: 15px;
    }
    .page-resources-responsible-gambling__btn-primary,
    .page-resources-responsible-gambling__btn-secondary,
    .page-resources-responsible-gambling__hero-button,
    .page-resources-responsible-gambling a[class*="button"],
    .page-resources-responsible-gambling a[class*="btn"] {
        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;
    }
    .page-resources-responsible-gambling__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-responsible-gambling__section,
    .page-resources-responsible-gambling__card,
    .page-resources-responsible-gambling__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-responsible-gambling__faq-question {
        padding: 15px;
    }
    .page-resources-responsible-gambling__faq-answer {
        padding: 0 15px;
    }
    .page-resources-responsible-gambling__faq-item.active .page-resources-responsible-gambling__faq-answer {
        padding: 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-responsible-gambling__hero-title {
        font-size: 1.8em;
    }
    .page-resources-responsible-gambling__hero-description {
        font-size: 0.9em;
    }
    .page-resources-responsible-gambling__btn-primary,
    .page-resources-responsible-gambling__btn-secondary,
    .page-resources-responsible-gambling__hero-button {
        padding: 12px 20px;
    }
}