/* style/faq.css */

/* Base styles for the page-faq */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Assuming body background is white from shared.css */
}

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

.page-faq__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-faq__text-block {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.page-faq__text-block a {
    color: #017439;
    text-decoration: underline;
}

/* Hero Section */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding as body handles header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #017439; /* Brand primary color for hero background */
    color: #FFFFFF; /* White text for dark background */
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 30px;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.page-faq__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #E0E0E0;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Adjust based on desired visual width */
    margin-top: 20px;
    position: relative;
    z-index: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}

.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: #A00707;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
    color: #333333;
}

/* Accordion Section (FAQ) */
.page-faq__accordion-section {
    padding: 60px 20px;
    background-color: #F8F8F8;
    color: #333333;
}

.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: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #017439; /* Brand primary color for questions */
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

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

.page-faq__faq-question .page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    width: 20px; /* Ensure space for toggle */
    text-align: center;
}

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

.page-faq__faq-question .page-faq__faq-toggle::before {
    content: '+';
}

.page-faq__faq-item[open] .page-faq__faq-question .page-faq__faq-toggle::before {
    content: '×';
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

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

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

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

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

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    text-align: center;
}

.page-faq__cta-content {
    max-width: 800px;
}

.page-faq__cta-content .page-faq__section-title {
    color: #FFFFFF;
}

.page-faq__cta-content .page-faq__text-block {
    color: #E0E0E0;
    margin-bottom: 40px;
}

/* Image content specific styles */
.page-faq__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__container {
        padding: 20px 30px;
    }

    .page-faq__main-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }

    .page-faq__hero-description {
        font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    }

    .page-faq__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

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

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        padding-bottom: 40px;
        flex-direction: column;
    }

    .page-faq__hero-content {
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .page-faq__hero-image-wrapper {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__intro-section,
    .page-faq__accordion-section,
    .page-faq__cta-section {
        padding: 40px 0;
    }

    .page-faq__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-faq__text-block {
        padding: 0 15px;
    }

    .page-faq__faq-item {
        margin: 0 15px 15px;
    }

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

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

    .page-faq img,
    .page-faq__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-faq__cta-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .page-faq__hero-description {
        font-size: 0.9rem;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .page-faq__faq-question {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .page-faq__faq-answer {
        font-size: 0.9rem;
        padding: 0 15px 12px;
    }
}