/* style/responsible-gaming.css */

/* Base styles for the page */
.page-responsible-gaming {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #FFFFFF; /* Explicitly set for content area */
}

/* Hero Section */
.page-responsible-gaming__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    overflow: hidden;
    margin-bottom: 40px;
}

.page-responsible-gaming__hero-image-container {
    width: 100%;
    overflow: hidden;
}

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

.page-responsible-gaming__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.page-responsible-gaming__main-title {
    font-size: 38px;
    font-weight: 700;
    color: #017439; /* Brand color for title */
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 100%; /* Ensure title doesn't overflow */
}

.page-responsible-gaming__description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

/* General Content Section */
.page-responsible-gaming__content-section {
    padding: 60px 20px;
    margin-bottom: 40px;
}

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

.page-responsible-gaming__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
}

.page-responsible-gaming__section-title--light {
    color: #FFFFFF;
}

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

.page-responsible-gaming__text-block--light {
    color: #f0f0f0; /* Lighter text for dark backgrounds */
}

/* Features Section */
.page-responsible-gaming__features-section {
    background-color: #017439; /* Brand primary color */
    padding: 60px 20px;
    margin-bottom: 40px;
    color: #FFFFFF; /* Light text for dark background */
}

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

.page-responsible-gaming__feature-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
}

.page-responsible-gaming__feature-image {
    width: 100%;
    max-width: 400px; /* Constrain image width within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-responsible-gaming__card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-responsible-gaming__card-text {
    font-size: 15px;
    color: #f0f0f0;
    text-align: center;
}

/* CTA Block within Features */
.page-responsible-gaming__cta-block {
    text-align: center;
    margin-top: 40px;
}

.page-responsible-gaming__cta-text {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 25px;
}

/* Self-Assessment Section */
.page-responsible-gaming__self-assessment {
    padding: 60px 20px;
    margin-bottom: 40px;
    background-color: #FFFFFF;
}

.page-responsible-gaming__checklist {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming__checklist-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333333;
    display: flex;
    align-items: flex-start;
}

.page-responsible-gaming__checklist-item::before {
    content: '•'; /* Simple bullet point */
    color: #017439;
    font-weight: bold;
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
}

/* Support Resources Section */
.page-responsible-gaming__support-resources {
    background-color: #017439;
    padding: 60px 20px;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.page-responsible-gaming__resource-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-responsible-gaming__resource-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-responsible-gaming__resource-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-responsible-gaming__resource-description {
    font-size: 15px;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
    padding: 60px 20px;
    margin-bottom: 40px;
    background-color: #FFFFFF;
}

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

/* FAQ Item styles (details tag based) */
details.page-responsible-gaming__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-responsible-gaming__faq-item summary.page-responsible-gaming__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-responsible-gaming__faq-item summary.page-responsible-gaming__faq-question::-webkit-details-marker {
    display: none;
}
details.page-responsible-gaming__faq-item summary.page-responsible-gaming__faq-question:hover {
    background: #f5f5f5;
}
.page-responsible-gaming__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-responsible-gaming__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-responsible-gaming__faq-item .page-responsible-gaming__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}

/* Contact CTA Section */
.page-responsible-gaming__contact-cta {
    background-color: #017439;
    padding: 60px 20px;
    text-align: center;
    color: #FFFFFF;
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Button styles */
.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary,
.page-responsible-gaming__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-responsible-gaming__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

.page-responsible-gaming__btn-secondary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-responsible-gaming__btn-secondary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-2px);
}

.page-responsible-gaming__btn-tertiary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #FFFFFF;
}

.page-responsible-gaming__btn-tertiary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Keyword highlighting */
.page-responsible-gaming .keyword {
    font-weight: bold;
    color: #017439; /* Brand color for keywords */
}