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

/* Base styles for the responsible gaming page */
.page-index-responsible-gaming {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the dark body background */
    background-color: var(--neon-dark-bg); /* Inherit from shared.css */
}

.page-index-responsible-gaming__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index-responsible-gaming__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #ffffff;
    text-align: center;
    padding: 120px 20px 60px; /* Adjusted for header offset */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-index-responsible-gaming__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

.page-index-responsible-gaming__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

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

.page-index-responsible-gaming__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-index-responsible-gaming__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login/CTA color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

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

.page-index-responsible-gaming__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Primary brand color for titles */
}

.page-index-responsible-gaming__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #ffffff;
}

/* Dark background sections */
.page-index-responsible-gaming__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
    color: #ffffff;
    padding: 60px 0;
}
.page-index-responsible-gaming__dark-bg .page-index-responsible-gaming__section-title {
    color: #ffffff;
}
.page-index-responsible-gaming__dark-bg .page-index-responsible-gaming__section-intro {
    color: #f0f0f0;
}

/* Light background elements on dark sections */
.page-index-responsible-gaming__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.page-index-responsible-gaming__light-bg .page-index-responsible-gaming__card-title {
    color: #26A9E0;
}
.page-index-responsible-gaming__light-bg .page-index-responsible-gaming__card-text {
    color: #555555;
}

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

.page-index-responsible-gaming__principle-card {
    text-align: center;
}

.page-index-responsible-gaming__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-index-responsible-gaming__card-text {
    font-size: 1em;
}

/* Self-Assessment Section */
.page-index-responsible-gaming__self-assessment-section {
    padding: 60px 0;
    background-color: var(--neon-dark-bg); /* Match body background */
    color: #ffffff;
}

.page-index-responsible-gaming__assessment-form {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 40px;
    border-radius: 10px;
}

.page-index-responsible-gaming__form-group {
    margin-bottom: 20px;
}

.page-index-responsible-gaming__form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333333; /* For light background form */
}

.page-index-responsible-gaming__form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f9f9f9;
    color: #333333;
    -webkit-appearance: none; /* Remove default arrow */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.9%204.9-4.8%2011.6-2.8%2017.7l131.7%20160.1c4.6%205.6%2011.9%208.8%2019.8%208.8s15.2-3.2%2019.8-8.8L290.8%2084.8c2-6.1%201.1-12.8-2.8-17.7z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
}

.page-index-responsible-gaming__assessment-image {
    display: block;
    margin: 60px auto 0;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

/* Tips Section */
.page-index-responsible-gaming__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-responsible-gaming__tips-list li {
    background-color: #1a1a1a; /* Dark background elements on dark sections */
    color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-responsible-gaming__list-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

/* Tools Section */
.page-index-responsible-gaming__tools-section {
    padding: 60px 0;
    background-color: var(--neon-dark-bg);
    color: #ffffff;
}

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

.page-index-responsible-gaming__tool-card {
    text-align: center;
}

.page-index-responsible-gaming__mt-30 {
    margin-top: 30px;
    display: block;
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Support Organizations Section */
.page-index-responsible-gaming__support-orgs-section {
    padding: 60px 0;
}

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

.page-index-responsible-gaming__org-card {
    text-align: center;
}

.page-index-responsible-gaming__link-text {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-index-responsible-gaming__link-text:hover {
    color: #1c7ba1;
    text-decoration: underline;
}

.page-index-responsible-gaming__support-image {
    display: block;
    margin: 60px auto 0;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

/* Parental Control Section */
.page-index-responsible-gaming__parental-control-section {
    padding: 60px 0;
    background-color: var(--neon-dark-bg);
    color: #ffffff;
}

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

.page-index-responsible-gaming__parental-card {
    text-align: center;
}

.page-index-responsible-gaming__parental-image {
    display: block;
    margin: 60px auto 0;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

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

.page-index-responsible-gaming__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-index-responsible-gaming__faq-item {
    background-color: #1a1a1a; /* Dark background elements on dark sections */
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

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

.page-index-responsible-gaming__faq-question:hover {
    background-color: #26A9E0;
}

.page-index-responsible-gaming__faq-question h3 {
    margin: 0;
    color: inherit;
}

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

.page-index-responsible-gaming__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding to match question */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-index-responsible-gaming__faq-answer p {
    padding-bottom: 20px; /* Add padding to bottom of answer text */
    margin: 0;
    color: #f0f0f0;
}

.page-index-responsible-gaming__faq-item.active .page-index-responsible-gaming__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value for content */
    padding: 15px 25px 0; /* Adjust padding for expanded state */
}

.page-index-responsible-gaming__faq-item.active .page-index-responsible-gaming__faq-toggle {
    transform: rotate(45deg); /* Changes + to x */
}

/* Contact Section */
.page-index-responsible-gaming__contact-section {
    padding: 60px 0;
    background-color: var(--neon-dark-bg);
    color: #ffffff;
    text-align: center;
}

.page-index-responsible-gaming__contact-info {
    margin-top: 40px;
    font-size: 1.1em;
}

.page-index-responsible-gaming__contact-info p {
    margin-bottom: 15px;
}

.page-index-responsible-gaming__contact-info strong {
    color: #26A9E0;
}

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

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

    .page-index-responsible-gaming__hero-section {
        min-height: 450px;
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }

    .page-index-responsible-gaming__hero-title {
        font-size: 2em;
    }

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

    .page-index-responsible-gaming__btn-primary {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-index-responsible-gaming__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-index-responsible-gaming__principles-grid,
    .page-index-responsible-gaming__tools-grid,
    .page-index-responsible-gaming__orgs-grid,
    .page-index-responsible-gaming__parental-grid,
    .page-index-responsible-gaming__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-responsible-gaming__assessment-form {
        padding: 30px 15px;
    }

    .page-index-responsible-gaming__form-group label {
        font-size: 1em;
    }

    .page-index-responsible-gaming__form-group select {
        padding: 10px;
    }

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

    .page-index-responsible-gaming__hero-image {
        width: 100% !important;
        height: 100% !important;
    }

    /* Containers for images, videos, buttons */
    .page-index-responsible-gaming__section,
    .page-index-responsible-gaming__card,
    .page-index-responsible-gaming__container,
    .page-index-responsible-gaming__assessment-form,
    .page-index-responsible-gaming__faq-list,
    .page-index-responsible-gaming__contact-info {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-responsible-gaming__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-index-responsible-gaming__faq-answer {
        padding: 0 20px;
    }
    .page-index-responsible-gaming__faq-item.active .page-index-responsible-gaming__faq-answer {
        padding: 15px 20px 0;
    }
}