/* style/faq.css */

/* Variables based on provided color palette */
:root {
    --page-faq-bg: #08160F;
    --page-faq-card-bg: #11271B;
    --page-faq-text-main: #F2FFF6;
    --page-faq-text-secondary: #A7D9B8;
    --page-faq-border: #2E7A4E;
    --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-faq-glow: #57E38D;
    --page-faq-gold: #F2C14E;
    --page-faq-divider: #1E3A2A;
    --page-faq-deep-green: #0A4B2C;
}

.page-faq {
    background-color: var(--page-faq-bg);
    color: var(--page-faq-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-faq__hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--page-faq-deep-green);
    text-align: center;
    padding-top: 10px; /* Small top padding for the first section */
}

.page-faq__hero-image-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: clamp(2em, 5vw, 3em);
    color: var(--page-faq-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq__subtitle {
    font-size: clamp(1em, 2.5vw, 1.2em);
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-faq__general-info-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.page-faq__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: var(--page-faq-gold);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-faq-deep-green);
    border-radius: 2px;
}

.page-faq__text-block {
    font-size: 1.1em;
    color: var(--page-faq-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-faq__faq-list-section {
    background-color: var(--page-faq-card-bg);
    padding: 40px 20px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg);
    border: 1px solid var(--page-faq-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    background-color: var(--page-faq-deep-green);
    border-color: var(--page-faq-gold);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-faq-text-main);
    user-select: none;
    list-style: none; /* Remove default marker for details */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for details in WebKit */
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--page-faq-deep-green);
    color: var(--page-faq-gold);
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-faq-gold);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an 'x' or simply change to minus */
    color: var(--page-faq-gold);
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--page-faq-text-secondary);
    text-align: justify;
}

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

.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--page-faq-button-gradient);
    color: var(--page-faq-text-main);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-faq__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--page-faq-deep-green);
    padding: 60px 20px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    box-sizing: border-box;
}

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

.page-faq__cta-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--page-faq-gold);
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

/* Responsive styles */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

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

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

    .page-faq__subtitle {
        font-size: clamp(0.9em, 3.5vw, 1.1em);
    }

    .page-faq__content-area {
        margin: 20px auto;
        padding: 0 15px;
    }

    .page-faq__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 20px;
    }

    .page-faq__text-block {
        font-size: 1em;
    }

    .page-faq__faq-list-section {
        padding: 30px 15px;
        margin: 20px auto;
    }

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

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

    .page-faq__image {
        margin: 15px auto;
    }

    .page-faq__cta-section {
        padding: 40px 15px;
        margin: 20px auto;
    }

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

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

    /* Mobile image responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__hero-image-container,
    .page-faq__cta-image-wrapper,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile button responsive */
    .page-faq__btn-primary {
        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;
    }
}