/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for the dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--primary-color) */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: var(--header-offset, 120px) 20px 60px; /* Apply header offset here if shared doesn't */
    background: linear-gradient(135deg, #1A202C, #3A404C); /* Dark gradient for hero */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

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

.page-faq__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for main title */
    line-height: 1.2;
}

.page-faq__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
    background: #FFD700; /* Auxiliary color */
    color: #1A202C; /* Dark text for auxiliary background */
    border: 2px solid #FFD700;
}

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

.page-faq__btn-secondary {
    background: transparent;
    color: #FFD700; /* Auxiliary color for text */
    border: 2px solid #FFD700;
}

.page-faq__btn-secondary:hover {
    background: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
}

.page-faq__hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.15; /* Subtly blend image into background */
}

.page-faq__hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for better text contrast */
    display: block;
}

/* General Questions Section */
.page-faq__general-questions-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Light background for content section */
    color: #333333; /* Dark text for light background */
}

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

.page-faq__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1A202C; /* Primary color for section titles */
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

/* FAQ Accordion Styles */
.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff; /* Light background for FAQ items */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.page-faq__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-faq__faq-question:active {
    background: #eeeeee;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #1A202C;
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Auxiliary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: #1A202C;
    transform: rotate(45deg); /* Rotate to form an 'X' or just change to '-' */
}

.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.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #555555; /* Darker text for answer */
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
}

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

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

.page-faq__faq-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Contact Support Section */
.page-faq__contact-support-section {
    padding: 60px 20px;
    background-color: #1A202C; /* Primary dark background */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
}

.page-faq__contact-support-section .page-faq__section-title {
    color: #FFD700; /* Auxiliary color for title */
}

.page-faq__contact-support-section .page-faq__section-description {
    color: #f0f0f0;
}

.page-faq__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__contact-card {
    background-color: #2a3447; /* Slightly lighter dark background for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-faq__contact-card img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px; /* Maintain image style but no filter */
    max-width: 100%; /* Responsive image */
    height: auto; /* Responsive image */
    display: block;
}

.page-faq__contact-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD700; /* Auxiliary color for card titles */
}

.page-faq__contact-card p {
    font-size: 1em;
    margin-bottom: 25px;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile if not handled by shared */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__main-title {
        font-size: 2.2em;
    }

    .page-faq__intro-text {
        font-size: 1em;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__general-questions-section,
    .page-faq__contact-support-section {
        padding: 40px 15px;
    }

    .page-faq__section-title {
        font-size: 2em;
    }

    .page-faq__section-description {
        font-size: 0.95em;
    }

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

    .page-faq__faq-question h3 {
        font-size: 1em;
    }

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

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

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

    .page-faq__contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ensure all images are responsive and don't overflow */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__contact-support-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-faq__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}