/* style/responsible-gambling.css */

/* General page styling */
.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f9f9f9; /* Light background for the page */
}

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

.page-responsible-gambling__section-title {
    font-size: 32px;
    color: #C80000; /* Main brand color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-responsible-gambling__section-title--light {
    color: #ffffff; /* White text for dark backgrounds */
}

.page-responsible-gambling__sub-title {
    font-size: 24px;
    color: #C80000;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-responsible-gambling p {
    margin-bottom: 15px;
    font-size: 17px;
}

.page-responsible-gambling__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 17px;
}

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

/* 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); /* Fixed header offset */
    background: linear-gradient(135deg, #C80000, #FFD700); /* Brand colors gradient */
    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;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* White text on dark background */
}

.page-responsible-gambling__main-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Auxiliary brand color */
    color: #C80000; /* Main brand color for text */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-responsible-gambling__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Image with Text Blocks */
.page-responsible-gambling__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-responsible-gambling__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-responsible-gambling__image-left,
.page-responsible-gambling__image-right,
.page-responsible-gambling__image-center {
    flex: 1;
    min-width: 300px; /* Minimum width for images */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-width: 100%; /* Ensure images are responsive */
    height: auto; /* Maintain aspect ratio */
    display: block;
}

.page-responsible-gambling__text-content {
    flex: 1;
    min-width: 300px; /* Minimum width for text content */
}

.page-responsible-gambling__flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

/* Buttons */
.page-responsible-gambling__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-responsible-gambling__btn-primary {
    background: #C80000;
    color: #ffffff;
    border: 2px solid #C80000;
}

.page-responsible-gambling__btn-primary:hover {
    background: #a00000; /* Darker red on hover */
    border-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-responsible-gambling__btn-secondary:hover {
    background: #f0f0f0;
    color: #a00000;
    border-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dark background section */
.page-responsible-gambling__dark-bg {
    background-color: #C80000; /* Main brand color */
    color: #ffffff;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.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: 8px;
    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: 18px;
    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: #C80000; /* Brand color for toggle */
    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: #333;
    transform: rotate(180deg); /* Rotate for minus sign visual */
}

.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: #fdfdfd;
    border-top: 1px solid #e0e0e0;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

    .page-responsible-gambling__main-title {
        font-size: 36px;
    }

    .page-responsible-gambling__intro-text {
        font-size: 18px;
    }

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

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

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

    .page-responsible-gambling__sub-title {
        font-size: 20px;
    }

    .page-responsible-gambling p,
    .page-responsible-gambling__list-item {
        font-size: 16px;
    }

    .page-responsible-gambling__image-text-block {
        flex-direction: column; /* Stack image and text */
        gap: 30px;
    }

    .page-responsible-gambling__image-text-block--reverse {
        flex-direction: column; /* Stack image and text */
    }

    .page-responsible-gambling__image-left,
    .page-responsible-gambling__image-right,
    .page-responsible-gambling__image-center {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-width: unset;
    }

    .page-responsible-gambling__text-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset;
    }

    .page-responsible-gambling__button-group {
        flex-direction: column; /* Stack buttons */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile Styles */
    .page-responsible-gambling__faq-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

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