/* style/responsible-gaming.css */
/* Core styles based on brand colors and body background */
.page-responsible-gaming {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F3F8FF; /* Text Main - light color for dark body background */
    background-color: transparent; /* body already has #08162B from shared.css */
}

.page-responsible-gaming__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image then text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure content doesn't overflow */
    box-sizing: border-box;
}

.page-responsible-gaming__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 8px;
}

.page-responsible-gaming__hero-content {
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-responsible-gaming__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 */
    font-weight: 700;
    color: #F2C14E; /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-responsible-gaming__description {
    font-size: 1.1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming__section {
    padding: 60px 20px;
    background-color: #08162B; /* Deep Navy background for sections */
    box-sizing: border-box;
}

.page-responsible-gaming__dark-section {
    background-color: #113B7A; /* Main color for dark sections */
}

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

.page-responsible-gaming__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-responsible-gaming__text-block {
    font-size: 1.05em;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-responsible-gaming__text-block--note {
    font-style: italic;
    text-align: center;
    margin-top: 40px;
    color: #AFC4E8; /* Text Secondary */
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-responsible-gaming__cta-buttons--center {
    justify-content: center;
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary,
.page-responsible-gaming__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-responsible-gaming__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button gradient */
    color: #F3F8FF; /* Text Main for primary button */
    border: none;
}

.page-responsible-gaming__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 0 15px #4FA8FF; /* Glow */
}

.page-responsible-gaming__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Gold for secondary button text */
    border: 2px solid #F2C14E; /* Gold border */
}

.page-responsible-gaming__btn-secondary:hover {
    background-color: #F2C14E;
    color: #08162B; /* Deep Navy for text on hover */
    box-shadow: 0 0 15px #F2C14E;
}

.page-responsible-gaming__btn-link {
    background-color: transparent;
    color: #4FA8FF; /* Glow color for links */
    border: 1px solid #4FA8FF;
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 15px;
}

.page-responsible-gaming__btn-link:hover {
    background-color: #4FA8FF;
    color: #08162B; /* Deep Navy for text on hover */
}

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

.page-responsible-gaming__card {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #244D84; /* Border */
    color: #F3F8FF; /* Text Main */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

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

.page-responsible-gaming__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it's a block element */
    min-width: 200px; /* Ensure minimum width as well */
    min-height: 200px; /* Ensure minimum height */
}

.page-responsible-gaming__card-title {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-responsible-gaming__card-text {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    flex-grow: 1; /* Allow text to take available space */
}

/* Support List */
.page-responsible-gaming__support-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-responsible-gaming__support-item {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #244D84; /* Border */
    color: #F3F8FF; /* Text Main */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-responsible-gaming__support-title {
    font-size: 1.6em;
    color: #4FA8FF; /* Glow for support titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-responsible-gaming__support-description {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
    background-color: #08162B; /* Deep Navy */
}

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

.page-responsible-gaming__faq-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F3F8FF; /* Text Main */
}

.page-responsible-gaming__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #F2C14E; /* Gold */
    cursor: pointer;
    background-color: #10233F; /* Card BG */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.page-responsible-gaming__faq-item[open] .page-responsible-gaming__faq-question {
    border-bottom-color: #244D84; /* Border */
}

.page-responsible-gaming__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Light hover effect */
}

.page-responsible-gaming__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #F2C14E; /* Gold */
    margin-left: 15px;
}

.page-responsible-gaming__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.7;
}

.page-responsible-gaming__faq-answer p {
    margin-bottom: 10px;
}
.page-responsible-gaming__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-responsible-gaming__faq-answer a {
    color: #4FA8FF; /* Glow */
    text-decoration: underline;
}
.page-responsible-gaming__faq-answer a:hover {
    color: #F2C14E; /* Gold */
}

/* --- Responsive Design --- */
/* Mobile First Approach */

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

/* Content area images CSS size lower limit check */
/* Card images are 200px height, which is > 200px width for many aspect ratios */
/* For card-image, width: 100% and height: 200px, so it's not smaller than 200px */

@media (max-width: 768px) {
    .page-responsible-gaming {
        font-size: 16px; /* Mobile base font size */
        line-height: 1.6;
    }

    .page-responsible-gaming__hero-section {
        padding: 10px 15px 40px;
    }

    .page-responsible-gaming__hero-content {
        padding: 0 15px;
    }

    .page-responsible-gaming__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 for mobile */
    }

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

    .page-responsible-gaming__section {
        padding: 40px 15px;
    }

    .page-responsible-gaming__section-title {
        font-size: 1.8em;
    }

    .page-responsible-gaming__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gaming__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-responsible-gaming__btn-primary,
    .page-responsible-gaming__btn-secondary,
    .page-responsible-gaming__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-responsible-gaming__grid-cards {
        grid-template-columns: 1fr; /* Single column for cards on mobile */
        gap: 20px;
    }

    .page-responsible-gaming__card {
        padding: 20px;
        min-height: auto; /* Allow height to adjust */
    }

    .page-responsible-gaming__card-image {
        height: auto; /* Let height adjust to maintain aspect ratio */
        min-height: 200px; /* Maintain minimum height */
    }

    .page-responsible-gaming__support-list {
        grid-template-columns: 1fr; /* Single column for support items */
        gap: 20px;
    }

    .page-responsible-gaming__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-responsible-gaming__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    
    /* Ensure all content containers are constrained */
    .page-responsible-gaming__section,
    .page-responsible-gaming__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections/containers */
    }

    /* Video section top padding, if video were present */
    .page-responsible-gaming__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}