/* style/resources-faq.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --btn-font-color: #FFFF00;
}

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

.page-resources-faq__intro-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
    text-align: center;
    padding-top: var(--header-offset, 120px);
}

.page-resources-faq__intro-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-faq__main-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources-faq__intro-text {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.page-resources-faq__intro-banner-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources-faq__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-faq__btn-primary {
    background: var(--btn-register);
    color: var(--btn-font-color);
    border: 2px solid var(--btn-register);
}

.page-resources-faq__btn-primary:hover {
    background: #a80707;
    border-color: #a80707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-resources-faq__btn-secondary:hover {
    background: #f0f0f0;
    color: #a80707;
    border-color: #a80707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

/* FAQ Specific Styles */
.page-resources-faq__faq-list {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.page-resources-faq__faq-item {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.page-resources-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-dark);
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px !important;
    opacity: 1;
    background: var(--bg-light);
    border-radius: 0 0 5px 5px;
}

.page-resources-faq__faq-answer p {
    margin: 0;
    padding: 0;
}

.page-resources-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-faq__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-faq__faq-question:active {
    background: #eeeeee;
}

.page-resources-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-resources-faq__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-toggle {
    color: var(--btn-register);
    transform: rotate(45deg); /* Changed from '-' to rotate '+' for visual flair */
}

.page-resources-faq__faq-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-top: 20px;
    border-radius: 4px;
    object-fit: cover;
}

/* CTA Contact Section */
.page-resources-faq__cta-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.page-resources-faq__cta-container {
    flex: 1;
    text-align: left;
}

.page-resources-faq__cta-title {
    font-size: 30px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-resources-faq__cta-contact .page-resources-faq__cta-button {
    background: var(--btn-register);
    color: var(--btn-font-color);
    border: 2px solid var(--btn-register);
}

.page-resources-faq__cta-contact .page-resources-faq__cta-button:hover {
    background: #a80707;
    border-color: #a80707;
}

.page-resources-faq__cta-image {
    flex-shrink: 0;
    width: 400px;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-faq__main-title {
        font-size: 32px;
    }
    .page-resources-faq__section-title {
        font-size: 28px;
    }
    .page-resources-faq__cta-contact {
        flex-direction: column;
        text-align: center;
    }
    .page-resources-faq__cta-container {
        text-align: center;
    }
    .page-resources-faq__cta-image {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-resources-faq__intro-section {
        padding: 40px 15px !important;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-faq__section {
        padding: 30px 15px;
    }
    .page-resources-faq__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-resources-faq__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-resources-faq__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-faq__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources-faq__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-resources-faq__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-faq__faq-question h3 {
        font-size: 15px;
        width: calc(100% - 40px);
    }
    .page-resources-faq__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources-faq__faq-answer {
        padding: 0 15px;
    }
    .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
        padding: 15px !important;
    }
    .page-resources-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-faq__cta-contact {
        padding: 40px 15px;
        gap: 20px;
    }
    .page-resources-faq__cta-title {
        font-size: 24px;
    }
    .page-resources-faq__cta-description {
        font-size: 15px;
    }
    .page-resources-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-faq__section,
    .page-resources-faq__intro-content-wrapper,
    .page-resources-faq__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-faq__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources-faq__cta-contact .page-resources-faq__cta-button {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}