:root {
    --primary-color: #0A2038; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f4f7f6;
    --background-dark: #1a3a5a;
    --border-color: #e0e0e0;
    --accent-color-hover: #e6c200; /* Slightly darker gold for hover */
}

/* General page styling */
.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

.page-responsible-gambling__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-responsible-gambling__section:nth-child(even) {
    background-color: var(--background-light);
}

.page-responsible-gambling h1,
.page-responsible-gambling h2,
.page-responsible-gambling h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-responsible-gambling h1 {
    font-size: 3em;
    text-align: center;
    color: var(--text-light); /* For hero section */
}

.page-responsible-gambling h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
}

.page-responsible-gambling h3 {
    font-size: 1.6em;
    margin-top: 30px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.page-responsible-gambling p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

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

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

.page-responsible-gambling a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-responsible-gambling a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-responsible-gambling__hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a5b7d 100%); /* Adjusted gradient for better look */
    color: var(--text-light);
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 0 0 15px 15px;
}

.page-responsible-gambling__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-responsible-gambling__hero-image {
    width: 100%;
    max-width: 800px; /* Constrain image width for better composition */
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    object-fit: cover;
    opacity: 0.9;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-responsible-gambling__hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-responsible-gambling__hero-content p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--secondary-color);
}

.page-responsible-gambling__cta-button:hover {
    background: var(--accent-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    color: var(--primary-color); /* Ensure text color remains dark on hover */
    text-decoration: none;
}

.page-responsible-gambling__cta-button--bottom {
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.page-responsible-gambling__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* FAQ Section Styling */
.page-responsible-gambling__faq-list {
    margin-top: 30px;
}

.faq-item { /* No prefix here as per instruction for FAQ JS/CSS structure */
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, border-bottom-left-radius 0.3s ease, border-bottom-right-radius 0.3s ease;
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
    border-bottom: none; /* Override general h3 style */
    padding-bottom: 0; /* Override general h3 style */
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure consistent height */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    color: var(--text-dark);
}

.faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    padding-top: 15px;
    font-size: 1em;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--background-light);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

/* Conclusion section specific */
.page-responsible-gambling__section--conclusion {
    text-align: center;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 80px 20px;
    border-radius: 15px;
    margin-top: 40px;
}

.page-responsible-gambling__section--conclusion h2 {
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__section--conclusion p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gambling__hero-content h1 {
        font-size: 2.8em;
    }
    .page-responsible-gambling__hero-content p {
        font-size: 1.15em;
    }
    .page-responsible-gambling h2 {
        font-size: 2em;
    }
    .page-responsible-gambling h3 {
        font-size: 1.4em;
    }
    .page-responsible-gambling p,
    .page-responsible-gambling__list li {
        font-size: 1em;
    }
    .page-responsible-gambling__cta-button {
        padding: 15px 35px;
        font-size: 1.1em;
    }
    .page-responsible-gambling__section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero {
        padding: 60px 15px;
    }
    .page-responsible-gambling__hero-image {
        margin-bottom: 30px;
    }
    .page-responsible-gambling__hero-content h1 {
        font-size: 2.2em;
    }
    .page-responsible-gambling__hero-content p {
        font-size: 1em;
    }
    .page-responsible-gambling h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-responsible-gambling h3 {
        font-size: 1.3em;
    }
    .page-responsible-gambling__container {
        padding: 15px;
    }
    .page-responsible-gambling__section {
        padding: 30px 0;
    }
    .page-responsible-gambling__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    /* FAQ Mobile adjustments */
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-responsible-gambling__section--conclusion {
        padding: 60px 15px;
    }
    .page-responsible-gambling__section--conclusion p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-responsible-gambling__hero-content h1 {
        font-size: 1.8em;
    }
    .page-responsible-gambling h2 {
        font-size: 1.5em;
    }
    .page-responsible-gambling h3 {
        font-size: 1.2em;
    }
    .page-responsible-gambling p,
    .page-responsible-gambling__list li {
        font-size: 0.95em;
    }
    .page-responsible-gambling__cta-button {
        font-size: 0.95em;
        padding: 10px 25px;
    }
}