/* style/responsible-gambling.css */

/* Base styles for the page content */
.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--black-color); /* Inherit from shared, should be dark */
}

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

/* Hero Section */
.page-responsible-gambling__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    text-align: center;
    background-color: #26A9E0; /* Main brand color for hero background */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-responsible-gambling__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-responsible-gambling__intro-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-responsible-gambling__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    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;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

.page-responsible-gambling__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Main brand color for text */
    border: 2px solid #26A9E0;
}

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

/* Content Sections */
.page-responsible-gambling__content-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__self-assessment-section,
.page-responsible-gambling__support-section,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__cta-bottom-section {
    padding: 80px 0;
}

.page-responsible-gambling__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-responsible-gambling__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-responsible-gambling__sub-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #26A9E0; /* Main brand color */
    font-weight: bold;
}

/* Image styles */
.page-responsible-gambling__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-responsible-gambling__image-content--large {
    max-width: 900px; /* Example for larger images */
}

/* List styles */
.page-responsible-gambling__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}

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

/* Color schemes for sections */
.page-responsible-gambling__dark-section {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
}
.page-responsible-gambling__dark-section .page-responsible-gambling__section-title,
.page-responsible-gambling__dark-section .page-responsible-gambling__sub-title {
    color: #ffffff;
}

.page-responsible-gambling__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}
.page-responsible-gambling__light-bg .page-responsible-gambling__section-title,
.page-responsible-gambling__light-bg .page-responsible-gambling__sub-title {
    color: #26A9E0; /* Main brand color for titles on light background */
}
.page-responsible-gambling__light-bg .page-responsible-gambling__card-title,
.page-responsible-gambling__light-bg .page-responsible-gambling__question-text,
.page-responsible-gambling__light-bg .page-responsible-gambling__resource-title,
.page-responsible-gambling__light-bg .page-responsible-gambling__faq-question h3 {
    color: #333333; /* Dark text for titles on light background */
}


/* Card Grid for Tools Section */
.page-responsible-gambling__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-responsible-gambling__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff; /* Light text for dark card background */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-responsible-gambling__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #ffffff; /* Light text for dark card background */
    font-weight: bold;
}

.page-responsible-gambling__card-text {
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-responsible-gambling__card-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.page-responsible-gambling__card-link:hover {
    color: #f0f0f0;
}

/* Self-Assessment Section */
.page-responsible-gambling__question-list {
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-responsible-gambling__question-item {
    background-color: #f5f5f5; /* Light grey for question background */
    border-left: 5px solid #26A9E0; /* Brand color accent */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-responsible-gambling__question-text {
    font-size: 1.1em;
    color: #333333; /* Dark text for light background */
    font-weight: bold;
}

/* Support Resources Section */
.page-responsible-gambling__support-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling__resource-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff; /* Light text for dark card background */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-responsible-gambling__resource-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff; /* Light text for dark background */
    font-weight: bold;
}

.page-responsible-gambling__resource-description {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-responsible-gambling__resource-link {
    display: inline-block;
    color: #EA7C07; /* Login color for call to action */
    text-decoration: underline;
    font-weight: bold;
}

.page-responsible-gambling__resource-link:hover {
    color: #d16b06;
}

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

.page-responsible-gambling__faq-item {
    background-color: #f5f5f5; /* Light grey for FAQ item */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff; /* White background for question */
    color: #333333; /* Dark text for light background */
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
    background-color: #f0f0f0;
}

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333333; /* Dark text for light background */
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0; /* Main brand color */
    transition: transform 0.3s ease;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    transform: rotate(45deg);
    color: #EA7C07; /* Login color when active */
}

.page-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #ffffff; /* White background for answer */
    color: #555555; /* Slightly lighter dark text */
    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 show content */
    padding: 15px 25px;
}

.page-responsible-gambling__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    text-align: justify;
}

/* Bottom CTA Section */
.page-responsible-gambling__cta-bottom-section {
    text-align: center;
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gambling__main-title {
        font-size: 2.2em;
    }
    .page-responsible-gambling__section-title {
        font-size: 1.8em;
    }
    .page-responsible-gambling__sub-title {
        font-size: 1.4em;
    }
    .page-responsible-gambling__card-grid,
    .page-responsible-gambling__support-resources {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-responsible-gambling__main-title {
        font-size: 1.8em;
    }
    .page-responsible-gambling__intro-text {
        font-size: 1em;
    }
    .page-responsible-gambling__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-responsible-gambling__content-section,
    .page-responsible-gambling__tools-section,
    .page-responsible-gambling__self-assessment-section,
    .page-responsible-gambling__support-section,
    .page-responsible-gambling__faq-section,
    .page-responsible-gambling__cta-bottom-section {
        padding: 50px 0;
    }
    .page-responsible-gambling__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }
    .page-responsible-gambling__section-title {
        font-size: 1.6em;
    }
    .page-responsible-gambling__paragraph,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__card-text,
    .page-responsible-gambling__question-text,
    .page-responsible-gambling__resource-description,
    .page-responsible-gambling__faq-answer p {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-responsible-gambling__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    /* Ensure content area images are not scaled down below 200px */
    .page-responsible-gambling__content-area img,
    .page-responsible-gambling__image-content {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}