/* style/faq.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1E90FF; /* Royal Blue */
    --accent-color: #DC143C; /* Crimson for emphasis */
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --border-color: #e0e0e0;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
}

/* Hero Section */
.page-faq .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: var(--dark-bg); /* Dark background for hero */
    color: var(--text-color-light);
}

.page-faq .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-faq .hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-faq .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    /* Ensure image colors are not altered */
    filter: none;
}

.page-faq .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-faq .hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-faq .hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-color-light);
}

.page-faq .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-dark); /* Dark text on gold button for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq .cta-button:hover {
    background: var(--secondary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-faq .faq-section {
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.page-faq .faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq .faq-section h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq .section-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

.page-faq .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-faq .faq-question:hover {
    background: var(--light-bg);
}

.page-faq .faq-question h3 {
    font-size: 1.3em;
    color: var(--text-color-dark);
    margin: 0;
    font-weight: 600;
}

.page-faq .faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure + and - are centered */
}

.page-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px; /* Initial padding, will expand */
    background: #fdfdfd;
    color: var(--text-color-dark);
}

.page-faq .faq-item.active .faq-answer {
    max-height: 600px; /* Sufficient height for content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.page-faq .faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.page-faq .faq-answer p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

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

.page-faq .faq-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-faq .faq-button:hover {
    background: var(--primary-color);
    color: var(--text-color-dark);
    transform: translateY(-1px);
}

.page-faq .faq-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Example max width for images within answers */
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Ensure image colors are not altered */
    filter: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq .hero-content h1 {
        font-size: 2.8em;
    }
    .page-faq .hero-content p {
        font-size: 1.1em;
    }
    .page-faq .faq-section h2 {
        font-size: 2.2em;
    }
    .page-faq .faq-question h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-faq .hero-section {
        padding: 40px 15px;
    }
    .page-faq .hero-content h1 {
        font-size: 2.2em;
    }
    .page-faq .hero-content p {
        font-size: 1em;
    }
    .page-faq .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-faq .faq-section {
        padding: 40px 15px;
    }
    .page-faq .faq-section h2 {
        font-size: 2em;
    }
    .page-faq .faq-question {
        padding: 15px 20px;
    }
    .page-faq .faq-question h3 {
        font-size: 1.1em;
    }
    .page-faq .faq-toggle {
        font-size: 1.5em;
    }
    .page-faq .faq-answer {
        padding: 0 20px;
    }
    .page-faq .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-faq .faq-button {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-faq .hero-content h1 {
        font-size: 1.8em;
    }
    .page-faq .hero-content p {
        font-size: 0.95em;
    }
    .page-faq .cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-faq .faq-section h2 {
        font-size: 1.8em;
    }
    .page-faq .section-description {
        font-size: 0.95em;
    }
    .page-faq .faq-question h3 {
        font-size: 1em;
    }
    .page-faq .faq-toggle {
        font-size: 1.3em;
    }
    .page-faq .faq-answer p {
        font-size: 0.9em;
    }
    .page-faq .faq-image {
        max-width: 100%;
    }
}