/* style/resources-w88-faq.css */

/* Base styles for the page */
.page-resources-w88-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF);
}

/* Color contrast specific classes */
.page-resources-w88-faq__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-resources-w88-faq__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-resources-w88-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    position: relative;
    overflow: hidden;
    gap: 30px;
}

.page-resources-w88-faq__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-resources-w88-faq__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-resources-w88-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #ffffff;
}

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

.page-resources-w88-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim image for text readability */
}

/* CTA Buttons */
.page-resources-w88-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.page-resources-w88-faq__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources-w88-faq__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-resources-w88-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Content Area */
.page-resources-w88-faq__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    color: #333333;
}

.page-resources-w88-faq__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-w88-faq__intro-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-w88-faq__intro-text a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-resources-w88-faq__intro-text a:hover {
    text-decoration: underline;
}

/* FAQ List */
.page-resources-w88-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-resources-w88-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-resources-w88-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #017439;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-w88-faq__faq-question:hover {
    background-color: #005f2e;
}

.page-resources-w88-faq__faq-title {
    margin: 0;
    color: inherit;
    flex-grow: 1;
}

.page-resources-w88-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-resources-w88-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #333333;
}

.page-resources-w88-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    padding: 0;
}

.page-resources-w88-faq__faq-answer li {
    margin-bottom: 8px;
    color: #333333;
}

.page-resources-w88-faq__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-resources-w88-faq__faq-answer a:hover {
    text-decoration: underline;
}

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

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

.page-resources-w88-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
}

/* CTA Section at bottom */
.page-resources-w88-faq__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #017439;
    color: #ffffff;
}

.page-resources-w88-faq__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources-w88-faq__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-resources-w88-faq__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-resources-w88-faq__cta-description a {
    color: #FFFF00; /* Highlighted link */
    text-decoration: none;
    font-weight: bold;
}

.page-resources-w88-faq__cta-description a:hover {
    text-decoration: underline;
}

/* Image specific styles - ensure no filters */
.page-resources-w88-faq img {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources-w88-faq__hero-title {
        font-size: 2.8em;
    }
    .page-resources-w88-faq__hero-description {
        font-size: 1.2em;
    }
    .page-resources-w88-faq__section-title {
        font-size: 2.2em;
    }
    .page-resources-w88-faq__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources-w88-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-w88-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-w88-faq__hero-title {
        font-size: 2.2em;
    }
    .page-resources-w88-faq__hero-description {
        font-size: 1em;
    }
    .page-resources-w88-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-w88-faq__btn-primary,
    .page-resources-w88-faq__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources-w88-faq__content-area {
        padding: 40px 15px;
    }
    .page-resources-w88-faq__section-title {
        font-size: 1.8em;
    }
    .page-resources-w88-faq__intro-text {
        font-size: 0.95em;
    }
    .page-resources-w88-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources-w88-faq__faq-answer {
        padding: 0 20px;
    }
    .page-resources-w88-faq__faq-item.active .page-resources-w88-faq__faq-answer {
        padding: 20px !important;
    }
    .page-resources-w88-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-w88-faq__cta-section {
        padding: 60px 15px;
    }
    .page-resources-w88-faq__cta-title {
        font-size: 2em;
    }
    .page-resources-w88-faq__cta-description {
        font-size: 1em;
    }
    /* Mobile image and container responsiveness */
    .page-resources-w88-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-w88-faq__section,
    .page-resources-w88-faq__card,
    .page-resources-w88-faq__container,
    .page-resources-w88-faq__hero-section,
    .page-resources-w88-faq__content-area,
    .page-resources-w88-faq__cta-section,
    .page-resources-w88-faq__faq-item,
    .page-resources-w88-faq__faq-answer,
    .page-resources-w88-faq__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-resources-w88-faq__faq-answer p,
    .page-resources-w88-faq__faq-answer ul,
    .page-resources-w88-faq__faq-answer li {
        padding-left: 0;
        padding-right: 0;
    }
}