/* style/responsible-gambling.css */

/* --- Global Page Styles (Scoped to .page-responsible-gambling) --- */
.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

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

.page-responsible-gambling__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-responsible-gambling__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0;
}

/* Buttons */
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary,
.page-responsible-gambling__btn-link {
    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;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-responsible-gambling__btn-primary {
    background-color: #C30808; /* Login/Register color */
    color: #FFFF00; /* Login/Register font color */
    border: 2px solid #C30808;
}

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

.page-responsible-gambling__btn-secondary {
    background-color: transparent;
    color: #017439; /* Main brand color */
    border: 2px solid #017439;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-responsible-gambling__btn-link {
    background-color: transparent;
    color: #017439;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.page-responsible-gambling__btn-link:hover {
    color: #02944b;
}

/* Image styles - Global */
.page-responsible-gambling img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Dark Section styling */
.page-responsible-gambling__dark-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    padding: 60px 0;
    color: #ffffff;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title {
    color: #ffffff;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__text-block {
    color: #f0f0f0;
}

/* --- Hero Section --- */
.page-responsible-gambling__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #121212; /* Inherit body background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden;
}

.page-responsible-gambling__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-responsible-gambling__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
    border-radius: 0;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
}

.page-responsible-gambling__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-responsible-gambling__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-responsible-gambling__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Introduction Section --- */
.page-responsible-gambling__introduction-section {
    padding: 60px 0;
    background-color: #121212;
}

/* --- Self-Assessment Section --- */
.page-responsible-gambling__self-assessment-section {
    padding: 60px 0;
    background-color: #121212;
}

.page-responsible-gambling__assessment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-responsible-gambling__assessment-list li {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* --- Tools Section --- */
.page-responsible-gambling__tools-section {
    padding: 60px 0;
}

.page-responsible-gambling__tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling__tool-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling__tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__card-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-responsible-gambling__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-responsible-gambling__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Minor Protection Section --- */
.page-responsible-gambling__minor-protection-section {
    padding: 60px 0;
    background-color: #121212;
}

.page-responsible-gambling__image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-responsible-gambling__content-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* --- Problem Signs Section --- */
.page-responsible-gambling__problem-signs-section {
    padding: 60px 0;
}

.page-responsible-gambling__problem-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-responsible-gambling__problem-list li {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #C30808; /* Red for warning */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-responsible-gambling__problem-list strong {
    color: #ffffff;
}

/* --- Help Section --- */
.page-responsible-gambling__help-section {
    padding: 60px 0;
    background-color: #121212;
}

.page-responsible-gambling__help-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling__resource-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-responsible-gambling__faq-section {
    padding: 60px 0;
}

.page-responsible-gambling__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gambling__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: #017439; /* Brand color for question */
    transition: background-color 0.3s ease;
}

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

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

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

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

.page-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #f0f0f0;
}

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

.page-responsible-gambling__faq-answer p {
    margin: 0;
    padding: 0;
    color: #f0f0f0;
}

/* --- Call to Action Section --- */
.page-responsible-gambling__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #121212;
}

.page-responsible-gambling__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.8em;
    }
    .page-responsible-gambling__hero-description {
        font-size: 1.1em;
    }
    .page-responsible-gambling__section-title {
        font-size: 2em;
    }
    .page-responsible-gambling__tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-responsible-gambling__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }

    .page-responsible-gambling__hero-title {
        font-size: 2.2em;
    }

    .page-responsible-gambling__hero-description {
        font-size: 1em;
    }

    .page-responsible-gambling__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary,
    .page-responsible-gambling__btn-link {
        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-responsible-gambling__cta-buttons,
    .page-responsible-gambling__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex context for column/wrap */
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-responsible-gambling__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-responsible-gambling__container {
        padding: 0 15px;
    }

    .page-responsible-gambling__text-block {
        font-size: 1em;
    }

    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__image-wrapper,
    .page-responsible-gambling__tool-card,
    .page-responsible-gambling__resource-card,
    .page-responsible-gambling__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-responsible-gambling__tools-grid,
    .page-responsible-gambling__help-resources {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-responsible-gambling__tool-card,
    .page-responsible-gambling__resource-card {
        padding: 20px;
    }

    .page-responsible-gambling__card-image {
        height: 180px;
    }

    .page-responsible-gambling__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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