/* style/responsible-gambling.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --background-light: #f8f8f8; /* A slightly off-white for sections */
    --background-dark: #26A9E0; /* Primary color as dark background */
    --border-color: #e0e0e0;
    --button-login: #EA7C07; /* Custom color for login */
}

/* Base styles for the page content */
.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Body background is white, so default text is dark */
}

/* 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); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color); /* Hero section has primary color gradient, so light text */
}

.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;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--light-text-color); /* Ensure text is light over primary background */
}

.page-responsible-gambling__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.page-responsible-gambling__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--light-text-color);
}

.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-login); /* Use custom login color for primary CTA */
    color: var(--light-text-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-responsible-gambling__cta-button:hover {
    background: #c26706; /* Darken for hover effect, approximate */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-responsible-gambling__section {
    padding: 60px 20px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

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

.page-responsible-gambling__container--centered {
    text-align: center;
}

.page-responsible-gambling__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.page-responsible-gambling__light-bg {
    background-color: var(--background-light);
    color: var(--dark-text-color);
}

.page-responsible-gambling__dark-bg {
    background-color: var(--background-dark);
    color: var(--light-text-color);
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__section-title {
    color: var(--light-text-color);
}

.page-responsible-gambling__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

.page-responsible-gambling__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-responsible-gambling__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-responsible-gambling__list--tips {
    list-style: none;
    padding-left: 0;
}

.page-responsible-gambling__list--tips .page-responsible-gambling__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.page-responsible-gambling__list--tips .page-responsible-gambling__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--button-login); /* Use a distinct color for checkmarks */
    font-weight: bold;
    font-size: 1.2em;
}

/* Image styles */
.page-responsible-gambling__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-responsible-gambling__image--full-width {
    max-width: 100%;
}

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

/* Card styles */
.page-responsible-gambling__card {
    background: var(--secondary-color);
    color: var(--dark-text-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px 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;
    justify-content: flex-start;
}

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

.page-responsible-gambling__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-responsible-gambling__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-responsible-gambling__card-image {
    width: 100%; /* Card image takes full width of card */
    max-width: 400px; /* Max width for card images */
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 15px;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-responsible-gambling__resource-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.page-responsible-gambling__resource-cards .page-responsible-gambling__card {
    flex: 1 1 calc(50% - 30px); /* Two cards per row */
    max-width: calc(50% - 30px);
}

.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-responsible-gambling__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-responsible-gambling__faq-list {
    margin-top: 40px;
}

.page-responsible-gambling__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--dark-text-color);
}

.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;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--dark-text-color);
}

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

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Plus sign rotates to X, or minus sign */
}

.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 15px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--dark-text-color);
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

/* Call to Action Section */
.page-responsible-gambling__call-to-action {
    padding: 80px 20px;
    text-align: center;
}

.page-responsible-gambling__cta-button--large {
    font-size: 20px;
    padding: 18px 50px;
    margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-responsible-gambling__resource-cards .page-responsible-gambling__card {
        flex: 1 1 calc(100% - 30px); /* One card per row on smaller tablets */
        max-width: calc(100% - 30px);
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-responsible-gambling__hero-title {
        font-size: 1.8em;
    }

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

    .page-responsible-gambling__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

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

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

    .page-responsible-gambling__text-block,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__card-text {
        font-size: 0.95em;
    }

    /* Images responsive */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important; /* Enforce min size even on mobile */
    }
    
    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__faq-list,
    .page-responsible-gambling__resource-cards {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Remove container padding if section has it */
        padding-right: 0; /* Remove container padding if section has it */
    }

    .page-responsible-gambling__resource-cards .page-responsible-gambling__card {
        flex: 1 1 100%;
        max-width: 100%;
    }

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

    .page-responsible-gambling__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}