/* style/faq.css */
/* 
 * Body background color from shared.css is var(--background-color) which is #08160F (dark).
 * Text colors should be light (#F2FFF6, #A7D9B8).
 */

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* #F2FFF6 */
    background-color: var(--background-color); /* #08160F */
    line-height: 1.6;
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
    background-color: var(--card-bg-color); /* #11271B */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    margin-bottom: 30px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color); /* #F2C14E */
    letter-spacing: -0.02em;
}

.page-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary-color); /* #A7D9B8 */
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: var(--gold-color); /* #F2C14E */
    text-align: center;
    margin-bottom: 50px;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--card-bg-color); /* #11271B */
    border: 1px solid var(--border-color); /* #2E7A4E */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    background-color: var(--deep-green-color); /* #0A4B2C */
    border-color: var(--main-color); /* #11A84E */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main-color); /* #F2FFF6 */
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-faq__faq-item[open] .page-faq__faq-question {
    color: var(--glow-color); /* #57E38D */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--main-color); /* #11A84E */
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change + to X-like or - */
    color: var(--glow-color); /* #57E38D */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--text-secondary-color); /* #A7D9B8 */
}

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

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

.page-faq__faq-answer a {
    color: var(--main-color); /* #11A84E */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
    color: var(--glow-color); /* #57E38D */
    text-decoration: underline;
}

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

.page-faq__highlight {
    color: var(--glow-color); /* #57E38D */
    font-weight: 600;
}

.page-faq__cta-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: var(--deep-green-color); /* #0A4B2C */
    border-radius: 12px;
    padding: 60px 40px;
    gap: 40px;
}

.page-faq__cta-content {
    flex: 1;
    min-width: 300px;
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-faq__cta-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary-color); /* #A7D9B8 */
}

.page-faq__cta-description a {
    color: var(--glow-color); /* #57E38D */
    text-decoration: none;
    font-weight: 600;
}

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

.page-faq__cta-image-wrapper {
    flex-shrink: 0;
    width: 400px; /* Fixed width for desktop */
    max-width: 100%;
}

.page-faq__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--glow-color); /* #57E38D */
    border: 2px solid var(--main-color); /* #11A84E */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
    background-color: var(--main-color); /* #11A84E */
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-faq__hero-section {
        padding: 40px 15px;
    }

    .page-faq__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-faq__description {
        font-size: 1em;
    }

    .page-faq__section-spacing {
        padding: 60px 15px;
    }

    .page-faq__section-title {
        font-size: clamp(1.6em, 4.5vw, 2.2em);
        margin-bottom: 40px;
    }

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

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

    .page-faq__cta-section {
        padding: 40px 30px;
        flex-direction: column;
        text-align: center;
    }

    .page-faq__cta-image-wrapper {
        width: 100%;
        margin-top: 30px;
    }

    .page-faq__cta-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100%;
        max-width: 400px; /* Limit width even when full-width */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Global image responsive styles */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Content containers for mobile */
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__section-spacing,
    .page-faq__cta-section,
    .page-faq__cta-content,
    .page-faq__cta-image-wrapper,
    .page-faq__faq-list,
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 30px !important;
    }

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

    .page-faq__description {
        font-size: 0.95em !important;
    }

    .page-faq__section-title {
        font-size: clamp(1.4em, 5.5vw, 2em) !important;
        margin-bottom: 30px !important;
    }

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

    .page-faq__faq-answer {
        font-size: 0.9em !important;
        padding: 0 15px 15px !important;
    }

    /* Buttons responsive styles */
    .page-faq__cta-button,
    .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__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Container padding handled by section/area */
        padding-right: 0 !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }
}