/* style/responsible-gambling.css */

/* Base styles for the page content, assuming a dark background from shared.css */
.page-responsible-gambling {
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--dark-bg-1, #0d0d0d); /* Fallback if var not defined */
}

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

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
}

.page-responsible-gambling__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no filter is applied */
}

.page-responsible-gambling__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-responsible-gambling__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc107; /* Highlight with accent color */
    line-height: 1.2;
}

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

/* General Section Styling */
.page-responsible-gambling__section-title {
    font-size: 2.5em;
    color: #ffc107;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-responsible-gambling__section-title--white {
    color: #ffffff;
}

.page-responsible-gambling__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark background */
}

.page-responsible-gambling__text-block--white {
    color: #ffffff;
}

/* Light background sections */
.page-responsible-gambling__introduction-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__help-section,
.page-responsible-gambling__cta-section {
    background-color: #f8f9fa; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-responsible-gambling__introduction-section .page-responsible-gambling__section-title,
.page-responsible-gambling__tools-section .page-responsible-gambling__section-title,
.page-responsible-gambling__help-section .page-responsible-gambling__section-title,
.page-responsible-gambling__cta-section .page-responsible-gambling__section-title {
    color: #007bff; /* Primary color for titles on light background */
}

.page-responsible-gambling__introduction-section .page-responsible-gambling__text-block,
.page-responsible-gambling__tools-section .page-responsible-gambling__text-block,
.page-responsible-gambling__help-section .page-responsible-gambling__text-block,
.page-responsible-gambling__cta-section .page-responsible-gambling__text-block {
    color: #333333; /* Dark text for light background */
}

/* Video Section */
.page-responsible-gambling__video-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background */
    text-align: center;
}

.page-responsible-gambling__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 30px auto;
    background-color: #000;
    box-sizing: border-box;
}

.page-responsible-gambling__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    filter: none; /* Ensure no filter is applied */
}

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

.page-responsible-gambling__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease;
}

.page-responsible-gambling__feature-card:hover {
    transform: translateY(-5px);
}

.page-responsible-gambling__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
    filter: none; /* Ensure no filter is applied */
}

.page-responsible-gambling__feature-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-responsible-gambling__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Minor Protection Section */
.page-responsible-gambling__minor-protection-section {
    background-color: #007bff; /* Primary brand color */
    padding: 80px 0;
    color: #ffffff;
}

.page-responsible-gambling__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-responsible-gambling__text-content {
    flex: 1;
    min-width: 300px;
}

.page-responsible-gambling__image-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-responsible-gambling__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no filter is applied */
}

/* Support Resources */
.page-responsible-gambling__support-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

.page-responsible-gambling__resource-title {
    font-size: 1.6em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-responsible-gambling__resource-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-responsible-gambling__resource-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #555555;
}

.page-responsible-gambling__resource-list li {
    margin-bottom: 8px;
}

.page-responsible-gambling__image--full-width {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    filter: none; /* Ensure no filter is applied */
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    background-color: #1a1a1a;
    padding: 80px 0;
    color: #ffffff;
}

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

.page-responsible-gambling__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-responsible-gambling__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffc107;
    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;
    background-color: rgba(255, 255, 255, 0.03);
}

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

.page-responsible-gambling__faq-answer .page-responsible-gambling__text-block {
    color: #f0f0f0;
    margin-bottom: 0;
}

/* CTA Section */
.page-responsible-gambling__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-responsible-gambling__btn-primary {
    background-color: #ffc107; /* Auxiliary color */
    color: #1a1a1a; /* Dark text for light button */
    border: 2px solid #ffc107;
}

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

.page-responsible-gambling__btn-secondary {
    background-color: transparent;
    color: #007bff; /* Primary color for text */
    border: 2px solid #007bff;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Links within text */
.page-responsible-gambling a {
    color: #ffc107; /* Accent color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-responsible-gambling a:hover {
    color: #e0a800;
}

/* Image specific styles - No filters */
.page-responsible-gambling img {
    border: none;
    filter: none; /* Ensure no filter is applied */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.8em;
    }
    .page-responsible-gambling__section-title {
        font-size: 2em;
    }
    .page-responsible-gambling__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-responsible-gambling__text-content,
    .page-responsible-gambling__image-content {
        min-width: unset;
        width: 100%;
    }
    .page-responsible-gambling__support-resources {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile header offset handled by shared.css var */
    .page-responsible-gambling__hero-section {
        height: auto;
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset is applied */
    }

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

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

    .page-responsible-gambling__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-responsible-gambling__text-block {
        font-size: 0.95em;
    }

    .page-responsible-gambling__features-grid {
        grid-template-columns: 1fr;
    }

    .page-responsible-gambling__feature-card,
    .page-responsible-gambling__resource-card {
        padding: 20px;
    }

    /* Images responsiveness for mobile */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-responsible-gambling__container,
    .page-responsible-gambling__features-grid,
    .page-responsible-gambling__support-resources,
    .page-responsible-gambling__faq-list,
    .page-responsible-gambling__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness for mobile */
    .page-responsible-gambling video,
    .page-responsible-gambling__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-responsible-gambling__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness for mobile */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-responsible-gambling__cta-buttons {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}