:root {
    --fq-teal: #0f6b64;
    --fq-teal-dark: #0a4e49;
    --fq-cream: #faf7f0;
    --fq-text: #222;
    --fq-border: #e3e0d6;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans Bengali', 'Noto Naskh Arabic', Arial, sans-serif; background: var(--fq-cream); color: var(--fq-text); }
a { color: var(--fq-teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.fq-header { background: var(--fq-teal); color: #fff; }
.fq-header-top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; flex-wrap: wrap; }
.fq-logo { font-size: 1.4rem; font-weight: bold; color: #fff; }
.fq-search { flex: 1; display: flex; min-width: 180px; }
.fq-search input { flex: 1; padding: 8px 10px; border: none; border-radius: 4px 0 0 4px; }
.fq-search button { border: none; background: var(--fq-teal-dark); color: #fff; padding: 0 12px; border-radius: 0 4px 4px 0; cursor: pointer; }
.fq-lang-switch a { color: #cfe9e6; margin: 0 4px; }
.fq-lang-switch a.active { color: #fff; font-weight: bold; text-decoration: underline; }
.fq-ask-btn { background: #e8b94b; color: #333; padding: 8px 16px; border-radius: 4px; font-weight: bold; }
.fq-nav { background: var(--fq-teal-dark); display: flex; gap: 20px; padding: 8px 20px; }
.fq-nav a { color: #e6f3f1; }

.fq-main { max-width: 960px; margin: 0 auto; padding: 24px 20px; }
.fq-hero { text-align: center; padding: 30px 0; }
.fq-cta { display: inline-block; margin-top: 10px; background: var(--fq-teal); color: #fff; padding: 10px 22px; border-radius: 6px; }
.fq-section { margin: 32px 0; background: #fff; border: 1px solid var(--fq-border); border-radius: 8px; padding: 18px 22px; }
.fq-section h2 { color: var(--fq-teal-dark); margin-top: 0; }
.fq-answer-list { list-style: none; padding: 0; margin: 0; }
.fq-answer-list li { padding: 8px 0; border-bottom: 1px solid var(--fq-border); display: flex; justify-content: space-between; gap: 12px; }
.fq-meta { color: #888; font-size: 0.85rem; white-space: nowrap; }
.fq-empty { color: #999; }

.fq-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fq-category-card { display: flex; flex-direction: column; background: var(--fq-cream); border: 1px solid var(--fq-border); border-radius: 6px; padding: 12px 14px; }
.fq-category-card span { color: #888; font-size: 0.85rem; }

.fq-answer { background: #fff; border: 1px solid var(--fq-border); border-radius: 8px; padding: 24px; }
.fq-breadcrumb { font-size: 0.85rem; margin-bottom: 10px; }
.fq-qa-block { margin-top: 18px; }
.fq-answer-block { background: var(--fq-cream); padding: 16px; border-radius: 6px; }
.fq-scholar, .fq-source { font-size: 0.85rem; color: #666; }

.fq-ask-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--fq-border); }
.fq-ask-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.fq-ask-form input, .fq-ask-form select, .fq-ask-form textarea { padding: 8px; border: 1px solid var(--fq-border); border-radius: 4px; font-family: inherit; }
.fq-ask-form button { background: var(--fq-teal); color: #fff; border: none; padding: 10px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.fq-success { background: #e4f3ea; border: 1px solid #a8d8bb; padding: 14px; border-radius: 6px; }

.fq-footer { text-align: center; padding: 20px; color: #888; font-size: 0.85rem; }

html[dir="rtl"] .fq-search { flex-direction: row-reverse; }
html[dir="rtl"] .fq-search input { border-radius: 0 4px 4px 0; }
html[dir="rtl"] .fq-search button { border-radius: 4px 0 0 4px; }
