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

/* Base styles for the page content */
.page-resources-responsible-gaming {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Default light background */
}

/* Hero Section */
.page-resources-responsible-gaming__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden;
}

.page-resources-responsible-gaming__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-resources-responsible-gaming__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources-responsible-gaming__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-resources-responsible-gaming__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources-responsible-gaming__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.2; /* Subtle background video */
}

.page-resources-responsible-gaming__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Above video and below content */
    cursor: pointer;
}

/* Content Area */
.page-resources-responsible-gaming__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text */
}

.page-resources-responsible-gaming__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color for headings */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-resources-responsible-gaming__content-area p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Commitment Grid */
.page-resources-responsible-gaming__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-resources-responsible-gaming__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-resources-responsible-gaming__card:hover {
    transform: translateY(-5px);
}

.page-resources-responsible-gaming__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.page-resources-responsible-gaming__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

/* Lists */
.page-resources-responsible-gaming__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-resources-responsible-gaming__list li {
    margin-bottom: 10px;
}

/* CTA Buttons */
.page-resources-responsible-gaming__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 10px 10px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-resources-responsible-gaming__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-resources-responsible-gaming__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-resources-responsible-gaming__btn-secondary:hover {
    background-color: #e0f4ff;
    color: #1e87c0;
    border-color: #1e87c0;
}

.page-resources-responsible-gaming__last-cta {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

/* FAQ Section */
.page-resources-responsible-gaming__faq-container {
    margin-top: 30px;
}

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

.page-resources-responsible-gaming__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
    color: #26A9E0; /* Brand primary color for questions */
}

.page-resources-responsible-gaming__faq-question:hover {
    background-color: #eaf8ff;
}

.page-resources-responsible-gaming__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.page-resources-responsible-gaming__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-resources-responsible-gaming__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333; /* Dark text for answers */
    text-align: justify;
}

.page-resources-responsible-gaming__faq-item.active .page-resources-responsible-gaming__faq-answer {
    max-height: 1000px !important;
    padding: 15px 20px;
}

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

@media (max-width: 768px) {
    /* General mobile content area adjustments */
    .page-resources-responsible-gaming__content-area,
    .page-resources-responsible-gaming__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-resources-responsible-gaming__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }
    .page-resources-responsible-gaming__hero-title {
        font-size: 2em;
    }
    .page-resources-responsible-gaming__hero-description {
        font-size: 1em;
    }
    .page-resources-responsible-gaming__hero-video-wrapper {
        display: none; /* Hide background video on small screens for performance/UX */
    }

    /* Images */
    .page-resources-responsible-gaming img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Videos */
    .page-resources-responsible-gaming video,
    .page-resources-responsible-gaming__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-responsible-gaming__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons */
    .page-resources-responsible-gaming__cta-button {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px; /* Add spacing between stacked buttons */
        max-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-gaming__cta-button:last-child {
        margin-bottom: 0;
    }

    /* Button group for multiple buttons */
    .page-resources-responsible-gaming__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Cards */
    .page-resources-responsible-gaming__commitment-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-responsible-gaming__card {
        padding: 20px;
    }
    .page-resources-responsible-gaming__card-image {
        height: 180px;
    }

    /* FAQ */
    .page-resources-responsible-gaming__faq-question {
        padding: 12px 15px;
    }
    .page-resources-responsible-gaming__faq-question h3 {
        font-size: 1.1em;
    }
    .page-resources-responsible-gaming__faq-answer {
        padding: 0 15px;
    }
    .page-resources-responsible-gaming__faq-item.active .page-resources-responsible-gaming__faq-answer {
        padding: 12px 15px;
    }
}

/* Ensure no image filters are used */
.page-resources-responsible-gaming img {
    filter: none; /* Explicitly disable any potential filters */
}