.page-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    position: relative;
    overflow: hidden;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Adjust as needed */
    overflow: hidden;
    position: relative;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9; /* Maintain aspect ratio */
}

.page-faq__hero-content {
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
    color: #333333; /* Dark text for light background */
}

.page-faq__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-faq__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-faq__dark-item {
    border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for dark background */
}

.page-faq__dark-item summary.page-faq__faq-question {
    background-color: #017439;
    color: #FFFFFF;
}

.page-faq__dark-item summary.page-faq__faq-question:hover {
    background-color: #005a2e; /* Slightly darker green on hover */
}

.page-faq__dark-item .page-faq__faq-answer {
    background-color: #005a2e;
    color: #FFFFFF;
}

.page-faq__dark-item .page-faq__faq-toggle {
    color: #FFFFFF;
}

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

.page-faq__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #017439;
}

.page-faq__description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

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

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

.page-faq__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-faq__content-section {
    padding: 60px 0;
}

.page-faq__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-faq__faq-list {
    margin-top: 30px;
}

details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px; /* Slightly larger radius */
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Soft shadow */
    transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
    border-color: #017439; /* Highlight when open */
}

details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px; /* Slightly more padding */
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 17px; /* Slightly larger question font */
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
    display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: #f5f5f5;
}
.page-faq__faq-qtext {
    flex: 1;
    text-align: left;
}
.page-faq__faq-toggle {
    font-size: 26px; /* Larger toggle icon */
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px; /* Larger toggle area */
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
    color: #017439; /* Brand color when open */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}
details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 20px; /* Consistent padding */
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    line-height: 1.7;
    font-size: 16px;
    color: #555555;
}

.page-faq__image-block {
    margin-top: 40px;
    text-align: center;
}

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-faq__app-download-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background-color: #f0fdf5; /* Light green background for CTA */
    border-radius: 10px;
    border: 1px dashed #017439;
}

.page-faq__qr-code-image {
    max-width: 200px;
    height: auto;
    display: block;
    border: 5px solid #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.page-faq__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__hero-image-wrapper {
        max-height: 500px;
    }
    .page-faq__main-title {
        font-size: clamp(24px, 5vw, 40px);
    }
    .page-faq__description {
        font-size: 17px;
    }
    .page-faq__section-title {
        font-size: clamp(22px, 4vw, 36px);
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding: 12px 25px;
        font-size: 17px;
    }
}

@media (max-width: 849px) { /* Hero image specific breakpoint for object-fit: contain */
    .page-faq__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px; /* Small top padding, relying on body for header offset */
    }
    .page-faq__hero-content {
        padding: 30px 15px;
    }
    .page-faq__container {
        padding: 0 15px;
    }
    .page-faq__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-faq__description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        width: 100% !important; /* Ensure container takes full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-faq__content-section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: clamp(22px, 6vw, 30px);
        margin-bottom: 30px;
        padding: 0 15px; /* Add padding for title on mobile */
    }

    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 22px;
        width: 25px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 15px;
        font-size: 15px;
    }

    .page-faq__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-faq__image-block {
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__app-download-cta {
        padding: 15px;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__qr-code-image {
        max-width: 150px;
        border-width: 3px;
    }

    .page-faq__cta-section {
        padding: 50px 0;
    }
}