/* style/faq.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-faq {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page content */
    background-color: var(--background-color);
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small decorative top padding */
    overflow: hidden;
    background-color: var(--deep-green-color); /* Fallback background */
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly dim the background image */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3em);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-faq__intro-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-faq__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item.active {
    box-shadow: 0 0 15px var(--glow-color);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-faq__faq-question:hover {
    background-color: var(--primary-color);
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-faq__faq-item[open] > .page-faq__faq-question .page-faq__faq-toggle {
    content: '−';
}

/* For details/summary, hide default marker */
.page-faq__faq-item summary {
    list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 600px;
    border: 1px solid var(--border-color);
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    font-size: 1em;
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-faq__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-color);
}

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

.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--deep-green-color);
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('[GALLERY:faq_cta_bg:1920x600:vn88vc,call_to_action,online_betting,green_gold,abstract_pattern]');
    background-size: cover;
    background-position: center;
    color: var(--text-main);
}

.page-faq__cta-title {
    font-size: 2.5em;
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__hero-content {
        padding: 15px;
    }
    .page-faq__faq-question {
        padding: 18px 20px;
        font-size: 1.1em;
    }
    .page-faq__faq-answer {
        padding: 18px 20px;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-faq__hero-content {
        padding: 10px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-faq__intro-text {
        font-size: 1em;
        line-height: 1.5;
    }
    .page-faq__content-area {
        padding: 30px 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-faq__faq-answer {
        font-size: 0.95em;
        padding: 15px;
    }
    .page-faq__image-inline {
        margin: 15px auto;
    }
    .page-faq__cta-section {
        padding: 60px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        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__faq-answer .page-faq__cta-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-top: 15px;
    }
    .page-faq__faq-answer .page-faq__btn-secondary {
        width: 100%;
    }
    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
    .page-faq__content-area {
        padding: 20px 10px;
    }
    .page-faq__faq-question {
        padding: 12px 10px;
        font-size: 0.95em;
    }
    .page-faq__faq-answer {
        padding: 12px 10px;
        font-size: 0.9em;
    }
    .page-faq__cta-section {
        padding: 40px 10px;
    }
    .page-faq__cta-title {
        font-size: 1.5em;
    }
    .page-faq__cta-description {
        font-size: 0.9em;
    }
}