/* style/resources-faq.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

.page-resources-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-color);
}

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

.page-resources-faq__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources-faq__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-faq__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-resources-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

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

.page-resources-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.page-resources-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-resources-faq__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-resources-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-faq__section-title {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: inherit;
}

.page-resources-faq__sub-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources-faq__text-block p,
.page-resources-faq__text-block ul,
.page-resources-faq__text-block ol {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: left;
    color: inherit;
}

.page-resources-faq__text-block ul,
.page-resources-faq__text-block ol {
    padding-left: 25px;
}

.page-resources-faq__text-block li {
    margin-bottom: 8px;
}

.page-resources-faq__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-bottom: 40px;
}

.page-resources-faq__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-resources-faq__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources-faq__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-faq__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    text-align: left;
    color: var(--text-dark);
}

.page-resources-faq__dark-bg .page-resources-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.page-resources-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.3s ease;
}

.page-resources-faq__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.page-resources-faq__dark-bg .page-resources-faq__faq-question {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-resources-faq__dark-bg .page-resources-faq__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-faq__faq-heading {
    margin: 0;
    font-size: 1em;
    color: inherit;
}

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

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

.page-resources-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

.page-resources-faq__faq-answer ul,
.page-resources-faq__faq-answer ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.page-resources-faq__faq-answer li {
    margin-bottom: 5px;
}

.page-resources-faq__btn-primary,
.page-resources-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.page-resources-faq__btn-primary {
    background-color: var(--register-color); /* Use custom color for register/login type buttons */
    color: var(--register-login-font-color); /* Use custom font color */
    border: 2px solid var(--register-color);
}

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

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

.page-resources-faq__dark-bg .page-resources-faq__btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.page-resources-faq__dark-bg .page-resources-faq__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources-faq__btn-primary--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-resources-faq__btn-secondary--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-resources-faq__cta-wrapper {
    margin-top: 40px;
    text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-resources-faq__hero-title {
        font-size: 2.2em;
    }
    .page-resources-faq__hero-description {
        font-size: 1em;
    }
    .page-resources-faq__section-title {
        font-size: 1.8em;
    }
    .page-resources-faq__sub-title {
        font-size: 1.4em;
    }
    .page-resources-faq__content-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-faq__content-grid--reverse {
        grid-template-columns: 1fr;
    }
    .page-resources-faq__image-wrapper {
        order: -1; /* Image appears above text on smaller screens */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-resources-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-resources-faq__hero-title {
        font-size: 1.8em;
    }
    .page-resources-faq__hero-description {
        font-size: 0.9em;
    }
    .page-resources-faq__section {
        padding: 40px 15px;
    }
    .page-resources-faq__container {
        padding: 0 15px;
    }
    .page-resources-faq__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-resources-faq__sub-title {
        font-size: 1.2em;
    }
    .page-resources-faq p,
    .page-resources-faq li,
    .page-resources-faq__faq-question {
        font-size: 1em;
    }
    .page-resources-faq__image,
    .page-resources-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-faq__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources-faq__btn-primary,
    .page-resources-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-resources-faq__cta-wrapper,
    .page-resources-faq__button-group,
    .page-resources-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 10px;
    }
    .page-resources-faq__cta-wrapper--center {
        flex-direction: column !important;
    }
    .page-resources-faq__faq-question {
        padding: 15px 20px;
    }
    .page-resources-faq__faq-answer {
        padding: 0 20px;
    }
    .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
        padding: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-faq__hero-title {
        font-size: 1.5em;
    }
    .page-resources-faq__section-title {
        font-size: 1.4em;
    }
    .page-resources-faq__sub-title {
        font-size: 1.1em;
    }
    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .page-resources-faq__btn-primary--large,
    .page-resources-faq__btn-secondary--large {
        font-size: 1em;
        padding: 12px 20px;
    }
}