/* style/resources-dr88-user-reviews-faq.css */

.page-resources-dr88-user-reviews-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff);
}

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

.page-resources-dr88-user-reviews-faq__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    background-color: #26A9E0;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-dr88-user-reviews-faq__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-resources-dr88-user-reviews-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

.page-resources-dr88-user-reviews-faq__btn-primary,
.page-resources-dr88-user-reviews-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-dr88-user-reviews-faq__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-resources-dr88-user-reviews-faq__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-resources-dr88-user-reviews-faq__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources-dr88-user-reviews-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-resources-dr88-user-reviews-faq__section {
    padding: 60px 0;
}

.page-resources-dr88-user-reviews-faq__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources-dr88-user-reviews-faq__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources-dr88-user-reviews-faq__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-resources-dr88-user-reviews-faq__sub-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-dr88-user-reviews-faq__paragraph {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
    color: inherit;
}

.page-resources-dr88-user-reviews-faq__highlight {
    font-weight: bold;
    color: inherit; /* Ensure contrast */
}

.page-resources-dr88-user-reviews-faq__image-wrapper {
    text-align: center;
    margin: 30px 0;
}

.page-resources-dr88-user-reviews-faq__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.page-resources-dr88-user-reviews-faq__faq-list {
    margin-top: 30px;
}

.page-resources-dr88-user-reviews-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-resources-dr88-user-reviews-faq__faq-item.active {
    background-color: #eaf7ff; /* Lighter blue for active item */
}

.page-resources-dr88-user-reviews-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0; /* Brand color for question */
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.page-resources-dr88-user-reviews-faq__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Relative to parent .faq-question */
    color: inherit;
}

.page-resources-dr88-user-reviews-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

.page-resources-dr88-user-reviews-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

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

.page-resources-dr88-user-reviews-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
}

.page-resources-dr88-user-reviews-faq__faq-answer .page-resources-dr88-user-reviews-faq__btn-link {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.page-resources-dr88-user-reviews-faq__faq-answer .page-resources-dr88-user-reviews-faq__btn-link:hover {
    background-color: #1e87c0;
}

.page-resources-dr88-user-reviews-faq__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-dr88-user-reviews-faq__list-item {
    margin-bottom: 10px;
    color: inherit;
}

.page-resources-dr88-user-reviews-faq__list-strong {
    color: inherit;
}

.page-resources-dr88-user-reviews-faq__inline-link {
    color: #EA7C07; /* Login color for inline links */
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-dr88-user-reviews-faq__inline-link:hover {
    color: #d16b06;
}

.page-resources-dr88-user-reviews-faq__cta-buttons--bottom {
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources-dr88-user-reviews-faq__hero-title {
        font-size: 2.2em;
    }

    .page-resources-dr88-user-reviews-faq__hero-description {
        font-size: 1.1em;
    }

    .page-resources-dr88-user-reviews-faq__section-title {
        font-size: 1.8em;
    }

    .page-resources-dr88-user-reviews-faq__sub-title {
        font-size: 1.4em;
    }
}

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

    .page-resources-dr88-user-reviews-faq__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-dr88-user-reviews-faq__hero-section {
        padding: 60px 0 !important;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-dr88-user-reviews-faq__hero-title {
        font-size: 1.8em !important;
    }

    .page-resources-dr88-user-reviews-faq__hero-description {
        font-size: 1em !important;
    }

    .page-resources-dr88-user-reviews-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-dr88-user-reviews-faq__btn-primary,
    .page-resources-dr88-user-reviews-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-dr88-user-reviews-faq__section {
        padding: 40px 0 !important;
    }

    .page-resources-dr88-user-reviews-faq__section-title {
        font-size: 1.5em !important;
    }

    .page-resources-dr88-user-reviews-faq__sub-title {
        font-size: 1.2em !important;
    }

    .page-resources-dr88-user-reviews-faq__paragraph {
        font-size: 1em !important;
    }

    .page-resources-dr88-user-reviews-faq__image-wrapper,
    .page-resources-dr88-user-reviews-faq__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .page-resources-dr88-user-reviews-faq__faq-question {
        padding: 15px 20px !important;
        font-size: 1.1em !important;
    }

    .page-resources-dr88-user-reviews-faq__faq-answer {
        padding: 0 20px !important;
    }

    .page-resources-dr88-user-reviews-faq__faq-item.active .page-resources-dr88-user-reviews-faq__faq-answer {
        padding: 15px 20px !important;
    }

    .page-resources-dr88-user-reviews-faq__list {
        margin-left: 15px;
    }
}

/* Contrast Fixes */
.page-resources-dr88-user-reviews-faq__dark-bg .page-resources-dr88-user-reviews-faq__highlight {
    color: #ffffff;
}
.page-resources-dr88-user-reviews-faq__light-bg .page-resources-dr88-user-reviews-faq__highlight {
    color: #26A9E0; /* Use brand color for highlight on light background */
}