.page-responsible-gaming {
    padding-top: 10px; /* Small top padding for the first section, body handles header offset */
    background-color: #F5F7FA; /* General background */
    color: #333333; /* Main text color */
}

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

/* Hero Section */
.page-responsible-gaming__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Using main colors for hero background */
    color: #FFFFFF;
}

.page-responsible-gaming__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image wrapper for desktop */
    margin-bottom: 20px;
}

.page-responsible-gaming__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-responsible-gaming__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Apply clamp for H1 */
}

.page-responsible-gaming__intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* General Section Title */
.page-responsible-gaming__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin: 40px 0 30px;
    color: #E53935; /* Main brand color for titles */
    position: relative;
}

.page-responsible-gaming__section-title::before,
.page-responsible-gaming__section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px; /* Shorter lines for general sections */
    height: 2px;
    background-color: #FF5A4F;
    transform: translateY(-50%);
}

.page-responsible-gaming__section-title::before {
    left: calc(50% - 100px); /* Adjust position for shorter lines */
}

.page-responsible-gaming__section-title::after {
    right: calc(50% - 100px); /* Adjust position for shorter lines */
}


/* Principles Section */
.page-responsible-gaming__principles-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

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

.page-responsible-gaming__card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-responsible-gaming__card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3; /* Recommended aspect ratio for content images */
    margin-bottom: 20px;
    filter: none; /* Ensure no filter is applied */
}

.page-responsible-gaming__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-responsible-gaming__card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    padding: 0 15px;
}

/* Support Section */
.page-responsible-gaming__support-section {
    padding: 60px 0;
    background-color: #E53935; /* Darker background for support section */
    color: #FFFFFF;
    text-align: center;
}

.page-responsible-gaming__support-section .page-responsible-gaming__section-title {
    color: #FFFFFF; /* White title on dark background */
}
.page-responsible-gaming__support-section .page-responsible-gaming__section-title::before,
.page-responsible-gaming__support-section .page-responsible-gaming__section-title::after {
    background-color: #FF5A4F;
}

.page-responsible-gaming__support-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-responsible-gaming__support-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.page-responsible-gaming__support-link {
    color: #FFD700; /* Yellowish link color for contrast */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-responsible-gaming__support-link:hover {
    color: #FF5A4F; /* Lighter red on hover */
}

.page-responsible-gaming__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-responsible-gaming__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__disclaimer-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

.page-responsible-gaming__faq-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #E53935; /* Accent border */
}

.page-responsible-gaming__faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-responsible-gaming__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .page-responsible-gaming__section-title::before,
    .page-responsible-gaming__section-title::after {
        width: 30px; /* Shorter lines on smaller screens */
        left: calc(50% - 70px);
        right: calc(50% - 70px);
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming__hero-section {
        padding-bottom: 30px;
    }
    .page-responsible-gaming__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-responsible-gaming__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem); /* Adjust clamp for H1 on mobile */
    }
    .page-responsible-gaming__intro-text {
        font-size: 1rem;
    }
    .page-responsible-gaming__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin: 30px 0 20px;
    }
    .page-responsible-gaming__section-title::before,
    .page-responsible-gaming__section-title::after {
        width: 20px;
        left: calc(50% - 60px);
        right: calc(50% - 60px);
    }
    .page-responsible-gaming__grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .page-responsible-gaming__card {
        padding-bottom: 20px;
    }
    .page-responsible-gaming__card-title {
        font-size: 1.2rem;
    }
    .page-responsible-gaming__support-text,
    .page-responsible-gaming__support-list li,
    .page-responsible-gaming__faq-question,
    .page-responsible-gaming__faq-answer {
        font-size: 0.95rem;
    }
    .page-responsible-gaming__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Crucial: Mobile image overflow prevention */
    .page-responsible-gaming img {
        max-width: 100%;
        height: auto;
    }
    .page-responsible-gaming__hero-image {
        max-width: 100%; /* Ensure hero image also respects max-width */
        height: auto;
    }
    .page-responsible-gaming__card-image {
        max-width: 100%;
        height: auto;
    }
}