/* style/faq.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1E90FF; /* Dodger Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

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

/* Fixed navigation bar spacing */
.page-faq__hero-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

.page-faq__intro-section {
    padding-top: 60px; /* If no hero, this would be 120px */
}

/* 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-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.page-faq__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.page-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-light);
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

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

/* General Section Styling */
.page-faq__intro-section, .page-faq__faq-list-section, .page-faq__cta-bottom-section {
    padding: 40px 20px;
}

.page-faq__intro-section, .page-faq__faq-list-section {
    background-color: var(--bg-light); /* Light background for content sections */
    color: var(--text-dark);
}

.page-faq__cta-bottom-section {
    background: linear-gradient(135deg, var(--secondary-color), #007bff);
    color: var(--text-light);
    text-align: center;
}

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

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

.page-faq__cta-bottom-section .page-faq__section-title {
    color: var(--text-light);
}

.page-faq__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-faq__highlight {
    font-weight: bold;
    color: var(--primary-color);
}

.page-faq__intro-section .page-faq__highlight {
    color: var(--secondary-color);
}

.page-faq__text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__text-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 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;
    color: var(--text-dark);
}

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

.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;
    color: var(--text-dark);
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    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); /* Rotate '+' to 'x' or '-' */
}

.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;
    background: #f9f9f9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: var(--text-dark);
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid var(--border-color);
    border-top: none;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.7;
}

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

.page-faq__cta-bottom-content {
    padding: 40px 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-faq__hero-title {
        font-size: 2.8em;
    }
    .page-faq__hero-description {
        font-size: 1.1em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__text-block {
        font-size: 1em;
    }
    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    .page-faq__faq-question h3 {
        font-size: 1.05em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-bottom: 40px;
    }
    .page-faq__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-faq__hero-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-faq__cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }
    .page-faq__intro-section, .page-faq__faq-list-section, .page-faq__cta-bottom-section {
        padding: 30px 15px;
    }
    .page-faq__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .page-faq__text-block {
        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: 28px;
        height: 28px;
        margin-left: 15px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px !important;
    }
    .page-faq__faq-answer p {
        font-size: 0.9em;
    }

    /* Ensure all images are responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color contrast fixes if needed */
.page-faq__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}

.page-faq .page-faq__dark-bg {
    color: var(--text-light); /* Deep dark background, light text */
}

.page-faq .page-faq__light-bg {
    color: var(--text-dark); /* Light background, dark text */
}