/* style/faq.css */

/* Variables */
:root {
    --primary-color: #1A1A2E; /* Deep dark blue */
    --secondary-color: #E94560; /* Vibrant deep red */
    --text-light: #F0F0F0; /* Light text for dark backgrounds */
    --text-dark: #333333; /* Dark text for light backgrounds */
    --bg-light: #FFFFFF; /* Light background */
    --bg-dark: #1A1A2E; /* Dark background */
    --accent-gold: #FFD700; /* Gold for highlights */
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
}

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

/* Hero Section (Custom for FAQ page, not the homepage HERO) */
.page-faq-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-faq-hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-faq-hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-faq-hero-cta {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq-hero-cta:hover {
    background: #FFC107; /* Slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* Main FAQ Sections */
.page-faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.page-faq-section {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 30px;
}

.page-faq-section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.page-faq-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* FAQ Item Styling */
.page-faq .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--bg-light);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid transparent; /* To prevent border double-up */
}

.page-faq .faq-item.active .faq-question {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-bottom: 1px solid var(--secondary-color); /* Matches active background */
}

.page-faq .faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-faq .faq-item.active .faq-question h3 {
    color: var(--text-light);
}

.page-faq .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1; /* Ensure vertical alignment */
}

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

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

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

.page-faq .faq-answer p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-faq .faq-answer ol,
.page-faq .faq-answer ul {
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-faq .faq-answer li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Images within FAQ answers */
.page-faq .page-faq-image-content {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* CTA Buttons within content */
.page-faq-cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-faq-cta-button:hover {
    background: #c7374e; /* Darker secondary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq-cta-button.large {
    font-size: 1.3em;
    padding: 18px 45px;
    border-radius: 50px;
}

/* Bottom CTA Section */
.page-faq-cta-bottom {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq-cta-bottom .page-faq-cta-title {
    font-size: 2.5em;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq-cta-bottom .page-faq-cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-faq-hero {
        padding: 60px 15px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 20px;
    }

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

    .page-faq-hero-description {
        font-size: 1em;
    }

    .page-faq-hero-cta {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-faq-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-faq-section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-faq .faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .page-faq .faq-question h3 {
        font-size: 1.1em;
        width: calc(100% - 30px); /* Adjust for toggle icon */
    }
    
    .page-faq .faq-toggle {
        font-size: 20px;
        margin-left: auto;
    }

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

    .page-faq .faq-item.active .faq-answer {
        padding: 20px;
    }

    .page-faq .faq-answer ol,
    .page-faq .faq-answer ul {
        margin-left: 15px;
    }

    .page-faq-cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }

    .page-faq-cta-button.large {
        font-size: 1.1em;
        padding: 15px 35px;
    }

    .page-faq-cta-bottom {
        padding: 40px 15px;
    }

    .page-faq-cta-bottom .page-faq-cta-title {
        font-size: 1.8em;
    }

    .page-faq-cta-bottom .page-faq-cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-faq-hero-title {
        font-size: 1.8em;
    }
    .page-faq-hero-description {
        font-size: 0.9em;
    }
    .page-faq-section-title {
        font-size: 1.5em;
    }
    .page-faq .faq-question h3 {
        font-size: 1em;
    }
    .page-faq .faq-toggle {
        font-size: 18px;
    }
}