/* style/faq.css */

/* Custom Colors */
:root {
    --rich9-primary: #F2C14E;
    --rich9-secondary: #FFD36B;
    --rich9-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --rich9-card-bg: #111111;
    --rich9-bg: #0A0A0A;
    --rich9-text-main: #FFF6D6;
    --rich9-border: #3A2A12;
    --rich9-glow: #FFD36B;
}

/* Base styles for the FAQ page content */
.page-faq {
    font-family: Arial, sans-serif;
    color: var(--rich9-text-main); /* Light text for dark body background */
    background-color: var(--rich9-bg); /* Ensuring consistency if body background is not set by shared */
    line-height: 1.6;
}

.page-faq__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.page-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    text-align: center;
    z-index: 1; /* Ensure text is above image if any overlap occurs */
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--rich9-secondary);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-faq__intro-text {
    font-size: 1.1rem;
    color: var(--rich9-text-main);
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--rich9-primary);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 211, 107, 0.5);
}

.page-faq__section-description {
    font-size: 1rem;
    color: var(--rich9-text-main);
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    text-align: left;
}

.page-faq__faq-item {
    background-color: var(--rich9-card-bg);
    border: 1px solid var(--rich9-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item.active {
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.3);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1a1a1a;
    color: var(--rich9-primary);
    font-weight: bold;
    font-size: 1.15rem;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #2a2a2a;
}

.page-faq__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--rich9-secondary);
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--rich9-text-main);
    font-size: 0.95rem;
    background-color: var(--rich9-card-bg);
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-faq__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-faq__btn-primary {
    background: var(--rich9-button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--rich9-primary);
    border: 2px solid var(--rich9-primary);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-faq__btn-secondary:hover {
    background-color: var(--rich9-primary);
    color: #000000; /* Dark text for contrast */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-faq__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.3);
}

.page-faq__image--games {
    max-width: 800px;
}

.page-faq__image--agent {
    max-width: 800px;
}

.page-faq__image--support {
    max-width: 800px;
}

.page-faq__cta-bottom .page-faq__section-description {
    margin-bottom: 30px;
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
    .page-faq__hero-section {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 60px 20px;
        text-align: left;
    }

    .page-faq__hero-content {
        flex: 1;
        margin-right: 40px;
        margin-bottom: 0;
        text-align: left;
    }

    .page-faq__hero-image-wrapper {
        flex: 1;
        margin-top: 0;
    }

    .page-faq__cta-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-faq__main-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .page-faq__intro-text {
        font-size: 1rem;
    }

    .page-faq__section {
        padding: 40px 15px;
    }

    .page-faq__section-title {
        font-size: 2rem;
    }

    .page-faq__section-description {
        font-size: 0.95rem;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.05rem;
    }

    .page-faq__faq-answer {
        padding: 0 20px;
    }

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq 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;
    }

    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-faq__hero-image-wrapper,
    .page-faq__image,
    .page-faq__faq-list,
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-faq__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}