/* 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: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

.page-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

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

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #333333;
}

.page-responsible-gambling__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #26A9E0;
    line-height: 1.2;
}

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

.page-responsible-gambling__section {
    padding: 60px 20px;
    text-align: center;
}

.page-responsible-gambling__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-responsible-gambling__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.page-responsible-gambling__text-block a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-responsible-gambling__text-block a:hover {
    text-decoration: underline;
}

.page-responsible-gambling__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

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

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

.page-responsible-gambling__dark-section .page-responsible-gambling__text-block a {
    color: #ffffff;
    text-decoration: underline;
}

.page-responsible-gambling__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

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

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

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

.page-responsible-gambling__image-content {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 10px;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gambling__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-responsible-gambling__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8ccb;
    border-color: #1a8ccb;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
}

.page-responsible-gambling__faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

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

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-responsible-gambling__faq-title {
    font-size: 1.15em;
    color: #333333;
    margin: 0;
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    font-weight: bold;
    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;
    color: #555555;
}

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

.page-responsible-gambling__faq-answer p {
    margin-bottom: 15px;
    text-align: left;
}

.page-responsible-gambling__faq-answer p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.page-responsible-gambling__cta-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 20px;
}

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

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

.page-responsible-gambling__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    color: #ffffff;
}

.page-responsible-gambling__cta-description a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

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

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

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

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

    .page-responsible-gambling__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-responsible-gambling__hero-content {
        padding: 20px;
    }

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

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

    .page-responsible-gambling__section {
        padding: 40px 15px;
    }

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

    .page-responsible-gambling__text-block,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__faq-title {
        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__section,
    .page-responsible-gambling__container,
    .page-responsible-gambling__hero-section,
    .page-responsible-gambling__faq-section,
    .page-responsible-gambling__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* Mobile button responsiveness */
    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary,
    .page-responsible-gambling a[class*="button"],
    .page-responsible-gambling a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important;
        padding: 12px 20px !important;
    }

    .page-responsible-gambling__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-responsible-gambling__image-content {
        max-width: 100%;
    }

    .page-responsible-gambling__faq-question {
        padding: 15px 20px;
    }

    .page-responsible-gambling__faq-answer {
        padding: 0 20px;
    }

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

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

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

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

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        font-size: 1em;
        padding: 10px 15px !important;
    }
}