/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #ffffff; /* Explicitly set for clarity, though shared might handle body */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-color: #4B0082; /* Royal Purple background for hero */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Ensure text is above image overlay */
}

.page-faq__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    color: #FFD700; /* Gold for title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-faq__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #4B0082; /* Royal Purple text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-faq__hero-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #3a0066;
}

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

/* Accordion Section */
.page-faq__accordion-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #4B0082; /* Royal Purple for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__accordion-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-faq__accordion-header {
    width: 100%;
    padding: 20px;
    text-align: left;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #4B0082; /* Royal Purple for question headers */
    transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
    background-color: #f0f0f0;
}

.page-faq__accordion-header h3 {
    margin: 0;
    flex-grow: 1;
    font-size: 1.2em; /* Ensure consistent font size */
}

.page-faq__accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #FFD700; /* Gold for icon */
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
}

.page-faq__accordion-icon::after {
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon::after {
    transform: translateX(-50%) rotate(90deg); /* Rotate to hide vertical bar */
}

.page-faq__accordion-content {
    padding: 0 20px;
    background-color: #fefefe;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__accordion-content p {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #555555;
}

.page-faq__accordion-link {
    display: inline-block;
    background-color: #4B0082; /* Royal Purple button */
    color: #FFD700; /* Gold text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #4B0082;
}

.page-faq__accordion-link:hover {
    background-color: #3a0066; /* Darker purple on hover */
    color: #ffd700;
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: #FFD700; /* Gold background for CTA */
    padding: 60px 20px;
    text-align: center;
    color: #4B0082; /* Royal Purple text */
    margin-top: 60px;
}

.page-faq__cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #4B0082; /* Royal Purple */
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

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

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid;
}

.page-faq__cta-button--primary {
    background-color: #4B0082; /* Royal Purple button */
    color: #FFD700; /* Gold text */
    border-color: #4B0082;
}

.page-faq__cta-button--primary:hover {
    background-color: #3a0066; /* Darker purple */
    border-color: #3a0066;
}

.page-faq__cta-button--secondary {
    background-color: transparent;
    color: #4B0082; /* Royal Purple text */
    border-color: #4B0082;
}

.page-faq__cta-button--secondary:hover {
    background-color: #4B0082; /* Royal Purple background */
    color: #FFD700; /* Gold text */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.8em;
    }
    .page-faq__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
    }
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__accordion-header {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-faq__accordion-header h3 {
        font-size: 1.1em;
    }
    .page-faq__accordion-content p {
        font-size: 0.95em;
    }
    .page-faq__accordion-link {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .page-faq__cta-section {
        padding: 40px 15px;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__cta-button {
        width: 100%;
        max-width: 300px;
        font-size: 1em;
    }

    /* Content area images must not cause horizontal scroll */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
    .page-faq__hero-image {
        max-width: 100%;
        height: auto;
    }
}

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