/* FAQs Page Styling */

.faqs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.faqs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-card {
    background: white;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-question a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-question a:hover {
    color: #667eea;
}

.faq-excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.read-more {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #764ba2;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #764ba2;
}

.faqs-sidebar {
    position: sticky;
    top: 20px;
}

/* FAQ Detail Page */

.faq-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.faq-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-answer {
    color: #2d3748;
    line-height: 1.8;
    font-size: 1.1rem;
}

.faq-answer p {
    margin-bottom: 20px;
}

.faq-answer ul {
    margin: 20px 0 20px 24px;
    list-style: disc;
}

.faq-answer li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.faq-answer strong {
    color: #1a202c;
    font-weight: 700;
}

.faq-answer h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 28px 0 16px 0;
    color: #667eea;
}

.faq-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.faq-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
}

.faq-cta p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

.faq-cta .calculate-button {
    background: white;
    color: #667eea;
    display: inline-block;
}

.faq-cta .calculate-button:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

.faq-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.related-faqs {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-faqs h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
}

.related-faqs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-faqs-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.related-faqs-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-faqs-list a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: block;
}

.related-faqs-list a:hover {
    color: #667eea;
}

/* Footer */

.page-footer {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */

@media (max-width: 1024px) {
    .faqs-container,
    .faq-detail-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faqs-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .faq-card {
        padding: 20px;
    }

    .faq-question {
        font-size: 1.2rem;
    }

    .faq-content {
        padding: 24px;
    }

    .faq-answer {
        font-size: 1rem;
    }

    .related-faqs {
        padding: 20px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
    }
}
