.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* Custom background color */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    background-color: #E53935; /* Main brand color for section background */
    color: #ffffff; /* White text on brand color background */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 400px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-faq__hero-content {
    text-align: center;
    padding: 30px 20px 50px;
    max-width: 900px;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.page-faq__main-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
    max-width: 100%;
}

.page-faq__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Buttons */
.page-faq__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    margin-right: 15px;
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #F5F7FA; /* Custom background color */
}

.page-faq__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #E53935; /* Main brand color */
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__intro-text {
    font-size: 17px;
    text-align: center;
    margin-bottom: 40px;
    color: #333333;
}

/* FAQ List */
.page-faq__faq-list {
    margin-bottom: 50px;
}

details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #E0E0E0; /* Border color */
    overflow: hidden;
    background: #FFFFFF; /* Card BG color */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
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;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333; /* Text Main color */
}
.page-faq__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #333333; /* Text Main color */
}
.page-faq__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 16px;
}


/* CTA Section */
.page-faq__cta-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #FFFFFF; /* Card BG color */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.page-faq__cta-title {
    font-size: 28px;
    font-weight: 700;
    color: #E53935; /* Main brand color */
    margin-bottom: 15px;
}

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

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* General Image Styles for Responsiveness */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 25px 20px 40px;
    }
    .page-faq__main-title {
        font-size: 34px;
    }
    .page-faq__description {
        font-size: 17px;
    }
    .page-faq__section-title {
        font-size: 28px;
    }
    .page-faq__faq-qtext {
        font-size: 17px;
    }
    .page-faq__cta-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    /* General content padding for mobile */
    .page-faq__content-area {
        padding: 20px 15px;
    }
    .page-faq__container {
        padding: 0;
    }

    /* Hero Section */
    .page-faq__hero-section {
        padding-top: 10px !important;
        margin-bottom: 20px;
    }
    .page-faq__hero-image-wrapper {
        max-height: 250px;
    }
    .page-faq__hero-content {
        padding: 20px 15px 30px;
    }
    .page-faq__main-title {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 10px;
    }
    .page-faq__description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* Buttons */
    .page-faq__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px;
        font-size: 15px;
        margin-right: 0 !important;
    }
    .page-faq__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Ensure containers for images and buttons also respect max-width */
    .page-faq__hero-image-wrapper,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* Section Titles and Intro Text */
    .page-faq__section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .page-faq__intro-text {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* FAQ List */
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px;
    }
    .page-faq__faq-qtext {
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
    }
    .page-faq__faq-answer p {
        font-size: 15px;
    }

    /* CTA Section */
    .page-faq__cta-section {
        padding: 30px 15px;
        margin-top: 20px;
    }
    .page-faq__cta-title {
        font-size: 22px;
    }
    .page-faq__cta-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    /* Ensure all images are responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}