/* FAQ page specific styles */

.page-faq {
    background-color: var(--bg);
}

/* Hero */
.page-hero.faq-hero {
    padding: 80px 0 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0ecff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.faq-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-hero-content p {
    font-size: 1.05rem;
    color: var(--text-light);
}

/* Layout */
.faq-section {
    padding: 50px 0 80px;
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: flex-start;
}

/* Info card (left) */
.faq-info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px 22px;
    box-shadow: var(--shadow);
}

.faq-info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.faq-info-card p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 8px;
}

.faq-info-secondary {
    color: var(--text-light);
    margin-bottom: 16px;
}

.faq-info-secondary a {
    color: var(--primary);
    text-decoration: underline;
}

.faq-bullets {
    list-style: none;
    margin: 0 0 16px;
}

.faq-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.faq-bullets i {
    color: var(--accent);
    font-size: 0.9rem;
}

.faq-contact-btn {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Accordion */
.faq-accordion {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px 18px 16px;
}

.faq-item + .faq-item {
    border-top: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    padding: 12px 4px;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text);
    gap: 16px;
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    transition: transform 0.2s ease;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: max-height 0.25s ease, opacity 0.2s ease;
    opacity: 0;
    padding: 0 2px;
}

.faq-answer p {
    margin-bottom: 8px;
}

.faq-item.open .faq-answer {
    padding-bottom: 12px;
    max-height: 500px; /* enough for content */
    opacity: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* First item open by default */
.faq-item:first-child .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 12px;
}

/* Responsive */
@media (max-width: 960px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-info-card {
        order: 2;
    }

    .faq-accordion {
        order: 1;
    }
}

@media (max-width: 640px) {
    .page-hero.faq-hero {
        padding: 60px 0 32px;
    }

    .faq-hero-content h1 {
        font-size: 2rem;
    }

    .faq-accordion {
        padding: 14px 12px 10px;
    }

    .faq-question {
        font-size: 0.95rem;
    }
}
