/* style/faq.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28A745;
    --accent-color: #FFC107;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --light-bg-1: #f1f3f5;
    --light-bg-2: #f9f9f9;
    --dark-bg-1: #0d0d0d; /* Assuming shared.css defines this as a dark background */
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light); /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from body, so use light text */
}

/* Fixed header padding */
.page-faq__hero-banner {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-bottom: 60px;
}

.page-faq__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    gap: 30px;
}

.page-faq__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-faq__hero-content {
    text-align: center;
    color: var(--text-color-light);
    max-width: 900px;
}

.page-faq__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-faq__intro-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-faq__cta-button:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__section {
    padding: 60px 20px;
    background-color: var(--light-bg-1); /* Light background for content sections */
    color: var(--text-color-dark);
}

.page-faq__faq-list-section {
    background-color: var(--light-bg-1);
}

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

.page-faq__section-title {
    font-size: 34px;
    font-weight: bold;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-faq__faq-question:hover {
    background: var(--light-bg-2);
    border-color: #c0c0c0;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-dark);
    pointer-events: none; /* Allows click on parent div */
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Visually change + to X or similar */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: var(--light-bg-2);
    border-radius: 0 0 8px 8px;
    color: var(--text-color-dark);
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large value */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 16px;
}

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

.page-faq__link-inline {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__link-inline:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-faq__cta-link {
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-faq__cta-link:hover {
    background-color: #FFD700;
}

.page-faq__call-to-action-section {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-color-light);
}

.page-faq__cta-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-faq__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-faq__cta-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-faq__cta-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-color-light);
}

.page-faq__cta-button--large {
    padding: 18px 50px;
    font-size: 22px;
    border-radius: 10px;
    background: var(--accent-color);
    color: var(--text-color-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--large:hover {
    background: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-image {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 40px;
    }

    .page-faq__hero-container {
        gap: 20px;
    }

    .page-faq__main-title {
        font-size: 32px;
    }

    .page-faq__intro-text {
        font-size: 16px;
    }

    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }

    .page-faq__section {
        padding: 40px 15px;
    }

    .page-faq__section-title {
        font-size: 28px;
    }

    .page-faq__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
    }

    .page-faq__faq-question h3 {
        font-size: 16px;
    }

    .page-faq__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-faq__faq-answer {
        padding: 0 20px;
    }

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px !important;
    }

    .page-faq__faq-answer p {
        font-size: 15px;
    }

    .page-faq__call-to-action-section {
        padding: 60px 15px;
    }

    .page-faq__cta-title {
        font-size: 30px;
    }

    .page-faq__cta-description {
        font-size: 16px;
    }

    .page-faq__cta-button--large {
        padding: 15px 35px;
        font-size: 18px;
    }

    /* Ensure all images are responsive and do not cause horizontal scroll */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__hero-banner,
    .page-faq__hero-container,
    .page-faq__section,
    .page-faq__container,
    .page-faq__call-to-action-section,
    .page-faq__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 28px;
    }

    .page-faq__section-title {
        font-size: 24px;
    }

    .page-faq__cta-title {
        font-size: 26px;
    }
}