/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    background: linear-gradient(135deg, #017439, #00562c); /* Brand green gradient */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Content Area */
.page-faq__content-area {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background matching body */
    color: #ffffff; /* Light text for dark background */
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-faq__intro-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

/* FAQ List */
.page-faq__faq-list {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ list */
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.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.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 20px;
}

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

.page-faq__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439; /* Brand color for secondary button text */
    border: 2px solid #017439;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

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

/* Call to Action Section */
.page-faq__cta-section {
    background-color: #017439; /* Brand primary color for CTA background */
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
    box-sizing: border-box;
}

.page-faq__cta-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__cta-buttons .page-faq__btn-primary, 
.page-faq__cta-buttons .page-faq__btn-secondary {
    width: auto; /* Allow buttons to size naturally */
    flex-grow: 0;
    flex-shrink: 0;
}

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

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-faq__main-title {
        font-size: 2.2em;
    }
    .page-faq__description {
        font-size: 1em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__intro-text {
        font-size: 1em;
    }
    .page-faq__faq-question {
        padding: 15px;
    }
    .page-faq__faq-question h3 {
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 0 15px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 10px 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;
    }
    .page-faq__btn-primary, .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__container,
    .page-faq__section,
    .page-faq__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-faq__faq-list, .page-faq__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__description {
        font-size: 0.9em;
    }
    .page-faq__faq-question h3 {
        font-size: 0.9em;
    }
    .page-faq__faq-toggle {
        font-size: 1.2em;
    }
    .page-faq__btn-primary, .page-faq__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95em;
    }
}