/* 23/10/2026 (DBQH): CSS dùng chung cho các trang nội dung - tông đỏ/vàng đồng bộ trang chuyên mục / văn bản / lịch công tác.
   Các view chép từ donvi (hỏi đáp, gửi câu hỏi, dự thảo...) dùng lớp CSS mà layout DBQH không nạp -> định nghĩa lại ở đây.
   Nạp trong Views/Shared/_Layout.cshtml. */

/* ---------- Breadcrumb chung (ol.breadcrumb kiểu Bootstrap 3 hiện thành danh sách đánh số) ---------- */
#whole-page ol.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 8px 12px;
    background: #fff8ec; border: 1px solid #f0e2c8; border-radius: 6px; font-size: 13px; }
#whole-page ol.breadcrumb > li { color: #6b7280; padding: 0; }
#whole-page ol.breadcrumb > li + li::before { content: "›"; margin-right: 6px; padding: 0; color: #b82114; }
#whole-page ol.breadcrumb a { color: #b82114; text-decoration: none; }
#whole-page ol.breadcrumb i { margin-right: 4px; }
#whole-page .pathway-category { margin: 12px 0 0; }

/* ---------- Hỏi đáp - danh sách (Views/QA/Category.cshtml) ---------- */
.qa-category-page { width: 100%; padding: 0 12px 24px; }
.qa-page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 14px;
    padding: 16px 20px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #8f150c 0%, #b82114 60%, #c8261a 100%);
    border-bottom: 3px solid #e0a800; box-shadow: 0 4px 14px rgba(184, 33, 20, .18); }
.qa-page-title { margin: 0; font-size: 20px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .4px; }
.qa-page-title i { color: #ffd54f; margin-right: 6px; }
.qa-page-subtitle { margin: 4px 0 0; font-size: 13.5px; color: #fff3c4; }
.btn-qa-ask { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 6px; font-weight: 700;
    background: #ffd54f; color: #7a1208 !important; text-decoration: none !important; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.btn-qa-ask:hover { background: #ffe082; }
.qa-filter-card { background: #fffdf8; border: 1px solid #f0e2c8; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.qa-filter-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; }
.qa-filter-fields { flex: 1 1 420px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.qa-label { display: block; font-size: 12.5px; font-weight: 600; color: #8f150c; margin-bottom: 4px; }
.qa-label i { color: #c9a227; margin-right: 3px; }
.qa-input, .qa-select { box-sizing: border-box; width: 100%; height: 38px !important; padding: 6px 10px; border: 1px solid #e5d3b3 !important; border-radius: 6px !important; font-size: 13.5px; background: #fff; box-shadow: none !important; }
.qa-input:focus, .qa-select:focus { outline: none; border-color: #c8261a !important; box-shadow: 0 0 0 3px rgba(200, 38, 26, .12) !important; }
.qa-filter-actions { display: flex; gap: 6px; }
.btn-qa-search, .btn-qa-reset { height: 38px; padding: 0 16px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.btn-qa-search { background: linear-gradient(135deg, #8f150c, #c8261a); color: #fff !important; border: 0; }
.btn-qa-search:hover { filter: brightness(1.08); }
.btn-qa-reset { background: #fff; color: #8f150c !important; border: 1px solid #e5d3b3; }
.btn-qa-reset:hover { background: #fff3dd; }
.qa-filter-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font-size: 13px; color: #6b7280; }
.qa-filter-summary strong { color: #b82114; }
.qa-clear-link { color: #b82114; font-weight: 600; text-decoration: none; }
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-card { background: #fff; border: 1px solid #f0e2c8; border-radius: 8px; padding: 14px 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.qa-card:hover { border-color: #e0a800; box-shadow: 0 4px 14px rgba(184, 33, 20, .10); }
.qa-card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.qa-user-badge { display: flex; align-items: center; gap: 10px; }
.qa-avatar-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(160deg, #c8261a, #8f150c); font-size: 14px; }
.qa-user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.qa-user-name { color: #1f2937 !important; font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
.qa-post-date { color: #9a7b3c; font-size: 12px; }
.qa-status-pill { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 14px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.qa-card-title { margin: 0 0 6px; font-size: 16px; line-height: 1.4; font-weight: 700; text-align: left; }
.qa-card-title a { color: #a1150b !important; text-decoration: none !important; }
.qa-card-title a:hover { text-decoration: underline !important; }
.qa-card-body p { margin: 0; color: #4b5563; font-size: 13.5px; line-height: 1.55; text-align: justify;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qa-card-footer { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ecdcbf; text-align: right; }
.qa-view-detail { color: #b82114 !important; font-weight: 600; font-size: 13px; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.qa-view-detail:hover { gap: 9px; }
.qa-empty-state { text-align: center; color: #6b7280; padding: 34px 16px; border: 1px dashed #e5d3b3; border-radius: 8px; background: #fffdf8; }
.qa-empty-icon { font-size: 32px; color: #d9b45a; margin-bottom: 8px; }
.qa-empty-title { font-size: 16px; font-weight: 700; color: #1f2937; margin: 0 0 6px; }
.qa-empty-desc { font-size: 13.5px; max-width: 520px; margin: 0 auto 14px; }
.qa-category-page .default-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; }
.qa-category-page .default-pagination a, .qa-category-page .default-pagination span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 6px; border: 1px solid #e5d3b3; text-decoration: none; color: #8f150c; background: #fff; font-size: 13.5px; }
.qa-category-page .default-pagination a:hover { background: #fff3dd; }
.qa-category-page .default-pagination .current { background: #b82114; border-color: #b82114; color: #fff; font-weight: 700; }

/* ---------- Gửi câu hỏi (Views/QA/Submit.cshtml) ---------- */
.public-qa .qa-submit-frame .panel-body { padding: 12px 0 0 !important; }
.public-qa .panel-title i { margin-right: 6px; }
.public-qa .alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; border: 1px solid transparent; }
.public-qa .alert-info { background: #fff8ec; border-color: #f0e2c8; color: #6b4e16; }
.public-qa .alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.public-qa .alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.public-qa .alert-danger ul { margin: 6px 0 0; padding-left: 20px; }
.qa-feedback-form { background: #fffdf8; border: 1px solid #f0e2c8; border-radius: 8px; padding: 16px 16px 6px; }
.qa-feedback-form .row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.qa-feedback-form .row > .col-md-6 { box-sizing: border-box; flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
.qa-feedback-form .form-group { margin-bottom: 14px; }
.qa-feedback-form label { display: block; font-size: 13px; font-weight: 600; color: #8f150c; margin-bottom: 5px; }
.qa-feedback-form label i { color: #c9a227 !important; }
.qa-feedback-form .text-danger { color: #c8261a !important; }
.qa-feedback-form .form-control { box-sizing: border-box; width: 100%; height: 40px; padding: 7px 11px; border: 1px solid #e5d3b3; border-radius: 6px; font-size: 14px; background: #fff; box-shadow: none; }
.qa-feedback-form textarea.form-control { font-family: inherit; height: auto; min-height: 150px; resize: vertical; line-height: 1.5; }
.qa-feedback-form .form-control:focus { outline: none; border-color: #c8261a; box-shadow: 0 0 0 3px rgba(200, 38, 26, .12); }
.duthao-captcha-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.duthao-captcha-img { height: 40px; border-radius: 6px; border: 1px solid #e5d3b3; }
.duthao-captcha-wrap .btn { height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid #e5d3b3; background: #fff; color: #8f150c; font-weight: 600; }
.duthao-captcha-input { max-width: 180px; }
.qa-form-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 14px 0 10px; margin-top: 4px; border-top: 1px dashed #ecdcbf; }
.qa-form-actions .btn { height: 40px; padding: 0 18px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; }
.qa-form-actions .btn-submit-qa { background: linear-gradient(135deg, #8f150c, #c8261a); color: #fff; border: 0; }
.qa-form-actions .btn-submit-qa:hover { filter: brightness(1.08); }
.qa-form-actions .btn-outline-secondary, .qa-form-actions .btn-outline-primary { background: #fff; color: #8f150c; border: 1px solid #e5d3b3; }
.qa-form-actions .btn-outline-secondary:hover, .qa-form-actions .btn-outline-primary:hover { background: #fff3dd; }

@media (max-width: 767px) {
    .qa-filter-fields { grid-template-columns: 1fr; }
    .qa-filter-actions { width: 100%; }
    .qa-filter-actions .btn { flex: 1; justify-content: center; }
    .qa-feedback-form .row > .col-md-6 { flex-basis: 100%; max-width: 100%; }
    .qa-page-header { padding: 14px 16px; }
    .qa-page-title { font-size: 17px; }
}
