/* style/faq.css */
.page-faq {
    font-family: Arial, sans-serif;
    color: #333333;
    background-color: #FFFFFF;
}

.page-faq__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Adjust for header offset */
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(90deg, #017439 0%, #005f2f 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.page-faq__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-faq__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #C30808;
    box-sizing: border-box;
}

.page-faq__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-faq__content-area {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-faq__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.page-faq__faq-list {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.page-faq__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

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

.page-faq__faq-question:hover {
    background-color: #f9f9f9;
}

.page-faq__faq-question h3 {
    margin: 0;
    flex-grow: 1;
    color: #017439;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    color: #555555;
    line-height: 1.7;
}

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

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px;
}

.page-faq__cta-section {
    text-align: center;
    padding: 60px 0;
    background-color: #f8f8f8;
    margin-top: 60px;
    border-radius: 8px;
}

.page-faq__cta-text {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-faq__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid #017439;
    margin: 0 10px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.page-faq__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .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: 80px 20px 40px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-faq__main-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-description {
        font-size: 0.95em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
    }
    .page-faq__faq-answer {
        font-size: 0.95em;
    }
    .page-faq__btn-primary, .page-faq__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0;
    }
    .page-faq__cta-section {
        padding: 40px 15px;
    }
    .page-faq__cta-text {
        font-size: 1.1em;
    }
    .page-faq__btn-secondary {
        margin-bottom: 15px;
    }
    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__container, .page-faq__content-area, .page-faq__hero-section, .page-faq__cta-section, .page-faq__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-faq__faq-list {
        padding: 0;
    }
    .page-faq__faq-item {
        margin-bottom: 10px;
    }
    .page-faq__faq-question {
        padding: 15px 0;
    }
    .page-faq__faq-answer {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 0.9em;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__cta-text {
        font-size: 1em;
    }
}