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

.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-faq__hero-content {
    max-width: 800px;
    text-align: center;
}

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

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-faq__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

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

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

.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Main brand color */
    border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-faq__video-wrapper {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-faq__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-faq__video-caption {
    font-size: 0.9em;
    margin-top: 10px;
    color: #f0f0f0;
}

.page-faq__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #FFFFFF; /* Light background for content */
    color: #333333;
}

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

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: #333333;
    font-weight: 600;
}

.page-faq__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
    line-height: 1;
}

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

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

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

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

.page-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #555555;
}

.page-faq__faq-answer ul li {
    margin-bottom: 8px;
}

.page-faq__cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 50px 20px;
    background-color: #f0fdf4; /* Light green background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-faq__cta-title {
    font-size: 2.2em;
    color: #017439;
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-contact {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.8em;
    }

    .page-faq__hero-description {
        font-size: 1.1em;
    }

    .page-faq__section-title {
        font-size: 2em;
    }

    .page-faq__faq-question h3 {
        font-size: 1.15em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-faq__container {
        flex-direction: column;
        gap: 30px;
    }

    .page-faq__hero-title {
        font-size: 2.2em;
    }

    .page-faq__hero-description {
        font-size: 1em;
    }

    .page-faq__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-faq__video-wrapper {
        margin-top: 30px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-faq__content-area {
        padding: 40px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
    }

    .page-faq__faq-question h3 {
        font-size: 1.1em;
    }

    .page-faq__faq-answer {
        padding: 0 20px;
    }

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 10px 20px;
    }

    .page-faq__cta-section {
        margin-top: 60px;
        padding: 40px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__cta-title {
        font-size: 1.8em;
    }

    .page-faq__cta-description {
        font-size: 1em;
    }

    .page-faq__btn-contact {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__faq-answer p,
    .page-faq__faq-answer ul {
        font-size: 0.95em;
    }

    /* Ensure all containers for images/videos/buttons are responsive */
    .page-faq__hero-content,
    .page-faq__faq-list,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }

    .page-faq__section-title {
        font-size: 1.6em;
    }

    .page-faq__faq-question h3 {
        font-size: 1em;
    }
}