/* style/faq.css */
/* 
 * Body padding-top is handled by shared.css: body { padding-top: var(--header-offset); }
 * Page-specific sections should not add redundant padding-top using --header-offset.
 * Small top padding (e.g., 10px) is allowed for visual spacing.
 */

.page-faq {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Main text color for dark background */
    background-color: #08160F; /* Overall background */
    line-height: 1.6;
}

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

.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding for visual spacing, body handles main offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure no image overflow */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    display: block;
}

.page-faq__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 20px; /* Spacing between image and content */
}

.page-faq__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #F2C14E; /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-faq__btn-secondary {
    background: transparent;
    color: #F2FFF6;
    border: 2px solid #2E7A4E; /* Border color */
}

.page-faq__btn-secondary:hover {
    background: #2E7A4E;
    color: #ffffff;
}

.page-faq__btn-inline {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 15px;
}

.page-faq__btn-inline:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

.page-faq__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #F2C14E; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    color: #F2FFF6; /* Main text color */
    border: 1px solid #2E7A4E; /* Border color */
}

.page-faq__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: bold;
    color: #F2FFF6;
    background-color: #11271B;
    border-bottom: 1px solid #1E3A2A; /* Divider color */
    transition: background-color 0.3s ease;
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-faq__faq-item summary:hover {
    background-color: #1E3A2A; /* Darker on hover */
}

.page-faq__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    font-weight: normal;
    color: #57E38D; /* Glow color */
}

.page-faq__faq-item[open] summary .page-faq__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
    border-top: 1px solid #1E3A2A; /* Divider color */
}

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

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

.page-faq__faq-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
}

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

.page-faq__cta-bottom-section .page-faq__container {
    background-color: #0A4B2C; /* Deep Green for this CTA block */
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E;
}

.page-faq__cta-bottom-section .page-faq__section-title {
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
}

.page-faq__sub-text {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.5em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-item summary {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 40px;
    }
    .page-faq__hero-content {
        padding: 20px 15px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Clamp for H1 on mobile */
        margin-bottom: 15px;
    }
    .page-faq__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-inline {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__accordion-section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-faq__faq-list {
        gap: 10px;
        padding: 0 15px;
    }
    .page-faq__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    .page-faq__faq-image {
        max-height: 250px;
        margin-top: 15px;
    }
    .page-faq__cta-bottom-section {
        padding: 40px 0;
    }
    .page-faq__cta-bottom-section .page-faq__container {
        padding: 40px 20px;
        margin: 0 15px;
    }
    .page-faq__sub-text {
        font-size: 1em;
        padding: 0 10px;
    }

    /* All images must be responsive */
    .page-faq img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* All image containers must be responsive */
    .page-faq__hero-section,
    .page-faq__accordion-section,
    .page-faq__cta-bottom-section,
    .page-faq__container,
    .page-faq__faq-item,
    .page-faq__faq-answer {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* Remove horizontal padding for these, let children handle it */
      padding-left: 0 !important; 
      padding-right: 0 !important;
      overflow: hidden !important;
    }
    /* Re-add padding for specific content containers */
    .page-faq__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-faq__hero-content,
    .page-faq__faq-list {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}