.page-responsible-gambling {
    color: #ffffff; /* Light text on dark body background */
    background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-responsible-gambling__hero-banner {
    position: relative;
    width: 100%;
    padding-top: 0; /* Handled by shared.css body padding-top */
    margin-top: 0;
}

.page-responsible-gambling__hero-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.page-responsible-gambling__hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-responsible-gambling__introduction-section,
.page-responsible-gambling__cta-section {
    text-align: center;
    padding: 80px 20px;
}

.page-responsible-gambling__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-responsible-gambling__light-bg {
    background-color: #f0f0f0;
    color: #333333;
}

.page-responsible-gambling__main-title {
    font-size: 42px;
    font-weight: 700;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-responsible-gambling__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #FFD700; /* Gold brand color */
    text-align: center;
}

.page-responsible-gambling__subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-align: center;
}

.page-responsible-gambling__description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Light text for dark background */
}

.page-responsible-gambling__principles-section .page-responsible-gambling__description {
    color: #333333; /* Dark text for light background */
}

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

.page-responsible-gambling__card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light background */
}

.page-responsible-gambling__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
}

.page-responsible-gambling__card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.page-responsible-gambling__card-title {
    font-size: 22px;
    font-weight: 600;
    color: #8B0000; /* Dark red brand color */
    margin-bottom: 15px;
}

.page-responsible-gambling__card p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

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

.page-responsible-gambling__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__feature-item img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-responsible-gambling__feature-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 15px;
}

.page-responsible-gambling__feature-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0; /* Light text */
}

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

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    max-width: 100%;
}

.page-responsible-gambling__btn-primary {
    background-color: #FFD700; /* Gold brand color */
    color: #0a0a0a; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

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

.page-responsible-gambling__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text for dark background */
    border: 2px solid #FFD700;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #FFD700;
    color: #0a0a0a;
}

.page-responsible-gambling__help-section .page-responsible-gambling__subtitle {
    color: #555555;
}

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

.page-responsible-gambling__resource-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333333;
}

.page-responsible-gambling__resource-title {
    font-size: 22px;
    font-weight: 600;
    color: #8B0000; /* Dark red brand color */
    margin-bottom: 15px;
}

.page-responsible-gambling__resource-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 20px;
}

.page-responsible-gambling__resource-link {
    display: inline-block;
    color: #FFD700; /* Gold brand color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-responsible-gambling__resource-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-responsible-gambling__contact-note {
    margin-top: 50px;
    font-size: 18px;
    color: #555555;
    text-align: center;
}

.page-responsible-gambling__minors-protection-section {
    padding: 80px 20px;
}

.page-responsible-gambling__content-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-responsible-gambling__text-content {
    flex: 1;
    color: #f0f0f0;
}

.page-responsible-gambling__text-content h3 {
    font-size: 28px;
    color: #FFD700; /* Gold brand color */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-responsible-gambling__text-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-responsible-gambling__text-content ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
    color: #f0f0f0;
    font-size: 17px;
}

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

.page-responsible-gambling__image-content {
    flex: 1;
    text-align: center;
}

.page-responsible-gambling__image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-responsible-gambling__faq-section {
    padding: 80px 20px;
}

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

.page-responsible-gambling__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    color: #333333;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333;
}

.page-responsible-gambling__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-responsible-gambling__faq-question:active {
    background: #eeeeee;
}

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-responsible-gambling__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    color: #333;
}

/* General image responsiveness */
.page-responsible-gambling img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-responsible-gambling__main-title {
        font-size: 36px;
    }
    .page-responsible-gambling__section-title {
        font-size: 30px;
    }
    .page-responsible-gambling__content-flex {
        flex-direction: column;
    }
    .page-responsible-gambling__image-content {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* HERO Banner Section */
    .page-responsible-gambling__hero-banner {
        padding-top: 0 !important;
    }
    .page-responsible-gambling__hero-image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Containers and Sections */
    .page-responsible-gambling__container {
        padding: 40px 15px;
    }
    .page-responsible-gambling__introduction-section,
    .page-responsible-gambling__cta-section,
    .page-responsible-gambling__minors-protection-section,
    .page-responsible-gambling__faq-section {
        padding: 40px 15px;
    }

    /* Main Title and Section Titles */
    .page-responsible-gambling__main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-responsible-gambling__section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    .page-responsible-gambling__subtitle,
    .page-responsible-gambling__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Grid and Cards */
    .page-responsible-gambling__grid,
    .page-responsible-gambling__features-grid,
    .page-responsible-gambling__help-resources {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-responsible-gambling__card,
    .page-responsible-gambling__feature-item,
    .page-responsible-gambling__resource-card {
        padding: 20px;
    }
    .page-responsible-gambling__card-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    .page-responsible-gambling__card-title {
        font-size: 20px;
    }
    .page-responsible-gambling__card p {
        font-size: 15px;
    }

    /* Feature Items */
    .page-responsible-gambling__feature-item img {
        max-height: 200px;
        margin-bottom: 15px;
    }
    .page-responsible-gambling__feature-title {
        font-size: 20px;
    }

    /* CTA Buttons */
    .page-responsible-gambling__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
    }
    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Minors Protection Section */
    .page-responsible-gambling__content-flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-responsible-gambling__text-content h3 {
        font-size: 24px;
    }
    .page-responsible-gambling__text-content p,
    .page-responsible-gambling__text-content ul,
    .page-responsible-gambling__text-content li {
        font-size: 15px;
    }
    .page-responsible-gambling__image-content {
        margin-bottom: 20px;
    }

    /* FAQ Section */
    .page-responsible-gambling__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-responsible-gambling__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-responsible-gambling__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-responsible-gambling__faq-answer {
        padding: 0 15px;
    }
    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px !important;
    }

    /* Universal image responsive styles for content area */
    .page-responsible-gambling__container img, 
    .page-responsible-gambling__card img, 
    .page-responsible-gambling__feature-item img, 
    .page-responsible-gambling__image-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-responsible-gambling__container,
    .page-responsible-gambling__card,
    .page-responsible-gambling__feature-item,
    .page-responsible-gambling__resource-card,
    .page-responsible-gambling__help-resources {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}