/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Matches body background */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005f2f); /* Brand color gradient */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-faq__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
    font-size: 1.25em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}

.page-faq__btn-primary:hover {
    background-color: #005f2f;
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-faq__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2; /* Subtle background image */
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px); /* Soften the background image */
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #ffffff; /* Light text for dark section */
    background-color: #1a1a2e; /* Ensure consistent background */
}

.page-faq__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.page-faq__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    list-style: none; /* Remove default marker for summary */
}

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

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439; /* Brand color for toggle icon */
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
}

/* Call to Action Section */
.page-faq__cta-section {
    background: #017439; /* Brand color background */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-faq__cta-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-faq__cta-description {
    font-size: 1.15em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* Specific button styles for Register/Login from custom colors */
.page-faq__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-faq__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-faq__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-faq__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 3em;
    }
    .page-faq__hero-description {
        font-size: 1.1em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-faq__faq-answer {
        padding: 0 20px 18px 20px;
    }
    .page-faq__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-cta {
        flex-direction: column;
        gap: 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;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__content-area {
        padding: 40px 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-intro {
        font-size: 0.95em;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.95em;
    }
    .page-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__cta-section {
        padding: 60px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure no CSS filter changes image colors */
.page-faq img {
    filter: none;
}