/* style/faq.css */
/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: #f8f8f8; /* Light background for the main page content */
    padding-bottom: 60px; /* Space for footer */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: var(--primary-color, #0A1931); /* Main brand color */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden;
}

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

.page-faq__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Secondary brand color for highlight */
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
    background-color: #FFD700; /* Secondary brand color */
    color: #0A1931; /* Dark text for light background */
    border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
    background-color: #e5c100;
    border-color: #e5c100;
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Secondary brand color */
    border: 2px solid #FFD700;
    margin-left: 20px;
}

.page-faq__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
}

.page-faq__btn-tertiary {
    background-color: #0A1931; /* Primary brand color */
    color: #FFD700; /* Secondary brand color */
    border: 2px solid #0A1931;
}

.page-faq__btn-tertiary:hover {
    background-color: #FFD700;
    color: #0A1931;
}

/* Content Area */
.page-faq__content-area {
    padding: 60px 0;
    background-color: #ffffff; /* White background for content */
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #0A1931; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* FAQ List */
.page-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item.active {
    background-color: #fff;
    border-color: #FFD700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #0A1931; /* Dark background for question */
    color: #ffffff; /* White text */
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Adjust h3 size within question */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700; /* Secondary brand color for toggle icon */
}

.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-out, padding 0.3s ease-out;
    color: #333333; /* Dark text for answer */
    background-color: #ffffff;
}

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

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

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

/* Images within content */
.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-faq__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Secondary brand color */
}

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

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-faq__main-title {
        font-size: 2.5em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__cta-title {
        font-size: 2.2em;
    }
    .page-faq__description,
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-faq__main-title {
        font-size: 2em;
    }
    .page-faq__description {
        font-size: 0.95em;
    }
    .page-faq__content-area {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px;
    }
    .page-faq__cta-section {
        padding: 60px 15px;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 0.9em;
    }
    
    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__container,
    .page-faq__faq-item,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-tertiary {
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
}