/* style/responsible-gambling.css */

.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Slightly off-white background for main content */
}

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand color gradient */
    color: #ffffff; /* White text on brand color background */
    overflow: hidden; /* Prevent content overflow */
}

.page-responsible-gambling__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-responsible-gambling__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-responsible-gambling__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-responsible-gambling__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0;
}

/* General Sections */
.page-responsible-gambling__section {
    padding: 60px 20px;
    text-align: center;
}

.page-responsible-gambling__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-responsible-gambling__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #EA7C07; /* Login color for accent */
    border-radius: 2px;
}

.page-responsible-gambling__section-intro {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555555;
}

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

.page-responsible-gambling__paragraph {
    margin-bottom: 15px;
    text-align: left;
    color: #333333;
}

.page-responsible-gambling__paragraph--center {
    text-align: center;
}

.page-responsible-gambling__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    max-width: 800px;
    text-align: left;
}

.page-responsible-gambling__list-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #333333;
}

.page-responsible-gambling__list-item::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
    color: #26A9E0;
}

/* Feature Cards */
.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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-responsible-gambling__feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%; /* Ensure image fills card width */
    object-fit: cover;
    min-height: 200px; /* Minimum size for content images */
}

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

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

/* Tools Section */
.page-responsible-gambling__tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-responsible-gambling__tool-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
    border-left: 5px solid #26A9E0;
}

.page-responsible-gambling__tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-responsible-gambling__tool-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-responsible-gambling__tool-text {
    color: #555555;
}

/* Dark Section */
.page-responsible-gambling__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title,
.page-responsible-gambling__dark-section .page-responsible-gambling__section-intro {
    color: #ffffff;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title::after {
    background-color: #ffffff;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__paragraph {
    color: #f0f0f0;
}

/* Light Background Section */
.page-responsible-gambling__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Resource Cards */
.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: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    border-top: 4px solid #EA7C07; /* Login color accent */
}

.page-responsible-gambling__resource-card:hover {
    transform: translateY(-8px);
}

.page-responsible-gambling__resource-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

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

.page-responsible-gambling__resource-link {
    display: inline-block;
    padding: 10px 20px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-responsible-gambling__resource-link:hover {
    background-color: #1a7fb3;
}

/* Call to Action Buttons */
.page-responsible-gambling__cta-button,
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-responsible-gambling__cta-button {
    background: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-responsible-gambling__cta-button:hover {
    background: #d46f06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__btn-primary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-responsible-gambling__btn-primary:hover {
    background: #1a7fb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-responsible-gambling__btn-secondary:hover {
    background: #f0f8ff;
    color: #1a7fb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    gap: 20px;
    margin-top: 40px;
}

.page-responsible-gambling__button-group--center {
    text-align: center;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    background-color: #f0f8ff; /* Light blue background for FAQ */
    padding: 60px 20px;
}

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

.page-responsible-gambling__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.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: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click */
}

.page-responsible-gambling__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    color: #EA7C07;
    transform: rotate(180deg); /* Rotate for minus sign effect */
}

.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 25px;
    opacity: 0;
    background: #f9f9f9;
    color: #555555;
    text-align: left;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important; /* Sufficiently large value */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
}

/* Final CTA Section */
.page-responsible-gambling__final-cta-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 20px;
}

.page-responsible-gambling__final-cta-section .page-responsible-gambling__section-title,
.page-responsible-gambling__final-cta-section .page-responsible-gambling__section-intro {
    color: #ffffff;
}

.page-responsible-gambling__final-cta-section .page-responsible-gambling__section-title::after {
    background-color: #ffffff;
}

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

    .page-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

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

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

    .page-responsible-gambling__features-grid,
    .page-responsible-gambling__tools-grid,
    .page-responsible-gambling__help-resources {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-responsible-gambling__feature-card img {
        min-height: 200px; /* Keep minimum size */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .page-responsible-gambling__list {
        margin-bottom: 20px;
    }

    .page-responsible-gambling__list-item {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    /* Image responsiveness for all images in content area */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__feature-card,
    .page-responsible-gambling__tool-card,
    .page-responsible-gambling__resource-card,
    .page-responsible-gambling__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to content containers */
        padding-right: 15px; /* Add padding to content containers */
    }

    /* Button responsiveness */
    .page-responsible-gambling__cta-button,
    .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;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-responsible-gambling__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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