/* style/responsible-gambling.css */

/* Base styles for the page */
.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Body background from shared.css */
}

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

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

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

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

.page-responsible-gambling__highlight {
    color: #FFFF00;
    font-weight: bold;
}

.page-responsible-gambling__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-responsible-gambling__list-item {
    margin-bottom: 10px;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

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

.page-responsible-gambling a {
    color: #017439;
    text-decoration: underline;
}

.page-responsible-gambling a:hover {
    color: #005a2e;
}

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    overflow: hidden;
}

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

.page-responsible-gambling__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Darken image to ensure text readability */
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

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

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

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

/* Section Backgrounds for Contrast */
.page-responsible-gambling__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-responsible-gambling__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-responsible-gambling__light-bg .page-responsible-gambling__section-title,
.page-responsible-gambling__light-bg .page-responsible-gambling__highlight {
    color: #017439;
}

.page-responsible-gambling__light-bg .page-responsible-gambling__paragraph a {
    color: #017439;
}

/* Intro Section */
.page-responsible-gambling__intro-section {
    padding: 80px 0;
}

/* Signs Section */
.page-responsible-gambling__signs-section {
    padding: 80px 0;
}

/* Tools Section */
.page-responsible-gambling__tools-section {
    padding: 80px 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 {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-responsible-gambling__tool-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

.page-responsible-gambling__tool-description {
    font-size: 1em;
    text-align: justify;
    color: #333333;
}

.page-responsible-gambling__callout {
    text-align: center;
    font-style: italic;
    margin-top: 40px;
    font-size: 1.1em;
}

/* Tips Section */
.page-responsible-gambling__tips-section {
    padding: 80px 0;
}

.page-responsible-gambling__tips-list {
    list-style: none;
    padding-left: 0;
}

.page-responsible-gambling__tips-list .page-responsible-gambling__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-responsible-gambling__tips-list .page-responsible-gambling__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFFF00;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-responsible-gambling__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Support Section */
.page-responsible-gambling__support-section {
    padding: 80px 0;
}

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

.page-responsible-gambling__faq-list {
    margin-top: 40px;
}

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

.page-responsible-gambling__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

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

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.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: 10px;
}

/* CTA Section */
.page-responsible-gambling__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-responsible-gambling__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-responsible-gambling__hero-section {
        flex-direction: column;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        width: 100%;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-responsible-gambling__paragraph,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__tool-description,
    .page-responsible-gambling__faq-question,
    .page-responsible-gambling__faq-answer p {
        font-size: 1em;
    }

    .page-responsible-gambling__container,
    .page-responsible-gambling__tool-card,
    .page-responsible-gambling__faq-item {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Content sections for mobile overflow */
    .page-responsible-gambling__intro-section,
    .page-responsible-gambling__signs-section,
    .page-responsible-gambling__tools-section,
    .page-responsible-gambling__tips-section,
    .page-responsible-gambling__support-section,
    .page-responsible-gambling__faq-section,
    .page-responsible-gambling__cta-section {
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }
    .page-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-responsible-gambling__cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-responsible-gambling__hero-title {
        font-size: 1.8em;
    }

    .page-responsible-gambling__section-title {
        font-size: 1.8em;
    }
}