/* style/resources-responsible-gambling-guide.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --accent-color-login: #EA7C07;
    --bg-light: #ffffff;
    --bg-dark-section: #26A9E0;
    --border-color: #e0e0e0;
}

.page-resources-responsible-gambling-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines --dark-bg-1 */
}

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

.page-resources-responsible-gambling-guide__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-resources-responsible-gambling-guide__hero-section .page-resources-responsible-gambling-guide__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-resources-responsible-gambling-guide__hero-content {
    flex: 1;
    text-align: left;
}

.page-resources-responsible-gambling-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-text-color);
}

.page-resources-responsible-gambling-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--light-text-color);
}

.page-resources-responsible-gambling-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.page-resources-responsible-gambling-guide__btn-primary,
.page-resources-responsible-gambling-guide__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;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-resources-responsible-gambling-guide__btn-primary {
    background-color: var(--accent-color-login);
    color: var(--light-text-color);
    border: 2px solid var(--accent-color-login);
}

.page-resources-responsible-gambling-guide__btn-primary:hover {
    background-color: #e06c00;
    border-color: #e06c00;
}

.page-resources-responsible-gambling-guide__btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

.page-resources-responsible-gambling-guide__btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.page-resources-responsible-gambling-guide__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources-responsible-gambling-guide__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-resources-responsible-gambling-guide__section {
    padding: 80px 0;
}

.page-resources-responsible-gambling-guide__light-bg {
    background-color: var(--bg-light);
    color: var(--dark-text-color);
}

.page-resources-responsible-gambling-guide__dark-bg {
    background-color: var(--bg-dark-section);
    color: var(--light-text-color);
}

.page-resources-responsible-gambling-guide__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-responsible-gambling-guide__light-bg .page-resources-responsible-gambling-guide__section-title {
    color: var(--primary-color);
}

.page-resources-responsible-gambling-guide__dark-bg .page-resources-responsible-gambling-guide__section-title {
    color: var(--light-text-color);
}

.page-resources-responsible-gambling-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color-login);
    border-radius: 2px;
}

.page-resources-responsible-gambling-guide__content-block {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

.page-resources-responsible-gambling-guide__content-block p {
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-responsible-gambling-guide__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-resources-responsible-gambling-guide__section-description {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-responsible-gambling-guide__light-bg .page-resources-responsible-gambling-guide__section-description {
    color: var(--dark-text-color);
}

.page-resources-responsible-gambling-guide__dark-bg .page-resources-responsible-gambling-guide__section-description {
    color: var(--light-text-color);
}

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

.page-resources-responsible-gambling-guide__feature-card {
    background-color: var(--bg-light);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-responsible-gambling-guide__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-responsible-gambling-guide__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-responsible-gambling-guide__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--dark-text-color);
}

.page-resources-responsible-gambling-guide__list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-resources-responsible-gambling-guide__list-item {
    background-color: var(--bg-light);
    color: var(--dark-text-color);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-responsible-gambling-guide__list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.page-resources-responsible-gambling-guide__list-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources-responsible-gambling-guide__list-item p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--dark-text-color);
}

/* FAQ Styles */
.page-resources-responsible-gambling-guide__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-resources-responsible-gambling-guide__faq-item {
    background-color: var(--bg-light);
    color: var(--dark-text-color);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-resources-responsible-gambling-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.page-resources-responsible-gambling-guide__faq-question:hover {
    background-color: #f8f8f8;
}

.page-resources-responsible-gambling-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--accent-color-login);
}

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

.page-resources-responsible-gambling-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark-text-color);
}

.page-resources-responsible-gambling-guide__faq-item.active .page-resources-responsible-gambling-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 30px;
}

.page-resources-responsible-gambling-guide__faq-answer p {
    margin: 0;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-responsible-gambling-guide__hero-title {
        font-size: 2.8em;
    }
    .page-resources-responsible-gambling-guide__hero-description {
        font-size: 1.1em;
    }
    .page-resources-responsible-gambling-guide__section-title {
        font-size: 2em;
    }
    .page-resources-responsible-gambling-guide__hero-section .page-resources-responsible-gambling-guide__container {
        flex-direction: column;
        text-align: center;
    }
    .page-resources-responsible-gambling-guide__hero-content {
        text-align: center;
    }
    .page-resources-responsible-gambling-guide__cta-buttons {
        justify-content: center;
    }
}

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

    .page-resources-responsible-gambling-guide__hero-section {
        min-height: auto;
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-resources-responsible-gambling-guide__hero-title {
        font-size: 2.2em;
    }
    .page-resources-responsible-gambling-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-responsible-gambling-guide__section {
        padding: 60px 0;
    }
    .page-resources-responsible-gambling-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-responsible-gambling-guide__content-block,
    .page-resources-responsible-gambling-guide__section-description {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-resources-responsible-gambling-guide__feature-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-resources-responsible-gambling-guide__list {
        padding: 0 15px;
    }
    .page-resources-responsible-gambling-guide__list-item {
        padding: 20px;
    }
    .page-resources-responsible-gambling-guide__list-title {
        font-size: 1.3em;
    }
    .page-resources-responsible-gambling-guide__faq-list {
        padding: 0 15px;
    }
    .page-resources-responsible-gambling-guide__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources-responsible-gambling-guide__faq-answer {
        padding: 0 20px;
    }
    .page-resources-responsible-gambling-guide__faq-item.active .page-resources-responsible-gambling-guide__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image and video responsiveness */
    .page-resources-responsible-gambling-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-resources-responsible-gambling-guide video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-resources-responsible-gambling-guide__section,
    .page-resources-responsible-gambling-guide__card,
    .page-resources-responsible-gambling-guide__container,
    .page-resources-responsible-gambling-guide__cta-buttons,
    .page-resources-responsible-gambling-guide__button-group,
    .page-resources-responsible-gambling-guide__btn-container,
    .page-resources-responsible-gambling-guide__video-section,
    .page-resources-responsible-gambling-guide__video-container,
    .page-resources-responsible-gambling-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-resources-responsible-gambling-guide__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources-responsible-gambling-guide__btn-primary,
    .page-resources-responsible-gambling-guide__btn-secondary {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}