/* style/responsible-gambling.css */

/* Base styles for the page content, ensuring contrast with body background #0a0a0a */
.page-responsible-gambling {
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 120px; /* Space for fixed header on desktop */
}

/* Responsive padding-top for mobile */
@media (max-width: 768px) {
    .page-responsible-gambling {
        padding-top: 100px; /* Space for fixed header on mobile */
    }
}

/* General container for content sections */
.page-responsible-gambling__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-responsible-gambling__section {
    padding: 60px 0;
    position: relative;
}

.page-responsible-gambling__section--dark {
    background-color: #1A1A1A; /* Darker section background */
}

/* Section titles */
.page-responsible-gambling__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-responsible-gambling__section-title--gold {
    color: #FFD700; /* Gold color for emphasis */
}

/* Subtitle/Description under section titles */
.page-responsible-gambling__subtitle {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Banner Section */
.page-responsible-gambling__hero-banner {
    background: linear-gradient(135deg, #1A1A1A, #0a0a0a); /* Gradient background */
    padding: 80px 0;
    text-align: center;
}

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

.page-responsible-gambling__hero-title {
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-responsible-gambling__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* General Button Styling */
.page-responsible-gambling__btn-primary {
    display: inline-block;
    background-color: #FFD700;
    color: #1A1A1A;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-responsible-gambling__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Content Wrapper for text and image blocks */
.page-responsible-gambling__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-responsible-gambling__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-responsible-gambling__text-block {
    flex: 1;
}

.page-responsible-gambling__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #f0f0f0; /* Ensure contrast on dark background */
}

.page-responsible-gambling__text-block h3 {
    font-size: 24px;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-responsible-gambling__sub-section-title--gold {
    color: #FFD700;
}

.page-responsible-gambling__image-block {
    flex: 1;
    min-width: 300px;
    max-width: 50%; /* Limit image block width */
    text-align: center;
}

.page-responsible-gambling__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* List styling */
.page-responsible-gambling__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-responsible-gambling__list li {
    margin-bottom: 10px;
    font-size: 17px;
}

/* Features Grid (for tools and features section) */
.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: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__feature-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.12);
}

.page-responsible-gambling__feature-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gambling__feature-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-responsible-gambling__feature-card p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.5;
}

/* Advice Grid (for responsible gambling tips) */
.page-responsible-gambling__advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling__advice-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__advice-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.12);
}

.page-responsible-gambling__advice-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-responsible-gambling__advice-card p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.5;
}

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

.page-responsible-gambling__faq-list {
    margin-top: 40px;
}

/* FAQ item styles */
.page-responsible-gambling__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1A1A1A; /* Dark background for FAQ item */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #1A1A1A;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
    background: #2a2a2a;
}

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-responsible-gambling__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    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: 30px;
    height: 30px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Rotate to show 'X' or '-' 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-color: #2a2a2a; /* Slightly lighter background for answer */
    color: #cccccc;
    font-size: 16px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Call to Action Section */
.page-responsible-gambling__cta-section {
    background-color: #FFD700; /* Gold background for CTA */
    padding: 80px 0;
    text-align: center;
}

.page-responsible-gambling__cta-title {
    font-size: 40px;
    color: #1A1A1A; /* Dark text on gold background */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-responsible-gambling__cta-description {
    font-size: 20px;
    color: #333333; /* Darker text for readability */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gambling__cta-section .page-responsible-gambling__btn-primary {
    background-color: #1A1A1A;
    color: #FFD700;
}

.page-responsible-gambling__cta-section .page-responsible-gambling__btn-primary:hover {
    background-color: #333333;
    color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-title {
        font-size: 40px;
    }
    .page-responsible-gambling__hero-description {
        font-size: 18px;
    }
    .page-responsible-gambling__section-title {
        font-size: 30px;
    }
    .page-responsible-gambling__cta-title {
        font-size: 34px;
    }
    .page-responsible-gambling__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-responsible-gambling__content-wrapper--reverse {
        flex-direction: column; /* Keep column direction for reverse as well */
    }
    .page-responsible-gambling__image-block {
        max-width: 100%;
    }
    .page-responsible-gambling__features-grid,
    .page-responsible-gambling__advice-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling {
        padding-top: 100px !important; /* Ensure mobile padding is applied */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-responsible-gambling__container {
        padding: 0 15px;
    }
    .page-responsible-gambling__section {
        padding: 40px 0;
    }
    .page-responsible-gambling__hero-banner {
        padding: 60px 0;
    }
    .page-responsible-gambling__hero-title {
        font-size: 32px;
    }
    .page-responsible-gambling__hero-description {
        font-size: 16px;
    }
    .page-responsible-gambling__btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-responsible-gambling__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-responsible-gambling__subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    .page-responsible-gambling__text-block p,
    .page-responsible-gambling__list li {
        font-size: 15px;
    }
    .page-responsible-gambling__text-block h3 {
        font-size: 20px;
    }
    .page-responsible-gambling__feature-card {
        padding: 25px;
    }
    .page-responsible-gambling__feature-card img {
        width: 80px;
        height: 80px;
    }
    .page-responsible-gambling__feature-title {
        font-size: 20px;
    }
    .page-responsible-gambling__advice-card {
        padding: 20px;
    }
    .page-responsible-gambling__advice-title {
        font-size: 18px;
    }
    .page-responsible-gambling__faq-question {
        padding: 15px 20px;
    }
    .page-responsible-gambling__faq-question h3 {
        font-size: 16px;
    }
    .page-responsible-gambling__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-responsible-gambling__faq-answer {
        padding: 0 20px;
    }
    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px 20px !important;
    }
    .page-responsible-gambling__cta-title {
        font-size: 28px;
    }
    .page-responsible-gambling__cta-description {
        font-size: 16px;
    }

    /* Mobile image responsiveness for all images and their containers */
    .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__content-wrapper,
    .page-responsible-gambling__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding is handled by .page-responsible-gambling__container for consistency */
    }
}