/* style/faq.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

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

.page-faq__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per instruction */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
    object-position: center;
}

.page-faq__hero-content {
    padding: 30px 20px;
    max-width: 900px;
    margin-top: 20px;
    background-color: rgba(17, 168, 78, 0.1); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.page-faq__hero-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Green from gradient */
    border: 2px solid #2AD16F; /* Border matching primary button's highlight */
}

.page-faq__btn-secondary:hover {
    background-color: rgba(42, 209, 111, 0.1);
    color: #F2FFF6;
}

.page-faq__intro-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
    text-align: center;
}

.page-faq__section-title {
    font-size: 2.2em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__section-description {
    font-size: 1.05em;
    color: #A7D9B8; /* Text Secondary */
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-faq__faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__faq-category {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

.page-faq__category-title {
    font-size: 1.8em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #2E7A4E; /* Border */
    padding-bottom: 15px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(46, 122, 78, 0.3); /* Divider with transparency */
    padding-bottom: 15px;
}

.page-faq__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: 500;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
    color: #2AD16F;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #57E38D; /* Glow */
}

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

.page-faq__faq-answer {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    padding: 10px 0 0 0;
    line-height: 1.7;
}

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

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__faq-answer a {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #F2FFF6;
}

.page-faq__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1E3A2A; /* Divider */
}

.page-faq__cta-bottom p {
    font-size: 1.2em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 25px;
}

.page-faq__related-articles-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
    text-align: center;
}

.page-faq__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: left;
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
}

.page-faq__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-faq__article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-faq__article-title {
    font-size: 1.3em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-faq__article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__article-title a:hover {
    color: #2AD16F;
}

.page-faq__article-excerpt {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-faq__read-more-link {
    display: inline-block;
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-faq__read-more-link:hover {
    color: #2AD16F;
}

.page-faq__view-all-button {
    margin-top: 50px;
}

/* General responsive for images and containers */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-faq__container,
.page-faq__hero-section,
.page-faq__intro-section,
.page-faq__faq-list-section,
.page-faq__related-articles-section,
.page-faq__faq-category,
.page-faq__article-card {
    box-sizing: border-box;
}

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

    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-faq__hero-image {
        object-fit: contain; /* Mobile: contain to prevent cropping */
        max-height: none;
        aspect-ratio: unset;
    }

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

    .page-faq__hero-description {
        font-size: 1em;
    }

    .page-faq__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .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;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

    .page-faq__section-description {
        font-size: 0.95em;
    }

    .page-faq__faq-grid {
        grid-template-columns: 1fr;
    }

    .page-faq__faq-category {
        padding: 20px;
    }

    .page-faq__category-title {
        font-size: 1.5em;
    }

    .page-faq__faq-question {
        font-size: 1em;
    }

    .page-faq__faq-answer {
        font-size: 0.95em;
    }

    .page-faq__cta-bottom p {
        font-size: 1.1em;
    }

    .page-faq__article-grid {
        grid-template-columns: 1fr;
    }

    .page-faq__article-image {
        height: 180px;
    }

    .page-faq__article-title {
        font-size: 1.15em;
    }

    /* Ensure all images are responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Content area containers */
    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__related-articles-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-faq__intro-section .page-faq__container,
    .page-faq__faq-list-section .page-faq__container,
    .page-faq__related-articles-section .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}