/* style/faq.css */

/* Custom Colors */
:root {
    --r88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --r88-card-bg: #11271B;
    --r88-background: #08160F;
    --r88-text-main: #F2FFF6;
    --r88-text-secondary: #A7D9B8;
    --r88-border: #2E7A4E;
    --r88-glow: #57E38D;
    --r88-gold: #F2C14E;
    --r88-divider: #1E3A2A;
    --r88-deep-green: #0A4B2C;
}

/* Base styles for the page-faq scope */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--r88-text-main); /* Default text color for dark background */
    background-color: var(--r88-background);
}

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

/* Hero Section */
.page-faq__hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--r88-background);
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-faq__hero-content {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    background: var(--r88-deep-green);
    color: var(--r88-text-main);
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--r88-gold);
}

.page-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--r88-text-secondary);
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: var(--r88-button-gradient);
    color: var(--r88-text-main);
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-faq__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background-color: var(--r88-border);
}

/* Sections */
.page-faq__section {
    padding: 60px 0;
}

.page-faq__introduction {
    background-color: var(--r88-background);
    color: var(--r88-text-main);
}

.page-faq__faq-list {
    background-color: var(--r88-deep-green);
    color: var(--r88-text-main);
}

.page-faq__contact-cta {
    background-color: var(--r88-background);
    color: var(--r88-text-main);
    text-align: center;
}

.page-faq__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--r88-gold);
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--r88-text-secondary);
}

.page-faq__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--r88-text-secondary);
}

/* FAQ Accordion */
.page-faq__accordion {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: var(--r88-card-bg);
    border: 1px solid var(--r88-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item[open] {
    border-color: var(--r88-glow);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--r88-text-main);
    cursor: pointer;
    background-color: var(--r88-card-bg);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-question:hover {
    background-color: var(--r88-deep-green);
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    margin-left: 15px;
    color: var(--r88-glow);
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--r88-text-secondary);
}

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

.page-faq__faq-answer .page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 6px;
}

.page-faq__faq-answer .page-faq__faq-button {
    margin-top: 15px;
}

/* Images */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 30px 20px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-faq__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__hero-content {
        padding: 25px 15px;
        border-radius: 6px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        line-height: 1.3;
    }
    .page-faq__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 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;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding: 0 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-faq__section-description,
    .page-faq__text-block {
        font-size: 0.95em;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-faq__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9em;
    }

    /* Images and containers responsive */
    .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,
    .page-faq__hero-section,
    .page-faq__hero-content,
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__accordion {
        padding: 0 15px;
    }
}