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

.page-faq__hero-section {
    padding: 20px 0;
    text-align: center;
    background: linear-gradient(135deg, #26A9E0, #40C0F0); /* Brand color gradient */
    color: #FFFFFF;
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 30px;
}

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

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* H1 font-size clamp */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #F0F8FF; /* Slightly off-white for contrast */
}

.page-faq__top-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-faq__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button max-width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn--primary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

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

.page-faq__btn--secondary:hover {
    background-color: #F0F8FF;
    color: #1E8CB8;
    border-color: #1E8CB8;
}

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

.page-faq__article-wrap {
    max-width: 900px; /* Adjust for content width */
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__content-section p {
    margin-bottom: 1em;
}

.page-faq__content-section a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
}

.page-faq__content-section a:hover {
    text-decoration: underline;
}

.page-faq__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-faq__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.page-faq__accordion {
    margin-top: 20px;
}

.page-faq__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #F8F8F8;
    position: relative;
    list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: #E6F7FF; /* Lighter background when open */
    color: #26A9E0;
}

.page-faq__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

.page-faq__faq-answer p {
    margin-bottom: 1em;
}

.page-faq__faq-answer ul {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page-faq__faq-answer li {
    margin-bottom: 0.5em;
}

.page-faq__cta-box {
    background-color: #26A9E0; /* Brand color */
    color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-title {
    font-size: clamp(1.5em, 2.5vw, 2.2em);
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
}

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

.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* All images basic responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-faq__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
    }

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

    .page-faq__description {
        font-size: 1em;
        padding: 0 10px;
    }

    .page-faq__top-cta {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    /* 2. Single column long text container */
    .page-faq__article-wrap {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* 3. Generic images and figure */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-faq__image-wrapper {
        margin: 20px 0;
    }

    .page-faq__image-caption {
        padding: 0 10px;
    }

    /* General containers for mobile */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 4. Buttons and button containers */
    .page-faq__btn,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-faq__cta-buttons {
        flex-direction: column;
    }

    /* 5. FAQ blocks (details/summary structure) */
    .page-faq__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-faq__faq-answer {
        padding: 10px 20px 20px;
        font-size: 0.95em;
    }

    .page-faq__cta-box {
        padding: 30px 20px;
        margin-top: 40px;
    }

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

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