/* faq.css */

.page-faq {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

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

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, desktop will adjust */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    background-color: #08160F; /* Background */
}

.page-faq__hero-image {
    width: 100%;
    max-width: 1200px; /* Example max-width for display */
    height: auto;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 8px;
}

.page-faq__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Use clamp for H1 font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F2FFF6; /* Text Main */
}

.page-faq__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

.page-faq__cta-button,
.page-faq__inline-cta,
.page-faq__contact-cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-height: 44px; /* Ensure touch target size */
    line-height: 1.5; /* Ensure text is centered vertically */
    text-align: center;
    box-sizing: border-box;
}

.page-faq__cta-button:hover,
.page-faq__inline-cta:hover,
.page-faq__contact-cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-faq__section-title,
.page-faq__contact-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #F2FFF6; /* Text Main */
}

.page-faq__accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    overflow: hidden;
}

.page-faq__accordion-item {
    border-bottom: 1px solid #2E7A4E; /* Border color */
}

.page-faq__accordion-item:last-child {
    border-bottom: none;
}

.page-faq__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
    background-color: #11271B; /* Card BG */
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
    min-height: 44px; /* Ensure touch target size */
    box-sizing: border-box;
}

.page-faq__accordion-header:hover {
    background-color: #0A4B2C; /* Deep Green for hover */
}

.page-faq__question {
    margin: 0;
    font-weight: 600;
    flex-grow: 1;
    color: #F2FFF6; /* Text Main */
}

.page-faq__icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__icon {
    transform: rotate(45deg);
}

.page-faq__accordion-content {
    background-color: #08160F; /* Background */
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__accordion-content.is-expanded {
    max-height: 500px; /* A sufficiently large value */
    padding: 20px 25px;
}

.page-faq__answer {
    margin-bottom: 15px;
    color: #A7D9B8; /* Text Secondary */
}

.page-faq__answer a {
    color: #22C768; /* Auxiliary color for links */
    text-decoration: none;
}

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

/* Contact Promo Section */
.page-faq__contact-promo-section {
    padding: 60px 0;
    background-color: #11271B; /* Card BG */
    text-align: center;
}

.page-faq__contact-promo-section .page-faq__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-faq__contact-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    /* Ensure minimum size for content images */
    min-width: 200px;
    min-height: 200px;
}

.page-faq__contact-content {
    max-width: 600px;
}

.page-faq__contact-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-faq__hero-image {
        aspect-ratio: 4/3; /* Mobile aspect ratio for hero image */
        width: 100%;
        max-width: 100%;
        min-width: 200px; /* Ensure min size */
        min-height: 200px; /* Ensure min size */
    }

    .page-faq__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .page-faq__section-title,
    .page-faq__contact-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
}

@media (max-width: 768px) {
    .page-faq__container {
        padding: 15px;
    }
    
    /* Ensure content images are responsive and don't overflow */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }

    .page-faq__hero-content,
    .page-faq__contact-content {
        padding: 0 15px;
    }
}

@media (min-width: 769px) {
    .page-faq__contact-promo-section .page-faq__container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .page-faq__contact-content {
        text-align: left;
    }
    
    .page-faq__contact-image {
        margin-right: 40px;
    }
}

@media (min-width: 1024px) {
    .page-faq__hero-section {
        padding-top: 20px; /* Adjust if needed, small top padding */
    }
}