/* Tổng thể thiết lập cơ bản cho Layout */
body {
    margin: 0;
    padding: 0;
    background-color: #f8fafc; /* Màu nền xám nhẹ dịu mắt cho khu vực forum */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Khu vực bao bọc nội dung chính của trang */
.forum-page-main {
    min-height: calc(100vh - 300px); /* Đảm bảo footer luôn nằm dưới cùng ngay cả khi ít nội dung */
    padding-top: 20px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* ================= ĐỊNH DẠNG KHUNG LỖI 404 KHI KHÔNG TỒN TẠI TRANG ================= */
.page-not-found-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.error-code {
    font-size: 72px;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
    margin-bottom: 10px;
}

.error-title {
    font-size: 24px;
    color: #0f172a;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.error-message {
    font-size: 15.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.btn-back-home {
    display: inline-block;
    background-color: #1552a3;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-back-home:hover {
    background-color: #0f3d7a;
}

.btn-back-home:active {
    transform: scale(0.98);
}

/* Tối ưu hóa hiển thị Responsive trên Mobile */
@media (max-width: 640px) {
    .page-not-found-container {
        margin: 30px 16px;
        padding: 30px 20px;
    }
    .error-code {
        font-size: 54px;
    }
    .error-title {
        font-size: 20px;
    }
}