/* style/responsible-gambling.css */
.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f8f8f8; /* A light background for general content */
}

.page-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    overflow: hidden;
}

.page-responsible-gambling__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-responsible-gambling__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-responsible-gambling__section {
    padding: 60px 20px;
    margin-bottom: 0;
}

.page-responsible-gambling__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-responsible-gambling__section-title {
    font-size: 2.5em;
    color: #1A202C;
    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: #FFD700;
    border-radius: 2px;
}

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

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

.page-responsible-gambling__list-item {
    background-color: #ffffff;
    border-left: 5px solid #FFD700;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    color: #333333;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-responsible-gambling__btn-primary {
    background-color: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
}

.page-responsible-gambling__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

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

.page-responsible-gambling__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
}

/* Dark background sections */
.page-responsible-gambling__dark-bg {
    background-color: #1A202C;
    color: #ffffff;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__section-title {
    color: #FFD700;
}

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

.page-responsible-gambling__dark-bg .page-responsible-gambling__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #FFD700;
    color: #f0f0f0;
}

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

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

/* FAQ Section */
.page-responsible-gambling__faq {
    background-color: #f8f8f8;
}

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

.page-responsible-gambling__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #1A202C;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-responsible-gambling__faq-toggle {
    font-size: 1.5em;
    color: #FFD700;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

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

.page-responsible-gambling__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-responsible-gambling__faq-answer a {
    color: #1A202C;
    text-decoration: underline;
}

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

/* Ensure content area images are not too small */
.page-responsible-gambling__section .page-responsible-gambling__image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.5em;
    }
    .page-responsible-gambling__section-title {
        font-size: 2em;
    }
    .page-responsible-gambling__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }
    .page-responsible-gambling__hero-title {
        font-size: 2em;
    }
    .page-responsible-gambling__hero-description {
        font-size: 1em;
    }
    .page-responsible-gambling__section {
        padding: 40px 15px;
    }
    .page-responsible-gambling__section-title {
        font-size: 1.8em;
    }
    .page-responsible-gambling__text-block,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__faq-question {
        font-size: 0.95em;
    }
    .page-responsible-gambling__hero-cta,
    .page-responsible-gambling__cta-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-responsible-gambling__image-wrapper,
    .page-responsible-gambling__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-responsible-gambling__hero-title {
        font-size: 1.8em;
    }
    .page-responsible-gambling__section-title {
        font-size: 1.6em;
    }
    .page-responsible-gambling__hero-description {
        font-size: 0.9em;
    }
    .page-responsible-gambling__faq-question {
        padding: 15px;
    }
    .page-responsible-gambling__faq-answer {
        padding: 0 15px;
    }
    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 10px 15px;
    }
}