/* 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; /* Deep gray for text on light background */
    background: #FFFFFF; /* Body background is light */
}

.page-resources-responsible-gaming__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    background: #26A9E0; /* Ensure dark background for hero to contrast with white text */
}

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

.page-resources-responsible-gaming__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 169, 224, 0.7); /* Main color with transparency */
    z-index: 2;
}

.page-resources-responsible-gaming__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #FFFFFF; /* White text on dark overlay */
}

.page-resources-responsible-gaming__main-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-resources-responsible-gaming__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-resources-responsible-gaming__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-responsible-gaming__btn-primary,
.page-resources-responsible-gaming__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    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-resources-responsible-gaming__btn-primary {
    background: #26A9E0; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-resources-responsible-gaming__btn-primary:hover {
    background: #1e87b7; /* Slightly darker main color */
    border-color: #1e87b7;
}

.page-resources-responsible-gaming__btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-resources-responsible-gaming__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

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

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

.page-resources-responsible-gaming__section-title {
    font-size: 2em;
    color: #26A9E0; /* Main brand color for titles */
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.page-resources-responsible-gaming__sub-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

.page-resources-responsible-gaming__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-resources-responsible-gaming__list-item strong {
    color: #26A9E0; /* Highlight important terms with brand color */
}

.page-resources-responsible-gaming__image-block {
    text-align: center;
    margin: 40px 0;
}

.page-resources-responsible-gaming__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* No filter properties to change color */
}

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

.page-resources-responsible-gaming__faq-item {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources-responsible-gaming__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background: #f9f9f9;
    transition: background-color 0.3s ease;
}

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

.page-resources-responsible-gaming__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0; /* Brand color for toggle icon */
}

.page-resources-responsible-gaming__faq-item.active .page-resources-responsible-gaming__faq-toggle {
    transform: rotate(45deg);
    /* content: "−"; handled by JS */
}

.page-resources-responsible-gaming__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #FFFFFF;
    color: #555555;
}

.page-resources-responsible-gaming__faq-item.active .page-resources-responsible-gaming__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-resources-responsible-gaming__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Link styling */
.page-resources-responsible-gaming a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
}

.page-resources-responsible-gaming a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-resources-responsible-gaming {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-responsible-gaming__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-resources-responsible-gaming__main-title {
        font-size: 2em;
    }

    .page-resources-responsible-gaming__subtitle {
        font-size: 1em;
    }

    .page-resources-responsible-gaming__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-responsible-gaming__btn-primary,
    .page-resources-responsible-gaming__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-resources-responsible-gaming__content-area {
        padding: 30px 15px;
    }

    .page-resources-responsible-gaming__container {
        padding: 0; /* Remove container padding if already handled by content-area */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-responsible-gaming__section-title {
        font-size: 1.7em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-resources-responsible-gaming__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Images responsive */
    .page-resources-responsible-gaming img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-responsible-gaming__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-responsible-gaming__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }

    .page-resources-responsible-gaming__faq-answer {
        padding: 0 20px;
    }

    .page-resources-responsible-gaming__faq-item.active .page-resources-responsible-gaming__faq-answer {
        padding: 15px 20px;
    }
}